采购合同合同金额 联动,供应商材料附件个性化提示
parent
89388b8d8a
commit
7932299cb3
|
@ -944,7 +944,13 @@
|
|||
}
|
||||
|
||||
if (containsEmpty(item)) {
|
||||
this.$message.error("供应商比选材料第'" + idx + "'行有数据未填写,请检查表单")
|
||||
// 单独检查附件
|
||||
if (isEmpty(item.attachment)) {
|
||||
this.$message.error("供应商比选材料第'" + idx + "'行未上传附件")
|
||||
}
|
||||
else {
|
||||
this.$message.error("供应商比选材料第'" + idx + "'行有数据未填写,请检查表单")
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
@ -1292,6 +1298,24 @@
|
|||
this.applyDeptSectorOptions = JSON.parse('${applyDeptSectorOptions}')
|
||||
},
|
||||
|
||||
watch: {
|
||||
// 每当 question 改变时,这个函数就会执行
|
||||
procurementDetails(newValue, oldValue) {
|
||||
if (this.processType === procurementContract) {
|
||||
let contractAmount = 0
|
||||
for (let element of newValue) {
|
||||
const children = element['children'] || []
|
||||
contractAmount = newValue['totalTaxInclude'] || 0
|
||||
for (let child of children) {
|
||||
contractAmount = contractAmount + child['contractAmount'] || 0
|
||||
}
|
||||
}
|
||||
|
||||
this.contractAmount = contractAmount
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
filters: {
|
||||
ellipsis(value, limit = 40) {
|
||||
if (!value) return ''
|
||||
|
|
|
@ -255,8 +255,7 @@
|
|||
</el-form-item>
|
||||
|
||||
<el-form-item label="合同金额">
|
||||
<span v-if="projectSelected && isSalesContractMode">{{processForm.contractAmount}}元</span>
|
||||
<span v-else="projectSelected && isProcurementContractMode">0元</span>
|
||||
<span v-if="projectSelected">{{processForm.contractAmount}}元</span>
|
||||
<span v-else>未选择项目</span>
|
||||
</el-form-item>
|
||||
|
||||
|
@ -1100,7 +1099,13 @@
|
|||
}
|
||||
|
||||
if (containsEmpty(item)) {
|
||||
this.$message.error("供应商比选材料第'" + idx + "'行有数据未填写,请检查表单")
|
||||
// 单独检查附件
|
||||
if (isEmpty(item.attachment)) {
|
||||
this.$message.error("供应商比选材料第'" + idx + "'行未上传附件")
|
||||
}
|
||||
else {
|
||||
this.$message.error("供应商比选材料第'" + idx + "'行有数据未填写,请检查表单")
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
@ -1470,6 +1475,24 @@
|
|||
// this.handleSelectProject({ id: 135 })
|
||||
this.applyDeptSectorOptions = JSON.parse('${applyDeptSectorOptions}')
|
||||
},
|
||||
watch: {
|
||||
// 每当 question 改变时,这个函数就会执行
|
||||
procurementDetails(newValue, oldValue) {
|
||||
if (this.processType === procurementContract) {
|
||||
let contractAmount = 0
|
||||
for (let element of newValue) {
|
||||
const children = element['children'] || []
|
||||
contractAmount = newValue['totalTaxInclude'] || 0
|
||||
for (let child of children) {
|
||||
contractAmount = contractAmount + child['contractAmount'] || 0
|
||||
}
|
||||
}
|
||||
|
||||
this.processForm['contractAmount'] = contractAmount
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
filters: {
|
||||
ellipsis(value, limit = 40) {
|
||||
if (!value) return ''
|
||||
|
|
Loading…
Reference in New Issue