diff --git a/nladmin-ui/src/views/wms/decision_manage/strategy/AddDialog.vue b/nladmin-ui/src/views/wms/decision_manage/strategy/AddDialog.vue index ec7e8a8..bb3c708 100644 --- a/nladmin-ui/src/views/wms/decision_manage/strategy/AddDialog.vue +++ b/nladmin-ui/src/views/wms/decision_manage/strategy/AddDialog.vue @@ -118,7 +118,9 @@ export default { strategyTypeList: [ { 'label': '入库', 'value': '1' }, { 'label': '出库', 'value': '2' }, - { 'label': '通用', 'value': '3' } + { 'label': '通用', 'value': '3' }, + { 'label': '空托盘入库', 'value': '4' }, + { 'label': '空托盘出库', 'value': '5' } ], classTypeList: [ { 'label': '实现类', 'value': '1' }, diff --git a/nladmin-ui/src/views/wms/pub/StructDialog.vue b/nladmin-ui/src/views/wms/pub/StructDialog.vue index bdf9109..a478d41 100644 --- a/nladmin-ui/src/views/wms/pub/StructDialog.vue +++ b/nladmin-ui/src/views/wms/pub/StructDialog.vue @@ -115,7 +115,7 @@ export default { rows: [], dialogDis: true, lock: '', - defaultList: ['1582991156504039424', '1645705331612979200'] + defaultList: [] } }, watch: { @@ -143,9 +143,7 @@ export default { this.crud.query.stor_id = this.storId this.crud.query.layer_num = this.layerNum this.query.lock_type = this.lock - if (this.storId === this.defaultList[0]) { - this.crud.query.sect_id = this.defaultList[1] - } + this.query.is_have = '1' return true }, open() { diff --git a/nladmin-ui/src/views/wms/st/inbill/AddDtl.vue b/nladmin-ui/src/views/wms/st/inbill/AddDtl.vue index c36550f..699f457 100644 --- a/nladmin-ui/src/views/wms/st/inbill/AddDtl.vue +++ b/nladmin-ui/src/views/wms/st/inbill/AddDtl.vue @@ -146,9 +146,6 @@ export default { submit() { this.$emit('update:dialogShow', false) this.rows = this.$refs.multipleTable.selection - console.log('获取的rows:') - console.log(this.rows) - this.$emit('tableChanged', this.rows) group.getAllGroupInfo(this.rows).then(res => { this.rows = res.content this.$emit('tableChanged', this.rows) diff --git a/nladmin-ui/src/views/wms/st/movebill/AddDialog.vue b/nladmin-ui/src/views/wms/st/movebill/AddDialog.vue index 3c85e64..93ad4aa 100644 --- a/nladmin-ui/src/views/wms/st/movebill/AddDialog.vue +++ b/nladmin-ui/src/views/wms/st/movebill/AddDialog.vue @@ -65,6 +65,7 @@ { this.form.tableData = res // 将明细变成不可编辑 for (let i = 0; i < this.form.tableData.length; i++) { const row = this.form.tableData[i] - row.edit = true + this.$set(row, 'edit', true) this.form.tableData.splice(i, 1, row) } }) @@ -303,7 +306,7 @@ export default { // 将明细变成不可编辑 for (let i = 0; i < this.form.tableData.length; i++) { const row = this.form.tableData[i] - row.edit = true + this.$set(row, 'edit', true) this.form.tableData.splice(i, 1, row) } }) @@ -338,10 +341,11 @@ export default { tableChanged(rows) { const tablemap = new Map() rows.forEach((item) => { + debugger if (this.form.tableData.length !== 0) { this.flagnow = false for (let i = 0; i < this.form.tableData.length; i++) { - if (this.form.tableData[i].stockrecord_id === item.stockrecord_id) { + if (this.form.tableData[i].storagevehicleext_id === item.storagevehicleext_id) { this.flagnow = true } } @@ -350,14 +354,14 @@ export default { this.$set(item, 'work_status', '10') this.$set(item, 'turnin_sect_code', '') this.$set(item, 'turnin_struct_code', '') - tablemap.set(item.stockrecord_id, item) + tablemap.set(item.storagevehicleext_id, item) } } else { this.$set(item, 'edit', false) this.$set(item, 'work_status', '10') this.$set(item, 'turnin_sect_code', '') this.$set(item, 'turnin_struct_code', '') - tablemap.set(item.stockrecord_id, item) + tablemap.set(item.storagevehicleext_id, item) } }) for (const value of tablemap.values()) { diff --git a/nladmin-ui/src/views/wms/st/movebill/AddDtl.vue b/nladmin-ui/src/views/wms/st/movebill/AddDtl.vue index d89fc13..a6143f3 100644 --- a/nladmin-ui/src/views/wms/st/movebill/AddDtl.vue +++ b/nladmin-ui/src/views/wms/st/movebill/AddDtl.vue @@ -97,6 +97,7 @@ import CRUD, { header, presenter } from '@crud/crud' import rrOperation from '@crud/RR.operation' import pagination from '@crud/Pagination' import crudSectattr from '@/views/wms/basedata/sectattr/sectattr' +import movestor from '@/views/wms/st/movebill/movestor' export default { name: 'AddDtl', @@ -163,9 +164,6 @@ export default { methods: { [CRUD.HOOK.beforeRefresh]() { this.crud.query.stor_id = this.storId - if (this.storId === this.defaultList[0]) { - this.crud.query.sect_id = this.defaultList[1] - } }, open() { crudSectattr.getSect({ 'stor_id': this.storId }).then(res => { @@ -204,8 +202,11 @@ export default { this.$message('请先勾选物料') return } + movestor.getCanuseIvt(this.rows).then(res => { + this.rows = res.content + this.$emit('tableChanged', this.rows) + }) this.$emit('update:dialogShow', false) - this.$emit('tableChanged', this.rows) this.crud.resetQuery(false) } } diff --git a/nladmin-ui/src/views/wms/st/movebill/movestor.js b/nladmin-ui/src/views/wms/st/movebill/movestor.js index 9a4f562..4836cbe 100644 --- a/nladmin-ui/src/views/wms/st/movebill/movestor.js +++ b/nladmin-ui/src/views/wms/st/movebill/movestor.js @@ -40,4 +40,12 @@ export function confirm(data) { }) } -export default { add, edit, del, getMoveDtl, confirm } +export function getCanuseIvt(data) { + return request({ + url: 'api/moveStor/getCanuseIvt', + method: 'get', + data + }) +} + +export default { add, edit, del, getMoveDtl, confirm, getCanuseIvt } diff --git a/nladmin-ui/src/views/wms/st/outbill/AddDialog.vue b/nladmin-ui/src/views/wms/st/outbill/AddDialog.vue index d6e215e..992e5db 100644 --- a/nladmin-ui/src/views/wms/st/outbill/AddDialog.vue +++ b/nladmin-ui/src/views/wms/st/outbill/AddDialog.vue @@ -157,10 +157,10 @@ {{ scope.row.pcsn }} + @@ -266,12 +266,10 @@ export default { this.crud.notify('请至少选择一条明细', CRUD.NOTIFICATION_TYPE.INFO) return false } - if (this.form.bill_type !== '1004') { - this.form.out_stor_id = '' - } - if (this.form.bill_type === '1004') { - if (!this.form.out_stor_id) { - this.crud.notify('移入仓库不能为空!', CRUD.NOTIFICATION_TYPE.INFO) + for (let i = 0; i < this.form.tableData.length; i++) { + const row = this.form.tableData[i] + if (row.plan_qty > row.max_qty) { + this.crud.notify('出库数量不能大于可出数量', CRUD.NOTIFICATION_TYPE.INFO) return false } } @@ -346,10 +344,11 @@ export default { rows.forEach((item) => { // 添加plan_qty item.plan_qty = item.qty + item.max_qty = item.qty if (this.form.tableData.length !== 0) { this.flagnow = false for (let i = 0; i < this.form.tableData.length; i++) { - if (this.form.tableData[i].storagevehicle_code === item.storagevehicle_code && this.form.tableData[i].pcsn === item.pcsn) { + if (this.form.tableData[i].storagevehicleext_id === item.storagevehicleext_id) { this.flagnow = true } } diff --git a/nladmin-ui/src/views/wms/statement/structivt/index.vue b/nladmin-ui/src/views/wms/statement/structivt/index.vue index def11ff..daf169a 100644 --- a/nladmin-ui/src/views/wms/statement/structivt/index.vue +++ b/nladmin-ui/src/views/wms/statement/structivt/index.vue @@ -86,12 +86,12 @@ - - + +