소스 검색

调整仓储模块收付款费用 带出计价单位

阿伏兔 4 년 전
부모
커밋
4da569432a

+ 12 - 0
src/views/warehouseBusiness/goodsTransfer/index.vue

@@ -998,6 +998,7 @@
               filterable
               remote
               :remote-method="fWRemoteMethod"
+              @change="changeFeeId(scope.row)"
               placeholder="费用名称"
             >
               <el-option
@@ -1274,6 +1275,7 @@
               remote
               :disabled="browseStatus"
               :remote-method="fWRemoteMethod"
+              @change="changeFeeId(scope.row)"
               placeholder="费用名称"
             >
               <el-option
@@ -2903,6 +2905,16 @@
           this.goodsOptions = response.rows
         })
       },
+      // 选择费用信息时获取计价单位
+      changeFeeId (row) {
+        for (let li in this.fWbuOptions) {
+          if (row.fFeeid === this.fWbuOptions[li].fId) {
+            this.$set(row, 'fFeeUnitid', this.fWbuOptions[li].fFeeunitid + '')
+            this.changeFeeUnit(row)
+            break
+          }
+        }
+      },
       // 远程模糊查询费用名称
       fWRemoteMethod(name) {
         if (name == null || name === '') {

+ 12 - 1
src/views/warehouseBusiness/inStock/index.vue

@@ -1564,6 +1564,7 @@
               remote
               :disabled="browseStatus"
               :remote-method="fWRemoteMethod"
+              @change="changeFeeId(scope.row)"
               placeholder="费用名称"
             >
               <el-option
@@ -1856,6 +1857,7 @@
               :disabled="browseStatus"
               remote
               :remote-method="fWRemoteMethod"
+              @change="changeFeeId(scope.row)"
               placeholder="费用名称"
             >
               <el-option
@@ -4547,6 +4549,16 @@ export default {
         this.goodsOptions = response.rows;
       });
     },
+    // 选择费用信息时获取计价单位
+    changeFeeId (row) {
+      for (let li in this.fWbuOptions) {
+        if (row.fFeeid === this.fWbuOptions[li].fId) {
+          this.$set(row, 'fFeeUnitid', this.fWbuOptions[li].fFeeunitid + '')
+          this.changeFeeUnit(row)
+          break
+        }
+      }
+    },
     // 远程模糊查询费用名称
     fWRemoteMethod(name) {
       if (name == null || name === "") {
@@ -4555,7 +4567,6 @@ export default {
       let queryParams = { pageNum: 1, pageSize: 10, fName: name };
       listFees(queryParams).then((response) => {
         this.fWbuOptions = response.rows;
-        console.log(response)
       });
     },
     /* 远程模糊查询经营单位 */

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

@@ -1347,6 +1347,7 @@
               remote
               :disabled="browseStatus"
               :remote-method="fWRemoteMethod"
+              @change="changeFeeId(scope.row)"
               placeholder="费用名称"
             >
               <el-option
@@ -1644,6 +1645,7 @@
               remote
               :disabled="browseStatus"
               :remote-method="fWRemoteMethod"
+              @change="changeFeeId(scope.row)"
               placeholder="费用名称"
             >
               <el-option
@@ -4290,6 +4292,16 @@ export default {
         this.goodsOptions = response.rows;
       });
     },
+    // 选择费用信息时获取计价单位
+    changeFeeId (row) {
+      for (let li in this.fWbuOptions) {
+        if (row.fFeeid === this.fWbuOptions[li].fId) {
+          this.$set(row, 'fFeeUnitid', this.fWbuOptions[li].fFeeunitid + '')
+          this.changeFeeUnit(row)
+          break
+        }
+      }
+    },
     // 远程模糊查询费用名称
     fWRemoteMethod(name) {
       if (name == null || name === "") {

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

@@ -1311,6 +1311,7 @@
               remote
               :disabled="browseStatus"
               :remote-method="fWRemoteMethod"
+              @change="changeFeeId(scope.row)"
               placeholder="费用名称"
             >
               <el-option
@@ -1595,6 +1596,7 @@
               remote
               :disabled="browseStatus"
               :remote-method="fWRemoteMethod"
+              @change="changeFeeId(scope.row)"
               placeholder="费用名称"
             >
               <el-option
@@ -3967,6 +3969,16 @@ export default {
         this.goodsOptions = response.rows;
       });
     },
+    // 选择费用信息时获取计价单位
+    changeFeeId (row) {
+      for (let li in this.fWbuOptions) {
+        if (row.fFeeid === this.fWbuOptions[li].fId) {
+          this.$set(row, 'fFeeUnitid', this.fWbuOptions[li].fFeeunitid + '')
+          this.changeFeeUnit(row)
+          break
+        }
+      }
+    },
     // 远程模糊查询费用名称
     fWRemoteMethod(name) {
       if (name == null || name === "") {