diff --git a/lms/nladmin-ui/src/views/wms/st/inStor/change/AddDialog.vue b/lms/nladmin-ui/src/views/wms/st/inStor/change/AddDialog.vue
index bb9d41eb9..3b5a9dd80 100644
--- a/lms/nladmin-ui/src/views/wms/st/inStor/change/AddDialog.vue
+++ b/lms/nladmin-ui/src/views/wms/st/inStor/change/AddDialog.vue
@@ -274,7 +274,7 @@
-
+
@@ -323,6 +323,7 @@ export default {
nowindex: '',
storlist: [],
invtypelist: [],
+ storId: null,
rules: {
stor_id: [
{ required: true, message: '仓库不能为空', trigger: 'blur' }
@@ -345,7 +346,6 @@ export default {
},
methods: {
open() {
- debugger
crudUserStor.getUserStor().then(res => {
this.storlist = res
})
@@ -455,6 +455,10 @@ export default {
}
},
async queryDtl() {
+ if (!this.form.stor_id) {
+ return this.crud.notify('请先选择仓库!', CRUD.NOTIFICATION_TYPE.INFO)
+ }
+ this.storId = this.form.stor_id
this.dtlShow = true
},
async queryStruct(index, row) {
diff --git a/lms/nladmin-ui/src/views/wms/st/inStor/change/AddDtl.vue b/lms/nladmin-ui/src/views/wms/st/inStor/change/AddDtl.vue
index a7a9ddb4e..64fe68423 100644
--- a/lms/nladmin-ui/src/views/wms/st/inStor/change/AddDtl.vue
+++ b/lms/nladmin-ui/src/views/wms/st/inStor/change/AddDtl.vue
@@ -125,6 +125,9 @@ export default {
},
openParam: {
type: String
+ },
+ storId: {
+ type: String
}
},
dicts: ['ST_QUALITY_SCODE', 'ST_IVT_LEVEL', 'is_usable'],
@@ -149,8 +152,11 @@ export default {
}
},
methods: {
+ [CRUD.HOOK.beforeRefresh]() {
+ this.crud.query.stor_id = this.storId
+ },
open() {
- crudUserStor.getSect({ 'stor_id': '' }).then(res => {
+ crudUserStor.getSect({ 'stor_id': this.storId }).then(res => {
this.sects = res.content
})
this.crud.toQuery()