Browse Source

no message

linwenxin 1 năm trước cách đây
mục cha
commit
ec2a9dcd69

+ 22 - 18
src/views/auxiliaryFittings/purchasingManagement/mixins/form_tpl.js

@@ -226,6 +226,7 @@ export default {
                               materialNormList({
                                 isShowStockQty: true,
                                 websitId: this.formData.websitId,
+                                storageId: this.formData.storageId,
                                 pageNum: 1,
                                 pageSize: -1,
                                 params: [
@@ -790,24 +791,6 @@ export default {
                             } else {
                               this.formData['websitName'] = ''
                             }
-                            if (~['partsStorage', 'partsReturn'].indexOf(this.$route?.name)) {
-                              if (val) {
-                                peijianList({
-                                  isShowStockQty: true,
-                                  websitId: val,
-                                  pageNum: 1,
-                                  pageSize: -1,
-                                  params: [
-                                    { param: 'a.status', compare: '=', value: 'ON' },
-                                    { param: 'a.norm_type', compare: '=', value: 'M' }
-                                  ]
-                                }).then(res => {
-                                  this.peijianList = res.data.records
-                                })
-                              } else {
-                                this.peijianList = []
-                              }
-                            }
                             this.getorderlist()
                             this.$nextTick(this.jiaoyan)
                           }}
@@ -868,6 +851,25 @@ export default {
                             } else {
                               this.formData['storageName'] = ''
                             }
+                            if (~['partsStorage', 'partsReturn'].indexOf(this.$route?.name)) {
+                              if (val) {
+                                peijianList({
+                                  isShowStockQty: true,
+                                  websitId: this.formData.websitId,
+                                  storageId: this.formData.storageId,
+                                  pageNum: 1,
+                                  pageSize: -1,
+                                  params: [
+                                    { param: 'a.status', compare: '=', value: 'ON' },
+                                    { param: 'a.norm_type', compare: '=', value: 'M' }
+                                  ]
+                                }).then(res => {
+                                  this.peijianList = res.data.records
+                                })
+                              } else {
+                                this.peijianList = []
+                              }
+                            }
                             this.$nextTick(this.jiaoyan)
                           }}
                         >
@@ -931,6 +933,7 @@ export default {
                                       materialNormList({
                                         isShowStockQty: true,
                                         websitId: this.formData.websitId,
+                                        storageId: this.formData.storageId,
                                         pageNum: 1,
                                         pageSize: -1,
                                         params: [
@@ -1252,6 +1255,7 @@ export default {
             peijianList({
               isShowStockQty: true,
               websitId: this.formData.websitId,
+              storageId: this.formData.storageId,
               pageNum: 1,
               pageSize: -1,
               params: [