|
|
@@ -379,6 +379,7 @@ export default defineComponent({
|
|
|
});
|
|
|
function submit(OperateType: 1 | 2) {
|
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
|
+ const fn = (value: any) => (value ? value : 0);
|
|
|
const reqParam: CustomerInfoOperateReq = {
|
|
|
operatetype: 2,
|
|
|
areaid: param.areaid as number,
|
|
|
@@ -397,14 +398,15 @@ export default defineComponent({
|
|
|
cardbackphotourl: isPersonal() ? getBackImg() : '', // 背面证件照地址
|
|
|
proxystatementurl: isPersonal() ? '' : getAttachmentImg(), // 营业执照
|
|
|
ipaddress: param.ipaddress, // 证件地址
|
|
|
- cityid: param.cityid as number, //
|
|
|
- districtid: param.districtid as number, // 地区
|
|
|
- provinceid: param.provinceid as number, //省
|
|
|
+ cityid: fn(param.cityid), //
|
|
|
+ districtid: fn(param.districtid), // 地区
|
|
|
+ provinceid: fn(param.provinceid), //省
|
|
|
contactname: param.contactname, // 联系人
|
|
|
legalpersonname: param.legalpersonname, // 法人姓名(企业)
|
|
|
taxpayernum: param.taxpayernum, // 纳税人识别号
|
|
|
email: param.email, // email
|
|
|
};
|
|
|
+ debugger;
|
|
|
requestResultLoadingAndInfo(addCustomerInfoOperate, reqParam, loading, OperateType === 1 ? ['保存草稿成功', '保存草稿失败:'] : ['新增客户资料成功', '新增客户资料失败:']).then(() => {
|
|
|
cancel();
|
|
|
context.emit('refresh');
|