ソースを参照

修改根据合同编号,默认入库类型。新需求

mxx 3 年 前
コミット
17d0a50f12

+ 1 - 1
src/views/warehouse/warehouseManagementDelivery.vue

@@ -24,7 +24,7 @@
     <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
       <div class="basicInformation">
         <h2>
-          {{ deptBudgetList.warehouseName }}
+          {{ deptBudgetList.warehouseName }}
           <span
             class="position"
             v-show="this.deptBudgetList.warehouseType == 1"

+ 1 - 1
src/views/warehouse/warehouseManagementNoComplete.vue

@@ -30,7 +30,7 @@
             src="../../../public/img/cangku.png"
             alt=""
           />
-          {{ this.$route.query.warehouseName }}
+          {{ this.$route.query.warehouseName }}
           <span class="position" v-show="this.$route.query.warehouseType == 1">
             {{ this.$route.query.binNumber }}仓位
           </span>

+ 26 - 12
src/views/warehouse/warehouseManagementPut.vue

@@ -33,7 +33,7 @@
             src="../../../public/img/cangku.png"
             alt
           />
-          {{ deptBudgetList.warehouseName }}
+          {{ deptBudgetList.warehouseName }}
           <span class="position" v-show="this.$route.query.warehouseType == 1"
             >{{ deptBudgetList.binNumber }}仓位</span
           >
@@ -271,6 +271,7 @@
               placeholder
               class="typeselect"
               @change="selectstorageType"
+              :disabled="isSelectType"
             >
               <ws-option
                 v-for="item in storageType"
@@ -539,6 +540,7 @@ export default {
   },
   data() {
     return {
+      isSelectType:true,
       //弹出框
       dialogViewSpareMoney: false,
       dialogApproveFormVisible: false,
@@ -618,7 +620,7 @@ export default {
       accessoryTFs: false,
     }
   },
-  mounted() {
+  mounted() {debugger
     this.deptBudgetList.baseId = this.$route.query.baseId
     this.deptBudgetList.positionId = this.$route.query.positionId
     this.deptBudgetList.warehouseName = this.$route.query.warehouseName
@@ -628,13 +630,13 @@ export default {
     this.getList()
     this.deptBudgetList.grade = '一等品'
     this.deptBudgetList.gradeKey = '1'
-    if (this.deptBudgetList.warehouseType == 1) {
-      this.deptBudgetList.inOutType = '采购入库'
-      this.deptBudgetList.inOutTypeKey = '1'
-    } else {
-      this.deptBudgetList.inOutType = '退库'
-      this.deptBudgetList.inOutTypeKey = '1'
-    }
+    // if (this.deptBudgetList.warehouseType == 1) {
+    //   this.deptBudgetList.inOutType = '采购入库'
+    //   this.deptBudgetList.inOutTypeKey = '1'
+    // } else {
+    //   this.deptBudgetList.inOutType = '退库'
+    //   this.deptBudgetList.inOutTypeKey = '1'
+    // }
   },
   methods: {
     uploadSuccessHandle1(res) {
@@ -1756,12 +1758,18 @@ export default {
         )
       }
     },
-    contractNoChange(e) {
+    contractNoChange(e) {debugger
       for (var i = 0; i < this.outContractNo.length; i++) {
         if (this.outContractNo[i].contractNo == e) {
           this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
           this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
           this.deptBudgetList.cost = this.outContractNo[i].contractPrice
+          this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
+          if(this.outContractNo[i].inOutType=='移库入库'){
+            this.isSelectType = false
+          }else{
+            this.isSelectType = true
+          }
           if (this.outContractNo[i].tranCarInfoList) {
             this.options2 = this.outContractNo[i].tranCarInfoList
             this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
@@ -1837,10 +1845,16 @@ export default {
         })
       // 类型
       if (this.deptBudgetList.warehouseType == '1') {
+        this.storageType = []
         pullDown({ constId: 'CON5' })
           .toPromise()
-          .then((response) => {
-            this.storageType = response
+          .then((response) => {debugger
+            // this.storageType = response
+            for(let i = 0;i<response.length;i++){
+                if(response[i].constValue=='移库入库'||response[i].constValue=='退库'){
+                  this.storageType.push(response[i])
+                }
+            }
           })
       } else if (this.deptBudgetList.warehouseType == '2') {
         pullDown({ constId: 'WARE1' })