|
@@ -5,14 +5,14 @@
|
|
|
v-if="visible"
|
|
v-if="visible"
|
|
|
v-model:visible="visible"
|
|
v-model:visible="visible"
|
|
|
centered
|
|
centered
|
|
|
- :maskClosable="maskClosableFlag"
|
|
|
|
|
|
|
+ :maskClosable="false"
|
|
|
@cancel="cancel"
|
|
@cancel="cancel"
|
|
|
width="890px">
|
|
width="890px">
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
- <a-button key="submit"
|
|
|
|
|
|
|
+ <!-- <a-button key="submit"
|
|
|
class="cancelBtn"
|
|
class="cancelBtn"
|
|
|
@click="submit(1)">保存草稿
|
|
@click="submit(1)">保存草稿
|
|
|
- </a-button>
|
|
|
|
|
|
|
+ </a-button> -->
|
|
|
<a-button key="submit"
|
|
<a-button key="submit"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
@@ -62,11 +62,10 @@
|
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
|
v-model:value="formState.userinfotype"
|
|
v-model:value="formState.userinfotype"
|
|
|
placeholder="请选择客户类型">
|
|
placeholder="请选择客户类型">
|
|
|
- <a-select-option value="1">
|
|
|
|
|
- 个人
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- <a-select-option value="2">
|
|
|
|
|
- 企业
|
|
|
|
|
|
|
+ <a-select-option v-for="item in userinfotypeList"
|
|
|
|
|
+ :value="item.key"
|
|
|
|
|
+ :key="item.key">
|
|
|
|
|
+ {{item.name}}
|
|
|
</a-select-option>
|
|
</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -312,6 +311,7 @@ import UploadImg from '@/common/components/uploadImg/index.vue';
|
|
|
import { getUploadImg } from '@/common/setup/upload';
|
|
import { getUploadImg } from '@/common/setup/upload';
|
|
|
import { CustomerInfoOperateReq } from '@/services/proto/accountinfo/interface';
|
|
import { CustomerInfoOperateReq } from '@/services/proto/accountinfo/interface';
|
|
|
import { initData } from '@/common/methods';
|
|
import { initData } from '@/common/methods';
|
|
|
|
|
+import { QhjCustomer } from '@/services/go/ermcp/qhj/interface';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'modify-custom',
|
|
name: 'modify-custom',
|
|
@@ -319,11 +319,15 @@ export default defineComponent({
|
|
|
props: {
|
|
props: {
|
|
|
selectedRow: {
|
|
selectedRow: {
|
|
|
default: initFormState,
|
|
default: initFormState,
|
|
|
- type: Object as PropType<CustomerInfoOperateReq>,
|
|
|
|
|
|
|
+ type: Object as PropType<QhjCustomer>,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
- setup(props, context) {
|
|
|
|
|
|
|
+ setup(props: { selectedRow: QhjCustomer }, context: { emit: (arg0: string) => void }) {
|
|
|
const { visible, cancel } = closeModal('platinum_custom_info_normal_modify');
|
|
const { visible, cancel } = closeModal('platinum_custom_info_normal_modify');
|
|
|
|
|
+ const userinfotypeList = [
|
|
|
|
|
+ { name: '个人', key: 1 },
|
|
|
|
|
+ { name: '企业', key: 2 },
|
|
|
|
|
+ ];
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
// 证件类型
|
|
// 证件类型
|
|
|
const cardTypeList = ref<AllEnums[]>(getCardType());
|
|
const cardTypeList = ref<AllEnums[]>(getCardType());
|
|
@@ -340,7 +344,7 @@ export default defineComponent({
|
|
|
//查询所属机构列表
|
|
//查询所属机构列表
|
|
|
const { areaList, getAreaList } = handleAreaList();
|
|
const { areaList, getAreaList } = handleAreaList();
|
|
|
function isPersonal(): boolean {
|
|
function isPersonal(): boolean {
|
|
|
- return formState.userinfotype === '1';
|
|
|
|
|
|
|
+ return formState.userinfotype === 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const userid = ref<number>(0);
|
|
const userid = ref<number>(0);
|
|
@@ -348,22 +352,26 @@ export default defineComponent({
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
|
if (visible.value) {
|
|
if (visible.value) {
|
|
|
getAreaList(loading);
|
|
getAreaList(loading);
|
|
|
|
|
+ console.log('props.selectedRow', props.selectedRow);
|
|
|
|
|
+
|
|
|
userid.value = props.selectedRow.userid;
|
|
userid.value = props.selectedRow.userid;
|
|
|
mergeTwoObj(formState, props.selectedRow);
|
|
mergeTwoObj(formState, props.selectedRow);
|
|
|
- const { provinceid, cityid, proxystatementurl, cardfrontphotourl, cardbackphotourl } = props.selectedRow;
|
|
|
|
|
|
|
+ const { provinceid, cityid, attachment1, cardfrontphotourl, cardbackphotourl, parentuserid, userinfotype } = props.selectedRow;
|
|
|
provinceid ? getCityList(provinceid) : (formState.provinceid = undefined);
|
|
provinceid ? getCityList(provinceid) : (formState.provinceid = undefined);
|
|
|
cityid ? getDistrictList(cityid) : ((formState.cityid = undefined), (formState.districtid = undefined));
|
|
cityid ? getDistrictList(cityid) : ((formState.cityid = undefined), (formState.districtid = undefined));
|
|
|
- if (proxystatementurl) {
|
|
|
|
|
|
|
+ parentuserid ? (formState.areaid = parentuserid) : (formState.areaid = undefined);
|
|
|
|
|
+ // userinfotype ? (formState.userinfotype = userinfotype) : (formState.userinfotype = undefined);
|
|
|
|
|
+ if (attachment1) {
|
|
|
// 营业执照
|
|
// 营业执照
|
|
|
- attachmentImgList.value = attachmentHandle(proxystatementurl);
|
|
|
|
|
|
|
+ attachmentImgList.value = attachmentHandle(attachment1);
|
|
|
}
|
|
}
|
|
|
if (cardbackphotourl) {
|
|
if (cardbackphotourl) {
|
|
|
// 背面证件照地址
|
|
// 背面证件照地址
|
|
|
cardbackImgList.value = cardbackHandle(cardbackphotourl);
|
|
cardbackImgList.value = cardbackHandle(cardbackphotourl);
|
|
|
}
|
|
}
|
|
|
- if (cardbackphotourl) {
|
|
|
|
|
|
|
+ if (cardfrontphotourl) {
|
|
|
// 正面证件照地址
|
|
// 正面证件照地址
|
|
|
- cardfrontImgList.value = cardfrontHandle(cardbackphotourl);
|
|
|
|
|
|
|
+ cardfrontImgList.value = cardfrontHandle(cardfrontphotourl);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -402,6 +410,7 @@ export default defineComponent({
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
|
|
+ userinfotypeList,
|
|
|
formState,
|
|
formState,
|
|
|
rules,
|
|
rules,
|
|
|
formRef,
|
|
formRef,
|