lx inventory inboundscanning
This commit is contained in:
@@ -103,8 +103,8 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" min-width="200">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="small" type="primary" icon="el-icon-edit" style="margin: 0 0 10px 10px" @click="editListDetailx(scope.row)">编辑</el-button>
|
||||
<el-button size="small" type="danger" icon="el-icon-delete" style="margin: 0 0 10px 10px" @click="dropListdetail(scope.row)">删除</el-button>
|
||||
<el-button :disabled="scope.row.是否出库" size="small" type="primary" icon="el-icon-edit" style="margin: 0 0 10px 10px" @click="editListDetailx(scope.row)">编辑</el-button>
|
||||
<el-button :disabled="scope.row.是否出库" size="small" type="danger" icon="el-icon-delete" style="margin: 0 0 10px 10px" @click="dropListdetail(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -558,7 +558,8 @@ export default {
|
||||
time: [],
|
||||
materialLocate: '',
|
||||
enableOut: '',
|
||||
pickingListNumber_check: 1
|
||||
pickingListNumber_check: 1,
|
||||
outNumber: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -700,8 +701,11 @@ export default {
|
||||
searchListDetailt() {
|
||||
this.listLoading3 = true
|
||||
searchListDetail(this.pickingListNumberx).then(response => {
|
||||
console.log(response)
|
||||
this.tableDataPicking = response.data
|
||||
const data = response.data
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
data[i].是否出库 === '1' ? data[i].是否禁用 = true : data[i].是否禁用 = false
|
||||
}
|
||||
this.tableDataPicking = data
|
||||
this.listLoading3 = false
|
||||
})
|
||||
},
|
||||
@@ -807,6 +811,7 @@ export default {
|
||||
})
|
||||
this.dialogFormVisible1 = false
|
||||
this.searchListinfor()
|
||||
this.searchListDetailt()
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -854,6 +859,7 @@ export default {
|
||||
})
|
||||
this.dialogFormVisible = false
|
||||
this.searchListinfor()
|
||||
this.searchListDetailt()
|
||||
}
|
||||
},
|
||||
// 增加车间采购领料单明细
|
||||
@@ -898,22 +904,30 @@ export default {
|
||||
})
|
||||
this.dialogFormVisibleWork = false
|
||||
this.searchListinfor()
|
||||
this.searchListDetailt()
|
||||
},
|
||||
// 修改领料单明细
|
||||
editListDetailx(row) {
|
||||
this.dialogFormVisible2 = true
|
||||
this.pickingListDetail = row.领料单明细流水号
|
||||
this.form4.OutNumber = row.出库数量
|
||||
this.outNumber = row.出库数量
|
||||
this.form4.outNote = row.备注
|
||||
},
|
||||
submitChannge() {
|
||||
editListDetail(this.pickingListDetail, this.form4.OutNumber, this.form4.outNote).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('修改成功')
|
||||
} else {
|
||||
this.$message.error('修改失败')
|
||||
}
|
||||
})
|
||||
this.dialogFormVisible2 = false
|
||||
this.searchListDetailt()
|
||||
if (this.form4.OutNumber > this.outNumber) {
|
||||
this.$message.error('修改数量须小于领用数量')
|
||||
} else {
|
||||
editListDetail(this.pickingListDetail, this.form4.OutNumber, this.form4.outNote).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('修改成功')
|
||||
} else {
|
||||
this.$message.error('修改失败')
|
||||
}
|
||||
})
|
||||
this.dialogFormVisible2 = false
|
||||
this.searchListDetailt()
|
||||
}
|
||||
},
|
||||
// 重置表单
|
||||
callOff() {
|
||||
|
||||
Reference in New Issue
Block a user