|
@@ -785,13 +785,8 @@ export default {
|
|
|
if(this.processData.businessTable == 'incident_ticket' &&key=='child&incident_ticket_children'){
|
|
|
var all = 0
|
|
|
value.map(item=>{
|
|
|
- item.accident_sum = item.accident_sum?item.accident_sum:0
|
|
|
+ item.accident_sum = item.accident_sum?item.accident_sum:''
|
|
|
all+=Number(item.accident_sum)
|
|
|
- let reg = new RegExp("[\\u4E00-\\u9FFF]+","g")
|
|
|
- if(reg.test(item.plan_number) &&item.plan_number&&item.plan_number!==''){
|
|
|
- this.$message.error('计划单号不可输入汉字,请重新输入!')
|
|
|
- item.plan_number =''
|
|
|
- }
|
|
|
})
|
|
|
this.$refs.KFB.setData({total_money:all})
|
|
|
}
|
|
@@ -1018,16 +1013,17 @@ export default {
|
|
|
all+= Number(item.accident_sum)
|
|
|
PlanNum.push(item.plan_number)
|
|
|
})
|
|
|
+ formData.total_money = all
|
|
|
formData.plan_number = PlanNum.toString()
|
|
|
sonTable.every(item=>{
|
|
|
- if(item.accident_type=='不涉及金额' && item.accident_sum!=='0'){
|
|
|
+ if(item.accident_type=='不涉及金额' && item.accident_sum !=='0.00'){
|
|
|
this.$message.error('事故类型为不涉及金额时事故金额应为0!')
|
|
|
+ item.accident_sum = item.accident_sum
|
|
|
addForm = 'yes'
|
|
|
return false
|
|
|
}
|
|
|
return true
|
|
|
})
|
|
|
- formData.total_money = all
|
|
|
var supplier = this.$refs.KFB.form.getFieldValue('responsibility_company')
|
|
|
var responsibility1 = this.$refs.KFB.form.getFieldValue('responsibility_person1')
|
|
|
if(sonTable.length==0){
|
|
@@ -1170,7 +1166,6 @@ export default {
|
|
|
this.btndisabled = true
|
|
|
postFormDataAction(url, formData, { jsonContent: jsonPamats })
|
|
|
.then(res => {
|
|
|
- debugger
|
|
|
if (res.success) {
|
|
|
this.todoManageOperationObject.isSave = true
|
|
|
this.$message.success('保存成功!')
|