diff --git a/lms/nladmin-ui/src/views/wms/st/inStor/check/AddDialog.vue b/lms/nladmin-ui/src/views/wms/st/inStor/check/AddDialog.vue index ab2cff15d..2455c9846 100644 --- a/lms/nladmin-ui/src/views/wms/st/inStor/check/AddDialog.vue +++ b/lms/nladmin-ui/src/views/wms/st/inStor/check/AddDialog.vue @@ -129,7 +129,7 @@ - + @@ -168,6 +168,7 @@ export default { dialogVisible: false, dtlShow: false, flagnow: false, + storId: null, nowrow: {}, nowindex: '', storlist: [], @@ -235,6 +236,11 @@ export default { this.crud.notify('请选择盘点单类型!', CRUD.NOTIFICATION_TYPE.INFO) return } + if (this.form.stor_id === '') { + this.crud.notify('请选择仓库!', CRUD.NOTIFICATION_TYPE.INFO) + return + } + this.storId = this.form.stor_id this.dtlShow = true }, tableChanged(rows) { diff --git a/lms/nladmin-ui/src/views/wms/st/inStor/check/AddDtl.vue b/lms/nladmin-ui/src/views/wms/st/inStor/check/AddDtl.vue index b7477e0b4..fbead8137 100644 --- a/lms/nladmin-ui/src/views/wms/st/inStor/check/AddDtl.vue +++ b/lms/nladmin-ui/src/views/wms/st/inStor/check/AddDtl.vue @@ -109,6 +109,9 @@ export default { }, openParam: { type: String + }, + storId: { + type: String } }, data() { @@ -132,8 +135,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() diff --git a/lms/nladmin-ui/src/views/wms/st/inStor/moveStor/AddDialog.vue b/lms/nladmin-ui/src/views/wms/st/inStor/moveStor/AddDialog.vue index fbbcea511..0b350cd49 100644 --- a/lms/nladmin-ui/src/views/wms/st/inStor/moveStor/AddDialog.vue +++ b/lms/nladmin-ui/src/views/wms/st/inStor/moveStor/AddDialog.vue @@ -228,7 +228,7 @@ - + @@ -274,6 +274,7 @@ export default { structShow2: false, flagnow: false, nowrow: {}, + storId: null, nowindex: '', storlist: [], invtypelist: [], @@ -351,6 +352,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/moveStor/AddDtl.vue b/lms/nladmin-ui/src/views/wms/st/inStor/moveStor/AddDtl.vue index 889a442e7..f1bd68e11 100644 --- a/lms/nladmin-ui/src/views/wms/st/inStor/moveStor/AddDtl.vue +++ b/lms/nladmin-ui/src/views/wms/st/inStor/moveStor/AddDtl.vue @@ -123,6 +123,9 @@ export default { }, openParam: { type: String + }, + storId: { + type: String } }, dicts: ['ST_QUALITY_SCODE', 'ST_IVT_LEVEL', 'is_usable'], @@ -147,8 +150,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()