|
|
@@ -134,9 +134,8 @@
|
|
|
<el-button plain type="primary" @click="handleSubmit(false)">取消</el-button>
|
|
|
<el-button type="primary" @click="handleSubmit(true)">提交核保</el-button>
|
|
|
</div>
|
|
|
- <Equities v-if="equitiesShow" :show="equitiesShow"
|
|
|
- :recipientInfo="recipientInfo" :availableAmount="props.availableAmount"
|
|
|
- @cancel="equitiesShow = false" @save="handleEquitiesSave"></Equities>
|
|
|
+ <Equities v-if="equitiesShow" :show="equitiesShow" :recipientInfo="recipientInfo"
|
|
|
+ :availableAmount="props.availableAmount" @cancel="equitiesShow = false" @save="handleEquitiesSave"></Equities>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -319,11 +318,15 @@ const selectionChange = (val) => {
|
|
|
const handleSubmit = (bool) => {
|
|
|
if (bool) {
|
|
|
let info = props.recipientInfo.find((item: any) => item.title == recipient.value);
|
|
|
- api.insurancePolicyApi.underwriting({
|
|
|
+ let params = {
|
|
|
order: {
|
|
|
ordersNo: ordersNo.value
|
|
|
},
|
|
|
- insOrderRightsInfoDto: {
|
|
|
+ specialAppointmentsVos: [...clauseList.value],
|
|
|
+ insOrderRightsInfoDto: {},
|
|
|
+ }
|
|
|
+ if(info){
|
|
|
+ params.insOrderRightsInfoDto = {
|
|
|
insOrderRightsPackageList: insOrderRightsInfoDto.value.insOrderRightsPackageList,
|
|
|
insOrderRightsList: insOrderRightsInfoDto.value.insOrderRightsList,
|
|
|
rightsGrantReceiverDTO: {
|
|
|
@@ -331,9 +334,9 @@ const handleSubmit = (bool) => {
|
|
|
receiverName: info.name,
|
|
|
receiverMobile: info.mobile
|
|
|
}
|
|
|
- },
|
|
|
- specialAppointmentsVos: [...clauseList.value]
|
|
|
- }).then((res: any) => {
|
|
|
+ }
|
|
|
+ }
|
|
|
+ api.insurancePolicyApi.underwriting(params).then((res: any) => {
|
|
|
emit('close', res, {
|
|
|
equitiesData: equitiesData.value.length,
|
|
|
totalPriceCount: totalPriceCount.value
|
|
|
@@ -369,7 +372,7 @@ const handleOpenEquities = () => {
|
|
|
console.log(1)
|
|
|
equitiesShow.value = true
|
|
|
}
|
|
|
-const handleEquitiesSave = (data: any) => {
|
|
|
+const handleEquitiesSave = (data: any) => {
|
|
|
console.log(data)
|
|
|
insOrderRightsInfoDto.value = data;
|
|
|
recipient.value = insOrderRightsInfoDto.value?.recipient || ''
|