Sfoglia il codice sorgente

处理财务代办订单任务详情按钮异常问题

lph 1 anno fa
parent
commit
b13211a07f
1 ha cambiato i file con 11 aggiunte e 3 eliminazioni
  1. 11 3
      zkqy-ui/src/views/orderMange/financeApprove.vue

+ 11 - 3
zkqy-ui/src/views/orderMange/financeApprove.vue

@@ -567,6 +567,11 @@ export default {
         this.$refs.detailTable.innerHTML = this.printDomData;
       });
     },
+    getDictLabel(value, dictLsit = []) {
+      return dictLsit.find((item) => {
+        return item.value == value;
+      })?.label;
+    },
     // 获取详情html字符串
     async getDetailTableString(row) {
       let { saleOrderSaleNo } = row;
@@ -646,7 +651,10 @@ export default {
         let customCountryType = customData?.customCountryType || "";
         let contactPerson = customData?.contactPerson || "无";
         let directionOfTwistDescription = directionOfTwist
-          ? this.getDictLabel(directionOfTwist, "direction_of_twist")
+          ? this.getDictLabel(
+              directionOfTwist,
+              this.dict.type.direction_of_twist
+            )
           : "";
         let printStr = `
         <table style="width:1050px; border-collapse:collapse;" border="1" cellpadding="10" align="center">
@@ -842,7 +850,7 @@ export default {
         if (valid) {
           let payload = {
             idList: this.ids,
-            status: this.approveForm.orderType == '1' ? '5' : '3',
+            status: this.approveForm.orderType == "1" ? "5" : "3",
             finance: this.nickName,
           };
           let res = await batchApproval(payload);
@@ -1326,7 +1334,7 @@ export default {
           };
         });
       }
-      let { saleOrderSaleNo, saleOrderId,saleOrderOrderType } = row;
+      let { saleOrderSaleNo, saleOrderId, saleOrderOrderType } = row;
       this.ids.push(saleOrderId);
       this.approveForm.orderType = saleOrderOrderType;
       this.approveNo = saleOrderSaleNo;