|
@@ -313,7 +313,7 @@
|
|
<el-table-column align="center" label="税率" prop="taxRate" min-width="100" show-overflow-tooltip />
|
|
<el-table-column align="center" label="税率" prop="taxRate" min-width="100" show-overflow-tooltip />
|
|
<el-table-column align="center" label="操作" width="100" fixed="right">
|
|
<el-table-column align="center" label="操作" width="100" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button type="text" @click="deleteItem(scope.$index, scope.row)">删除</el-button>
|
|
|
|
|
|
+ <el-button type="text" @click="deleteItem(scope.$index, scope.row,scope.row.cid)">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -852,17 +852,21 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
// 删除产品
|
|
// 删除产品
|
|
- deleteItem(index, row) {
|
|
|
|
|
|
+ deleteItem(index, row, id) {
|
|
// if (this.listItem && this.examineStatus === 'OK' && id) {
|
|
// if (this.listItem && this.examineStatus === 'OK' && id) {
|
|
// this.$errorMsg('已审核通过的型号不能删除')
|
|
// this.$errorMsg('已审核通过的型号不能删除')
|
|
// return
|
|
// return
|
|
// }
|
|
// }
|
|
- delItem({
|
|
|
|
- enginInfoNo: row.enginInfoNo,
|
|
|
|
- itemId: row.id
|
|
|
|
- }).then(res =>{
|
|
|
|
|
|
+ if (id) {
|
|
|
|
+ delItem({
|
|
|
|
+ enginInfoNo: row.enginInfoNo,
|
|
|
|
+ itemId: row.id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.goodsList.splice(index, 1)
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
this.goodsList.splice(index, 1)
|
|
this.goodsList.splice(index, 1)
|
|
- })
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
// 导入产品
|
|
// 导入产品
|