采购合同流程 预算采购明细至少选择一项

master
Harry Yang 2022-12-30 11:08:58 +08:00
parent adc998111f
commit b4e5d5cad7
1 changed files with 13 additions and 9 deletions

View File

@ -490,7 +490,7 @@
<el-table-column prop="totalTaxInclude_" label="含税总金额(元)" width="120"></el-table-column>
<el-table-column prop="totalTaxExclude" label="不含税金额(元)" width="120"></el-table-column>
<el-table-column prop="totalTax" label="税金(元)" width="110"></el-table-column>
<el-table-column prop="isUnderwritten" label="是否垫资"></el-table-column>
<el-table-column prop="isUnderwrittenDesc" label="是否垫资"></el-table-column>
<el-table-column prop="payTime" label="支出时间" width="160"></el-table-column>
<el-table-column prop="payAmount" label="支出金额(元)" width="120"></el-table-column>
<el-table-column prop="amountAlready" label="已采购数量" width="100"></el-table-column>
@ -674,16 +674,21 @@
* 过滤本次流程要填写的采购清单
*/
filterProcurementDetails() {
this.procurementDetailSelectorVisible = false
this.changeMode(procurementContractProcess)
this.processType = procurementContract
const procurementDetails = this.procurementDetails.filter(detail => {
const filteredProcurementDetails = this.procurementDetails.filter(detail => {
return detail.amountCurrent && detail.amountCurrent !== 0;
})
this.procurementDetails = procurementDetails
if (isEmpty(filteredProcurementDetails)) {
this.$message.warning("预算采购明细至少选择一项")
return
}
this.processType = procurementContract
this.changeMode(procurementContractProcess)
this.procurementDetailSelectorVisible = false
this.procurementDetails = [...filteredProcurementDetails]
// 保留副本,提交订单的时候构建表单的时候用
this.filteredProcurementDetails = [...procurementDetails]
this.filteredProcurementDetails = filteredProcurementDetails
},
goToHome() {
@ -851,7 +856,6 @@
this.procurementDetails = procurementDetails && procurementDetails.map(detail => ({
...detail, feeType: computeFeeType(detail.type),
totalTaxInclude_: detail.totalTaxInclude, totalTaxInclude: undefined, // 存在相同字段转换一下
isUnderwritten: detail.isUnderwritten === 1 ? "是" : "否",
rowKey: rowKey++, children: []
}))