|
|
@@ -2879,28 +2879,19 @@ const handleUnderwriting = (scope: any) => {
|
|
|
// insurancePolicyForm.value.imageVoList
|
|
|
let data = {
|
|
|
// ordersNo: '1915570359429222400'
|
|
|
- ordersNo: scope.row.quoteResult.ordersNo,
|
|
|
- quoteNo: insurancePolicyForm.value.order.quoteNo,
|
|
|
- imageVoList: insurancePolicyForm.value.imageVoList
|
|
|
- }
|
|
|
- // nextTick(() => {
|
|
|
- // UnderwritingRefs.value.initEdit({
|
|
|
- // ...data
|
|
|
- // })
|
|
|
- // })
|
|
|
- api.insurancePolicyApi.imagesUpload({
|
|
|
- order: {
|
|
|
- ...data
|
|
|
- }
|
|
|
- }).then((res: any) => {
|
|
|
+ order:{
|
|
|
+ ordersNo: scope.row.quoteResult.ordersNo,
|
|
|
+ quoteNo: insurancePolicyForm.value.order.quoteNo,
|
|
|
+ },
|
|
|
+ imageVoList: insurancePolicyForm.value.imageVoList,
|
|
|
+ list: images.value
|
|
|
+ }
|
|
|
+ api.insurancePolicyApi.imagesUpload(data).then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
|
nextTick(() => {
|
|
|
UnderwritingRefs.value.initEdit(data)
|
|
|
})
|
|
|
} else {
|
|
|
- nextTick(() => {
|
|
|
- UnderwritingRefs.value.initEdit(data)
|
|
|
- })
|
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
|
type: 'warning'
|
|
|
@@ -2912,15 +2903,14 @@ const historyhandleUnderwriting = (scope: any) => {
|
|
|
|
|
|
underwritingShow.value = true
|
|
|
let data = {
|
|
|
- ordersNo: scope,
|
|
|
- quoteNo: insurancePolicyForm.value.order.quoteNo,
|
|
|
+ order:{
|
|
|
+ ordersNo: scope,
|
|
|
+ quoteNo: insurancePolicyForm.value.order.quoteNo,
|
|
|
+ },
|
|
|
+ imageVoList: insurancePolicyForm.value.imageVoList,
|
|
|
list: images.value
|
|
|
}
|
|
|
- api.insurancePolicyApi.imagesUpload({
|
|
|
- order: {
|
|
|
- ...data
|
|
|
- }
|
|
|
- }).then((res: any) => {
|
|
|
+ api.insurancePolicyApi.imagesUpload(data).then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
|
nextTick(() => {
|
|
|
UnderwritingRefs.value.initEdit(data)
|
|
|
@@ -3003,7 +2993,6 @@ const handleImageClose = (data: any) => {
|
|
|
images.value = []
|
|
|
if (data) {
|
|
|
const { carForm, owerForm, ower1Form, ower2Form, imageVoList, list } = data
|
|
|
- console.log("🚀 ~ handleImageClose ~ imageVoList, list:", imageVoList, list)
|
|
|
if (carForm) {
|
|
|
insurancePolicyForm.value.isRegistered = '1'
|
|
|
insurancePolicyForm.value.licenseNo = carForm.licenseNo || hadWritedData.value.licenseNo
|