fix:托盘混料入库优化

This commit is contained in:
zhangzq
2025-08-19 13:44:52 +08:00
parent 735d8d08d3
commit 953cc5bae5
85 changed files with 3506 additions and 35 deletions

View File

@@ -32,6 +32,15 @@ export function getSect(params) {
})
}
export function getSectCode(params) {
return request({
url: 'api/sectattr/getSectCode',
method: 'get',
params
})
}
export function changeActive(data) {
return request({
url: 'api/sectattr/changeActive',
@@ -40,4 +49,4 @@ export function changeActive(data) {
})
}
export default { add, edit, del, getSect, changeActive }
export default { add, edit, del, getSect, getSectCode, changeActive }

View File

@@ -133,7 +133,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="归属库区" prop="sect_id">
<el-form-item label="归属库区" prop="sect_code">
<el-cascader
v-model="form.cascader"
style="width: 200px;"
@@ -326,10 +326,8 @@ const defaultForm = {
struct_code: null,
struct_name: null,
simple_name: null,
sect_id: null,
sect_code: null,
sect_name: null,
stor_id: null,
stor_code: null,
stor_name: null,
stor_type: null,
@@ -423,10 +421,10 @@ export default {
struct_name: [
{ required: true, message: '仓位名称不能为空', trigger: 'blur' }
],
sect_id: [
sect_code: [
{ required: true, message: '库区标识不能为空', trigger: 'blur' }
],
stor_id: [
stor_code: [
{ required: true, message: '仓库标识不能为空', trigger: 'blur' }
],
capacity: [
@@ -456,7 +454,7 @@ export default {
}
},
created() {
crudSectattr.getSect({ 'stor_id': '' }).then(res => {
crudSectattr.getSectCode({ 'stor_code': '' }).then(res => {
this.sects = res.content
})
},
@@ -467,12 +465,12 @@ export default {
},
[CRUD.HOOK.afterToEdit](crud, form) {
const val = []
val[0] = form.stor_id
val[1] = form.sect_id
val[0] = form.stor_code
val[1] = form.sect_code
form.cascader = val
},
sectChange(val) {
this.form.sect_id = val[1]
this.form.sect_code = val[1]
},
openOneCreate() {
this.openOneCreateDialog = true
@@ -489,15 +487,15 @@ export default {
},
sectQueryChange(val) {
if (val.length === 1) {
this.query.stor_id = val[0]
this.query.stor_code= val[0]
this.query.sect_code = ''
}
if (val.length === 0) {
this.query.sect_code = ''
this.query.stor_id = ''
this.query.stor_code = ''
}
if (val.length === 2) {
this.query.stor_id = val[0]
this.query.stor_code = val[0]
this.query.sect_code = val[1]
}
this.crud.toQuery()

View File

@@ -232,7 +232,7 @@ export default {
type: String,
default: null
},
storId: {
storCode: {
type: String,
default: null
}
@@ -273,7 +273,7 @@ export default {
},
methods: {
open() {
crudSectattr.getSect({ 'stor_id': this.storId }).then(res => {
crudSectattr.getSectCode({ 'stor_code': this.storCode }).then(res => {
this.sects = res.content
})

View File

@@ -379,7 +379,7 @@ export default {
divOpen() {
crudRawAssist.getIODtl({ 'bill_code': this.currentRow.bill_code, 'open_flag': '1' }).then(res => {
this.openParam = res
this.storId = this.currentRow.stor_id
this.storCode = this.currentRow.stor_code
this.billType = this.currentRow.bill_type
this.divShow = true
})