[update 83083] 打包管理&到账开票-更新信息后,悬浮不会重新请求

This commit is contained in:
danshihao
2024-03-26 16:56:46 +08:00
parent 68ee1a6334
commit 5fa9e2a7e2
3 changed files with 18 additions and 12 deletions
+8 -2
View File
@@ -76,6 +76,12 @@ export default {
type: String, type: String,
required: false, required: false,
default: 'pack' default: 'pack'
},
// 已有数据,悬浮是否重新加载
hasInfoHoverNeedLoad: {
type: Boolean,
required: false,
default: false
} }
}, },
computed: { computed: {
@@ -142,8 +148,8 @@ export default {
}, },
visibleChange(visible) { visibleChange(visible) {
// 到账、开票、邮寄 的时候,请求接口获得相应的数据 // 到账、开票、邮寄 的时候,请求接口获得相应的数据
// 判断条件 tooltip显示、 有不同的统计状态,统计状态值不为0 没有请求过详情数据 // 判断条件 tooltip显示、 有不同的统计状态,统计状态值不为0 (已有数据是否重新请求 || 没有请求过详情数据)
if (visible && this.statusType && this.statusNo && !this.hasInfo) { if (visible && this.statusType && this.statusNo && (this.hasInfoHoverNeedLoad || !this.hasInfo)) {
let idKey = this.statusKey === 'confirm' && 'projectId' || 'id' let idKey = this.statusKey === 'confirm' && 'projectId' || 'id'
this.getInfoFunc({ [idKey]: this.statuObj.id }).then(res => { this.getInfoFunc({ [idKey]: this.statuObj.id }).then(res => {
if (res.success) { if (res.success) {
@@ -132,33 +132,33 @@
<!-- 打包、需要发票、到账、开票、邮寄状态--> <!-- 打包、需要发票、到账、开票、邮寄状态-->
<template slot="status" slot-scope="text,record"> <template slot="status" slot-scope="text,record">
<status-slot :statu-obj="record" :status-no="text" :status-type="true"></status-slot> <status-slot has-info-hover-need-load :statu-obj="record" :status-no="text" :status-type="true"></status-slot>
</template> </template>
<!-- 确认收入 --> <!-- 确认收入 -->
<template slot="status-confirm" slot-scope="text,record"> <template slot="status-confirm" slot-scope="text,record">
<status-slot :statu-obj="record" :status-no="text" :status-type="true" status-key="confirm" <status-slot has-info-hover-need-load :statu-obj="record" :status-no="text" :status-type="true" status-key="confirm"
:get-info-func="getPayConfirmList"></status-slot> :get-info-func="getPayConfirmList"></status-slot>
</template> </template>
<!-- 开票--> <!-- 开票-->
<template slot="status-bill" slot-scope="text,record"> <template slot="status-bill" slot-scope="text,record">
<status-slot :statu-obj="record" :status-no="text" :status-type="true" status-key="bill"></status-slot> <status-slot has-info-hover-need-load :statu-obj="record" :status-no="text" :status-type="true" status-key="bill"></status-slot>
</template> </template>
<!-- 邮寄--> <!-- 邮寄-->
<template slot="status-mail" slot-scope="text,record"> <template slot="status-mail" slot-scope="text,record">
<status-slot :statu-obj="record" :status-no="text" :status-type="true" status-key="mail"></status-slot> <status-slot has-info-hover-need-load :statu-obj="record" :status-no="text" :status-type="true" status-key="mail"></status-slot>
</template> </template>
<!--打包--> <!--打包-->
<template slot="status-pack" slot-scope="text,record"> <template slot="status-pack" slot-scope="text,record">
<status-slot :statu-obj="record" :status-no="text" status-key="pack"></status-slot> <status-slot has-info-hover-need-load :statu-obj="record" :status-no="text" status-key="pack"></status-slot>
</template> </template>
<!--需要发票--> <!--需要发票-->
<template slot="status-needInvoice" slot-scope="text,record"> <template slot="status-needInvoice" slot-scope="text,record">
<status-slot :statu-obj="record" :status-no="text"></status-slot> <status-slot has-info-hover-need-load :statu-obj="record" :status-no="text"></status-slot>
</template> </template>
<span slot="action" class="action-span-cell" slot-scope="text, record"> <span slot="action" class="action-span-cell" slot-scope="text, record">
+4 -4
View File
@@ -56,19 +56,19 @@
<!-- 打包、需要发票、到账、开票、邮寄状态--> <!-- 打包、需要发票、到账、开票、邮寄状态-->
<template slot="status" slot-scope="text,record"> <template slot="status" slot-scope="text,record">
<status-slot :statu-obj="record" :status-no="text" :status-type="true"></status-slot> <status-slot has-info-hover-need-load :statu-obj="record" :status-no="text" :status-type="true"></status-slot>
</template> </template>
<!-- 确认收入 --> <!-- 确认收入 -->
<template slot="status-confirm" slot-scope="text,record"> <template slot="status-confirm" slot-scope="text,record">
<status-slot :statu-obj="record" :status-no="text" :status-type="true" status-key="confirm" :get-info-func="getPayConfirmList"></status-slot> <status-slot has-info-hover-need-load :statu-obj="record" :status-no="text" :status-type="true" status-key="confirm" :get-info-func="getPayConfirmList"></status-slot>
</template> </template>
<!-- 开票--> <!-- 开票-->
<template slot="status-bill" slot-scope="text,record"> <template slot="status-bill" slot-scope="text,record">
<status-slot :statu-obj="record" :status-no="text" :status-type="true" status-key="bill"></status-slot> <status-slot has-info-hover-need-load :statu-obj="record" :status-no="text" :status-type="true" status-key="bill"></status-slot>
</template> </template>
<!-- 需要发票 --> <!-- 需要发票 -->
<template slot="status-needInvoice" slot-scope="text,record"> <template slot="status-needInvoice" slot-scope="text,record">
<status-slot :statu-obj="record" :status-no="text"></status-slot> <status-slot has-info-hover-need-load :statu-obj="record" :status-no="text"></status-slot>
</template> </template>
<!-- 项目名称--> <!-- 项目名称-->
<template slot="projectName" slot-scope="text, record"> <template slot="projectName" slot-scope="text, record">