浏览代码

no message

linwenxin 9 月之前
父节点
当前提交
c39eb7472f

+ 2 - 3
src/api/AuxiliaryAccessoriesWarehouse.js

@@ -24,11 +24,11 @@ export function websitGoodsMoveAdd(data) {
   })
 }
 
-export function websitGoodsMoveSubmit(data) {
+export function websitGoodsMoveSubmit(params) {
   return request({
     url: `/websit/goods/move/submit`,
     method: 'post',
-    data
+    params
   })
 }
 
@@ -55,4 +55,3 @@ export function websitGoodsMoveDel(params) {
     params
   })
 }
-

+ 2 - 0
src/views/auxiliaryFittings/AuxiliaryAccessoriesWarehouse/index.vue

@@ -375,6 +375,8 @@ export default {
       })
     },
     initData() {
+      this.biyaowebsitId(this.formData.websitId)
+      this.biyaooutStorageId(this.formData.outStorageId)
       Promise.all([getWebsit({ type: 'C', status: true })]).then(([res1]) => {
         this.websitSelectList = res1.data
       })

+ 23 - 16
src/views/auxiliaryFittings/AuxiliaryAccessoriesWarehouse/storage_table.js

@@ -481,6 +481,28 @@ export default {
       this.formData.outStorageId = ''
       this.formData.inStorageId = ''
       this.formData.items = []
+      this.biyaowebsitId(newVal)
+    },
+    'formData.outStorageId'(newValue) {
+      this.biyaooutStorageId(newValue)
+    }
+  },
+  methods: {
+    biyaooutStorageId(newValue) {
+      if (newValue && this.formData.websitId) {
+        getGoods({
+          websitId: this.formData.websitId,
+          type: 'P',
+          saleType: '零售',
+          storageId: this.formData.outStorageId
+        }).then(res => {
+          this.peijianList = res.data
+        })
+      } else {
+        this.peijianList = []
+      }
+    },
+    biyaowebsitId(newVal) {
       if (newVal) {
         storageListPageV2({
           pageNum: 1,
@@ -523,22 +545,7 @@ export default {
         this.peijianList = []
       }
     },
-    'formData.outStorageId'(newValue) {
-      if (newValue && this.formData.websitId) {
-        getGoods({
-          websitId: this.formData.websitId,
-          type: 'P',
-          saleType: '零售',
-          storageId: this.formData.outStorageId
-        }).then(res => {
-          this.peijianList = res.data
-        })
-      } else {
-        this.peijianList = []
-      }
-    }
-  },
-  methods: {
+
     qkrow(row, data = {}) {
       ;['goodsStockUnit', 'goodsCode', 'goodsSpecification', 'brand', 'productCategory'].map(key => {
         if (row[key] !== undefined) {