fixed bug
This commit is contained in:
@@ -129,13 +129,13 @@
|
||||
</el-table-column>
|
||||
<el-table-column v-show="hasTax==='未税'" label="单价(未税)" align="center" width="120">
|
||||
<template slot-scope="scope">
|
||||
<el-input-number v-show="hasTax==='未税'" :min="0" v-model="scope.row.未税单价" controls-position="right" size="mini" style="width:100%" @focus="scope.row.未税单价=''" @change="priceChange(scope.row.未税单价, scope.row.物料流水号, scope.row.询价单流水号, scope.row)"/>
|
||||
<el-input-number v-show="hasTax==='未税'" :min="0" v-model="scope.row.未税单价" controls-position="right" size="mini" style="width:100%" @focus="scope.row.未税单价=''" @change="priceChange(scope.row.未税单价, scope.row.物料流水号, scope.row.询价单流水号, scope.row, scope.row.零件名称, scope.row.零件图号, scope.row.规格)"/>
|
||||
<b v-show="hasTax!=='未税'">—</b>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-show="hasTax==='含税'" label="单价(含税)" align="center" width="120">
|
||||
<template slot-scope="scope">
|
||||
<el-input-number v-show="hasTax==='含税'" :min="0" v-model="scope.row.含税单价" controls-position="right" size="mini" style="width:100%" @focus="scope.row.含税单价=''" @change="priceChange(scope.row.含税单价, scope.row.物料流水号, scope.row.询价单流水号, scope.row)"/>
|
||||
<el-input-number v-show="hasTax==='含税'" :min="0" v-model="scope.row.含税单价" controls-position="right" size="mini" style="width:100%" @focus="scope.row.含税单价=''" @change="priceChange(scope.row.含税单价, scope.row.物料流水号, scope.row.询价单流水号, scope.row, scope.row.零件名称, scope.row.零件图号, scope.row.规格)"/>
|
||||
<b v-show="hasTax!=='含税'">—</b>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -269,9 +269,9 @@ export default {
|
||||
}
|
||||
},
|
||||
// 价格实时保存
|
||||
priceChange(price, num1, num2, row) {
|
||||
priceChange(price, num1, num2, row, num3, num4, num5) {
|
||||
this.tableData1.map(v => {
|
||||
if (Number(v.物料流水号) === Number(row.物料流水号) && Number(v.询价单流水号) === Number(row.询价单流水号)) {
|
||||
if (Number(v.物料流水号) === Number(row.物料流水号) && Number(v.询价单流水号) === Number(row.询价单流水号) && Number(v.零件名称) === Number(row.零件名称) && Number(v.零件图号) === Number(row.零件图号) && Number(v.规格) === Number(row.规格)) {
|
||||
v.含税单价 = row.含税单价
|
||||
v.未税单价 = row.未税单价
|
||||
}
|
||||
@@ -280,7 +280,10 @@ export default {
|
||||
this.tableData1 = []
|
||||
this.tableData1 = group
|
||||
price = price || 0
|
||||
savePrice(price, num1, num2).then(res => {
|
||||
num3 = num3 || null
|
||||
num4 = num4 || null
|
||||
num5 = num5 || null
|
||||
savePrice(price, num1, num2, num3, num4, num5).then(res => {
|
||||
if (res.data[0].result === '1') {
|
||||
console.log('单价实时保存成功')
|
||||
} else {
|
||||
@@ -398,6 +401,8 @@ export default {
|
||||
this.tableData1.push({
|
||||
询价单流水号: response.data[i].询价单流水号,
|
||||
物料流水号: response.data[i].物料流水号,
|
||||
零件名称: response.data[i].零件名称,
|
||||
零件图号: response.data[i].零件图号,
|
||||
询价单明细流水号: response.data[i].询价单明细流水号,
|
||||
机床图号: response.data[i].机床图号 || response.data[i].基本件机床图号,
|
||||
组号: response.data[i].组号 || response.data[i].基本件组号,
|
||||
@@ -468,7 +473,7 @@ export default {
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 15%;">地址:</td>
|
||||
<td style="width: 35%;">盐城市开放大道666号</td>
|
||||
<td style="width: 35%;">盐城市通榆北路666号</td>
|
||||
<td style="width: 15%;">地址:</td>
|
||||
<td id="supplierAddress" style="width: 35%;"></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user