祁鹏飞 3 месяцев назад
Родитель
Сommit
d654f87670
1 измененных файлов с 60 добавлено и 37 удалено
  1. 60 37
      src/views/finance/modules/auditDetail.vue

+ 60 - 37
src/views/finance/modules/auditDetail.vue

@@ -20,7 +20,7 @@
               detailData?.order?.orderStatus
                 === '5' ? '已承保' : detailData?.order?.orderStatus === '6' ? '计算保费失败,请按要求修改订单' :
                 detailData?.order?.orderStatus ===
-                  '7' ? '核保不通过,请按意见修改订单' : detailData?.order?.orderStatus === '8'?'订单已关闭,有投保需求请重新报价':'--' }}</span>
+                  '7' ? '核保不通过,请按意见修改订单' : detailData?.order?.orderStatus === '8' ? '订单已关闭,有投保需求请重新报价' : '--' }}</span>
         </el-col>
       </el-row>
       <el-row :gutter="10">
@@ -37,8 +37,8 @@
           <span class="words">{{ detailData?.salesmanInfo?.typeAttr == '5' ? '团队' : detailData?.salesmanInfo?.typeAttr
             ==
             '6' ? '个代' : detailData?.salesmanInfo?.typeAttr == '7' ? '渠道' : detailData?.salesmanInfo?.typeAttr == '8'
-              ?'电销组':'--'
-            }}</span>
+              ? '电销组' : '--'
+          }}</span>
         </el-col>
         <el-col :span="6">
           <span class="label">归属</span>
@@ -214,7 +214,7 @@
             <span class="label">类型</span>
             <span class="value">{{ detailData?.carInfoVo?.isRegistered === '1' ? '已上牌' :
               detailData?.carInfoVo?.isRegistered
-                === '2' ?'未上牌':'--' }}</span>
+                === '2' ? '未上牌' : '--' }}</span>
           </el-col>
           <el-col :span="6" class="carMsgItem">
             <span class="label">车牌</span>
@@ -236,12 +236,12 @@
           <el-col :span="6" class="carMsgItem">
             <span class="label">使用性质</span>
             <span class="value">{{ dictChange(optionObj['car_nature_code'], detailData?.carInfoVo?.carNatureCode)
-            }}</span>
+              }}</span>
           </el-col>
           <el-col :span="6" class="carMsgItem">
             <span class="label">车辆用途</span>
             <span class="value">{{ dictChange(optionObj['vehicle_use_code'], detailData?.carInfoVo?.vehicleUseCode)
-            }}</span>
+              }}</span>
           </el-col>
           <el-col :span="6" class="carMsgItem">
             <span class="label">车辆种类</span>
@@ -251,12 +251,12 @@
           <el-col :span="6" class="carMsgItem">
             <span class="label">车辆类型</span>
             <span class="value">{{ dictChange(optionObj['car_type_code'], detailData?.carInfoVo?.carTypeCode)
-            }}</span>
+              }}</span>
           </el-col>
           <el-col :span="6" class="carMsgItem">
             <span class="label">能源种类</span>
             <span class="value">{{ dictChange(optionObj['energy_type_code'], detailData?.carInfoVo?.energyTypeCode)
-            }}</span>
+              }}</span>
           </el-col>
           <el-col :span="6" class="carMsgItem">
             <span class="label">注册日期</span>
@@ -428,7 +428,7 @@
           <div class="taxList">
             <span class="taxItem" :class="{ 'active': item.bool }" v-for="(item, index) in tbList" :key="index">{{
               item.name
-            }}</span>
+              }}</span>
           </div>
         </div>
         <el-row :gutter="20" v-if="!tbList[0].bool">
@@ -492,7 +492,7 @@
           <div class="taxList">
             <span class="taxItem" :class="{ 'active': item.bool }" v-for="(item, index) in bbList" :key="index">{{
               item.name
-            }}</span>
+              }}</span>
           </div>
         </div>
         <el-row :gutter="20" v-if="!bbList[0].bool && !bbList[1].bool">
@@ -615,8 +615,8 @@
               </th>
 
               <th>
-                  <el-input-number v-model="detailData.costRatio.jqCommissionRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.jqCommissionRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.jqCommissionRatio }}%</div>
               </th>
               <th>
@@ -633,8 +633,8 @@
               </th>
 
               <th>
-                <el-input-number v-model="detailData.costRatio.jqAdditionalRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.jqAdditionalRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.jqAdditionalRatio }}%</div>
               </th>
               <th>
@@ -651,8 +651,8 @@
               </th>
 
               <th>
-                <el-input-number v-model="detailData.costRatio.jqKeepPointRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.jqKeepPointRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.jqKeepPointRatio }}%</div>
               </th>
               <th>
@@ -660,8 +660,8 @@
               </th>
 
               <th>
-                <el-input-number v-model="detailData.costRatio.jqExportKeepPointRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.jqExportKeepPointRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.jqExportKeepPointRatio }}%</div>
               </th>
               <th>
@@ -686,8 +686,8 @@
               </th>
 
               <th>
-                <el-input-number v-model="detailData.costRatio.syCommissionRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.syCommissionRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.syCommissionRatio }}%</div>
               </th>
               <th>
@@ -704,8 +704,8 @@
               </th>
 
               <th>
-                <el-input-number v-model="detailData.costRatio.syAdditionalRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.syAdditionalRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.syAdditionalRatio }}%</div>
               </th>
               <th>
@@ -722,8 +722,8 @@
               </th>
 
               <th>
-                <el-input-number v-model="detailData.costRatio.syKeepPointRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.syKeepPointRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.syKeepPointRatio }}%</div>
               </th>
               <th>
@@ -731,8 +731,8 @@
               </th>
 
               <th>
-                <el-input-number v-model="detailData.costRatio.syExportKeepPointRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.syExportKeepPointRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.syExportKeepPointRatio }}%</div>
               </th>
               <th>
@@ -757,8 +757,8 @@
               </th>
 
               <th>
-                <el-input-number v-model="detailData.costRatio.jyCommissionRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.jyCommissionRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.jyCommissionRatio }}%</div>
               </th>
               <th>
@@ -775,8 +775,8 @@
               </th>
 
               <th>
-                <el-input-number v-model="detailData.costRatio.jyAdditionalRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.jyAdditionalRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.jyAdditionalRatio }}%</div>
               </th>
               <th>
@@ -793,8 +793,8 @@
               </th>
 
               <th>
-                <el-input-number v-model="detailData.costRatio.jyKeepPointRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.jyKeepPointRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.jyKeepPointRatio }}%</div>
               </th>
               <th>
@@ -802,8 +802,8 @@
               </th>
 
               <th>
-                <el-input-number v-model="detailData.costRatio.jyExportKeepPointRatio" controls-position="right" v-if="costShow"
-                  style="width: 80px" :min="0" :max="100" />
+                <el-input-number v-model="detailData.costRatio.jyExportKeepPointRatio" controls-position="right"
+                  v-if="costShow" style="width: 80px" :min="0" :max="100" />
                 <div v-else>{{ detailData?.costRatio?.jyExportKeepPointRatio }}%</div>
               </th>
               <th>
@@ -883,7 +883,7 @@
                                               'C0507' ? '验车照(正后)' : sub.imageType === 'C0505' ? '验车照(人车合影)' : sub.imageType ===
                                                 'C0508' ? '验车照(地标合影)' : sub.imageType === 'C0509' ? '验车照(工作台)' : sub.imageType ===
                                                   'C0510' ? '验车照(天窗)' : sub.imageType
-                                                    === 'LAST_INSURANCE_POLICY' ? '上年商业险保单' :'--' }}</div>
+                                                    === 'LAST_INSURANCE_POLICY' ? '上年商业险保单' : '--' }}</div>
                 </el-col>
               </el-row>
             </el-tab-pane>
@@ -914,7 +914,7 @@
     </div>
     <div class="buttonList">
       <el-button v-if="isShow === '1'" type="primary" @click="handleAuditCancel">放弃审核</el-button>
-      <el-button v-if="isShow === '1'" type="primary" @click="handleUpdateToQuestionOrder">设为疑问订单</el-button>
+      <el-button v-if="isShow === '1'" type="primary" @click="openQuestionOrderDialog()">设为疑问订单</el-button>
       <el-button v-if="isShow === '1'" type="primary" @click="handleAudit(1)">审核通过</el-button>
       <el-popconfirm width="300" title="审核不通过">
         <template #reference>
@@ -938,6 +938,16 @@
       <vue-office-docx :src="fileUrl" style="height: 600px; margin: 0; padding: 0"></vue-office-docx>
     </el-dialog>
   </div>
+  <el-dialog v-model="questionOrderDialog" title="设为疑问订单" width="600">
+    <el-form>
+      <el-form-item label="疑问原因">
+        <el-input type="textarea" v-model="questionOrderValue" placeholder="输入疑问原因"></el-input>
+      </el-form-item>
+    </el-form>
+    <template #footer>
+      <el-button size="small" type="primary" @click="handleUpdateToQuestionOrder">确定</el-button>
+    </template>
+  </el-dialog>
 </template>
 
 <script setup lang="ts">
@@ -1261,14 +1271,27 @@ const convertedValue = (num) => {
     return (Math.floor(num / 100000000 * 10) / 10) + '亿';
   }
 }
+
+const questionOrderDialog = ref(false)
+const questionOrderValue = ref('')
+const openQuestionOrderDialog = () => {
+  questionOrderValue.value = ''
+  questionOrderDialog.value = true
+}
 // 设为疑问订单
 const handleUpdateToQuestionOrder = () => {
-  api.financeApi.updateToQuestionOrder(myRoute.query.id).then((res: any) => {
+  const params = {
+    problemReason: questionOrderValue.value,
+    orderNo: myRoute.query.id,
+  }
+  api.financeApi.updateToQuestionOrder(params).then((res: any) => {
     if (res.code == 200) {
+      questionOrderDialog.value = false
       ElMessage({
         message: res.msg,
         type: 'success'
       })
+      initDetail()
     }
   })
 }