|
|
@ -605,8 +605,6 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<!-- resultDescription --> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-form-item label="处理结果说明"> |
|
|
|
<el-form-item label="处理结果说明"> |
|
|
|
<el-input |
|
|
|
<el-input |
|
|
@ -631,7 +629,7 @@ |
|
|
|
class="demo-tabs responsibilities" |
|
|
|
class="demo-tabs responsibilities" |
|
|
|
@tab-click="handleClick" |
|
|
|
@tab-click="handleClick" |
|
|
|
v-loading="form.Packageloading" |
|
|
|
v-loading="form.Packageloading" |
|
|
|
v-if="['1', '3'].includes(form.basis.discoveryNode)" |
|
|
|
v-if="['1', '3'].includes(form.basis.workOrderType)" |
|
|
|
> |
|
|
|
> |
|
|
|
<el-form-item label=""> |
|
|
|
<el-form-item label=""> |
|
|
|
<el-tab-pane label="照片" name="0"> |
|
|
|
<el-tab-pane label="照片" name="0"> |
|
|
@ -1069,7 +1067,6 @@ const CompanyProportionInput = value => { |
|
|
|
// 理赔总金额计算 |
|
|
|
// 理赔总金额计算 |
|
|
|
const Totalamount = () => { |
|
|
|
const Totalamount = () => { |
|
|
|
console.log(form.value.Claimamount); |
|
|
|
console.log(form.value.Claimamount); |
|
|
|
|
|
|
|
|
|
|
|
form.value.Totalamount = form.value.Claimamount.map(res => res.money).reduce( |
|
|
|
form.value.Totalamount = form.value.Claimamount.map(res => res.money).reduce( |
|
|
|
(accumulator, currentValue) => accumulator + currentValue, |
|
|
|
(accumulator, currentValue) => accumulator + currentValue, |
|
|
|
0 |
|
|
|
0 |
|
|
@ -1077,8 +1074,7 @@ const Totalamount = () => { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const Claimssettlement = value => { |
|
|
|
const Claimssettlement = value => { |
|
|
|
console.log(value, '理赔金额'); |
|
|
|
if(value.length){ |
|
|
|
console.log(Processingresultsoptions.value, '参数列表'); |
|
|
|
|
|
|
|
let data = []; |
|
|
|
let data = []; |
|
|
|
value.forEach(item => { |
|
|
|
value.forEach(item => { |
|
|
|
let _data = Processingresultsoptions.value.find(res => res.value == item); |
|
|
|
let _data = Processingresultsoptions.value.find(res => res.value == item); |
|
|
@ -1086,7 +1082,6 @@ const Claimssettlement = value => { |
|
|
|
data.push(_data); |
|
|
|
data.push(_data); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
console.log(data, '筛选出来的值'); |
|
|
|
|
|
|
|
form.value.Claimamount = []; |
|
|
|
form.value.Claimamount = []; |
|
|
|
if (data && data.length) { |
|
|
|
if (data && data.length) { |
|
|
|
data.forEach(item => { |
|
|
|
data.forEach(item => { |
|
|
@ -1100,6 +1095,7 @@ const Claimssettlement = value => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
// 图片上传必须携带TOKEN |
|
|
|
// 图片上传必须携带TOKEN |
|
|
|
const headers = computed(() => { |
|
|
|
const headers = computed(() => { |
|
|
@ -1377,7 +1373,7 @@ const allFieldsFilled = computed(() => { |
|
|
|
form.value.Processed = allFilled; |
|
|
|
form.value.Processed = allFilled; |
|
|
|
return allFilled; |
|
|
|
return allFilled; |
|
|
|
}); |
|
|
|
}); |
|
|
|
// 提交 |
|
|
|
// 结果提交 |
|
|
|
const onSubmit = () => { |
|
|
|
const onSubmit = () => { |
|
|
|
console.log(form.value); |
|
|
|
console.log(form.value); |
|
|
|
ruleFormRef.value.validate(valid => { |
|
|
|
ruleFormRef.value.validate(valid => { |
|
|
@ -1550,8 +1546,9 @@ const onSubmit = () => { |
|
|
|
submitData.aftersalesProcessingResultsDTO.resultDescription = |
|
|
|
submitData.aftersalesProcessingResultsDTO.resultDescription = |
|
|
|
form.value.basis.resultDescription; //处理结果说明 |
|
|
|
form.value.basis.resultDescription; //处理结果说明 |
|
|
|
delete form.value.basis.resultDescription; //删除无用信息 |
|
|
|
delete form.value.basis.resultDescription; //删除无用信息 |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
delete submitData.result;//删除处理结果字段 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log(submitData, '处理好的参数'); |
|
|
|
console.log(submitData, '处理好的参数'); |
|
|
|
form.value.Pageloading = true; //关闭页面加载 |
|
|
|
form.value.Pageloading = true; //关闭页面加载 |
|
|
|
|
|
|
|
|
|
|
@ -1559,6 +1556,8 @@ const onSubmit = () => { |
|
|
|
if (form.value.Processed) { |
|
|
|
if (form.value.Processed) { |
|
|
|
submitData.workOrderStatus = 30; |
|
|
|
submitData.workOrderStatus = 30; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//移除责任方表单(必须) |
|
|
|
|
|
|
|
delete submitData.processor; |
|
|
|
$_submit(submitData) |
|
|
|
$_submit(submitData) |
|
|
|
.then(res => { |
|
|
|
.then(res => { |
|
|
|
ElMessage({ |
|
|
|
ElMessage({ |
|
|
|