离线
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-table :data="pickListTable2" highlight-current-row stripe border style="width: 100%;" size="mini" height="400" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" align="center" width="55"/>
|
||||
<el-table-column :selectable="selectable" type="selection" align="center" width="55"/>
|
||||
<el-table-column label="序号" align="center" type="index" width="50"/>
|
||||
<el-table-column label="名称" sortable prop="名称" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
@@ -99,7 +99,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="货位存量" align="center" min-width="50">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.请购单明细流水号 ? scope.row.货位存量 : scope.row.货位存量1 }}
|
||||
{{ scope.row.货位存量1 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="已领数量" align="center" min-width="50">
|
||||
@@ -392,6 +392,7 @@ export default {
|
||||
inventoryNum: '', // 中间变量仓库流水号
|
||||
locationNum: '', // 中间变量货位流水号
|
||||
outNumber: [], // 中间变量出库数量
|
||||
offlineNum: [],
|
||||
inventoryName: [],
|
||||
locateName: [],
|
||||
物料流水号: '',
|
||||
@@ -523,6 +524,10 @@ export default {
|
||||
inputPassword() {
|
||||
this.dialogFormVisible3 = true
|
||||
},
|
||||
selectable(row, index) { // 控制某行是否可选
|
||||
console.log(row)
|
||||
return ((Number(row.总数量) <= Number(row.出库数量1))) === false
|
||||
},
|
||||
// 提交领料确认
|
||||
pickConfirm() {
|
||||
this.$confirm('是否领料确认?', '提示', {
|
||||
@@ -631,8 +636,16 @@ export default {
|
||||
row && row.领料单编号 ? this.pickingListNumberShow = row.领料单编号 : this.pickingListNumberShow
|
||||
row && row.姓名 ? this.form3.personName = row.姓名 : this.form3.personName
|
||||
searchListDetail(this.pickingListNum).then(res => {
|
||||
console.log(res.data)
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
if (res.data[i].离线采购件流水号 !== 0) {
|
||||
res.data[i].货位存量1 = res.data[i].货位存量
|
||||
}
|
||||
if (res.data[i].请购单明细流水号 !== 0 && res.data[i].请购单明细流水号 !== '' && res.data[i].请购单明细流水号 !== null) {
|
||||
res.data[i].货位存量1 = res.data[i].货位存量
|
||||
}
|
||||
}
|
||||
this.pickListTable2 = res.data
|
||||
console.log(this.pickListTable2, 111)
|
||||
})
|
||||
},
|
||||
// 多选
|
||||
@@ -650,13 +663,22 @@ export default {
|
||||
this.purchaseBillNum.push(this.SELECTION[i].请购单明细流水号)
|
||||
this.groupNumValue.push(this.SELECTION[i].组件流水号)
|
||||
this.machineValue.push(this.SELECTION[i].机床流水号)
|
||||
this.offlineNum.push(this.SELECTION[i].离线采购件流水号)
|
||||
this.outNumber.push(this.SELECTION[i].出库数量)
|
||||
}
|
||||
submitOutStore(this.multipleSelection, this.basePartNum, this.materialNum, this.parchasePartNum, this.purchaseBillNum, this.groupNumValue, this.machineValue, this.outNumber, this.id, this.form3.password, this.form3.outTypeValue, this.pickingListNum).then(response => {
|
||||
submitOutStore(this.multipleSelection, this.basePartNum, this.materialNum, this.parchasePartNum, this.purchaseBillNum, this.groupNumValue, this.machineValue, this.outNumber, this.id, this.form3.password, this.form3.outTypeValue, this.pickingListNum, this.offlineNum).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('出库成功')
|
||||
this.dialogFormVisible3 = false
|
||||
searchListDetail(this.pickingListNum).then(res => {
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
if (res.data[i].离线采购件流水号 !== 0) {
|
||||
res.data[i].货位存量1 = res.data[i].货位存量
|
||||
}
|
||||
if (res.data[i].请购单明细流水号 !== 0 && res.data[i].请购单明细流水号 !== '' && res.data[i].请购单明细流水号 !== null) {
|
||||
res.data[i].货位存量1 = res.data[i].货位存量
|
||||
}
|
||||
}
|
||||
this.pickListTable2 = res.data
|
||||
})
|
||||
} else { this.$message.error('操作失败') }
|
||||
|
||||
Reference in New Issue
Block a user