opt: 入库管理更新

This commit is contained in:
2025-05-27 15:26:13 +08:00
parent 209c99e180
commit 797a06e8a9
9 changed files with 249 additions and 205 deletions

View File

@@ -14,18 +14,18 @@
<span class="el-dialog__title2">入库分配</span>
<span class="crud-opts-right2">
<!--左侧插槽-->
<slot name="left">
<el-button
:loading="allDivBtn"
class="filter-item"
type="primary"
icon="el-icon-plus"
size="mini"
@click="allDivStruct()"
>
全部分配
</el-button>
</slot>
<!-- <slot name="left">-->
<!-- <el-button-->
<!-- :loading="allDivBtn"-->
<!-- class="filter-item"-->
<!-- type="primary"-->
<!-- icon="el-icon-plus"-->
<!-- size="mini"-->
<!-- @click="allDivStruct()"-->
<!-- >-->
<!-- 全部分配-->
<!-- </el-button>-->
<!-- </slot>-->
<el-button slot="left" type="info" @click="dialogVisible = false">关闭</el-button>
</span>
</div>
@@ -349,7 +349,6 @@ export default {
this.crud.notify('请选择入库点', CRUD.NOTIFICATION_TYPE.INFO)
return
}
debugger
if (this.form.tableMater.length === 0) {
this.crud.notify('请先选择一条明细!', CRUD.NOTIFICATION_TYPE.INFO)
return
@@ -364,23 +363,23 @@ export default {
})
})
},
allDivStruct() {
if (!this.sect_id) {
this.crud.notify('请先选择虚拟库区区域!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
this.allDivBtn = true
const data = {}
data.sect_id = this.sect_id
data.iostorinv_id = this.openParam[0].iostorinv_id
crudRawAssist.allDivStruct(data).then(res => {
crudRawAssist.getIODtl({ 'bill_code': this.openParam[0].bill_code, 'open_flag': '1' }).then(res => {
this.openParam = res
})
}).finally(() => {
this.allDivBtn = false
})
},
// allDivStruct() {
// if (!this.sect_id) {
// this.crud.notify('请先选择虚拟库区区域!', CRUD.NOTIFICATION_TYPE.INFO)
// return
// }
// this.allDivBtn = true
// const data = {}
// data.sect_id = this.sect_id
// data.iostorinv_id = this.openParam[0].iostorinv_id
// crudRawAssist.allDivStruct(data).then(res => {
// crudRawAssist.getIODtl({ 'bill_code': this.openParam[0].bill_code, 'open_flag': '1' }).then(res => {
// this.openParam = res
// })
// }).finally(() => {
// this.allDivBtn = false
// })
// },
divStruct() {
if (this.form.tableMater.length === 0) {
this.crud.notify('请先选择一条明细!', CRUD.NOTIFICATION_TYPE.INFO)