|
|
@ -71,7 +71,7 @@ |
|
|
|
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/> |
|
|
|
<el-table-column fixed label="操作" width="80" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="small" v-if="scope.row.vehType !== '主车'" type="danger" @click="handleDelete(scope.$index)">删除</el-button> |
|
|
|
<el-button size="small" type="danger" @click="handleDelete(scope.$index)">删除</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="vinNo" label="车架号" align="center" min-width="100" /> |
|
|
@ -334,6 +334,10 @@ export default { |
|
|
|
submit() { |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
if (this.formobj.vinList.length === 0) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '二次销售车辆列表不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.submitdisabled = true |
|
|
|
req.submit(this.formobj).then((res) => { |
|
|
|
if (res.success) { |
|
|
|