给单据中序列号和批号的展示逻辑进行修改:如果开启出入库管理,并且类型等于采购、采购退货、销售、销售退货,则跳过,不显示

This commit is contained in:
季圣华 2023-12-05 23:39:43 +08:00
parent 8693a61129
commit 63703002ac

View File

@ -594,11 +594,21 @@ export const BillModalMixin = {
this.changeFormTypes(this.materialTable.columns, 'sku', 1)
}
if(info.enableSerialNumber === "1") {
this.changeFormTypes(this.materialTable.columns, 'snList', 1)
//如果开启出入库管理并且类型等于采购采购退货销售销售退货则跳过
if(this.inOutManageFlag && (this.prefixNo === 'CGRK' || this.prefixNo === 'CGTH' || this.prefixNo === 'XSCK' || this.prefixNo === 'XSTH')) {
//跳过
} else {
this.changeFormTypes(this.materialTable.columns, 'snList', 1)
}
}
if(info.enableBatchNumber === "1") {
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 1)
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 1)
//如果开启出入库管理并且类型等于采购采购退货销售销售退货则跳过
if(this.inOutManageFlag && (this.prefixNo === 'CGRK' || this.prefixNo === 'CGTH' || this.prefixNo === 'XSCK' || this.prefixNo === 'XSTH')) {
//跳过
} else {
this.changeFormTypes(this.materialTable.columns, 'batchNumber', 1)
this.changeFormTypes(this.materialTable.columns, 'expirationDate', 1)
}
}
},
//删除一行或多行的时候触发