[fix 82948] 打包管理新增后-到账开票的列表标识显示不对

This commit is contained in:
danshihao
2024-03-22 15:22:24 +08:00
parent 05df6c297b
commit bf8b6115d7
+4 -2
View File
@@ -24,6 +24,7 @@ import half from '../../assets/imgs/half.png'
import error from '../../assets/imgs/error.png' import error from '../../assets/imgs/error.png'
// 获得当前行数据的方法,默认写的是 普通项目获得数据的方法,其他模块需要以传参的方式修改相应的方法 // 获得当前行数据的方法,默认写的是 普通项目获得数据的方法,其他模块需要以传参的方式修改相应的方法
import { queryCommonProjectById } from '../../api/incomePaymentsApi' import { queryCommonProjectById } from '../../api/incomePaymentsApi'
import { ProjectTypeEnums } from '@/enums/commonEnums'
export default { export default {
name: 'StatusSlot', name: 'StatusSlot',
@@ -80,8 +81,9 @@ export default {
computed: { computed: {
// eslint-disable-next-line vue/return-in-computed-property // eslint-disable-next-line vue/return-in-computed-property
status() { status() {
// 如果打包字段 && 当前列不是打包列 && 当前行是打包为"是" // 非打包项目,其他项目如果打包,就除了打包列全部置灰
if (this.packField && this.statusKey !== 'pack' && this.statuObj[this.packField] === 1) { // 如果有打包字段 && 当前列不是打包列 && 当前行是打包为"是" && 当前项目不是打包项目
if (this.packField && this.statusKey !== 'pack' && this.statuObj[this.packField] === 1 && this.statuObj.projectType !== ProjectTypeEnums.PACK_PRO.value) {
return zero return zero
} }
if (this.statuObj.amountReceivable === '0.00' || this.statuObj.receivableAmount === '0.00') { if (this.statuObj.amountReceivable === '0.00' || this.statuObj.receivableAmount === '0.00') {