【fix:bug88155】-标协会员 开票标识字段显示不对

This commit is contained in:
fengchenchen
2024-08-09 10:42:46 +08:00
parent 6a7e13774a
commit a1bde7a838
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -82,6 +82,12 @@ export default {
type: Boolean,
required: false,
default: false
},
// 是否需要发票字段的KEY值,目前只有标协会员使用了,发票使用的。
invoiceKey: {
type: String,
required: false,
default: 'needInvoice'
}
},
computed: {
@@ -110,7 +116,7 @@ export default {
// 待确收金额不为0 都正常判断
if (this.statusNo === 0) {
// 开票或邮寄时,不需要发票
if ((this.statusKey === 'bill' || this.statusKey === 'mail') && this.statuObj.needInvoice === 0) {
if ((this.statusKey === 'bill' || this.statusKey === 'mail') && this.statuObj[this.invoiceKey] === 0) {
return zero
} else {
return error
@@ -188,7 +188,7 @@
<!-- 开票-->
<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 :statu-obj="record" :status-no="text" :status-type="true" status-key="bill" invoice-key="invoiceRequirements"></status-slot>
</template>
<!-- 确收 -->