@dongkboy 5 luni în urmă
părinte
comite
1919e6a391

+ 1 - 1
src/api/modules/insurancePolicy.ts

@@ -22,7 +22,7 @@ const insurancePolicyApi = (axiosInstance: ApiInstance) => ({
   getClausePage: (data: any) => axiosInstance.post('manager/clause/getClausePage', data), //特别约定列表查询
   getHistoryQuoteList: (data: any) => axiosInstance.post('/supplementOrder/getHistoryQuoteList', data), // 报价历史
   queryClauseData: (data: any) => axiosInstance.post('/unify/order/queryClauseData', data), // 特约
-
+  getImage: (data: any) => axiosInstance.get('/order/taskImages/selectByQuoteNo?quoteNo=' + data), // 影像查询
   adjustAdd: (data: any) => axiosInstance.post('/adjust/adjustAdd', data), // 创建批改订单
   adjustDel: (data: any) => axiosInstance.delete(`/adjust/adjustDel?id=${data}`), // 删除批改订单
   adjustRemove: (data: any) => axiosInstance.delete(`/adjust/adjustRemove?orderNo=${data}`), // 取消批改订单

+ 2 - 3
src/views/insurancePolicy/index.vue

@@ -2884,9 +2884,8 @@ const handleUnderwriting = (scope: any) => {
   underwritingIndex.value = scope.$index
   // insurancePolicyForm.value.imageVoList
   let data = {
-
     // ordersNo: '1915570359429222400'
-    ordersNo: scope.row.quoteResult.ordersNo,
+    ordersNo: scope.row.orderNo,
     quoteNo: insurancePolicyForm.value.order.quoteNo,
     list: images.value
   }
@@ -2928,7 +2927,7 @@ const handleUnderwritingClose = (bool: any, dataObj: any) => {
   }else{
     ElMessage({
         message: bool.msg,
-        type: 'success'
+        type: 'error'
       })
     quoteData.value[underwritingIndex.value].underwritingMsg = bool.msg
 

+ 1 - 1
src/views/insurancePolicy/modules/underwriting.vue

@@ -350,7 +350,7 @@ const handleSubmit = (bool) => {
 
 //数据交互
 let ordersNo = ref('')
-const initEdit = (data) => {
+const initEdit = (data: any) => {
   console.log('核保的数据', data)
   ordersNo.value = data.ordersNo
   images.value = data.list.map(item => {

+ 11 - 2
src/views/insurancePolicy/order.vue

@@ -329,7 +329,17 @@ let initialForm = {
   deptId: '',//出单机构
 
 }
-let orderForm = ref({ ...initialForm })
+let orderForm = ref({
+  orderNo: '',
+  licenseNo: '',
+  adjustStatus: '',
+  companyId: '',//保险公司
+  vinNo: '',//车架号
+  productCode: '',//险种
+  recorder: '',//业务员
+  salesmanType: '',//业务员类型
+  deptId: '',//出单机构
+})
 let tableData = ref([])
 // 分页
 let pages = ref(1)
@@ -489,7 +499,6 @@ const exportOrder = () => {
 const handleSearch = () => {
   pages.value = 1
   size.value = 10
-  orderForm.value = { ...initialForm }
   initData()
 }
 // 详情

+ 32 - 12
src/views/insurancePolicy/orderDetail.vue

@@ -610,7 +610,7 @@
           </div>
         </div>
         <div class="imageList">
-          <div class="imageItem" v-for="(item, index) in images" :key="item.imageId">
+          <div class="imageItem" v-for="(item, index) in images" :key="item.id">
             <div class="imageBox">
               <img :src="item.downloadUrl">
               <div class="btn">
@@ -1724,16 +1724,17 @@ const initDetail = () => {
           productName: item.kindName,
         }));
       }
-      if (res.data.imageVoList && res.data.imageVoList.length > 0) {
-        images.value = res.data.imageVoList.map(a => {
-          return {
-            ...a,
-            checked: false
-          }
-        })
-      } else {
-        images.value = []
-      }
+      imageEcho(res.data.order.quoteNo)
+      // if (res.data.imageVoList && res.data.imageVoList.length > 0) {
+      //   images.value = res.data.imageVoList.map(a => {
+      //     return {
+      //       ...a,
+      //       checked: false
+      //     }
+      //   })
+      // } else {
+      //   images.value = []
+      // }
       if (res.data.policy) {
         let obj = res.data.policy
         fileList.value = [
@@ -1764,7 +1765,26 @@ const initDetail = () => {
     }
   })
 }
-
+// 影像查询
+const imageEcho = (item: any)=>{
+  api.insurancePolicyApi.getImage(item).then((res: any) => {
+    if (res.code == 200) {
+      console.log(res)
+      images.value=res.data.images.map((val:any)=>{
+        return {
+          ...val,
+          checked: false
+        }
+      })
+      console.log(images.value)
+    } else {
+      ElMessage({
+        message: res.msg,
+        type: 'error'
+      })
+    }
+  })
+}
 // 字典
 let optionObj = ref({
   vehicle_use_code: [], // 车辆用途

+ 1 - 1
src/views/partnerManagement/LevelRule.vue

@@ -762,7 +762,7 @@ const handleClick = (tab: any, event: Event) => {
 // 保存等级规则
 const saveRule = () => {
   api.partnerApi.partnersaveRule(dataList).then((res: any) => {
-    if (res.code === '200') {
+    if (res.code == '200') {
       ElMessage({
         type: 'success',
         message: res.msg,