add:pc成品入库

This commit is contained in:
2024-01-19 18:36:27 +08:00
parent 1e96343e7e
commit d93fe3a4ed
15 changed files with 1841 additions and 59 deletions

View File

@@ -355,6 +355,7 @@ export default {
this.form.tableMater[i].sect_name = row.sect_name
this.form.tableMater.splice(i, 1, this.form.tableMater[i]) // 通过splice 替换数据 触发视图更新
}
this.form.stor_id = this.stor_id
crudRawAssist.divStruct(this.form).then(res => {
crudRawAssist.getIODtl({ 'bill_code': this.form.dtl_row.bill_code, 'open_flag': '1' }).then(res => {
this.openParam = res
@@ -367,11 +368,11 @@ 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
}
this.form.stor_id = this.stor_id
crudRawAssist.divPoint(this.form).then(res => {
crudRawAssist.getIODtl({ 'bill_code': this.form.dtl_row.bill_code, 'open_flag': '1' }).then(res => {
this.openParam = res
@@ -443,7 +444,7 @@ export default {
this.crud.notify('明细存在未分配货位!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
// 如果勾选了,直接跳后台
this.form.stor_id = this.stor_id
crudRawAssist.unDivStruct(this.form).then(res => {
crudRawAssist.getIODtl({ 'bill_code': this.form.dtl_row.bill_code, 'open_flag': '1' }).then(res => {
this.openParam = res

View File

@@ -170,6 +170,10 @@ export default {
openParam: {
type: Array,
default: () => { return [] }
},
storId: {
type: String,
default: ''
}
},
data() {
@@ -221,6 +225,7 @@ export default {
return
}
this.fullscreenLoading = true
this.dis_row.stor_id = this.storId
crudRawAssist.delTask(this.dis_row).then(res => {
this.fullscreenLoading = false
crudRawAssist.queryTask(this.form.dtl_row).then(res => {
@@ -252,6 +257,7 @@ export default {
return
}
this.fullscreenLoading = true
this.dis_row.stor_id = this.storId
crudRawAssist.confirmTask(this.dis_row).then(res => {
crudRawAssist.queryTask(this.form.dtl_row).then(res2 => {
this.form.tableMater = res2
@@ -296,6 +302,7 @@ export default {
return
}
this.fullscreenLoading = true
this.dis_row.stor_id = this.storId
crudRawAssist.reIssueTask(this.dis_row).then(res => {
this.fullscreenLoading = false
crudRawAssist.queryTask(this.form.dtl_row).then(res2 => {

View File

@@ -233,7 +233,7 @@
<AddDialog @AddChanged="querytable" />
<ViewDialog :dialog-show.sync="viewShow" :rowmst="mstrow" @AddChanged="querytable" />
<DivDialog :dialog-show.sync="divShow" :stor-id="storId" :open-param="openParam" :bill-type="billType" :buss-config="bussConfig" @AddChanged="querytable" />
<TaskDialog :dialog-show.sync="taskShow" :open-param="openParam" :buss-config="bussConfig" @AddChanged="querytable" />
<TaskDialog :dialog-show.sync="taskShow" :open-param="openParam" :buss-config="bussConfig" :stor-id="stor_id" @AddChanged="querytable" />
</div>
</template>
@@ -277,6 +277,7 @@ export default {
edit: ['admin', 'inbill:edit'],
del: ['admin', 'inbill:del']
},
stor_id: null,
audit_flag: true,
dis_flag: true,
task_flag: true,
@@ -421,6 +422,7 @@ export default {
},
taskOpen() {
crudRawAssist.getIODtl({ 'bill_code': this.currentRow.bill_code, 'open_flag': '2' }).then(res => {
this.stor_id = this.currentRow.stor_id
this.openParam = res
this.taskShow = true
})