|
|
@@ -318,15 +318,16 @@ export default defineComponent({
|
|
|
// 证件类型
|
|
|
const cardTypeList = ref<AllEnums[]>(getCardType());
|
|
|
// 表单
|
|
|
- const { formRef, formState, rules } = handleForm();
|
|
|
+ const {formRef, formState, rules} = handleForm();
|
|
|
// 地址
|
|
|
- const { cityList, districtList, provinceList, getCityList, getDistrictList } = getAddress();
|
|
|
+ const {cityList, districtList, provinceList, getCityList, getDistrictList} = getAddress();
|
|
|
// 营业执照
|
|
|
- const { getFirstImg: getAttachmentImg, uploadImgAction: attachmentUpLoad } = getUploadImg();
|
|
|
+ const {getFirstImg: getAttachmentImg, uploadImgAction: attachmentUpLoad} = getUploadImg();
|
|
|
// 背面证件照地址
|
|
|
- const { getFirstImg: getBackImg, uploadImgAction: cardbackphotourlUpLoad } = getUploadImg();
|
|
|
+ const {getFirstImg: getBackImg, uploadImgAction: cardbackphotourlUpLoad} = getUploadImg();
|
|
|
// 正面证件照地址
|
|
|
- const { getFirstImg: getFrontImg, uploadImgAction: cardfrontphotourlUpLoad } = getUploadImg();
|
|
|
+ const {getFirstImg: getFrontImg, uploadImgAction: cardfrontphotourlUpLoad} = getUploadImg();
|
|
|
+
|
|
|
//查询所属机构列表
|
|
|
const { areaList, getAreaList } = handleAreaList();
|
|
|
function isPersonal(): boolean {
|
|
|
@@ -355,22 +356,24 @@ export default defineComponent({
|
|
|
cardfrontphotourl: isPersonal() ? getFrontImg() : '', // 正面照片
|
|
|
cardbackphotourl: isPersonal() ? getBackImg() : '', // 背面证件照地址
|
|
|
ipaddress: param.ipaddress, // 证件地址
|
|
|
- cityid: param.cityid as number, //
|
|
|
- districtid: param.districtid as number, // 地区
|
|
|
+ cityid: param.cityid as number !== undefined ? param.cityid as number : 0, //城市
|
|
|
+ districtid: param.districtid as number !== undefined ? param.districtid as number : 0, // 地区
|
|
|
// countryid: param.,9
|
|
|
- provinceid: param.provinceid as number, //省
|
|
|
+ provinceid: param.provinceid as number !== undefined ? param.provinceid as number : 0, //省
|
|
|
contactname: param.contactname, // 联系人
|
|
|
legalpersonname: param.legalpersonname, // 法人姓名(企业)
|
|
|
taxpayernum: param.taxpayernum, // 纳税人识别号
|
|
|
email: param.email, // email
|
|
|
proxystatementurl: isPersonal() ? '' : getAttachmentImg(), // 营业执照
|
|
|
};
|
|
|
+ debugger
|
|
|
requestResultLoadingAndInfo(addCustomerInfoOperate, reqParam, loading, OperateType === 1 ? ['保存草稿成功', '保存草稿失败:'] : ['新增客户资料成功', '新增客户资料失败:']).then(() => {
|
|
|
cancel();
|
|
|
context.emit('refresh');
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
return {
|
|
|
formState,
|
|
|
rules,
|