|
@@ -30,10 +30,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 value = "1">
|
|
|
个人
|
|
个人
|
|
|
</a-select-option>
|
|
</a-select-option>
|
|
|
- <a-select-option value="2">
|
|
|
|
|
|
|
+ <a-select-option value = "2">
|
|
|
企业
|
|
企业
|
|
|
</a-select-option>
|
|
</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
@@ -307,7 +307,7 @@ export default defineComponent({
|
|
|
const { uploadImgAction: cardfrontUpload, uploadImgList: cardfrontImgList, handleImg: cardfrontHandle } = getUploadImg();
|
|
const { uploadImgAction: cardfrontUpload, uploadImgList: cardfrontImgList, handleImg: cardfrontHandle } = getUploadImg();
|
|
|
|
|
|
|
|
function isPersonal(): boolean {
|
|
function isPersonal(): boolean {
|
|
|
- return formState.userinfotype === 1;
|
|
|
|
|
|
|
+ return formState.userinfotype === '1';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const userid = ref<number>(0);
|
|
const userid = ref<number>(0);
|
|
@@ -317,6 +317,7 @@ export default defineComponent({
|
|
|
userid.value = props.selectedRow.userid;
|
|
userid.value = props.selectedRow.userid;
|
|
|
countryid.value = props.selectedRow.countryid;
|
|
countryid.value = props.selectedRow.countryid;
|
|
|
mergeTwoObj(formState, props.selectedRow);
|
|
mergeTwoObj(formState, props.selectedRow);
|
|
|
|
|
+ formState.userinfotype = formState.userinfotype.toString()
|
|
|
if (isPersonal()) {
|
|
if (isPersonal()) {
|
|
|
formState.username = props.selectedRow.customername;
|
|
formState.username = props.selectedRow.customername;
|
|
|
}else{
|
|
}else{
|
|
@@ -345,7 +346,7 @@ export default defineComponent({
|
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
|
const reqParam: CustomerInfoOperateReq = {
|
|
const reqParam: CustomerInfoOperateReq = {
|
|
|
operatetype: 2, // 1: 新增 2:修改
|
|
operatetype: 2, // 1: 新增 2:修改
|
|
|
- username: Number(param.userinfotype) === 1 ? param.username : param.customername,
|
|
|
|
|
|
|
+ username: param.userinfotype === '1' ? param.username : param.customername,
|
|
|
userid: userid.value,
|
|
userid: userid.value,
|
|
|
areaid: getUserId(),
|
|
areaid: getUserId(),
|
|
|
userinfotype: Number(param.userinfotype),
|
|
userinfotype: Number(param.userinfotype),
|