|
|
@@ -30,11 +30,9 @@
|
|
|
style="width: 200px"
|
|
|
v-model:value="formState.areaid"
|
|
|
placeholder="请选择所属机构">
|
|
|
- <a-select-option value="1">
|
|
|
- 个人
|
|
|
- </a-select-option>
|
|
|
- <a-select-option value="2">
|
|
|
- 企业
|
|
|
+ <a-select-option v-for="item in areaList"
|
|
|
+ :key="item.userid">
|
|
|
+ {{item.accountname}}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
@@ -299,7 +297,7 @@
|
|
|
<script lang="ts">
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { defineComponent, PropType, ref, watchEffect } from 'vue';
|
|
|
-import { getCardType, handleForm, initFormState } from '../add/setup';
|
|
|
+import { getCardType, handleAreaList, handleForm, initFormState } from '../add/setup';
|
|
|
import { AllEnums } from '@/services/go/commonService/interface';
|
|
|
import { FormState } from '../add/interface';
|
|
|
import { getAddress } from '@/services/go/adress';
|
|
|
@@ -313,6 +311,7 @@ import { delAddress } from '@/services/socket/address';
|
|
|
import UploadImg from '@/common/components/uploadImg/index.vue';
|
|
|
import { getUploadImg } from '@/common/setup/upload';
|
|
|
import { CustomerInfoOperateReq } from '@/services/proto/accountinfo/interface';
|
|
|
+import { initData } from '@/common/methods';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'modify-custom',
|
|
|
@@ -338,7 +337,8 @@ export default defineComponent({
|
|
|
const { getFirstImg: getBackImg, uploadImgAction: cardbackUpload, uploadImgList: cardbackImgList, handleImg: cardbackHandle } = getUploadImg();
|
|
|
// 正面证件照地址
|
|
|
const { getFirstImg: getFrontImg, uploadImgAction: cardfrontUpload, uploadImgList: cardfrontImgList, handleImg: cardfrontHandle } = getUploadImg();
|
|
|
-
|
|
|
+ //查询所属机构列表
|
|
|
+ const { areaList, getAreaList } = handleAreaList();
|
|
|
function isPersonal(): boolean {
|
|
|
return formState.userinfotype === '1';
|
|
|
}
|
|
|
@@ -366,6 +366,9 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+ initData(() => {
|
|
|
+ getAreaList(loading);
|
|
|
+ });
|
|
|
function submit(OperateType: 1 | 2) {
|
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
|
const reqParam: CustomerInfoOperateReq = {
|
|
|
@@ -406,6 +409,7 @@ export default defineComponent({
|
|
|
formRef,
|
|
|
cardTypeList,
|
|
|
isPersonal,
|
|
|
+ areaList,
|
|
|
visible,
|
|
|
cancel,
|
|
|
submit,
|