|
|
@ -80,6 +80,16 @@ |
|
|
|
<el-table-column prop="vehModel" label="车型" align="center" min-width="130"/> |
|
|
|
</el-table> |
|
|
|
<div class="title">新车主信息</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty">客户名称</div> |
|
|
|
<el-form-item> |
|
|
|
<el-select v-model="formobj.newCustomerSid" class="addinputInfo" filterable clearable placeholder="" @change="changeCustomer"> |
|
|
|
<el-option v-for="item in customer_list" :key="item.newCustomerSid" :label="item.vinOwner" :value="item.newCustomerSid"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">新车主名称</div> |
|
|
@ -147,7 +157,7 @@ |
|
|
|
<script> |
|
|
|
import req from '@/api/secondarysublet/secondarysublet' |
|
|
|
import uploadImg from '@/components/uploadFile/uploadImg' |
|
|
|
import { typeValues } from '@/api/Common/dictcommons' |
|
|
|
import { typeValues, pickCustomer } from '@/api/Common/dictcommons' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'SecondarySubletAdd', |
|
|
@ -163,6 +173,7 @@ export default { |
|
|
|
index: 0, |
|
|
|
customerType_list: [], |
|
|
|
certificateType_list: [], |
|
|
|
customer_list: [], |
|
|
|
formobj: { |
|
|
|
sid: '', |
|
|
|
userSid: '', |
|
|
@ -220,6 +231,11 @@ export default { |
|
|
|
this.certificateType_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
pickCustomer({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.customer_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
showAdd(row) { |
|
|
|
this.viewTitle = '【新增】交回车辆二次转租申请' |
|
|
@ -276,6 +292,28 @@ export default { |
|
|
|
handleDelete(index) { |
|
|
|
this.formobj.vinList.splice(index, 1) |
|
|
|
}, |
|
|
|
changeCustomer(value) { |
|
|
|
const choose = this.customer_list.filter((item) => item.newCustomerSid === value) |
|
|
|
if (choose.length > 0 && choose !== null) { |
|
|
|
this.formobj.vinOwner = choose[0].vinOwner |
|
|
|
this.formobj.customerType = choose[0].customerType |
|
|
|
this.formobj.customerTypeKey = choose[0].customerTypeKey |
|
|
|
this.formobj.phoneNum = choose[0].phoneNum |
|
|
|
this.formobj.endDate = choose[0].endDate |
|
|
|
this.formobj.idNumber = choose[0].idNumber |
|
|
|
this.formobj.certificateType = choose[0].certificateType |
|
|
|
this.formobj.certificateTypeKey = choose[0].certificateTypeKey |
|
|
|
} else { |
|
|
|
this.formobj.vinOwner = '' |
|
|
|
this.formobj.customerType = '' |
|
|
|
this.formobj.customerTypeKey = '' |
|
|
|
this.formobj.phoneNum = '' |
|
|
|
this.formobj.endDate = '' |
|
|
|
this.formobj.idNumber = '' |
|
|
|
this.formobj.certificateType = '' |
|
|
|
this.formobj.certificateTypeKey = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
saveOrUpdate() { |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|