zhongtianhaoyuan 4 vuotta sitten
vanhempi
commit
f727e37b23
2 muutettua tiedostoa jossa 14 lisäystä ja 9 poistoa
  1. 0 3
      src/model/warehouse/index.js
  2. 14 6
      src/views/warehouse/warehouseManagementLook.vue

+ 0 - 3
src/model/warehouse/index.js

@@ -12,9 +12,6 @@ export const getList = appRx.get(API_GET_WAREHOUSE_BASEINFO, errorCatcher, error
 export const getLook = appRx.get( API_GET_WAREHOUSE_LOOK, errorCatcher, errorHandle, filter)
 //仓库下拉
 export const xiala = appRx.get( API_GET_WAREHOUSE_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
-
-// 列表
-export const getList = appRx.get(API_GET_WAREHOUSE_BASEINFO, errorCatcher, errorHandle, filter)
 //删除
 export const deletewarehouse = appRx.get(API_GET_WAREHOUSE_DELETE, errorCatcher, errorHandle, filter)
 

+ 14 - 6
src/views/warehouse/warehouseManagementLook.vue

@@ -32,10 +32,10 @@
               @change="selectpackingMethod"
             >
               <ws-option
-                v-for="item in packtypeList"
+                v-for="item in unitList"
                 :key="item.constKey"
-                :label="item.constValue"
-                :value="item.constValue"
+                :label="item.warehouseName"
+                :value="item.warehouseName"
               />
             </ws-select>
           </ws-form-item>
@@ -223,6 +223,7 @@ export default {
       contractType: 2,
       startDate: null,
       endDate: null,
+      unitList:[],
       // 提交类型
       submitType: true,
       selectpackingMethod: {},
@@ -252,7 +253,7 @@ export default {
     // this.getVesselData();
     // this.getList()
     this.loaddata()
-    this.getLook()
+    //this.getLook()
     this.showType = this.isShow
   },
   methods: {
@@ -297,12 +298,19 @@ export default {
     },
     loaddata() {
       // 仓库名称
-      xiala({ compId: 'CON1' })
+      xiala({ compId: sessionStorage.getItem('ws-pf_compId')})
         .toPromise()
         .then((response) => {
           this.packtypeList = response
         })
         this.getUnitList()
+
+         // 数据
+      getLook({ id:this.compId })
+        .toPromise()
+        .then((response) => {
+          this.deptBudgetList = response
+        })
     },
     getUnitList() {
       xiala({
@@ -321,7 +329,7 @@ export default {
           })
           //
           if (currItem) {
-            this.selectContract(currItem.constValue)
+            this.getLook(currItem.constValue)
           }
         })
     },