|
|
@@ -1193,7 +1193,7 @@
|
|
|
@click="handleSubmit(InsurancePolicyRefs, scope)">计算保费</el-button>
|
|
|
<el-button v-if="scope.row.quoteResult?.code===200" link type="primary"
|
|
|
@click="handleShare(scope.row.quoteResult.ordersNo)">分享</el-button>
|
|
|
- <el-button v-if="scope.row.quoteResult?.code===200" link type="primary"
|
|
|
+ <el-button v-if="scope.row.quoteResult?.code===200" link type="primary" :loading="scope.row.loading"
|
|
|
@click="handleUnderwriting(scope)">核保</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -1257,13 +1257,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-popover>
|
|
|
- <el-button link type="primary" v-if="scope.row.orderStatus === '1'"
|
|
|
- @click="historyhandleUnderwriting(scope.row.orderNo)">核保</el-button>
|
|
|
+ <el-button link type="primary" v-if="scope.row.orderStatus === '1'" :loading="scope.row.loading"
|
|
|
+ @click="historyhandleUnderwriting(scope.row.orderNo,scope)">核保</el-button>
|
|
|
<el-button link type="primary" v-if="scope.row.orderStatus === '4'"
|
|
|
@click="getPayCode(scope.row.orderNo)">支付码</el-button>
|
|
|
<!-- <el-button link type="primary" v-if="scope.row.orderStatus === '1'" @click="handleImageSave(scope)">上传影像</el-button>-->
|
|
|
- <el-button link type="primary" v-if="scope.row.orderStatus === '7'"
|
|
|
- @click="historyhandleUnderwriting(scope.row.orderNo)">重新核保</el-button>
|
|
|
+ <el-button link type="primary" v-if="scope.row.orderStatus === '7'" :loading="scope.row.loading"
|
|
|
+ @click="historyhandleUnderwriting(scope.row.orderNo,scope)">重新核保</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -2877,8 +2877,8 @@ const handlePopoverConfirm = async () => {
|
|
|
let underwritingShow = ref(false)
|
|
|
let underwritingIndex = ref(-1)
|
|
|
const handleUnderwriting = (scope: any) => {
|
|
|
- underwritingShow.value = true
|
|
|
underwritingIndex.value = scope.$index
|
|
|
+ scope.row.loading=true
|
|
|
// insurancePolicyForm.value.imageVoList
|
|
|
let data = {
|
|
|
// ordersNo: '1915570359429222400'
|
|
|
@@ -2889,11 +2889,14 @@ const handleUnderwriting = (scope: any) => {
|
|
|
imageVoList: insurancePolicyForm.value.imageVoList,
|
|
|
list: images.value
|
|
|
}
|
|
|
- nextTick(() => {
|
|
|
- UnderwritingRefs.value.initEdit(data)
|
|
|
- })
|
|
|
api.insurancePolicyApi.imagesUpload(data).then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
|
+ scope.row.loading=false
|
|
|
+ underwritingShow.value = true
|
|
|
+ nextTick(() => {
|
|
|
+ UnderwritingRefs.value.initEdit(data)
|
|
|
+ })
|
|
|
+
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
|
@@ -2902,9 +2905,9 @@ const handleUnderwriting = (scope: any) => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-const historyhandleUnderwriting = (ordersNo:String) => {
|
|
|
+const historyhandleUnderwriting = (ordersNo:String,scope: any) => {
|
|
|
|
|
|
- underwritingShow.value = true
|
|
|
+ scope.row.loading=true
|
|
|
let data = {
|
|
|
order:{
|
|
|
ordersNo,
|
|
|
@@ -2913,11 +2916,13 @@ const historyhandleUnderwriting = (ordersNo:String) => {
|
|
|
imageVoList: insurancePolicyForm.value.imageVoList,
|
|
|
list: images.value
|
|
|
}
|
|
|
- nextTick(() => {
|
|
|
- UnderwritingRefs.value.initEdit(data)
|
|
|
- })
|
|
|
api.insurancePolicyApi.imagesUpload(data).then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
|
+ scope.row.loading=false
|
|
|
+ underwritingShow.value = true
|
|
|
+ nextTick(() => {
|
|
|
+ UnderwritingRefs.value.initEdit(data)
|
|
|
+ })
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
message: res.msg,
|