|
|
@ -11,7 +11,7 @@ |
|
|
|
<div class="titwu">车辆存放地点变更申请</div> |
|
|
|
<el-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules"> |
|
|
|
<el-row style="border-top: 1px solid #e0e3eb;"> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span>申请日期</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
@ -19,7 +19,7 @@ |
|
|
|
<span>{{ temp.applicantDate }}</span> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span>申请人</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
@ -29,7 +29,7 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span>现存放地点</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
@ -39,7 +39,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span>现存放地点负责人</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
@ -51,22 +51,10 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3"> |
|
|
|
<span><span class="icon">*</span>车架号</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item> |
|
|
|
<span>{{ temp.vinNo }}</span> |
|
|
|
<el-button size="small" type="primary" @click="selectVinNo" class="selectVinNoBtn">选择</el-button> |
|
|
|
<!-- <el-select v-model="temp.vinNo" placeholder="请选择" filterable clearable class="addinputw">--> |
|
|
|
<!-- <el-option v-for="item in vinNo_list" :key="item.vin" :label="item.vin" :value="item.vin"/>--> |
|
|
|
<!-- </el-select>--> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span>目标存放地点</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-col :span="21"> |
|
|
|
<el-form-item prop="targetLocation"> |
|
|
|
<el-select v-model="temp.targetLocation" placeholder="请选择" clearable class="addinputw" @change="targetLocationChange"> |
|
|
|
<el-option v-for="item in warehouwarehouse_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/> |
|
|
@ -75,55 +63,71 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span>变更原因</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="21"> |
|
|
|
<el-input v-model="temp.changeReason" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="temp.changeReason" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>经办人</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-input v-model="temp.operator" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
<el-form-item prop="operator"><el-input v-model="temp.operator" maxlength="125" placeholder="" class="addinputw" clearable/></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span>申请费用(元)</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-input v-model="temp.applicantFunds" maxlength="125" placeholder="" class="addinputw" clearable @keyup.native="temp.applicantFunds = oninput(temp.applicantFunds,2)"/> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="temp.applicantFunds" maxlength="125" placeholder="" class="addinputw" clearable @keyup.native="temp.applicantFunds = oninput(temp.applicantFunds,2)"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>保险状态</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item prop="InsuranceStateKey"> |
|
|
|
<el-form-item> |
|
|
|
<el-radio v-model="temp.InsuranceStateKey" label="0">否</el-radio> |
|
|
|
<el-radio v-model="temp.InsuranceStateKey" label="1">是</el-radio> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"> |
|
|
|
<span>临牌牌照号</span> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>是否需要临牌</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-input v-model="temp.temporaryCard" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row v-show="temp.InsuranceStateKey == '1'"> |
|
|
|
<el-col :span="3"> |
|
|
|
<span>保单</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="21"> |
|
|
|
<upload ref="uploadImg" v-model="imgList" :limit="1" bucket="map" :upload-data="{type:'0001'}"/> |
|
|
|
<el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-radio v-model="temp.proCardStateKey" label="0">否</el-radio> |
|
|
|
<el-radio v-model="temp.proCardStateKey" label="1">是</el-radio> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
<div class="title"> |
|
|
|
<div><span>车辆列表</span></div> |
|
|
|
<div><el-button size="mini" type="primary" icon="el-icon-plus" @click="selectVinNo" class="btntopblueline">选择</el-button></div> |
|
|
|
</div> |
|
|
|
<el-table :key="vinKey" :data="temp.vins" :index="index" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|
|
|
<el-table-column fixed prop="name" label="操作" width="100px" align="center" header-align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="mini" type="danger" @click="dataDelete(scope.$index)">删除 |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="车架号" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<!-- ======== 打开选择车架号 ======== --> |
|
|
@ -155,15 +159,16 @@ |
|
|
|
<span>{{ scope.row.vin }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" label="买断状态"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.settlementStatusValue }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<div class="pages"> |
|
|
|
<div class="tit"/> |
|
|
|
<!-- 翻页 --> |
|
|
|
<pagination |
|
|
|
v-show="vinNototal > 0" |
|
|
|
:limit.sync="vinNoList.size" |
|
|
|
:page.sync="vinNoList.current" |
|
|
|
:total="vinNototal" class="pagination" @pagination="getvinNoList"/> |
|
|
|
<pagination v-show="listvinNo.length > 0" :limit.sync="vinNoList.size" :page.sync="vinNoList.current" :total="vinNoList.total" class="pagination" @pagination="getvinNoList"/> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
@ -177,43 +182,26 @@ import { |
|
|
|
selectWarehouseByUserSid, |
|
|
|
submitCarTransfer |
|
|
|
} from '@/api/supplychain/cunfangdidianbiangeng' |
|
|
|
import Upload from '@/components/uploadFile/uploadImg.vue' |
|
|
|
import { getGressionUserList } from '@/api/cheliang/dictcommons' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'cunfangdidianbiangengEdit', |
|
|
|
components: { |
|
|
|
Upload |
|
|
|
Pagination |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
viewTitle: '', |
|
|
|
// --按钮菜单------- |
|
|
|
sid: '', |
|
|
|
datas: null, |
|
|
|
stateId: 0, |
|
|
|
FormLoading: false, |
|
|
|
listLoading: false, |
|
|
|
disabled: false, |
|
|
|
location_list: [], |
|
|
|
targetLocation_list: [], |
|
|
|
imgList: [], // 附件上传 |
|
|
|
vinNo_list: [], // 车架号 |
|
|
|
InsuranceState_list: [{ |
|
|
|
key: '0', |
|
|
|
value: '否' |
|
|
|
}, { |
|
|
|
key: '1', |
|
|
|
value: '是' |
|
|
|
}], |
|
|
|
warehouwarehouse_list: [], // 存放地点 |
|
|
|
staff_list: [], |
|
|
|
temp: { |
|
|
|
sid: '', |
|
|
|
// taskId: '', |
|
|
|
// procInsId: '', |
|
|
|
userSid: window.sessionStorage.getItem('userSid'), |
|
|
|
// applyId: '', |
|
|
|
userSid: '', |
|
|
|
applicantName: '', |
|
|
|
applicantDate: '', |
|
|
|
location: '', |
|
|
@ -230,21 +218,21 @@ export default { |
|
|
|
operator: '', |
|
|
|
InsuranceState: '', |
|
|
|
InsuranceStateKey: '', |
|
|
|
proCardState: '', |
|
|
|
proCardStateKey: '', |
|
|
|
temporaryCard: '', |
|
|
|
policyImage: [], |
|
|
|
instanceId: '', |
|
|
|
taskId: '' |
|
|
|
vins: [] |
|
|
|
}, // 添加和修改 |
|
|
|
dialogFormVisible: false, // 添加修改对话框状态 |
|
|
|
dialogFormShowVisible: false, // 查看对话框默认关闭状态 |
|
|
|
dialogStatus: '', // 对话框状态 |
|
|
|
vehiclePhoto: [], |
|
|
|
// 现车车架号列表 |
|
|
|
vinNoVisible: false, |
|
|
|
tableKey: 0, |
|
|
|
vinNototal: 1, |
|
|
|
vinKey: 1, |
|
|
|
index: 0, |
|
|
|
vinNoLoading: false, |
|
|
|
vinNoCount: 0, |
|
|
|
vinNoChoice: [], |
|
|
|
listvinNo: [], |
|
|
|
vinNoList: { |
|
|
@ -253,17 +241,16 @@ export default { |
|
|
|
params: { |
|
|
|
vin: '', |
|
|
|
warehouseSid: '', |
|
|
|
userSid: window.sessionStorage.getItem('userSid') |
|
|
|
} |
|
|
|
userSid: window.sessionStorage.getItem('userSid'), |
|
|
|
vins: [] |
|
|
|
}, |
|
|
|
total: 0 |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
// vinNo: [{ required: true, message: '车架号不能为空', trigger: 'change' }], |
|
|
|
operator: [{ required: true, message: '经办人不能为空', trigger: 'change' }], |
|
|
|
InsuranceStateKey: [{ required: true, message: '保险状态不能为空', trigger: 'blur' }], |
|
|
|
location: [{ required: true, message: '现存放地点不能为空', trigger: 'change' }], |
|
|
|
targetLocation: [{ required: true, message: '目标存放地点不能为空', trigger: 'change' }] |
|
|
|
} |
|
|
|
// ------------------------------------ |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
@ -320,25 +307,11 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getVin(sid) { |
|
|
|
const data = { |
|
|
|
warehouseSid: sid, |
|
|
|
userSid: window.sessionStorage.getItem('userSid') |
|
|
|
} |
|
|
|
getVinByWarehouseSid(data).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
this.vinNo_list = res.data |
|
|
|
this.listvinNo = res.data |
|
|
|
console.log('车架号', this.vinNo_list) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
locationChange(val) { |
|
|
|
const choosetItem = this.warehouwarehouse_list.filter((item) => item.dictValue === val) |
|
|
|
this.temp.locationKey = choosetItem[0].dictKey |
|
|
|
this.temp.locationSid = choosetItem[0].sid |
|
|
|
this.vinNoList.params.warehouseSid = this.temp.locationSid |
|
|
|
// this.getVin(this.temp.locationSid) |
|
|
|
console.log('name:', this.temp.location, 'key:', this.temp.locationKey, 'sid:', this.temp.locationSid) |
|
|
|
}, |
|
|
|
staffNameChange(val) { |
|
|
@ -352,7 +325,26 @@ export default { |
|
|
|
this.temp.targetLocationSid = choosetItem[0].sid |
|
|
|
console.log('name:', this.temp.targetLocation, 'key:', this.temp.targetLocationKey, 'sid:', this.temp.targetLocationSid) |
|
|
|
}, |
|
|
|
showEdit(sid, instanceId, taskId) { |
|
|
|
showAdd() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['dataForm'].clearValidate() |
|
|
|
}) |
|
|
|
this.dialogStatus = 'add' |
|
|
|
this.viewTitle = '【新增】车辆存放地点变更申请' |
|
|
|
this.temp.applicantName = window.sessionStorage.getItem('name') |
|
|
|
this.temp.userSid = window.sessionStorage.getItem('userSid') |
|
|
|
var nowDate = new Date() |
|
|
|
var date = { |
|
|
|
year: nowDate.getFullYear(), |
|
|
|
month: nowDate.getMonth() + 1, |
|
|
|
day: nowDate.getDate() |
|
|
|
} |
|
|
|
var dayDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day) |
|
|
|
this.temp.applicantDate = dayDate |
|
|
|
this.getType() |
|
|
|
this.getUser() |
|
|
|
}, |
|
|
|
showEdit(sid) { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['dataForm'].clearValidate() |
|
|
|
}) |
|
|
@ -366,18 +358,8 @@ export default { |
|
|
|
getCarTransferInfo(data).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.temp = res.data |
|
|
|
this.temp.instanceId = instanceId |
|
|
|
this.temp.taskId = taskId |
|
|
|
this.temp.instanceId = res.data.procInstId |
|
|
|
this.vinNoList.params.warehouseSid = this.temp.locationSid |
|
|
|
if (this.temp.policyImage.length > 0) { |
|
|
|
for (var i = 0; i < this.temp.policyImage.length; i++) { |
|
|
|
const imgName = this.temp.policyImage[i].split('/') |
|
|
|
this.imgList.push({ |
|
|
|
name: imgName[imgName.length - 1], |
|
|
|
url: this.temp.policyImage[i] |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
this.getType() |
|
|
@ -402,136 +384,69 @@ export default { |
|
|
|
// 查询 |
|
|
|
handlevinNo() { |
|
|
|
this.vinNoList.current = 1 |
|
|
|
this.vinNoList.params.vins = this.temp.vins |
|
|
|
this.getvinNoList() |
|
|
|
}, |
|
|
|
// 请求车架号列表接口 |
|
|
|
getvinNoList() { |
|
|
|
const _this = this |
|
|
|
this.vinNoLoading = true |
|
|
|
getVinByWarehouseSid(this.vinNoList) |
|
|
|
.then(resp => { |
|
|
|
_this.vinNoLoading = false |
|
|
|
const data = resp.data |
|
|
|
_this.vinNototal = data.total |
|
|
|
_this.listvinNo = data.records |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
_this.vinNoLoading = false |
|
|
|
}) |
|
|
|
getVinByWarehouseSid(this.vinNoList).then(resp => { |
|
|
|
this.vinNoLoading = false |
|
|
|
const data = resp.data |
|
|
|
this.vinNoList.total = data.total |
|
|
|
this.listvinNo = data.records |
|
|
|
}).catch(() => { |
|
|
|
this.vinNoLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 勾选数据 |
|
|
|
handleSelectionvinNo(row) { |
|
|
|
this.vinNoChoice = row |
|
|
|
if (this.vinNoChoice.length > 1) { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '仅可选择一个车架号!', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
const aa = [] |
|
|
|
row.forEach((element) => { |
|
|
|
aa.push(element.vin) |
|
|
|
}) |
|
|
|
this.vinNoChoice = aa |
|
|
|
}, |
|
|
|
// 确认选择车架号 |
|
|
|
selectionvinNo() { |
|
|
|
if (this.vinNoChoice.length > 1) { |
|
|
|
if (this.vinNoChoice.length === 0) { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '仅可选择一个车架号!', |
|
|
|
message: '请至少选择一条记录!', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.vinNoChoice.length > 0) { |
|
|
|
this.temp.vinNo = this.vinNoChoice[0].vin |
|
|
|
this.vinNoVisible = false |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '请选择选择一个车架号!', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
this.temp.vins = this.vinNoChoice |
|
|
|
this.vinNoVisible = false |
|
|
|
} |
|
|
|
// this.$refs.multipleTable.clearSelection(); |
|
|
|
}, |
|
|
|
|
|
|
|
// 现车序号 |
|
|
|
vinNoindexMethod(index) { |
|
|
|
var pagestart = (this.vinNoList.current - 1) * this.vinNoList.size |
|
|
|
var pageindex = index + 1 + pagestart |
|
|
|
return pageindex |
|
|
|
}, |
|
|
|
getUrl() { |
|
|
|
if (this.temp.InsuranceStateKey == '1') { |
|
|
|
if (this.imgList.length > 0) { |
|
|
|
console.log('保存imgList', this.imgList) |
|
|
|
const img_list = [] |
|
|
|
for (var i = 0; i < this.imgList.length; i++) { |
|
|
|
img_list.push(this.imgList[i].url) |
|
|
|
this.temp.policyImage = img_list |
|
|
|
console.log('保存img_list', img_list) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.temp.policyImage = [] |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.temp.policyImage = [] |
|
|
|
} |
|
|
|
dataDelete(index) { |
|
|
|
this.temp.vins.splice(index, 1) |
|
|
|
}, |
|
|
|
// ----------------------------------方法-------------------- |
|
|
|
// 返回 |
|
|
|
handleReturn(isreload) { |
|
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
|
this.temp = { |
|
|
|
sid: '', |
|
|
|
// taskId: '', |
|
|
|
// procInsId: '', |
|
|
|
userSid: window.sessionStorage.getItem('userSid'), |
|
|
|
// applyId: '', |
|
|
|
applicantName: '', |
|
|
|
applicantDate: '', |
|
|
|
location: '', |
|
|
|
locationKey: '', |
|
|
|
locationSid: '', |
|
|
|
vinNo: '', |
|
|
|
targetLocation: '', |
|
|
|
targetLocationKey: '', |
|
|
|
targetLocationSid: '', |
|
|
|
changeReason: '', |
|
|
|
applicantFunds: '', |
|
|
|
operator: '', |
|
|
|
InsuranceState: '', |
|
|
|
InsuranceStateKey: '', |
|
|
|
temporaryCard: '', |
|
|
|
policyImage: [], |
|
|
|
instanceId: '', |
|
|
|
taskId: '' |
|
|
|
} |
|
|
|
this.imgList = [] |
|
|
|
this.vinNo_list = [] |
|
|
|
this.$emit('doback') |
|
|
|
}, |
|
|
|
// 提交添加数据 |
|
|
|
handleCreate() { |
|
|
|
if (this.temp.vinNo == '') { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '车架号不能为空!', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.temp.applicantFunds == '') { |
|
|
|
if (this.temp.applicantFunds === '') { |
|
|
|
this.temp.applicantFunds = '0' |
|
|
|
} |
|
|
|
if (this.temp.InsuranceStateKey == '0') { |
|
|
|
if (this.temp.InsuranceStateKey === '0') { |
|
|
|
this.temp.InsuranceState = '否' |
|
|
|
this.temp.policyImage = [] |
|
|
|
this.imgList = [] |
|
|
|
} |
|
|
|
if (this.temp.InsuranceStateKey == '1') { |
|
|
|
if (this.temp.InsuranceStateKey === '1') { |
|
|
|
this.temp.InsuranceState = '是' |
|
|
|
} |
|
|
|
this.getUrl() |
|
|
|
if (this.temp.proCardStateKey === '0') { |
|
|
|
this.temp.proCardState = '否' |
|
|
|
} |
|
|
|
if (this.temp.proCardStateKey === '1') { |
|
|
|
this.temp.proCardState = '是' |
|
|
|
} |
|
|
|
this.$refs['dataForm'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.FormLoading = true |
|
|
@ -540,6 +455,7 @@ export default { |
|
|
|
this.FormLoading = false |
|
|
|
if (response.code === '200') { |
|
|
|
this.dialogFormVisible = false |
|
|
|
// 子页面向父级页面传递值(关闭弹框) |
|
|
|
window.parent.postMessage({ |
|
|
|
cmd: 'returnHeight', |
|
|
|
params: { |
|
|
@ -547,38 +463,35 @@ export default { |
|
|
|
code: 1 |
|
|
|
} |
|
|
|
}, '*') |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '保存失败!', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleSubmit() { |
|
|
|
if (this.temp.vinNo == '') { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '车架号不能为空!', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
if (this.temp.proCardStateKey === '' || this.temp.proCardStateKey === null) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请检查是否需要临牌需选择是或否' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.temp.InsuranceStateKey === '' || this.temp.InsuranceStateKey === null) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请检查保险状态需选择是或否' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.temp.applicantFunds == '') { |
|
|
|
if (this.temp.applicantFunds === '') { |
|
|
|
this.temp.applicantFunds = '0' |
|
|
|
} |
|
|
|
if (this.temp.InsuranceStateKey == '0') { |
|
|
|
if (this.temp.InsuranceStateKey === '0') { |
|
|
|
this.temp.InsuranceState = '否' |
|
|
|
this.temp.policyImage = [] |
|
|
|
this.imgList = [] |
|
|
|
} |
|
|
|
if (this.temp.InsuranceStateKey == '1') { |
|
|
|
if (this.temp.InsuranceStateKey === '1') { |
|
|
|
this.temp.InsuranceState = '是' |
|
|
|
} |
|
|
|
this.getUrl() |
|
|
|
if (this.temp.proCardStateKey === '0') { |
|
|
|
this.temp.proCardState = '否' |
|
|
|
} |
|
|
|
if (this.temp.proCardStateKey === '1') { |
|
|
|
this.temp.proCardState = '是' |
|
|
|
} |
|
|
|
this.$refs['dataForm'].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
// this.submitdisabled = true |
|
|
@ -590,6 +503,7 @@ export default { |
|
|
|
submitCarTransfer(this.temp).then(resp => { |
|
|
|
// this.submitdisabled = false |
|
|
|
if (resp.success) { |
|
|
|
// 子页面向父级页面传递值(关闭弹框) |
|
|
|
window.parent.postMessage({ |
|
|
|
cmd: 'returnHeight', |
|
|
|
params: { |
|
|
@ -612,27 +526,18 @@ export default { |
|
|
|
</script> |
|
|
|
|
|
|
|
<style scoped> |
|
|
|
/deep/ .el-col-3 { |
|
|
|
text-align: right; |
|
|
|
float: left; |
|
|
|
font-size: 14px; |
|
|
|
color: #606266; |
|
|
|
line-height: 40px !important; |
|
|
|
font-weight: 600; |
|
|
|
} |
|
|
|
.titwu{ |
|
|
|
font-size: 28px; |
|
|
|
text-align: center; |
|
|
|
padding: 30px 0 20px 0; |
|
|
|
} |
|
|
|
|
|
|
|
.selectVinNoBtn { |
|
|
|
display: inline-block; |
|
|
|
position: absolute; |
|
|
|
top: 5px; |
|
|
|
right: 5px; |
|
|
|
.title { |
|
|
|
padding: 7px; |
|
|
|
display: flex; |
|
|
|
flex-direction: row; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
|
|
|
|
.vinNoBtn { |
|
|
|
float: right; |
|
|
|
} |
|
|
|