This commit is contained in:
chenjianan
2019-05-21 20:13:19 +08:00
parent 8aded86549
commit bbbc1d04ee
4 changed files with 140 additions and 26 deletions

View File

@@ -46,6 +46,11 @@
<el-tag v-if="parseInt(scope.row.询价状态编号)!==1&&parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</el-tag>
</template>
</el-table-column>
<el-table-column label="任务分配时间" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.任务分配时间.split(' ')[0] }}
</template>
</el-table-column>
<el-table-column label="机床图号" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.机床图号 }}
@@ -96,11 +101,6 @@
{{ scope.row.待采购数量 = Number(scope.row.零件数量) - Number(scope.row.使用滞货数量) }}
</template>
</el-table-column>
<el-table-column label="计划到货时间" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.物料计划到货时间.split(' ')[0] }}
</template>
</el-table-column>
<el-table-column label="备注" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.备注 }}
@@ -192,6 +192,11 @@
{{ scope.row.供货商 }}
</template>
</el-table-column>
<el-table-column label="参考价格" min-width="150" align="center">
<template slot-scope="scope">
{{ scope.row.参考价格 }}
</template>
</el-table-column>
<el-table-column label="当前库存量" min-width="90" align="center">
<template slot-scope="scope">
{{ scope.row.当前库存量 }}
@@ -974,6 +979,9 @@ export default {
this.disable = true
searchMateriel(this.offlineContractNum).then(response => {
this.tableData3 = response.data
this.tableData3.map(v => {
!v.单价 ? v.单价 = v.参考价格 : v.单价
})
})
} else { this.$message.error('数据占用,删除失败') }
})
@@ -1041,7 +1049,11 @@ export default {
this.offlineContractNum = row.离线合同流水号
this.离线合同状态 = row.离线合同状态
searchMateriel(this.offlineContractNum).then(response => {
console.log(response.data)
this.tableData3 = response.data
this.tableData3.map(v => {
!v.单价 ? v.单价 = v.参考价格 : v.单价
})
})
Number(row.离线合同状态) !== 1 ? this.disable = true : this.disable = false // 是否为编辑模式
},
@@ -1083,6 +1095,9 @@ export default {
this.$message.success('选入成功')
searchMateriel(this.offlineContractNum).then(response => {
this.tableData3 = response.data
this.tableData3.map(v => {
!v.单价 ? v.单价 = v.参考价格 : v.单价
})
})
} else { this.$message.error('选入失败') }
})
@@ -1099,6 +1114,9 @@ export default {
this.$message.success('移除成功')
searchMateriel(this.offlineContractNum).then(response => {
this.tableData3 = response.data
this.tableData3.map(v => {
!v.单价 ? v.单价 = v.参考价格 : v.单价
})
})
} else { this.$message.error('移除失败') }
})
@@ -1135,6 +1153,9 @@ export default {
this.searchTable2()
searchMateriel(this.offlineContractNum).then(response => {
this.tableData3 = response.data
this.tableData3.map(v => {
!v.单价 ? v.单价 = v.参考价格 : v.单价
})
})
} else { this.$message.error('离线合同保存失败') }
})
@@ -1171,6 +1192,9 @@ export default {
this.searchTable2()
searchMateriel(this.offlineContractNum).then(response => {
this.tableData3 = response.data
this.tableData3.map(v => {
!v.单价 ? v.单价 = v.参考价格 : v.单价
})
this.disable = true // 是否为编辑模式
})
} else { this.$message.error('离线合同生成失败') }