This commit is contained in:
liushuai
2020-03-15 21:38:59 +08:00
parent 27b9331a9f
commit bacfef35cb
9 changed files with 48 additions and 44 deletions

View File

@@ -52,7 +52,7 @@
</el-table-column>
<el-table-column align="center" label="单价" width="100px">
<template slot-scope="scope">
<el-input v-model="scope.row.单价" size="mini" width="80px" align="center" readonly @change="update(scope.row)"/>
<el-input v-model="scope.row.单价" size="mini" width="80px" align="center" @change="update(scope.row)"/>
</template>
</el-table-column>
<el-table-column align="center" label="总额" width="70px">
@@ -132,6 +132,7 @@ export default {
for (let i = 0; i < response.data.rows.length; i++) {
this.tableData.push({
采购合同编号: response.data.rows[i].采购合同编号,
采购合同明细流水号: response.data.rows[i].采购合同明细流水号,
供应商名称: response.data.rows[i].供应商名称,
物料型号: response.data.rows[i].物料型号,
物料名称: response.data.rows[i].物料名称,
@@ -141,12 +142,12 @@ export default {
})
}
}
console.log(this.tableData)
console.log(response, 90)
this.total = response.data.total
})
},
update(row) {
console.log(row)
console.log(row, 12)
Preservation(row.采购合同明细流水号, row.单价).then(response => {
console.log(response, 1111)
if (response.data[0].result === '1') {