Bladeren bron

作业费修改

wengyuwen 4 jaren geleden
bovenliggende
commit
5a937ef7aa

+ 0 - 2
src/views/warehouseBusiness/inStock/index.vue

@@ -3315,8 +3315,6 @@ export default {
   },
   methods: {
     handleSelect(key, keyPath) {
-      console.log(key, keyPath);
-      console.log(key)
       this.addAgreements(key)
     },
     /** 查询部门下拉树结构 */

+ 30 - 0
src/views/warehouseBusiness/outStock/index.vue

@@ -2214,6 +2214,11 @@
         :visible.sync="warehousingagreements"
         width="70%"
       >
+        <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
+          <el-menu-item index="1">作业费</el-menu-item>
+          <el-menu-item index="2">劳务费</el-menu-item>
+        </el-menu>
+
         <el-table
           :data="tasklegList"
           ref="table"
@@ -2722,6 +2727,8 @@ export default {
   },
   data() {
     return {
+      activeIndex: '1',
+      activeIndex2: '1',
       //控制选择库位弹出
       choiceWarehouse:false,
       information:'',
@@ -3010,6 +3017,29 @@ export default {
     this.adoPt()
   },
   methods: {
+    handleSelect(key, keyPath) {
+      this.addAgreements(key)
+    },
+    // 新增付款作业费协议
+    addAgreements(kye) {
+      if (!this.form.fCorpid) {
+        this.$message({
+          message: "请维护货权方",
+          type: "warning",
+        });
+      }else if(this.form.fProductName == undefined) {
+        this.$message({
+          message: "请维护入库明细品名",
+          type: "warning",
+        });
+      } else {
+        this.whgenlegList = [];
+        this.dialogWhgenlegList = [];
+        this.whgenlegTotal = 0;
+        this.warehousingagreements = true;
+        this.getWhgenlegList(kye);
+      }
+    },
     hanDleclose(done){
       this.$confirm('确认关闭?')
         .then(_ => {

+ 31 - 0
src/views/warehouseBusiness/stockTransfer/index.vue

@@ -2138,7 +2138,13 @@
         style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
         :visible.sync="warehousingagreements"
         width="70%"
+
       >
+        <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
+          <el-menu-item index="1">作业费</el-menu-item>
+          <el-menu-item index="2">劳务费</el-menu-item>
+        </el-menu>
+
         <el-table
           :data="tasklegList"
           ref="table"
@@ -2372,6 +2378,8 @@ export default {
   },
   data() {
     return {
+      activeIndex: '1',
+      activeIndex2: '1',
       //控制选择库位弹出
       choiceWarehouse:false,
       information:'',
@@ -2660,6 +2668,29 @@ export default {
   //   'form.fWarehouseid' : 'warehouseMethod'
   // },
   methods: {
+    handleSelect(key, keyPath) {
+      this.addAgreements(key)
+    },
+    // 新增付款作业费协议
+    addAgreements(kye) {
+      if (!this.form.fCorpid) {
+        this.$message({
+          message: "请维护货权方",
+          type: "warning",
+        });
+      }else if(this.form.fProductName == undefined) {
+        this.$message({
+          message: "请维护入库明细品名",
+          type: "warning",
+        });
+      } else {
+        this.whgenlegList = [];
+        this.dialogWhgenlegList = [];
+        this.whgenlegTotal = 0;
+        this.warehousingagreements = true;
+        this.getWhgenlegList(kye);
+      }
+    },
     /** 查询部门下拉树结构 */
     getTreeselect(row) {
       this.treeselectList.fWarehouselocid = null