|
@ -1,6 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="app-container"> |
|
|
<div class="app-container"> |
|
|
<div v-show="visible"> |
|
|
<div v-show="viewState == 1"> |
|
|
<div class="tab-header webtop"> |
|
|
<div class="tab-header webtop"> |
|
|
<div v-if="stateId === '0'">【新增】车辆需求</div> |
|
|
<div v-if="stateId === '0'">【新增】车辆需求</div> |
|
|
<div v-else>【修改】车辆需求</div> |
|
|
<div v-else>【修改】车辆需求</div> |
|
@ -13,7 +13,7 @@ |
|
|
<el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" style="height:100%" class="formadd" :rules="rules"> |
|
|
<el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" style="height:100%" class="formadd" :rules="rules"> |
|
|
<div class="title" style="height:40px">车辆需求</div> |
|
|
<div class="title" style="height:40px">车辆需求</div> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="el-form-item-right"> 购车方式 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 购车方式</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item prop="purchaseMethodValue"> |
|
|
<el-form-item prop="purchaseMethodValue"> |
|
|
<el-checkbox-group v-if="aseType.length > 0" v-model="aseTypeBox" @change="getGouche"> |
|
|
<el-checkbox-group v-if="aseType.length > 0" v-model="aseTypeBox" @change="getGouche"> |
|
@ -21,7 +21,7 @@ |
|
|
</el-checkbox-group> |
|
|
</el-checkbox-group> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 品牌 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 品牌</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-select v-model="temp.brandSid" style="width:50%" placeholder="请选择" @change="changePinPai"> |
|
|
<el-select v-model="temp.brandSid" style="width:50%" placeholder="请选择" @change="changePinPai"> |
|
@ -31,12 +31,42 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="el-form-item-right"> 车型 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 车型</el-col> |
|
|
<el-col :span="20"> |
|
|
<el-col :span="20"> |
|
|
<el-form-item prop="modelName"> |
|
|
<el-form-item prop="modelName"> |
|
|
<el-select v-model="temp.modelName" placeholder="请选择" @change="getName" style="width:19%"> |
|
|
<!-- <el-select v-model="temp.modelName" placeholder="请选择" @change="getName" style="width:19%">--> |
|
|
<el-option v-for="(item, index) in figuration" :key="index" :label="item.modelName" :value="item.sid"/> |
|
|
<!-- <el-option v-for="(item, index) in figuration" :key="index" :label="item.modelName" :value="item.sid"/>--> |
|
|
</el-select> |
|
|
<!-- </el-select>--> |
|
|
|
|
|
<div class="vehicle"> |
|
|
|
|
|
<span>{{ temp.modelName }}</span> |
|
|
|
|
|
<div> |
|
|
|
|
|
<el-button type="primary" size="small" @click="handSelect">车型选择</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="4" class="el-form-item-right"> 车型常用配置</el-col> |
|
|
|
|
|
<el-col :span="20"> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
{{ temp.sketChconfiguration }} |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="4" class="el-form-item-right"> 其他配置说明</el-col> |
|
|
|
|
|
<el-col :span="20"> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
{{ temp.otherConfig }} |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="4" class="el-form-item-right"> 换、选装内容</el-col> |
|
|
|
|
|
<el-col :span="20"> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<el-input v-model="temp.changeOptions" placeholder="" style="width:81%" clearable/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
@ -47,7 +77,7 @@ |
|
|
<el-input v-model="temp.saleReferencePrice" maxlength="20" placeholder="" style="width:50%" clearable/> |
|
|
<el-input v-model="temp.saleReferencePrice" maxlength="20" placeholder="" style="width:50%" clearable/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 车型报价 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right">车型报价</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item prop="vehicleModelOffer"> |
|
|
<el-form-item prop="vehicleModelOffer"> |
|
|
<el-input v-model="temp.vehicleModelOffer" maxlength="20" placeholder="" style="width:50%" clearable/> |
|
|
<el-input v-model="temp.vehicleModelOffer" maxlength="20" placeholder="" style="width:50%" clearable/> |
|
@ -55,13 +85,13 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="el-form-item-right"> 数量 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right">数量</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item prop="number"> |
|
|
<el-form-item prop="number"> |
|
|
<el-input v-model="temp.number" maxlength="20" placeholder="" style="width:50%" clearable/> |
|
|
<el-input v-model="temp.number" maxlength="20" placeholder="" style="width:50%" clearable/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 预提车日期 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right">预提车日期</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item prop="estimatedPickupDate"> |
|
|
<el-form-item prop="estimatedPickupDate"> |
|
|
<el-date-picker v-model="temp.estimatedPickupDate" type="date" format="yyyy-MM-dd" style="width:50%" value-format="yyyy-MM-dd" placeholder="请选择"/> |
|
|
<el-date-picker v-model="temp.estimatedPickupDate" type="date" format="yyyy-MM-dd" style="width:50%" value-format="yyyy-MM-dd" placeholder="请选择"/> |
|
@ -69,14 +99,13 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="el-form-item-right"> 备注 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 备注</el-col> |
|
|
<el-col :span="20"> |
|
|
<el-col :span="20"> |
|
|
<el-form-item prop="remarks"> |
|
|
<el-form-item prop="remarks"> |
|
|
<el-input v-model="temp.remarks" maxlength="13" placeholder="" style="width:81%" clearable/> |
|
|
<el-input v-model="temp.remarks" maxlength="13" placeholder="" style="width:81%" clearable/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<div v-if="this.ifdictKey"> |
|
|
<div v-if="this.ifdictKey"> |
|
|
<div class="title" style="40px">金融需求</div> |
|
|
<div class="title" style="40px">金融需求</div> |
|
|
<el-form ref="dataForm" :model="crmFindemandVo_copy" label-position="right" label-width="190px" :rules="rules"> |
|
|
<el-form ref="dataForm" :model="crmFindemandVo_copy" label-position="right" label-width="190px" :rules="rules"> |
|
@ -93,17 +122,17 @@ |
|
|
</el-checkbox-group> |
|
|
</el-checkbox-group> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 资方 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 资方</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-select v-model="crmFindemandVo_copy.managementName" placeholder="请选择" style="width:50%"> |
|
|
<el-select v-model="crmFindemandVo_copy.managementName" placeholder="请选择" style="width:50%"> |
|
|
<el-option v-for="(item, index) in supplier" :key="index" :label="item.manageName" :value="item.manageName"/> |
|
|
<el-option v-for="(item, index) in supplier" :key="index" :label="item.manageName" :value="item.manageName"/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="el-form-item-right"> 是否打包 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 是否打包</el-col> |
|
|
<el-col :span="20"> |
|
|
<el-col :span="20"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-radio v-model="crmFindemandVo_copy.isnoPackaging" label="是">是</el-radio> |
|
|
<el-radio v-model="crmFindemandVo_copy.isnoPackaging" label="是">是</el-radio> |
|
@ -112,7 +141,7 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="el-form-item-right"> 首付比例 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 首付比例</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item prop="downpayment"> |
|
|
<el-form-item prop="downpayment"> |
|
|
<el-input v-model="crmFindemandVo_copy.downpayment" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/> |
|
|
<el-input v-model="crmFindemandVo_copy.downpayment" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/> |
|
@ -123,18 +152,18 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item prop="marginLevel"> |
|
|
<el-form-item prop="marginLevel"> |
|
|
<el-input v-model="crmFindemandVo_copy.marginLevel" maxlength="5" style="width:50%" placeholder="" class="addinputw" clearable/> |
|
|
<el-input v-model="crmFindemandVo_copy.marginLevel" maxlength="5" style="width:50%" placeholder="" class="addinputw" clearable/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="el-form-item-right"> 贷款期数 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 贷款期数</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item prop="loanStageNumber"> |
|
|
<el-form-item prop="loanStageNumber"> |
|
|
<el-input v-model="crmFindemandVo_copy.loanStageNumber" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/> |
|
|
<el-input v-model="crmFindemandVo_copy.loanStageNumber" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 月还金额 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 月还金额</el-col> |
|
|
<el-col :span="8"> |
|
|
<el-col :span="8"> |
|
|
<el-form-item prop="acceptMonthAmount"> |
|
|
<el-form-item prop="acceptMonthAmount"> |
|
|
<el-input v-model="crmFindemandVo_copy.acceptMonthAmount" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/> |
|
|
<el-input v-model="crmFindemandVo_copy.acceptMonthAmount" maxlength="5" placeholder="" style="width:50%" class="addinputw" clearable/> |
|
@ -142,7 +171,7 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="4" class="el-form-item-right"> 备注 </el-col> |
|
|
<el-col :span="4" class="el-form-item-right"> 备注</el-col> |
|
|
<el-col :span="20"> |
|
|
<el-col :span="20"> |
|
|
<el-form-item prop=""> |
|
|
<el-form-item prop=""> |
|
|
<el-input v-model="crmFindemandVo_copy.remarks" maxlength="5" placeholder="" style="width:81%" class="addinputw" clearable/> |
|
|
<el-input v-model="crmFindemandVo_copy.remarks" maxlength="5" placeholder="" style="width:81%" class="addinputw" clearable/> |
|
@ -154,214 +183,208 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<models-to-choose v-show="viewState ==2" ref="divSelect" @handleReturn="resetState" @handleReturnSelect="handleReturnSelect"/> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { mapGetters } from "vuex"; |
|
|
import { typeValues } from '@/api/dictcommons/shujuzidian' |
|
|
import { typeValues } from "@/api/dictcommons/shujuzidian"; |
|
|
|
|
|
import { |
|
|
import { |
|
|
getNamesDown, |
|
|
getNamesDown, |
|
|
getNamesDownBySid, |
|
|
getNamesDownBySid, |
|
|
getNamesDownlist, |
|
|
getNamesDownlist, |
|
|
getPinpai, |
|
|
getPinpai |
|
|
} from "@/api/dictcommons/basemanufacturer"; |
|
|
} from '@/api/dictcommons/basemanufacturer' |
|
|
import { |
|
|
import { |
|
|
loginDetails, |
|
|
loginDetails, |
|
|
getSelectDown, |
|
|
getSelectDown |
|
|
} from "@/api/dictcommons/basemanufacturer"; |
|
|
} from '@/api/dictcommons/basemanufacturer' |
|
|
import { getStorage } from "@/utils/auth"; |
|
|
import { getStorage } from '@/utils/auth' |
|
|
// import jsCookie from 'js-cookie' |
|
|
|
|
|
import { |
|
|
import { |
|
|
saveOrUpdatePcCrmVehicleInfo, |
|
|
saveOrUpdatePcCrmVehicleInfo, |
|
|
getPcVehicleInfoBySid, |
|
|
getPcVehicleInfoBySid, |
|
|
UpdatePcCrmVehicleInfo, |
|
|
UpdatePcCrmVehicleInfo |
|
|
} from "@/api/jichuxinxi/crmvehicle"; |
|
|
} from '@/api/jichuxinxi/crmvehicle' |
|
|
|
|
|
import modelsToChoose from './modelsToChoose.vue' |
|
|
export default { |
|
|
export default { |
|
|
name: "CheliangxuqiuAdd", |
|
|
name: 'CheliangxuqiuAdd', |
|
|
|
|
|
components: { |
|
|
|
|
|
modelsToChoose |
|
|
|
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
// --按钮菜单------- |
|
|
// --按钮菜单------- |
|
|
|
|
|
viewState: 1, |
|
|
FormLoading: false, |
|
|
FormLoading: false, |
|
|
crmFindemandVo_copy: { |
|
|
crmFindemandVo_copy: { |
|
|
customerSid: this.kehusid, |
|
|
customerSid: this.kehusid, |
|
|
demandSid: "", |
|
|
demandSid: '', |
|
|
loanSubjectType: "", |
|
|
loanSubjectType: '', |
|
|
managementName: "", |
|
|
managementName: '', |
|
|
isnoPackaging: "", |
|
|
isnoPackaging: '', |
|
|
downpayment: "", |
|
|
downpayment: '', |
|
|
marginLevel: "", |
|
|
marginLevel: '', |
|
|
loanStageNumber: "", |
|
|
loanStageNumber: '', |
|
|
acceptMonthAmount: "", |
|
|
acceptMonthAmount: '', |
|
|
recording: "", |
|
|
recording: '', |
|
|
remarks: "", |
|
|
remarks: '' |
|
|
}, |
|
|
}, |
|
|
temp: { |
|
|
temp: { |
|
|
sid: "", |
|
|
sid: '', |
|
|
createTime: "", |
|
|
createTime: '', |
|
|
customerSid: "", |
|
|
customerSid: '', |
|
|
purchaseMethod: "", |
|
|
purchaseMethod: '', |
|
|
brandSid: "", |
|
|
brandSid: '', |
|
|
brandName: "", |
|
|
brandName: '', |
|
|
modelSid: "", |
|
|
modelSid: '', |
|
|
modelName: "", |
|
|
modelName: '', |
|
|
sketChconfiguration: "", |
|
|
sketChconfiguration: '', |
|
|
otherConfig: "", |
|
|
otherConfig: '', |
|
|
vehicleModelOffer: "", |
|
|
changeOptions: '', |
|
|
number: "", |
|
|
vehicleModelOffer: '', |
|
|
estimatedPickupDate: "", |
|
|
number: '', |
|
|
states: "", |
|
|
estimatedPickupDate: '', |
|
|
comonConfigSid: "", |
|
|
states: '', |
|
|
purchaseMethodValue: "", |
|
|
comonConfigSid: '', |
|
|
remarks: "", |
|
|
purchaseMethodValue: '', |
|
|
saleReferencePrice: "", |
|
|
remarks: '', |
|
|
|
|
|
saleReferencePrice: '', |
|
|
crmFindemandDto: { |
|
|
crmFindemandDto: { |
|
|
customerSid: "", |
|
|
customerSid: '', |
|
|
demandSid: "", |
|
|
demandSid: '', |
|
|
loanSubjectType: "", |
|
|
loanSubjectType: '', |
|
|
managementName: "", |
|
|
managementName: '', |
|
|
isnoPackaging: "", |
|
|
isnoPackaging: '', |
|
|
downpayment: "", |
|
|
downpayment: '', |
|
|
marginLevel: "", |
|
|
marginLevel: '', |
|
|
loanStageNumber: "", |
|
|
loanStageNumber: '', |
|
|
acceptMonthAmount: "", |
|
|
acceptMonthAmount: '', |
|
|
recording: "", |
|
|
recording: '', |
|
|
remarks: "", |
|
|
remarks: '' |
|
|
}, |
|
|
} |
|
|
}, // 添加和修改 |
|
|
}, // 添加和修改 |
|
|
// tempKelsit: {}, |
|
|
|
|
|
templook: {}, // 查看实体 |
|
|
templook: {}, // 查看实体 |
|
|
textMap: { |
|
|
textMap: { |
|
|
update: "修改", |
|
|
update: '修改', |
|
|
create: "新增", |
|
|
create: '新增' |
|
|
}, |
|
|
}, |
|
|
enter: "", |
|
|
enter: '', |
|
|
visible: false, |
|
|
|
|
|
stateId: 0, |
|
|
stateId: 0, |
|
|
kehusid: "", |
|
|
kehusid: '', |
|
|
dialogStatus: "", // 对话框状态 |
|
|
dialogStatus: '', // 对话框状态 |
|
|
brandSid: "", |
|
|
brandSid: '', |
|
|
ifdictKey: false, |
|
|
ifdictKey: false, |
|
|
purchaseType: "purchaseType", |
|
|
purchaseType: 'purchaseType', |
|
|
brand_list: [], // 品牌 |
|
|
brand_list: [], // 品牌 |
|
|
aseType: [], |
|
|
aseType: [], |
|
|
aseTypeBox: [], |
|
|
aseTypeBox: [], |
|
|
vendor: [], |
|
|
vendor: [], |
|
|
branddate: [], |
|
|
branddate: [], |
|
|
figuration: [], |
|
|
figuration: [], |
|
|
loanType: "loanType", |
|
|
loanType: 'loanType', |
|
|
principal: [], |
|
|
principal: [], |
|
|
loanSubjectType: [], |
|
|
loanSubjectType: [], |
|
|
packagingProject: "packagingProject", |
|
|
packagingProject: 'packagingProject', |
|
|
typeOptions: [], |
|
|
typeOptions: [], |
|
|
countId: 0, |
|
|
countId: 0, |
|
|
supplier: [], |
|
|
supplier: [], |
|
|
grouping: [], |
|
|
grouping: [], |
|
|
CustomerSid: "", |
|
|
CustomerSid: '', |
|
|
YongHuid: [], |
|
|
YongHuid: [], |
|
|
userSidL: "", |
|
|
userSidL: '', |
|
|
// packaging_project: [], |
|
|
// packaging_project: [], |
|
|
packaging_projectt: [], |
|
|
packaging_projectt: [], |
|
|
packaging_projects: [], |
|
|
packaging_projects: [], |
|
|
rules: {}, |
|
|
rules: {} |
|
|
}; |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// computed: { |
|
|
|
|
|
// ...mapGetters([ |
|
|
|
|
|
// 'id', |
|
|
|
|
|
// 'roles', |
|
|
|
|
|
// 'rolesIds', |
|
|
|
|
|
// 'departmentId', |
|
|
|
|
|
// 'departmentCode', |
|
|
|
|
|
// ]), |
|
|
|
|
|
// }, |
|
|
|
|
|
// 页面加载 |
|
|
// 页面加载 |
|
|
created() { |
|
|
created() { |
|
|
this.init(); |
|
|
this.init() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
// --------------------------初始话-------------------------------- |
|
|
// --------------------------初始话-------------------------------- |
|
|
init() { |
|
|
init() { |
|
|
this.getShuJUZiDian(); |
|
|
this.getShuJUZiDian() |
|
|
this.getChangShang(); |
|
|
this.getChangShang() |
|
|
this.getZifang(); |
|
|
this.getZifang() |
|
|
// this.postHuoquyonghu() |
|
|
// this.postHuoquyonghu() |
|
|
this.chePinPai(); |
|
|
this.chePinPai() |
|
|
}, |
|
|
}, |
|
|
openUpdate(sid, user, checkin, showed) { |
|
|
openUpdate(sid, user, checkin, showed) { |
|
|
// this.kehusid = sid |
|
|
// this.kehusid = sid |
|
|
this.stateId = sid; |
|
|
this.stateId = sid |
|
|
this.userSidL = user; |
|
|
this.userSidL = user |
|
|
this.enter = checkin; |
|
|
this.enter = checkin |
|
|
if (this.stateId !== "0") { |
|
|
if (this.stateId !== '0') { |
|
|
getPcVehicleInfoBySid(this.stateId, this.userSidL).then((response) => { |
|
|
getPcVehicleInfoBySid(this.stateId, this.userSidL).then((response) => { |
|
|
if (response.code === "200") { |
|
|
if (response.code === '200') { |
|
|
// this.$refs['dataForm'].clearValidate() |
|
|
// this.$refs['dataForm'].clearValidate() |
|
|
this.temp = response.data; |
|
|
this.temp = response.data |
|
|
this.crmFindemandVo_copy = this.temp.crmFindemandVo; |
|
|
this.crmFindemandVo_copy = this.temp.crmFindemandVo |
|
|
this.aseTypeBox = [this.temp.purchaseMethod]; |
|
|
this.aseTypeBox = [this.temp.purchaseMethod] |
|
|
if (this.temp.purchaseMethodValue == "贷款") { |
|
|
if (this.temp.purchaseMethodValue == '贷款') { |
|
|
this.ifdictKey = true; |
|
|
this.ifdictKey = true |
|
|
} else { |
|
|
} else { |
|
|
this.ifdictKey = false; |
|
|
this.ifdictKey = false |
|
|
} |
|
|
} |
|
|
if (this.temp.crmFindemandVo.loanSubjectType !== "") { |
|
|
if (this.temp.crmFindemandVo.loanSubjectType !== '') { |
|
|
this.principal.forEach((e) => { |
|
|
this.principal.forEach((e) => { |
|
|
if (e.dictValue == this.temp.crmFindemandVo.loanSubjectType) { |
|
|
if (e.dictValue == this.temp.crmFindemandVo.loanSubjectType) { |
|
|
this.loanSubjectType = [e.dictKey]; |
|
|
this.loanSubjectType = [e.dictKey] |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
} |
|
|
} |
|
|
this.getCheXingName(response.data.brandSid); |
|
|
this.getCheXingName(response.data.brandSid) |
|
|
this.visible = true; |
|
|
if (showed && typeof showed === 'function') { |
|
|
if (showed && typeof showed === "function") { |
|
|
showed() |
|
|
showed(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
openCreate(sid, checkin, showed) { |
|
|
openCreate(sid, checkin) { |
|
|
this.kehusid = sid; |
|
|
this.kehusid = sid |
|
|
this.enter = checkin; |
|
|
this.enter = checkin |
|
|
console.log("852", this.enter); |
|
|
|
|
|
// this.$refs['dataForm'].clearValidate() |
|
|
// this.$refs['dataForm'].clearValidate() |
|
|
this.stateId = "0"; |
|
|
this.stateId = '0' |
|
|
this.resetTemp(); |
|
|
this.resetTemp() |
|
|
this.visible = true; |
|
|
|
|
|
if (showed && typeof showed === "function") { |
|
|
|
|
|
showed(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
// ------------------------------------------------------------------ |
|
|
|
|
|
// -----------------------------方法--------------------------------- |
|
|
|
|
|
// ------------------------------------------------------------------ |
|
|
|
|
|
// 返回 |
|
|
// 返回 |
|
|
handleReturn() { |
|
|
handleReturn() { |
|
|
this.visible = false; |
|
|
this.ifdictKey = false |
|
|
this.ifdictKey = false; |
|
|
|
|
|
// this.$refs['dataForm'].resetFields() // |
|
|
// this.$refs['dataForm'].resetFields() // |
|
|
this.temp = {}; |
|
|
this.temp = {} |
|
|
this.figuration = []; |
|
|
this.figuration = [] |
|
|
this.crmFindemandVo_copy = {}; |
|
|
this.crmFindemandVo_copy = {} |
|
|
this.$emit("handleReturn"); |
|
|
this.$emit('handleReturn') |
|
|
}, |
|
|
}, |
|
|
// 获取用户信息 |
|
|
// 获取用户信息 |
|
|
postHuoquyonghu() { |
|
|
postHuoquyonghu() { |
|
|
var token = getStorage(); |
|
|
var token = getStorage() |
|
|
loginDetails(token).then((response) => { |
|
|
loginDetails(token).then((response) => { |
|
|
if (response.code === "200") { |
|
|
if (response.code === '200') { |
|
|
this.YongHuid = response.data; |
|
|
this.YongHuid = response.data |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
handSelect() { |
|
|
|
|
|
if (this.temp.brandSid !== '' && this.temp.brandSid !== undefined) { |
|
|
|
|
|
this.viewState = 2 |
|
|
|
|
|
this.$refs['divSelect'].showInfo(this.temp.brandSid) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '请选择品牌!', |
|
|
|
|
|
type: 'success' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 添加前数据初始化 |
|
|
// 添加前数据初始化 |
|
|
resetTemp() { |
|
|
resetTemp() { |
|
|
this.temp = {}; |
|
|
this.temp = {} |
|
|
this.loanSubjectType = []; |
|
|
this.loanSubjectType = [] |
|
|
this.aseTypeBox = []; |
|
|
this.aseTypeBox = [] |
|
|
this.packaging_projectt = []; |
|
|
this.packaging_projectt = [] |
|
|
}, |
|
|
}, |
|
|
// 添加数据 |
|
|
// 添加数据 |
|
|
handleCreate() { |
|
|
handleCreate() { |
|
@ -369,173 +392,167 @@ export default { |
|
|
// }) |
|
|
// }) |
|
|
// if (valid) { |
|
|
// if (valid) { |
|
|
// } |
|
|
// } |
|
|
this.FormLoading = true; |
|
|
this.FormLoading = true |
|
|
this.dialogStatus = "create"; |
|
|
this.dialogStatus = 'create' |
|
|
if (this.stateId === "0") { |
|
|
if (this.stateId === '0') { |
|
|
this.temp.customerSid = this.kehusid; |
|
|
this.temp.customerSid = this.kehusid |
|
|
this.crmFindemandVo_copy.customerSid = this.kehusid; |
|
|
this.crmFindemandVo_copy.customerSid = this.kehusid |
|
|
this.temp.crmFindemandDto = this.crmFindemandVo_copy; |
|
|
this.temp.crmFindemandDto = this.crmFindemandVo_copy |
|
|
saveOrUpdatePcCrmVehicleInfo(this.temp).then((response) => { |
|
|
saveOrUpdatePcCrmVehicleInfo(this.temp).then((response) => { |
|
|
this.FormLoading = false; |
|
|
this.FormLoading = false |
|
|
if (response.code === "200") { |
|
|
if (response.code === '200') { |
|
|
if (this.enter === "dj") { |
|
|
if (this.enter === 'dj') { |
|
|
console.log("22222222"); |
|
|
|
|
|
this.$notify({ |
|
|
this.$notify({ |
|
|
title: "提示", |
|
|
title: '提示', |
|
|
message: "添加成功", |
|
|
message: '添加成功', |
|
|
type: "success", |
|
|
type: 'success', |
|
|
duration: 2000, |
|
|
duration: 2000 |
|
|
}); |
|
|
}) |
|
|
this.$emit("doback"); |
|
|
this.$emit('doback') |
|
|
} else { |
|
|
} else { |
|
|
console.log("33333333"); |
|
|
|
|
|
this.$notify({ |
|
|
this.$notify({ |
|
|
title: "提示", |
|
|
title: '提示', |
|
|
message: "添加成功", |
|
|
message: '添加成功', |
|
|
type: "success", |
|
|
type: 'success', |
|
|
duration: 2000, |
|
|
duration: 2000 |
|
|
}); |
|
|
}) |
|
|
// this.$emit('created') |
|
|
// this.$emit('created') |
|
|
// this.$refs['dataForm'].resetFields() // |
|
|
// this.$refs['dataForm'].resetFields() // |
|
|
this.handleReturn(); |
|
|
this.handleReturn() |
|
|
// this.temp = {} |
|
|
// this.temp = {} |
|
|
} |
|
|
} |
|
|
} else if (response.code === "500") { |
|
|
} else if (response.code === '500') { |
|
|
// this.$notify({ |
|
|
// this.$notify({ |
|
|
// title: "提示", |
|
|
// title: "提示", |
|
|
// message: response.msg, |
|
|
// message: response.msg, |
|
|
// type: "success", |
|
|
// type: "success", |
|
|
// duration: 2000, |
|
|
// duration: 2000, |
|
|
// }); |
|
|
// }); |
|
|
this.handleReturn(); |
|
|
this.handleReturn() |
|
|
} |
|
|
} else { |
|
|
else { |
|
|
|
|
|
this.$notify({ |
|
|
this.$notify({ |
|
|
title: "提示", |
|
|
title: '提示', |
|
|
message: "添加失败", |
|
|
message: '添加失败', |
|
|
type: "error", |
|
|
type: 'error', |
|
|
duration: 2000, |
|
|
duration: 2000 |
|
|
}); |
|
|
}) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.temp.customerSid = this.userSidL; |
|
|
this.temp.customerSid = this.userSidL |
|
|
this.temp.crmFindemandDto = this.crmFindemandVo_copy; |
|
|
this.temp.crmFindemandDto = this.crmFindemandVo_copy |
|
|
UpdatePcCrmVehicleInfo(this.temp).then((response) => { |
|
|
UpdatePcCrmVehicleInfo(this.temp).then((response) => { |
|
|
this.dialogStatus = "update"; |
|
|
this.dialogStatus = 'update' |
|
|
this.FormLoading = false; |
|
|
this.FormLoading = false |
|
|
if (response.code === "200") { |
|
|
if (response.code === '200') { |
|
|
console.log("852", this.enter); |
|
|
if (this.enter === 'dj') { |
|
|
if (this.enter === "dj") { |
|
|
|
|
|
this.$notify({ |
|
|
this.$notify({ |
|
|
title: "提示", |
|
|
title: '提示', |
|
|
message: "修改成功", |
|
|
message: '修改成功', |
|
|
type: "success", |
|
|
type: 'success', |
|
|
duration: 2000, |
|
|
duration: 2000 |
|
|
}); |
|
|
}) |
|
|
this.$emit("modify"); |
|
|
this.$emit('modify') |
|
|
} else { |
|
|
} else { |
|
|
this.$notify({ |
|
|
this.$notify({ |
|
|
title: "提示", |
|
|
title: '提示', |
|
|
message: "修改成功", |
|
|
message: '修改成功', |
|
|
type: "success", |
|
|
type: 'success', |
|
|
duration: 2000, |
|
|
duration: 2000 |
|
|
}); |
|
|
}) |
|
|
// this.$emit('created') |
|
|
// this.$emit('created') |
|
|
this.handleReturn(); |
|
|
this.handleReturn() |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.$notify({ |
|
|
this.$notify({ |
|
|
title: "失败", |
|
|
title: '失败', |
|
|
message: "修改失败", |
|
|
message: '修改失败', |
|
|
type: "error", |
|
|
type: 'error' |
|
|
}); |
|
|
}) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// ---------------------------------模糊搜索和联动搜索------------------------------------------------ |
|
|
// ---------------------------------模糊搜索和联动搜索------------------------------------------------ |
|
|
// 厂商 |
|
|
// 厂商 |
|
|
getChangShang() { |
|
|
getChangShang() { |
|
|
getNamesDown({ name: this.temp.vendorSid }).then((response) => { |
|
|
getNamesDown({ name: this.temp.vendorSid }).then((response) => { |
|
|
if (response.code === "200") { |
|
|
if (response.code === '200') { |
|
|
this.vendor = response.data; |
|
|
this.vendor = response.data |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 厂商模糊查询 |
|
|
// 厂商模糊查询 |
|
|
querySearchAsync(queryString, cb) { |
|
|
querySearchAsync(queryString, cb) { |
|
|
if (queryString != null) { |
|
|
if (queryString != null) { |
|
|
// this.searchData({ name: queryString }) |
|
|
// this.searchData({ name: queryString }) |
|
|
getNamesDown({ name: queryString }).then((response) => { |
|
|
getNamesDown({ name: queryString }).then((response) => { |
|
|
if (response.code === "200") { |
|
|
if (response.code === '200') { |
|
|
response.data; |
|
|
response.data |
|
|
cb(response.data); |
|
|
cb(response.data) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
cb(this.vendor); |
|
|
cb(this.vendor) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 厂商选择: |
|
|
// 厂商选择: |
|
|
handleSelect(e) { |
|
|
handleSelect(e) { |
|
|
this.temp.vendorSid = e.sid; |
|
|
this.temp.vendorSid = e.sid |
|
|
this.temp.vendorName = e.manufacturerName; |
|
|
this.temp.vendorName = e.manufacturerName |
|
|
this.getPinPai(this.temp.vendorSid); |
|
|
this.getPinPai(this.temp.vendorSid) |
|
|
}, |
|
|
}, |
|
|
// 厂商 清空信息 |
|
|
// 厂商 清空信息 |
|
|
inputclear() { |
|
|
inputclear() { |
|
|
this.temp.vendorName = ""; |
|
|
this.temp.vendorName = '' |
|
|
}, |
|
|
}, |
|
|
// 车辆品牌 |
|
|
// 车辆品牌 |
|
|
chePinPai() { |
|
|
chePinPai() { |
|
|
getPinpai().then((response) => { |
|
|
getPinpai().then((response) => { |
|
|
if (response.code === "200") { |
|
|
if (response.code === '200') { |
|
|
this.brand_list = response.data; |
|
|
this.brand_list = response.data |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
changePinPai(value) { |
|
|
changePinPai(value) { |
|
|
let bb = []; |
|
|
let bb = [] |
|
|
this.brand_list.forEach((e) => { |
|
|
this.brand_list.forEach((e) => { |
|
|
if (e.sid == value) { |
|
|
if (e.sid === value) { |
|
|
bb = { |
|
|
bb = { |
|
|
name: e.brandName, |
|
|
name: e.brandName, |
|
|
sid: e.sid, |
|
|
sid: e.sid |
|
|
}; |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
this.temp.brandName = bb.name; |
|
|
this.temp.brandName = bb.name |
|
|
this.temp.brandSid = bb.sid; |
|
|
this.temp.brandSid = bb.sid |
|
|
this.getCheXingName(this.temp.brandSid); |
|
|
this.getCheXingName(this.temp.brandSid) |
|
|
console.log("8888888888888", bb.name); |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 品牌 |
|
|
// 品牌 |
|
|
getPinPai(sid) { |
|
|
getPinPai(sid) { |
|
|
var manufacturerSid = { |
|
|
var manufacturerSid = { |
|
|
manufacturerSid: sid, |
|
|
manufacturerSid: sid |
|
|
}; |
|
|
} |
|
|
getNamesDownBySid(manufacturerSid).then((response) => { |
|
|
getNamesDownBySid(manufacturerSid).then((response) => { |
|
|
if (response.code === "200") { |
|
|
if (response.code === '200') { |
|
|
this.branddate = response.data; |
|
|
this.branddate = response.data |
|
|
console.log("品牌数组", this.branddate); |
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 品牌处理 |
|
|
// 品牌处理 |
|
|
BrandProcessing(value) { |
|
|
BrandProcessing(value) { |
|
|
let bb = null; |
|
|
let bb = null |
|
|
this.branddate.forEach((e) => { |
|
|
this.branddate.forEach((e) => { |
|
|
if (e.sid == value) { |
|
|
if (e.sid === value) { |
|
|
bb = { |
|
|
bb = { |
|
|
sid: e.sid, |
|
|
sid: e.sid, |
|
|
name: e.brandName, |
|
|
name: e.brandName |
|
|
}; |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
this.temp.brandSid = bb.sid; |
|
|
this.temp.brandSid = bb.sid |
|
|
this.temp.brandName = bb.name; |
|
|
this.temp.brandName = bb.names |
|
|
}, |
|
|
}, |
|
|
// 车型名称 |
|
|
// 车型名称 |
|
|
// getCheXing() { |
|
|
// getCheXing() { |
|
@ -548,43 +565,41 @@ export default { |
|
|
|
|
|
|
|
|
getCheXingName(brandSid) { |
|
|
getCheXingName(brandSid) { |
|
|
var sid = { |
|
|
var sid = { |
|
|
sid: brandSid, |
|
|
sid: brandSid |
|
|
}; |
|
|
} |
|
|
getSelectDown(sid).then((response) => { |
|
|
getSelectDown(sid).then((response) => { |
|
|
if (response.code === "200") { |
|
|
if (response.code === '200') { |
|
|
this.figuration = response.data; |
|
|
this.figuration = response.data |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 资方 |
|
|
// 资方 |
|
|
getZifang() { |
|
|
getZifang() { |
|
|
getNamesDownlist().then( |
|
|
getNamesDownlist().then( |
|
|
(response) => { |
|
|
(response) => { |
|
|
if (response.code === "200") { |
|
|
if (response.code === '200') { |
|
|
this.supplier = response.data; |
|
|
this.supplier = response.data |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
); |
|
|
) |
|
|
}, |
|
|
}, |
|
|
// --------------------------------------------------------------------------------- |
|
|
// 数据字典的处理 |
|
|
// ---------------------------数据字典的处理------------------------------------------------------ |
|
|
|
|
|
// --------------------------------------------------------------------------------- |
|
|
|
|
|
getShuJUZiDian() { |
|
|
getShuJUZiDian() { |
|
|
typeValues({ type: this.purchaseType }).then((res) => { |
|
|
typeValues({ type: this.purchaseType }).then((res) => { |
|
|
if (res.code === "200") { |
|
|
if (res.code === '200') { |
|
|
this.aseType = res.data; |
|
|
this.aseType = res.data |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
typeValues({ type: this.loanType }).then((res) => { |
|
|
typeValues({ type: this.loanType }).then((res) => { |
|
|
if (res.code === "200") { |
|
|
if (res.code === '200') { |
|
|
this.principal = res.data; |
|
|
this.principal = res.data |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
typeValues({ type: this.packagingProject }).then((res) => { |
|
|
typeValues({ type: this.packagingProject }).then((res) => { |
|
|
if (res.code === "200") { |
|
|
if (res.code === '200') { |
|
|
this.typeOptions = res.data; |
|
|
this.typeOptions = res.data |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
// typeValues({type: this.vehicleType}).then((res) => { |
|
|
// typeValues({type: this.vehicleType}).then((res) => { |
|
|
// if (res.code === '200') { |
|
|
// if (res.code === '200') { |
|
|
// this.figuration = res.data |
|
|
// this.figuration = res.data |
|
@ -592,89 +607,95 @@ export default { |
|
|
// }) |
|
|
// }) |
|
|
}, |
|
|
}, |
|
|
getName(value) { |
|
|
getName(value) { |
|
|
let bb = null; |
|
|
let bb = null |
|
|
this.figuration.forEach((e) => { |
|
|
this.figuration.forEach((e) => { |
|
|
console.log("999", e); |
|
|
if (e.sid === value) { |
|
|
if (e.sid == value) { |
|
|
|
|
|
bb = { |
|
|
bb = { |
|
|
name: e.modelName, |
|
|
name: e.modelName, |
|
|
vaule: e.sid, |
|
|
vaule: e.sid |
|
|
}; |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
this.temp.modelName = bb.name; |
|
|
this.temp.modelName = bb.name |
|
|
this.temp.modelSid = bb.vaule; |
|
|
this.temp.modelSid = bb.vaule |
|
|
}, |
|
|
}, |
|
|
// 购车方式 |
|
|
// 购车方式 |
|
|
findselect(list, value) { |
|
|
findselect(list, value) { |
|
|
var item = null; |
|
|
var item = null |
|
|
for (var i = 0; i < list.length; i++) { |
|
|
for (var i = 0; i < list.length; i++) { |
|
|
if (list[i].dictKey == value) { |
|
|
if (list[i].dictKey === value) { |
|
|
item = list[i]; |
|
|
item = list[i] |
|
|
break; |
|
|
break |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
return item; |
|
|
return item |
|
|
}, |
|
|
}, |
|
|
// 购车方式 |
|
|
// 购车方式 |
|
|
getGouche() { |
|
|
getGouche() { |
|
|
this.aseTypeBox = [this.aseTypeBox[this.aseTypeBox.length - 1]]; |
|
|
this.aseTypeBox = [this.aseTypeBox[this.aseTypeBox.length - 1]] |
|
|
console.log("点击事件:", JSON.stringify(this.aseTypeBox)); |
|
|
console.log('点击事件:', JSON.stringify(this.aseTypeBox)) |
|
|
var item = this.findselect(this.aseType, this.aseTypeBox[0]); |
|
|
var item = this.findselect(this.aseType, this.aseTypeBox[0]) |
|
|
console.log("点击事件找到选项:", JSON.stringify(item)); |
|
|
console.log('点击事件找到选项:', JSON.stringify(item)) |
|
|
if (this.aseTypeBox == 2) { |
|
|
if (this.aseTypeBox == 2) { |
|
|
this.ifdictKey = true; |
|
|
this.ifdictKey = true |
|
|
} else if (this.aseTypeBox != 2) { |
|
|
} else if (this.aseTypeBox !== 2) { |
|
|
this.ifdictKey = false; |
|
|
this.ifdictKey = false |
|
|
} |
|
|
} |
|
|
if (item != null) { |
|
|
if (item != null) { |
|
|
this.temp.purchaseMethodValue = item.dictValue; |
|
|
this.temp.purchaseMethodValue = item.dictValue |
|
|
this.temp.purchaseMethod = item.dictKey; |
|
|
this.temp.purchaseMethod = item.dictKey |
|
|
} |
|
|
} |
|
|
console.log(item, this.aseTypeBox); |
|
|
console.log(item, this.aseTypeBox) |
|
|
}, |
|
|
}, |
|
|
// 贷款主体类型(个人/企业) |
|
|
// 贷款主体类型(个人/企业) |
|
|
findselectestry(list, value) { |
|
|
findselectestry(list, value) { |
|
|
var item = null; |
|
|
var item = null |
|
|
for (var i = 0; i < list.length; i++) { |
|
|
for (var i = 0; i < list.length; i++) { |
|
|
if (list[i].dictKey == value) { |
|
|
if (list[i].dictKey == value) { |
|
|
item = list[i]; |
|
|
item = list[i] |
|
|
break; |
|
|
break |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
return item; |
|
|
return item |
|
|
}, |
|
|
}, |
|
|
// 贷款主体类型(个人/企业) |
|
|
// 贷款主体类型(个人/企业) |
|
|
getDaiKuang() { |
|
|
getDaiKuang() { |
|
|
this.loanSubjectType = [ |
|
|
this.loanSubjectType = [ |
|
|
this.loanSubjectType[this.loanSubjectType.length - 1], |
|
|
this.loanSubjectType[this.loanSubjectType.length - 1] |
|
|
]; |
|
|
] |
|
|
console.log("点击事件:", JSON.stringify(this.loanSubjectType)); |
|
|
console.log('点击事件:', JSON.stringify(this.loanSubjectType)) |
|
|
var item = this.findselectestry(this.principal, this.loanSubjectType[0]); |
|
|
var item = this.findselectestry(this.principal, this.loanSubjectType[0]) |
|
|
console.log("点击事件找到选项:", JSON.stringify(item)); |
|
|
console.log('点击事件找到选项:', JSON.stringify(item)) |
|
|
if (item != null) { |
|
|
if (item != null) { |
|
|
this.crmFindemandVo_copy.loanSubjectType = item.dictValue; |
|
|
this.crmFindemandVo_copy.loanSubjectType = item.dictValue |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// finArry(list, value) {}, |
|
|
|
|
|
// 打包项目 |
|
|
// 打包项目 |
|
|
getDaoBao() { |
|
|
getDaoBao() { |
|
|
this.packaging_projects = []; |
|
|
this.packaging_projects = [] |
|
|
const bb = null; |
|
|
|
|
|
this.typeOptions.forEach((e) => { |
|
|
this.typeOptions.forEach((e) => { |
|
|
this.packaging_projectt.forEach((a) => { |
|
|
this.packaging_projectt.forEach((a) => { |
|
|
if (e.dictKey == a) { |
|
|
if (e.dictKey == a) { |
|
|
this.packaging_projects.push(e.dictValue); |
|
|
this.packaging_projects.push(e.dictValue) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
}); |
|
|
}) |
|
|
console.log(this.packaging_projects.join(","), 11111111111); |
|
|
this.temp.packaging_project = this.packaging_projects.join(',') |
|
|
console.log(this.packaging_projectt.join(","), 2222222222); |
|
|
this.temp.packaging_project_key = this.packaging_projectt.join(',') |
|
|
this.temp.packaging_project = this.packaging_projects.join(","); |
|
|
|
|
|
this.temp.packaging_project_key = this.packaging_projectt.join(","); |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
handleReturnSelect(value) { |
|
|
}; |
|
|
this.viewState = 1 |
|
|
|
|
|
var arrayList = [] |
|
|
|
|
|
arrayList = value |
|
|
|
|
|
this.temp.modelName = arrayList[0].modelName |
|
|
|
|
|
this.temp.sketChconfiguration = arrayList[0].configName |
|
|
|
|
|
this.temp.otherConfig = arrayList[0].otherConfig |
|
|
|
|
|
}, |
|
|
|
|
|
resetState() { |
|
|
|
|
|
this.viewState = 1 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
.el-form-item-right { |
|
|
.el-form-item-right { |
|
@ -684,7 +705,14 @@ export default { |
|
|
line-height: 3 !important; |
|
|
line-height: 3 !important; |
|
|
text-align: right; |
|
|
text-align: right; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/deep/ .el-form-item__content { |
|
|
/deep/ .el-form-item__content { |
|
|
margin-left: 0 !important; |
|
|
margin-left: 0 !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.vehicle { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|