This commit is contained in:
liushuai
2020-03-15 16:01:54 +08:00
parent 7e162bd0ab
commit 27b9331a9f
3 changed files with 29 additions and 13 deletions

View File

@@ -184,7 +184,7 @@
</el-table-column>
<el-table-column label="库存(BZ)" align="center" width="80" prop="库存">
<template slot-scope="scope">
{{ scope.row.库存 }}
{{ scope.row.货位存量 - scope.row.占用数量 }}
</template>
</el-table-column>
<el-table-column label="使用库存数量" align="center" width="145" prop="使用库存数">
@@ -254,8 +254,10 @@
<div style="display: inline-block; float: left">
<el-tooltip :open-delay="1000" effect="dark" content="为选择的询价单添加物料" placement="top">
<el-button
type="distribution"
type="primary"
size="small"
plain
icon="el-icon-bottom"
style="margin: 0px 20px; display: inline-block;"
@click="addInquirySheet">选入物料</el-button>
</el-tooltip>
@@ -1380,7 +1382,7 @@ export default {
changeNumber(row) {
changeNum(row.物料流水号, row.使用库存数, row.机床流水号, row.组件零件流水号, row.零件数量).then(response => {
if (response.data[0].result === '1') {
this.$message.success('使用成功')
// this.$message.success('使用成功')
this.searchTable11()
} else {
this.$message.success('使用失败')
@@ -2253,6 +2255,7 @@ export default {
}
},
addInquirySheet() { // 追加物料
this.numbers = []
const numGroup1 = [] // 空数组,放该询价单中已有的组件零件流水号
const numGroup2 = [] // 空数组,放该询价单中已有的组件零件基本件流水号
if (this.inquirySheetFlowNum === '' || this.inquirySheetFlowNum === null) {
@@ -2441,11 +2444,15 @@ export default {
},
tableRowClassName({ row, rowIndex }) {
let color = ''
this.numbers.forEach((r, i) => {
if (rowIndex === r) {
color = 'MistyRose'
}
})
if (this.numbers.length > 0) {
this.numbers.forEach((r, i) => {
if (rowIndex === r) {
color = 'MistyRose'
}
})
} else {
color = ''
}
return color
},
tableRowClassName2({ row, rowIndex }) {