소스 검색

订单审核审核通过操作加二次确认框

@dongkboy 3 달 전
부모
커밋
839febe74c
3개의 변경된 파일68개의 추가작업 그리고 27개의 파일을 삭제
  1. 62 23
      src/views/finance/modules/auditDetail.vue
  2. 1 1
      src/views/receivable/documentary/index.vue
  3. 5 3
      src/views/receivable/handingFee/ticket.vue

+ 62 - 23
src/views/finance/modules/auditDetail.vue

@@ -240,12 +240,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>
@@ -255,12 +255,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>
@@ -443,7 +443,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">
@@ -507,7 +507,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">
@@ -1036,7 +1036,7 @@ import image from "@/assets/images/image.png";
 import pdf from "@/assets/images/pdf.png";
 import word from "@/assets/images/word.png";
 import VueOfficeDocx from "@vue-office/docx";
-import { ElMessage, ElLoading, valueEquals } from "element-plus";
+import { ElMessage, ElLoading, valueEquals, ElMessageBox } from "element-plus";
 const myRoute = useRoute()
 const myRouter = useRouter()
 const activeindex = ref(myRoute.query.activeindex)
@@ -1420,24 +1420,63 @@ const handleUpdateToQuestionOrder = () => {
 // 不通过理由
 let refuse = ref('')
 const handleAudit = (type) => {
-  api.financeApi.verifyOrder({
-    orderNo: myRoute.query.id,
-    auditStatus: type == 1 ? 1 : type == 2 ? 2 : null,
-    refuse: type == 2 ? refuse.value : ''
-  }).then((res: any) => {
-    if (res.code == 200) {
-      ElMessage({
-        message: res.msg,
-        type: 'success'
+  if (type == 1) {
+    ElMessageBox.confirm(
+      '确定审核通过吗?',
+      '审核通过',
+      {
+        confirmButtonText: '确定通过',
+        type: 'warning',
+        center: true,
+        confirmButtonClass: 'el-button--primary',
+      }
+    )
+      .then(() => {
+        api.financeApi.verifyOrder({
+          orderNo: myRoute.query.id,
+          auditStatus: type,
+        }).then((res: any) => {
+          if (res.code == 200) {
+            ElMessage({
+              message: res.msg,
+              type: 'success'
+            })
+            setTimeout(() => {
+              myRouter.push({
+                path: previousRoute.value,
+                query: {
+                  activeindex: activeindex.value
+                }
+              })
+            }, 1000)
+          }
+        })
       })
-      myRouter.push({
-        path: previousRoute.value,
-        query: {
-          activeindex: activeindex.value
-        }
+      .catch(() => {
       })
-    }
-  })
+  } else {
+    api.financeApi.verifyOrder({
+      orderNo: myRoute.query.id,
+      auditStatus: type,
+      refuse:refuse.value
+    }).then((res: any) => {
+      if (res.code == 200) {
+        ElMessage({
+          message: res.msg,
+          type: 'success'
+        })
+        setTimeout(() => {
+          myRouter.push({
+            path: previousRoute.value,
+            query: {
+              activeindex: activeindex.value
+            }
+          })
+        }, 1000)
+      }
+    })
+  }
+
 }
 
 

+ 1 - 1
src/views/receivable/documentary/index.vue

@@ -548,7 +548,7 @@ import { useRouter } from 'vue-router'
 let myRouter = useRouter()
 
 let activeName = ref('1')
-let subActiveName = ref('1')
+let subActiveName = ref('first')
 const receivedAmountTotal = ref(0)
 const handleTabsClick = (e) => {
   activeName.value = e.props.name

+ 5 - 3
src/views/receivable/handingFee/ticket.vue

@@ -157,8 +157,8 @@
         <el-button type="primary" @click="handleAddSubmit">确定</el-button>
       </template>
     </el-dialog>
-    <el-dialog :close-on-click-modal="false" v-model="countShow" width="600" :title="isSettlement ? '开票并结算' : '开票'">
-      <el-form ref="CountForm" :model="countForm" :rules="countRules" label-width="120">
+    <el-dialog :close-on-click-modal="false" v-model="countShow" width="600" :title="isSettlement ? '开票并结算' : '开票'" top="1vh">
+      <el-form ref="CountForm" :model="countForm" :rules="countRules" label-width="120" >
         <el-form-item prop="invoiceParty" label="开票方">
           <el-select v-model="countForm.invoiceParty" placeholder="请选择开票方">
             <el-option label="我方开票" value="1"></el-option>
@@ -585,7 +585,9 @@ const handelComfirm = () => {
         message: sub.msg,
         type: 'success'
       })
-      router.back()
+      setTimeout(() => {
+        router.back()
+      }, 1000)
     }
   })
 }