|
|
@ -80,8 +80,13 @@ |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty spanOneWidth"><span>车架号</span></div> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="formobj.vinNo" placeholder="更多配置" class="addinputw" style="margin-left: 120px !important; width: 80% !important; " clearable/> |
|
|
|
<el-button type="primary" style="margin-left: 15px" @click="handleSelect">选择</el-button> |
|
|
|
<div style="margin-left: 120px !important;"> |
|
|
|
<div class="linkNoSty" v-for="(item,index) in formobj.vinNoList"> |
|
|
|
<span>{{ item }}</span> |
|
|
|
<el-button type="danger" style="margin-left: 5px" icon="el-icon-close" circle size="mini" @click="handledel(index)"></el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-button type="primary" class="btnSelect" @click="handleSelect">选择</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -126,7 +131,6 @@ export default { |
|
|
|
taskId: '', |
|
|
|
useTypeKey: '', |
|
|
|
useTypeValue: '', |
|
|
|
vinNo: '', |
|
|
|
vinNoList: [] |
|
|
|
}, |
|
|
|
rules: {}, |
|
|
@ -197,7 +201,6 @@ export default { |
|
|
|
this.formobj.instanceId = resp.data.procInstId |
|
|
|
if (this.formobj.isVeh === 1) { |
|
|
|
this.checked = true |
|
|
|
this.formobj.vinNo = this.formobj.vinNoList.join(',') |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch((e) => { |
|
|
@ -245,6 +248,9 @@ export default { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divSelect'].showData(this.formobj.vinNoList) |
|
|
|
}, |
|
|
|
handledel(index) { |
|
|
|
this.formobj.vinNoList.splice(index, 1) |
|
|
|
}, |
|
|
|
// 选择车架号(勾选确定后返回的数据) |
|
|
|
backData(value) { |
|
|
|
this.viewState = 1 |
|
|
@ -253,7 +259,6 @@ export default { |
|
|
|
this.formobj.vinNoList.push(e) |
|
|
|
}) |
|
|
|
} |
|
|
|
this.formobj.vinNo = this.formobj.vinNoList.join(',') |
|
|
|
}, |
|
|
|
saveOrUpdate() { |
|
|
|
if (!this.checked) { |
|
|
@ -330,7 +335,6 @@ export default { |
|
|
|
taskId: '', |
|
|
|
useTypeKey: '', |
|
|
|
useTypeValue: '', |
|
|
|
vinNo: '', |
|
|
|
vinNoList: [] |
|
|
|
} |
|
|
|
this.checked = false |
|
|
@ -358,10 +362,6 @@ export default { |
|
|
|
margin-left: 120px !important; |
|
|
|
width: 30% !important; |
|
|
|
} |
|
|
|
.icon { |
|
|
|
color: #e84026; |
|
|
|
margin-right: 4px; |
|
|
|
} |
|
|
|
/deep/ .el-form-item__error { |
|
|
|
margin-left: 120px; |
|
|
|
} |
|
|
@ -374,7 +374,14 @@ export default { |
|
|
|
color: #ffffff; |
|
|
|
border: 1px solid #e0e3eb; |
|
|
|
} |
|
|
|
.btn_style { |
|
|
|
color: #FFFFFF; |
|
|
|
.linkNoSty { |
|
|
|
display: inline-block; |
|
|
|
padding-right: 10px; |
|
|
|
} |
|
|
|
.btnSelect { |
|
|
|
display: inline-block; |
|
|
|
position: absolute; |
|
|
|
top: 5px; |
|
|
|
right: 5px; |
|
|
|
} |
|
|
|
</style> |
|
|
|