update 打包字段为"是"其他全部置灰
This commit is contained in:
@@ -58,7 +58,7 @@ export default {
|
||||
required: false
|
||||
},
|
||||
// 当前需要转换key的属性, 悬浮显示实际具体内容信息时需要
|
||||
// paymentRecord 来款 confirm-确认收入 mail -- 邮寄 bill--开票
|
||||
// paymentRecord 来款 confirm-确认收入 mail -- 邮寄 bill--开票; pack--打包
|
||||
statusKey: {
|
||||
type: String,
|
||||
required: false,
|
||||
@@ -69,11 +69,21 @@ export default {
|
||||
type: Function,
|
||||
required: false,
|
||||
default: queryCommonProjectById
|
||||
},
|
||||
// 打包的字段 如果打包,其他的字段全部置灰 如果为空,不做判断
|
||||
packField: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'pack'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// eslint-disable-next-line vue/return-in-computed-property
|
||||
status() {
|
||||
// 如果有打包字段 && 当前列不是打包列 && 当前行是打包为"是"
|
||||
if (this.packField && this.statusKey !== 'pack' && this.statuObj[this.packField] === 1) {
|
||||
return zero
|
||||
}
|
||||
if (this.statuObj.amountReceivable === '0.00' || this.statuObj.receivableAmount === '0.00') {
|
||||
if (this.statusType) {
|
||||
// 待确收金额为0 未到账 未邮寄 未开票的状态
|
||||
|
||||
Reference in New Issue
Block a user