fix:出库调整;todu:出库分配明细单据完成,出库记录
This commit is contained in:
@@ -321,7 +321,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
open() {
|
||||
crudSectattr.getSect({ 'stor_id': this.storId }).then(res => {
|
||||
crudSectattr.getSectCode({ 'stor_id': this.storId }).then(res => {
|
||||
this.sects = res.content
|
||||
})
|
||||
crudRegion.getRegionList(this.mstrow).then(res => {
|
||||
@@ -355,16 +355,16 @@ export default {
|
||||
},
|
||||
sectQueryChange(val) {
|
||||
if (val.length === 1) {
|
||||
this.mstrow.stor_id = val[0]
|
||||
this.mstrow.sect_id = ''
|
||||
this.mstrow.stor_code = val[0]
|
||||
this.mstrow.sect_code = ''
|
||||
}
|
||||
if (val.length === 0) {
|
||||
this.mstrow.sect_id = ''
|
||||
this.mstrow.stor_id = ''
|
||||
this.mstrow.sect_code = ''
|
||||
this.mstrow.stor_code = ''
|
||||
}
|
||||
if (val.length === 2) {
|
||||
this.mstrow.stor_id = val[0]
|
||||
this.mstrow.sect_id = val[1]
|
||||
this.mstrow.stor_code = val[0]
|
||||
this.mstrow.sect_code = val[1]
|
||||
}
|
||||
},
|
||||
tabledisabled(row) {
|
||||
|
||||
@@ -93,7 +93,11 @@
|
||||
<el-table-column show-overflow-tooltip prop="storagevehicle_code" label="托盘编码" align="center" width="250px" />
|
||||
<el-table-column show-overflow-tooltip prop="material_name" label="物料名称" align="center" />
|
||||
<el-table-column show-overflow-tooltip sortable prop="pcsn" label="批次号" align="center" width="150px" />
|
||||
<el-table-column show-overflow-tooltip prop="qty" label="可出数量" :formatter="crud.formatNum3" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="qty" label="可出重量" :formatter="crud.formatNum3" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.qty" clearable style="width: 120px" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="操作" width="160" fixed="right">
|
||||
<template scope="scope">
|
||||
<el-button v-show="!scope.row.edit" type="primary" class="filter-item" size="mini" icon="el-icon-edit" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
||||
@@ -204,7 +208,7 @@ export default {
|
||||
this.queryrow.assign_qty = parseFloat(this.queryrow.assign_qty) + parseFloat(row.qty)
|
||||
} else {
|
||||
this.queryrow.assign_qty = parseFloat(this.queryrow.assign_qty) - parseFloat(row.qty)
|
||||
// 如果待分配数量等于0则 明细数量 - 已分配数量
|
||||
// 如果待分配重量等于0则 明细重量 - 已分配重量
|
||||
if (parseInt(this.queryrow.unassign_qty) === 0) {
|
||||
this.queryrow.unassign_qty = parseFloat(this.goal_unassign_qty) - parseFloat(this.queryrow.assign_qty)
|
||||
} else {
|
||||
@@ -213,7 +217,7 @@ export default {
|
||||
if (this.queryrow.unassign_qty > this.goal_unassign_qty) {
|
||||
this.queryrow.unassign_qty = JSON.parse(JSON.stringify(this.goal_unassign_qty))
|
||||
}
|
||||
// 如果已分配汇总量 > 明细数量 则待分配数量为0
|
||||
// 如果已分配汇总量 > 明细重量 则待分配重量为0
|
||||
if (this.queryrow.assign_qty > this.goal_unassign_qty) {
|
||||
this.queryrow.unassign_qty = parseFloat('0')
|
||||
}
|
||||
@@ -245,7 +249,7 @@ export default {
|
||||
this.fullscreenLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$confirm('未分配数量不为0,是否继续提交?')
|
||||
this.$confirm('未分配重量不为0,是否继续提交?')
|
||||
.then(_ => {
|
||||
const rows = []
|
||||
this.tableDtl.forEach((item) => {
|
||||
|
||||
Reference in New Issue
Block a user