|
|
@@ -1141,7 +1141,7 @@
|
|
|
</el-form>
|
|
|
<div class="footer">
|
|
|
<span>已选保司:{{ currentRow.length }}家</span>
|
|
|
- <el-button type="primary" @click="handleSubmit(InsurancePolicyRefs)">确定</el-button>
|
|
|
+ <el-button type="primary" :loading="loading" @click="handleSubmit(InsurancePolicyRefs)">确定</el-button>
|
|
|
</div>
|
|
|
<el-dialog
|
|
|
title="选择业务员"
|
|
|
@@ -1983,6 +1983,8 @@ const handleRecognition = () => {
|
|
|
imageShow.value = true
|
|
|
}
|
|
|
|
|
|
+// 提交
|
|
|
+let loading = ref(false)
|
|
|
const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined) => {
|
|
|
if(!InsurancePolicyRefs) {
|
|
|
InsurancePolicyRefs?.resetFields()
|
|
|
@@ -1990,6 +1992,7 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined) => {
|
|
|
}
|
|
|
await InsurancePolicyRefs.validate((valid) => {
|
|
|
if(valid) {
|
|
|
+ loading.value = true
|
|
|
let arr = [], brr = []
|
|
|
if(quoteData.value.length>0) {
|
|
|
let obj = quoteData.value.find(a => a.id === insurancePolicyForm.value.order.insuranceCompanyCode)
|
|
|
@@ -2090,11 +2093,14 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined) => {
|
|
|
message: res.msg,
|
|
|
type: 'success'
|
|
|
})
|
|
|
+ quoteData.value[drivingRow.value].quoteResult = res.data
|
|
|
+ loading.value = false
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
|
type: 'warning'
|
|
|
})
|
|
|
+ loading.value = false
|
|
|
}
|
|
|
// InsurancePolicyRefs.resetFields()
|
|
|
})
|