add:拣选出库开发

This commit is contained in:
2024-04-30 10:57:40 +08:00
parent 18008d04a1
commit b6736b9a9d
4 changed files with 292 additions and 24 deletions

View File

@@ -440,9 +440,8 @@ export default {
const data = {
'data': rows
}
checkoutbill.queryBox(data).then(res => {
res.forEach((item) => {
debugger
if(this.form.bill_type === '1011') {
rows.forEach((item) => {
if (this.form.tableData.length !== 0) {
this.flagnow = false
for (let i = 0; i < this.form.tableData.length; i++) {
@@ -451,18 +450,42 @@ export default {
}
}
if (!this.flagnow) {
item.edit = true
item.edit = false
this.form.tableData.splice(-1, 0, item)
this.form.total_qty = parseFloat(this.form.total_qty) + parseFloat(item.plan_qty)
}
} else {
item.edit = true
item.edit = false
this.form.tableData.splice(-1, 0, item)
this.form.total_qty = parseFloat(this.form.total_qty) + parseFloat(item.plan_qty)
}
})
this.form.detail_count = this.form.tableData.length
})
} else {
checkoutbill.queryBox(data).then(res => {
res.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].box_no === item.box_no && this.form.tableData[i].pcsn === item.pcsn) {
this.flagnow = true
}
}
if (!this.flagnow) {
item.edit = true
this.form.tableData.splice(-1, 0, item)
this.form.total_qty = parseFloat(this.form.total_qty) + parseFloat(item.plan_qty)
}
} else {
item.edit = true
this.form.tableData.splice(-1, 0, item)
this.form.total_qty = parseFloat(this.form.total_qty) + parseFloat(item.plan_qty)
}
})
this.form.detail_count = this.form.tableData.length
})
}
},
setMaterValue(row) {
for (let i = 0; i < this.form.tableData.length; i++) {

View File

@@ -61,6 +61,7 @@
</el-button>
<el-button
slot="left"
v-if="this.mstrow.bill_type !== '1011'"
class="filter-item"
:loading="loadingAlldiv"
type="primary"
@@ -73,6 +74,7 @@
</el-button>
<el-button
slot="left"
v-if="this.mstrow.bill_type !== '1011'"
class="filter-item"
type="primary"
icon="el-icon-check"
@@ -85,6 +87,7 @@
</el-button>
<el-button
slot="left"
v-if="this.mstrow.bill_type !== '1011'"
class="filter-item"
type="primary"
icon="el-icon-plus"
@@ -97,6 +100,7 @@
</el-button>
<el-button
slot="left"
v-if="this.mstrow.bill_type !== '1011'"
class="filter-item"
type="warning"
:loading="loadingSetAllPoint"
@@ -211,6 +215,7 @@
</el-button>-->
<el-button
slot="left"
v-if="this.mstrow.bill_type !== '1011'"
class="filter-item"
:loading="loadingSetPoint"
type="warning"
@@ -223,6 +228,7 @@
</el-button>
<el-button
slot="left"
v-if="this.mstrow.bill_type !== '1011'"
class="filter-item"
:loading="loadingSetAllPoint"
type="warning"
@@ -249,6 +255,7 @@
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
@current-change="handleDisCurrentChange"
>
<el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="bill_status" label="状态" align="center" width="110px">
<template slot-scope="scope">
<el-select