|
|
@@ -1,195 +1,375 @@
|
|
|
<template>
|
|
|
- <!-- 平安客户资料 -->
|
|
|
- <a-modal class="add-custom" title="新增客户资料" v-model:visible="visible" @cancel="cancel" centered :maskClosable="false" v-if="isPingAnOem()" width="890px">
|
|
|
- <template #footer>
|
|
|
- <a-button key="submit" class="cancelBtn" :loading="loading" :disabled="loading" @click="submit(1)">完成 </a-button>
|
|
|
+ <!-- 平安客户资料 -->
|
|
|
+ <a-modal class="add-custom"
|
|
|
+ title="新增客户资料"
|
|
|
+ v-model:visible="visible"
|
|
|
+ @cancel="cancel"
|
|
|
+ centered
|
|
|
+ :maskClosable="false"
|
|
|
+ v-if="isPingAnOem()"
|
|
|
+ width="890px">
|
|
|
+ <template #footer>
|
|
|
+ <a-button key="submit"
|
|
|
+ class="cancelBtn"
|
|
|
+ :loading="loading"
|
|
|
+ :disabled="loading"
|
|
|
+ @click="submit(1)">完成 </a-button>
|
|
|
+ </template>
|
|
|
+ <a-form class="inlineForm"
|
|
|
+ ref="formRef"
|
|
|
+ :model="formState"
|
|
|
+ :rules="rules">
|
|
|
+ <a-row :gutter="24">
|
|
|
+
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="客户类型"
|
|
|
+ name="userinfotype">
|
|
|
+ <a-select class="typeSelect"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.userinfotype"
|
|
|
+ placeholder="请选择客户类型">
|
|
|
+ <a-select-option value="1"> 个人 </a-select-option>
|
|
|
+ <a-select-option value="2"> 企业 </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <template v-if="!isPersonal()">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="企业名称"
|
|
|
+ name="customername">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ v-model:value="formState.customername"
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请输入企业名称" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="姓名"
|
|
|
+ name="username">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.username"
|
|
|
+ placeholder="请输入姓名" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </template>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="点价联系人"
|
|
|
+ name="contactname">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.contactname"
|
|
|
+ placeholder="请输入联系人" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="联系人手机号"
|
|
|
+ name="mobilephone">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.mobilephone"
|
|
|
+ placeholder="请输入联系人手机号" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
+ </a-modal>
|
|
|
+ <!-- 其他项目客户资料 -->
|
|
|
+ <a-modal class="add-custom"
|
|
|
+ v-else
|
|
|
+ title="新增客户资料"
|
|
|
+ v-model:visible="visible"
|
|
|
+ @cancel="cancel"
|
|
|
+ centered
|
|
|
+ :maskClosable="false"
|
|
|
+ width="890px">
|
|
|
+ <template #footer>
|
|
|
+ <a-button key="submit"
|
|
|
+ class="cancelBtn"
|
|
|
+ :loading="loading"
|
|
|
+ :disabled="loading"
|
|
|
+ @click="submit(1)">保存草稿 </a-button>
|
|
|
+ <a-button key="submit"
|
|
|
+ type="primary"
|
|
|
+ :loading="loading"
|
|
|
+ :disabled="loading"
|
|
|
+ @click="submit(2)">提交审核 </a-button>
|
|
|
+ </template>
|
|
|
+ <a-form class="inlineForm"
|
|
|
+ ref="formRef"
|
|
|
+ :model="formState"
|
|
|
+ :rules="rules">
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <template v-if="isQianHaiJin()">
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="所属机构"
|
|
|
+ name="areaid">
|
|
|
+ <a-select class="typeSelect"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.areaid"
|
|
|
+ placeholder="请选择所属机构">
|
|
|
+ <a-select-option v-for="item in areaList"
|
|
|
+ :key="item.userid">
|
|
|
+ {{ item.accountname }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="登录账号"
|
|
|
+ name="logincode">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ v-model:value="formState.logincode"
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请选择登录账号" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="登录密码"
|
|
|
+ name="loginpwd">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ v-model:value="formState.loginpwd"
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请选择登录密码" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
</template>
|
|
|
- <a-form class="inlineForm" ref="formRef" :model="formState" :rules="rules">
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="客户类型" name="userinfotype">
|
|
|
- <a-select class="typeSelect" style="width: 200px" v-model:value="formState.userinfotype" placeholder="请选择客户类型">
|
|
|
- <a-select-option value="1"> 个人 </a-select-option>
|
|
|
- <a-select-option value="2"> 企业 </a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <template v-if="!isPersonal()">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="企业名称" name="customername">
|
|
|
- <a-input class="dialogInput" v-model:value="formState.customername" style="width: 200px" placeholder="请输入企业名称" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="姓名" name="username">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.username" placeholder="请输入姓名" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </template>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="点价联系人" name="contactname">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.contactname" placeholder="请输入联系人" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="联系人手机号" name="mobilephone">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.mobilephone" placeholder="请输入联系人手机号" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form>
|
|
|
- </a-modal>
|
|
|
- <!-- 其他项目客户资料 -->
|
|
|
- <a-modal class="add-custom" v-else title="新增客户资料" v-model:visible="visible" @cancel="cancel" centered :maskClosable="false" width="890px">
|
|
|
- <template #footer>
|
|
|
- <a-button key="submit" class="cancelBtn" :loading="loading" :disabled="loading" @click="submit(1)">保存草稿 </a-button>
|
|
|
- <a-button key="submit" type="primary" :loading="loading" :disabled="loading" @click="submit(2)">提交审核 </a-button>
|
|
|
+ <a-col :span="12">
|
|
|
+
|
|
|
+ <a-form-item label="客户类型"
|
|
|
+ name="userinfotype">
|
|
|
+ <a-select class="typeSelect"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.userinfotype"
|
|
|
+ placeholder="请选择客户类型">
|
|
|
+ <a-select-option value="1"> 个人 </a-select-option>
|
|
|
+ <a-select-option value="2"> 企业 </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <template v-if="!isPersonal()">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="企业名称"
|
|
|
+ name="customername">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ v-model:value="formState.customername"
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请输入企业名称" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="企业简称"
|
|
|
+ name="nickname">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.nickname"
|
|
|
+ placeholder="请输入企业简称" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="证件类型"
|
|
|
+ name="cardtype">
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
+ v-model:value="formState.cardtype"
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请选择证件类型">
|
|
|
+ <a-select-option :value="item.enumitemname"
|
|
|
+ v-for="item in cardTypeList"
|
|
|
+ :key="item.autoid">
|
|
|
+ {{ item.enumdicname }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="法定代表人"
|
|
|
+ name="legalpersonname">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.legalpersonname"
|
|
|
+ placeholder="请输入法定代表人" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="证件号码"
|
|
|
+ name="cardnum">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.cardnum"
|
|
|
+ placeholder="请输入证件号码" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="纳税人识别号"
|
|
|
+ name="taxpayernum">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.taxpayernum"
|
|
|
+ placeholder="请输入纳税人识别号" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="营业执照">
|
|
|
+ <UploadImg :visible="visible"
|
|
|
+ @upload="attachmentUpLoad" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="联系人"
|
|
|
+ name="contactname">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.contactname"
|
|
|
+ placeholder="请输入联系人" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="联系人手机号"
|
|
|
+ name="mobilephone">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.mobilephone"
|
|
|
+ placeholder="请输入联系人手机号" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="联系电话"
|
|
|
+ name="telphone">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.telphone"
|
|
|
+ placeholder="请输入联系电话" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="姓名"
|
|
|
+ name="username">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.username"
|
|
|
+ placeholder="请输入姓名" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="身份证号码"
|
|
|
+ name="cardnum">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.cardnum"
|
|
|
+ placeholder="请输入身份证号码" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="手机号码"
|
|
|
+ name="mobilephone">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.mobilephone"
|
|
|
+ placeholder="请输入手机号码" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="身份证正面照"
|
|
|
+ name="cardbackphotourl">
|
|
|
+ <UploadImg :visible="visible"
|
|
|
+ @upload="cardfrontphotourlUpLoad" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="邮箱"
|
|
|
+ name="email">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.email"
|
|
|
+ placeholder="请输入邮箱" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="身份证反面照"
|
|
|
+ name="cardfrontphotourl">
|
|
|
+ <UploadImg :visible="visible"
|
|
|
+ @upload="cardbackphotourlUpLoad" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="联系电话"
|
|
|
+ name="telphone">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ v-model:value="formState.telphone"
|
|
|
+ placeholder="请输入联系电话" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item> </a-form-item>
|
|
|
+ </a-col>
|
|
|
</template>
|
|
|
- <a-form class="inlineForm" ref="formRef" :model="formState" :rules="rules">
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="客户类型" name="userinfotype">
|
|
|
- <a-select class="typeSelect" style="width: 200px" v-model:value="formState.userinfotype" placeholder="请选择客户类型">
|
|
|
- <a-select-option value="1"> 个人 </a-select-option>
|
|
|
- <a-select-option value="2"> 企业 </a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <template v-if="!isPersonal()">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="企业名称" name="customername">
|
|
|
- <a-input class="dialogInput" v-model:value="formState.customername" style="width: 200px" placeholder="请输入企业名称" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="企业简称" name="nickname">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.nickname" placeholder="请输入企业简称" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="证件类型" name="cardtype">
|
|
|
- <a-select class="inlineFormSelect" v-model:value="formState.cardtype" style="width: 200px" placeholder="请选择证件类型">
|
|
|
- <a-select-option :value="item.enumitemname" v-for="item in cardTypeList" :key="item.autoid">
|
|
|
- {{ item.enumdicname }}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="法定代表人" name="legalpersonname">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.legalpersonname" placeholder="请输入法定代表人" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="证件号码" name="cardnum">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.cardnum" placeholder="请输入证件号码" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="纳税人识别号" name="taxpayernum">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.taxpayernum" placeholder="请输入纳税人识别号" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="营业执照">
|
|
|
- <UploadImg :visible="visible" @upload="attachmentUpLoad" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="联系人" name="contactname">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.contactname" placeholder="请输入联系人" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="联系人手机号" name="mobilephone">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.mobilephone" placeholder="请输入联系人手机号" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="联系电话" name="telphone">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.telphone" placeholder="请输入联系电话" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="姓名" name="username">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.username" placeholder="请输入姓名" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="身份证号码" name="cardnum">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.cardnum" placeholder="请输入身份证号码" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="手机号码" name="mobilephone">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.mobilephone" placeholder="请输入手机号码" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="身份证正面照" name="cardbackphotourl">
|
|
|
- <UploadImg :visible="visible" @upload="cardfrontphotourlUpLoad" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="邮箱" name="email">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.email" placeholder="请输入邮箱" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="身份证反面照" name="cardfrontphotourl">
|
|
|
- <UploadImg :visible="visible" @upload="cardbackphotourlUpLoad" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="联系电话" name="telphone">
|
|
|
- <a-input class="dialogInput" style="width: 200px" v-model:value="formState.telphone" placeholder="请输入联系电话" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item> </a-form-item>
|
|
|
- </a-col>
|
|
|
- </template>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="通讯地址">
|
|
|
- <a-select class="inlineFormSelect" style="width: 205px" v-model:value="formState.provinceid" @change="getCityList" placeholder="请选择省">
|
|
|
- <a-select-option v-for="item in provinceList" :key="item.autoid" :value="item.autoid">
|
|
|
- {{ item.divisionname }}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
- <a-select class="inlineFormSelect ml9" style="width: 205px" v-model:value="formState.cityid" @change="getDistrictList" placeholder="请选择市">
|
|
|
- <a-select-option v-for="item in cityList" :key="item.autoid" :value="item.autoid">
|
|
|
- {{ item.divisionname }}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
- <a-select class="inlineFormSelect ml9" v-model:value="formState.districtid" style="width: 205px" placeholder="请选择县(区)">
|
|
|
- <a-select-option v-for="item in districtList" :key="item.autoid" :value="item.autoid">
|
|
|
- {{ item.divisionname }}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label=" " name="cardaddress">
|
|
|
- <a-input class="dialogInput" style="width: 635px" v-model:value="formState.cardaddress" placeholder="请输入详细地址" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="备注" name="remark">
|
|
|
- <a-input class="dialogInput" style="width: 635px" v-model:value="formState.remark" placeholder="请输入备注" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form>
|
|
|
- </a-modal>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="通讯地址">
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
+ style="width: 205px"
|
|
|
+ v-model:value="formState.provinceid"
|
|
|
+ @change="getCityList"
|
|
|
+ placeholder="请选择省">
|
|
|
+ <a-select-option v-for="item in provinceList"
|
|
|
+ :key="item.autoid"
|
|
|
+ :value="item.autoid">
|
|
|
+ {{ item.divisionname }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ <a-select class="inlineFormSelect ml9"
|
|
|
+ style="width: 205px"
|
|
|
+ v-model:value="formState.cityid"
|
|
|
+ @change="getDistrictList"
|
|
|
+ placeholder="请选择市">
|
|
|
+ <a-select-option v-for="item in cityList"
|
|
|
+ :key="item.autoid"
|
|
|
+ :value="item.autoid">
|
|
|
+ {{ item.divisionname }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ <a-select class="inlineFormSelect ml9"
|
|
|
+ v-model:value="formState.districtid"
|
|
|
+ style="width: 205px"
|
|
|
+ placeholder="请选择县(区)">
|
|
|
+ <a-select-option v-for="item in districtList"
|
|
|
+ :key="item.autoid"
|
|
|
+ :value="item.autoid">
|
|
|
+ {{ item.divisionname }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label=" "
|
|
|
+ name="cardaddress">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 635px"
|
|
|
+ v-model:value="formState.cardaddress"
|
|
|
+ placeholder="请输入详细地址" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="备注"
|
|
|
+ name="remark">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 635px"
|
|
|
+ v-model:value="formState.remark"
|
|
|
+ placeholder="请输入备注" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
+ </a-modal>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
import UploadImg from '@/common/components/uploadImg/index.vue';
|
|
|
-import { isPingAnOem } from '@/common/config/projectName';
|
|
|
+import { isPingAnOem, isQianHaiJin } from '@/common/config/projectName';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
@@ -199,9 +379,10 @@ import { getAddress } from '@/services/go/adress';
|
|
|
import { AllEnums } from '@/services/go/commonService/interface';
|
|
|
import { addCustomerInfoOperate } from '@/services/proto/accountinfo';
|
|
|
import { CustomerInfoOperateReq } from '@/services/proto/accountinfo/interface';
|
|
|
+import { toBase64String } from '@/utils/storage/base64';
|
|
|
import { defineComponent, ref } from 'vue';
|
|
|
import { FormState } from './interface';
|
|
|
-import { getCardType, handleForm } from './setup';
|
|
|
+import { getCardType, handleForm, handleAreaList } from './setup';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'add-custom',
|
|
|
@@ -223,6 +404,11 @@ export default defineComponent({
|
|
|
const { getFirstImg: getBackImg, uploadImgAction: cardbackphotourlUpLoad } = getUploadImg();
|
|
|
// 正面证件照地址
|
|
|
const { getFirstImg: getFrontImg, uploadImgAction: cardfrontphotourlUpLoad } = getUploadImg();
|
|
|
+ //查询所属机构列表
|
|
|
+ const { areaList, getAreaList } = handleAreaList();
|
|
|
+ if (isQianHaiJin()) {
|
|
|
+ getAreaList(loading);
|
|
|
+ }
|
|
|
function isPersonal(): boolean {
|
|
|
return formState.userinfotype === '1';
|
|
|
}
|
|
|
@@ -231,8 +417,7 @@ export default defineComponent({
|
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
|
const reqParam: CustomerInfoOperateReq = {
|
|
|
operatetype: 1, // 1: 新增
|
|
|
- // userid: 1, // 写死 必填
|
|
|
- userid: getUserId(), // 写死 必填
|
|
|
+ userid: getUserId(), // 必填
|
|
|
areaid: getUserId(),
|
|
|
userinfotype: Number(param.userinfotype),
|
|
|
username: Number(param.userinfotype) === 1 ? param.username : param.customername,
|
|
|
@@ -257,6 +442,12 @@ export default defineComponent({
|
|
|
email: param.email, // email
|
|
|
proxystatementurl: '',
|
|
|
};
|
|
|
+ if (isQianHaiJin()) {
|
|
|
+ reqParam.areaid = param.areaid as number;
|
|
|
+ reqParam.logincode = param.logincode;
|
|
|
+ reqParam.loginpwd = toBase64String(toBase64String(param.loginpwd));
|
|
|
+ reqParam.userstate = 2;
|
|
|
+ }
|
|
|
requestResultLoadingAndInfo(addCustomerInfoOperate, reqParam, loading, OperateType === 1 ? ['保存草稿成功', '保存草稿失败:'] : ['新增客户资料成功', '新增客户资料失败:']).then(() => {
|
|
|
cancel(true);
|
|
|
});
|
|
|
@@ -275,12 +466,14 @@ export default defineComponent({
|
|
|
cityList,
|
|
|
districtList,
|
|
|
provinceList,
|
|
|
+ areaList,
|
|
|
getCityList,
|
|
|
getDistrictList,
|
|
|
attachmentUpLoad,
|
|
|
cardbackphotourlUpLoad,
|
|
|
cardfrontphotourlUpLoad,
|
|
|
isPingAnOem,
|
|
|
+ isQianHaiJin,
|
|
|
};
|
|
|
},
|
|
|
});
|