|
|
@@ -132,7 +132,7 @@
|
|
|
</div>
|
|
|
<div class="footer">
|
|
|
<el-button class="border-[#0083FF] color-[#0083FF]" plain type="primary" @click="handleSubmit(false)">取消</el-button>
|
|
|
- <el-button type="primary" @click="handleSubmit(true)">提交核保</el-button>
|
|
|
+ <el-button type="primary" @click="handleSubmit(true)" :loading="loading">提交核保</el-button>
|
|
|
</div>
|
|
|
<Equities v-if="equitiesShow" :show="equitiesShow" :recipientInfo="recipientInfo"
|
|
|
:availableAmount="props.availableAmount" @cancel="equitiesShow = false" @save="handleEquitiesSave"></Equities>
|
|
|
@@ -158,6 +158,7 @@ const useMoney = ref(0)//可用金额
|
|
|
const usedMoney = ref(0)//已使用金额
|
|
|
const lastMoney = ref(0)//剩余金额
|
|
|
const ImageTypeSelect = ref()
|
|
|
+const loading = ref(false)//提交loading
|
|
|
const emit = defineEmits(['close'])
|
|
|
let images = ref([])
|
|
|
watch(() => props.insOrderRightsInfoDto, (newVal) => {
|
|
|
@@ -317,6 +318,7 @@ const selectionChange = (val) => {
|
|
|
// 提交核保
|
|
|
const handleSubmit = (bool) => {
|
|
|
if (bool) {
|
|
|
+ loading.value = true
|
|
|
let info = props.recipientInfo.find((item: any) => item.title == recipient.value);
|
|
|
let params = {
|
|
|
order: {
|
|
|
@@ -337,6 +339,7 @@ const handleSubmit = (bool) => {
|
|
|
}
|
|
|
}
|
|
|
api.insurancePolicyApi.underwriting(params).then((res: any) => {
|
|
|
+ loading.value = false
|
|
|
emit('close', res, {
|
|
|
equitiesData: equitiesData.value.length,
|
|
|
totalPriceCount: totalPriceCount.value
|