|
@@ -313,7 +313,7 @@
|
|
|
<el-table-column align="center" label="税率" prop="taxRate" min-width="100" show-overflow-tooltip />
|
|
|
<el-table-column align="center" label="操作" width="100" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="deleteItem(scope.$index, scope.row.cid)">删除</el-button>
|
|
|
+ <el-button type="text" @click="deleteItem(scope.$index, scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -450,7 +450,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getEnginDetail, getRetailProductList, addEngin, editEngin, submitEngin } from '@/api/supply/engin'
|
|
|
+import { getEnginDetail, getRetailProductList, addEngin, editEngin, submitEngin, delItem } from '@/api/supply/engin'
|
|
|
import { getDictList, getTypeList, getSalesmanList, getDealerList } from '@/api/common'
|
|
|
|
|
|
export default {
|
|
@@ -852,11 +852,15 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 删除产品
|
|
|
- deleteItem(index, id) {
|
|
|
- if (this.listItem && this.examineStatus === 'OK' && id) {
|
|
|
- this.$errorMsg('已审核通过的型号不能删除')
|
|
|
- return
|
|
|
- }
|
|
|
+ deleteItem(index, row) {
|
|
|
+ // if (this.listItem && this.examineStatus === 'OK' && id) {
|
|
|
+ // this.$errorMsg('已审核通过的型号不能删除')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ delItem({
|
|
|
+ enginInfoNo: row.enginInfoNo,
|
|
|
+ itemId: row.id
|
|
|
+ })
|
|
|
this.goodsList.splice(index, 1)
|
|
|
},
|
|
|
|
|
@@ -960,6 +964,7 @@ export default {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
+
|
|
|
.main-title {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
@@ -968,24 +973,29 @@ export default {
|
|
|
height: 60px;
|
|
|
border-bottom: 1px solid #dcdfe6;
|
|
|
margin-bottom: 20px;
|
|
|
+
|
|
|
.title {
|
|
|
font-size: 16px;
|
|
|
font-weight: 600;
|
|
|
padding-left: 10px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.tables {
|
|
|
display: flex;
|
|
|
margin-top: 10px;
|
|
|
+
|
|
|
.table {
|
|
|
width: 45%;
|
|
|
}
|
|
|
+
|
|
|
.buttons {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
padding: 0 10px;
|
|
|
+
|
|
|
button {
|
|
|
margin: 0;
|
|
|
margin-top: 10px;
|
|
@@ -997,6 +1007,7 @@ export default {
|
|
|
::v-deep input::-webkit-inner-spin-button {
|
|
|
-webkit-appearance: none;
|
|
|
}
|
|
|
+
|
|
|
::v-deep input[type='number'] {
|
|
|
-moz-appearance: textfield;
|
|
|
}
|