Przeglądaj źródła

作业费协议修改

lichao 3 lat temu
rodzic
commit
3a792cb016
1 zmienionych plików z 23 dodań i 11 usunięć
  1. 23 11
      src/views/Warehousing/components/payMoney.vue

+ 23 - 11
src/views/Warehousing/components/payMoney.vue

@@ -27,7 +27,7 @@
         <el-button
           type="danger"
           size="small"
-          @click.prevent="handleSelect"
+          @click.prevent="handleSelect(1)"
           >作业费协议</el-button
         >
         <el-button
@@ -840,6 +840,7 @@ export default {
       isShowInvoice: null,
       // 是否启用费用确认单
       isShowFeesConfirm: null,
+      activeIndex: '1'
     };
   },
   created() {
@@ -1004,7 +1005,7 @@ export default {
       }
       this.$set(row, "fAmount", Number(fUnitprice) * Number(fQty)).toFixed(2);
     },
-    handleSelect() {
+    handleSelect(key) {
       if (!this.form.fCorpid) {
         this.$message({
           message: "请维护客户",
@@ -1021,19 +1022,29 @@ export default {
         this.dialogWhgenlegList = [];
         this.whgenlegTotal = 0;
         this.warehousingagreements = true;
-        this.getWhgenlegList();
+        this.getWhgenlegList(key);
       }
     },
     // 查询作业费信息
-    getWhgenlegList() {
+    getWhgenlegList(key) {
       let data = {};
-      this.Navigation = false;
-      data = {
-        pageNum: this.pageNum,
-        pageSize: this.pageSize,
-        fTaskType: 1,
-        fFleet: this.form.fFleet,
-      };
+      if (key == 1) {
+        this.Navigation = true;
+        data = {
+          pageNum: this.pageNum,
+          pageSize: this.pageSize,
+          fTaskType: 1,
+          fFleet: this.form.fFleet,
+        };
+      } else if (key == 2) {
+        this.Navigation = true;
+        data = {
+          pageNum: this.pageNum,
+          pageSize: this.pageSize,
+          fTaskType: 2,
+          fLabour: this.form.fLabour,
+        };
+      }
       operationAgreement(data).then((response) => {
         response.rows.map((e) => {
           if (e.fFeeUnitid) {
@@ -1087,6 +1098,7 @@ export default {
             fStltypeid: '1',
           });
         });
+        this.Navigation = false;
         this.warehousingagreements = false;
       }
     },