|
@ -258,40 +258,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!--添加商户注册信息弹窗--> |
|
|
|
|
|
<el-dialog :title="title" :visible.sync="openInfo" width="700px" append-to-body> |
|
|
|
|
|
<el-form ref="formInfo" :model="formInfo" :rules="rules" label-width="auto"> |
|
|
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.name')" prop="name"> |
|
|
|
|
|
<el-input v-model="formInfo.name" :placeholder="$t('business.merchant.indexBus.namePlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.gender')" prop="gender"> |
|
|
|
|
|
<el-select v-model="formInfo.gender" :placeholder="$t('business.merchant.indexBus.genderPlaceholder')"> |
|
|
|
|
|
<el-option :label="$t('business.merchant.indexBus.genderMale')" value="1"></el-option> |
|
|
|
|
|
<el-option :label="$t('business.merchant.indexBus.genderFemale')" value="0"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
<!-- <el-input v-model="form.gender" :placeholder="$t('business.merchant.indexBus.genderPlaceholder')" />--> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.idCard')" prop="idCard"> |
|
|
|
|
|
<el-input v-model="formInfo.idCard" :placeholder="$t('business.merchant.indexBus.idCardPlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.phone')" prop="phone"> |
|
|
|
|
|
<el-input v-model="formInfo.phone" :placeholder="$t('business.merchant.indexBus.phonePlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.age')" prop="age"> |
|
|
|
|
|
<el-input v-model="formInfo.age" :placeholder="$t('business.merchant.indexBus.agePlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.addr')" prop="addr"> |
|
|
|
|
|
<el-input v-model="formInfo.addr" :placeholder="$t('business.merchant.indexBus.addrPlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
|
|
<el-button :loading="buttonLoading" type="primary" @click="submitFormInfo">{{ |
|
|
|
|
|
$t('common.button.confirm') |
|
|
|
|
|
}} |
|
|
|
|
|
</el-button> |
|
|
|
|
|
<el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改用户信息-商户扩展对话框 --> |
|
|
<!-- 添加或修改用户信息-商户扩展对话框 --> |
|
|
<el-dialog :title="title" :visible.sync="openInfoBus" width="700px" append-to-body> |
|
|
<el-dialog :title="title" :visible.sync="openInfoBus" width="700px" append-to-body> |
|
@ -300,35 +266,28 @@ |
|
|
<el-input v-model="formInfoBus.merchantName" |
|
|
<el-input v-model="formInfoBus.merchantName" |
|
|
:placeholder="$t('business.merchant.indexBus.merchantNamePlaceholder')"/> |
|
|
:placeholder="$t('business.merchant.indexBus.merchantNamePlaceholder')"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.licenseLabel')" prop="license"> |
|
|
<el-form-item :label="$t('business.userManager.userInfo.email')" prop="email"> |
|
|
<el-input v-model="formInfoBus.license" :placeholder="$t('business.merchant.indexBus.licensePlaceholder')"/> |
|
|
<el-input v-model="formInfoBus.email" :placeholder="$t('business.userManager.userInfo.emailPlaceholder')"/> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.licenseOtherLabel')" prop="licenseOther"> |
|
|
|
|
|
<el-input v-model="formInfoBus.licenseOther" |
|
|
|
|
|
:placeholder="$t('business.merchant.indexBus.licenseOtherPlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.legalPersonLabel')" prop="legalPerson"> |
|
|
|
|
|
<el-input v-model="formInfoBus.legalPerson" |
|
|
|
|
|
:placeholder="$t('business.merchant.indexBus.legalPersonPlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.operateStatusLabel')" prop="operateStatus"> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.operateTypeLabel')" prop="operateType"> |
|
|
<el-select v-model="formInfoBus.operateStatus" |
|
|
<el-select v-model="formInfoBus.operateType" |
|
|
:placeholder="$t('business.merchant.indexBus.operateStatusPlaceholder')"> |
|
|
:placeholder="$t('business.merchant.indexBus.operateTypePlaceholder')"> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in options_operateStatus" |
|
|
v-for="item in options_operateType" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:value="item.value"> |
|
|
:value="item.value"> |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.operateAddrLabel')" prop="operateAddr"> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.addr')" prop="contactAddress"> |
|
|
<el-input v-model="formInfoBus.operateAddr" |
|
|
<el-cascader |
|
|
:placeholder="$t('business.merchant.indexBus.operateAddrPlaceholder')"/> |
|
|
v-model="formInfoBus.contactAddress" |
|
|
|
|
|
:options="options_addr" |
|
|
|
|
|
@change="handleChange"></el-cascader> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.contactAddress')" prop="contactAddress"> |
|
|
<el-form-item :label="$t('business.userManager.userInfo.detailAddr')" prop="detail"> |
|
|
<el-input v-model="formInfoBus.contactAddress" |
|
|
<el-input v-model="formInfoBus.detail" :placeholder="$t('business.userManager.userInfo.addrPlaceholder')" /> |
|
|
:placeholder="$t('business.userManager.userRegister.contactAddressPlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<div slot="footer" class="dialog-footer"> |
|
|
<div slot="footer" class="dialog-footer"> |
|
@ -349,20 +308,18 @@ |
|
|
<el-form-item :label="$t('business.merchant.indexBus.merchantNameLabel')"> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.merchantNameLabel')"> |
|
|
{{ formDetailBus.userInfoBusVo.merchantName }} |
|
|
{{ formDetailBus.userInfoBusVo.merchantName }} |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.licenseLabel')"> |
|
|
<el-form-item :label="$t('business.userManager.userInfo.email')"> |
|
|
{{ formDetailBus.userInfoBusVo.license }} |
|
|
{{ formDetailBus.userInfoBusVo.email}} |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.licenseOtherLabel')"> |
|
|
|
|
|
{{ formDetailBus.userInfoBusVo.licenseOther }} |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.legalPersonLabel')"> |
|
|
|
|
|
{{ formDetailBus.userInfoBusVo.legalPerson }} |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.operateStatusLabel')"> |
|
|
|
|
|
{{ formDetailBus.userInfoBusVo.operateStatus }} |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.operateAddrLabel')"> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.operateTypeLabel')"> |
|
|
{{ formDetailBus.userInfoBusVo.operateAddr }} |
|
|
<el-select v-model="formDetailBus.userInfoBusVo.operateType" disabled="disabled"> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in options_operateType" |
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item.value"> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.contactAddress')"> |
|
|
<el-form-item :label="$t('business.merchant.indexBus.contactAddress')"> |
|
|
{{ formDetailBus.userInfoBusVo.contactAddress }} |
|
|
{{ formDetailBus.userInfoBusVo.contactAddress }} |
|
@ -385,7 +342,8 @@ import { |
|
|
addUserInfoBus, |
|
|
addUserInfoBus, |
|
|
resetUserPassword, |
|
|
resetUserPassword, |
|
|
accountLock, |
|
|
accountLock, |
|
|
listUserRegisterBus |
|
|
listUserRegisterBus, |
|
|
|
|
|
getAddress |
|
|
} from "@/api/business/userRegister"; |
|
|
} from "@/api/business/userRegister"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
@ -408,6 +366,8 @@ export default { |
|
|
total: 0, |
|
|
total: 0, |
|
|
// 用户注册表格数据 |
|
|
// 用户注册表格数据 |
|
|
userRegisterList: [], |
|
|
userRegisterList: [], |
|
|
|
|
|
//地址选择列表 |
|
|
|
|
|
options_addr:[], |
|
|
// 弹出层标题 |
|
|
// 弹出层标题 |
|
|
title: "", |
|
|
title: "", |
|
|
// 是否显示弹出层 |
|
|
// 是否显示弹出层 |
|
@ -420,13 +380,61 @@ export default { |
|
|
openInfo: false, |
|
|
openInfo: false, |
|
|
// 是否展示用户信息弹窗层-商企 |
|
|
// 是否展示用户信息弹窗层-商企 |
|
|
openInfoBus: false, |
|
|
openInfoBus: false, |
|
|
options_operateStatus: [{ |
|
|
options_operateType: [{ |
|
|
value: '存续', |
|
|
value: '0', |
|
|
label: this.$t('business.merchant.indexBus.operateStatusExist') |
|
|
label: this.$t('common.operateType.type0') |
|
|
}, { |
|
|
}, { |
|
|
value: '注销', |
|
|
value: '1', |
|
|
label: this.$t('business.merchant.indexBus.operateStatusCancel') |
|
|
label: this.$t('common.operateType.type1') |
|
|
}], |
|
|
},{ |
|
|
|
|
|
value: '2', |
|
|
|
|
|
label: this.$t('common.operateType.type2') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '3', |
|
|
|
|
|
label: this.$t('common.operateType.type3') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '4', |
|
|
|
|
|
label: this.$t('common.operateType.type4') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '5', |
|
|
|
|
|
label: this.$t('common.operateType.type5') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '6', |
|
|
|
|
|
label: this.$t('common.operateType.type6') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '7', |
|
|
|
|
|
label: this.$t('common.operateType.type7') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '8', |
|
|
|
|
|
label: this.$t('common.operateType.type8') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '9', |
|
|
|
|
|
label: this.$t('common.operateType.type9') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '10', |
|
|
|
|
|
label: this.$t('common.operateType.type10') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '11', |
|
|
|
|
|
label: this.$t('common.operateType.type11') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '12', |
|
|
|
|
|
label: this.$t('common.operateType.type12') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '13', |
|
|
|
|
|
label: this.$t('common.operateType.type13') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '14', |
|
|
|
|
|
label: this.$t('common.operateType.type14') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '15', |
|
|
|
|
|
label: this.$t('common.operateType.type15') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '16', |
|
|
|
|
|
label: this.$t('common.operateType.type16') |
|
|
|
|
|
},{ |
|
|
|
|
|
value: '17', |
|
|
|
|
|
label: this.$t('common.operateType.type17') |
|
|
|
|
|
},], |
|
|
// 查询参数 |
|
|
// 查询参数 |
|
|
queryParams: { |
|
|
queryParams: { |
|
|
pageNum: 1, |
|
|
pageNum: 1, |
|
@ -467,11 +475,11 @@ export default { |
|
|
userLevel: [ |
|
|
userLevel: [ |
|
|
{required: true, message: this.$t('business.merchant.indexBus.userLevelRequired'), trigger: "change"} |
|
|
{required: true, message: this.$t('business.merchant.indexBus.userLevelRequired'), trigger: "change"} |
|
|
], |
|
|
], |
|
|
legalPerson: [ |
|
|
operateType: [ |
|
|
{required: true, message: this.$t('business.merchant.indexBus.legalPersonRequired'), trigger: "blur"} |
|
|
{required: true, message: this.$t('business.merchant.indexBus.operateTypeRequired'), trigger: "change"} |
|
|
], |
|
|
], |
|
|
operateStatus: [ |
|
|
email: [ |
|
|
{required: true, message: this.$t('business.merchant.indexBus.operateStatusRequired'), trigger: "change"} |
|
|
{ required: true, pattern: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,}(?:\.[a-zA-Z]{2,})?$/, message: this.$t('business.userManager.userInfo.emailRequired'), trigger: "blur" } |
|
|
], |
|
|
], |
|
|
operateAddr: [ |
|
|
operateAddr: [ |
|
|
{required: true, message: this.$t('business.merchant.indexBus.operateAddrRequired'), trigger: "blur"} |
|
|
{required: true, message: this.$t('business.merchant.indexBus.operateAddrRequired'), trigger: "blur"} |
|
@ -512,6 +520,9 @@ export default { |
|
|
contactAddress: [ |
|
|
contactAddress: [ |
|
|
{required: true, message: this.$t('business.merchant.indexBus.contactAddressRequired'), trigger: "blur"} |
|
|
{required: true, message: this.$t('business.merchant.indexBus.contactAddressRequired'), trigger: "blur"} |
|
|
], |
|
|
], |
|
|
|
|
|
detail: [ |
|
|
|
|
|
{required: true, message: this.$t('business.merchant.indexBus.contactAddressRequired'), trigger: "blur"} |
|
|
|
|
|
], |
|
|
merchantName: [ |
|
|
merchantName: [ |
|
|
{required: true, message: this.$t('business.merchant.indexBus.merchantNameRequired'), trigger: "blur"} |
|
|
{required: true, message: this.$t('business.merchant.indexBus.merchantNameRequired'), trigger: "blur"} |
|
|
], |
|
|
], |
|
@ -534,11 +545,18 @@ export default { |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
|
|
|
this.getAddress(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
/** 查询用户注册列表 */ |
|
|
/** 查询用户注册列表 */ |
|
|
getList() { |
|
|
getList() { |
|
|
this.loading = true; |
|
|
this.loading = true; |
|
|
|
|
|
const languageMap = { |
|
|
|
|
|
'zh': 1, |
|
|
|
|
|
'en': 2, |
|
|
|
|
|
'la': 3 |
|
|
|
|
|
}; |
|
|
|
|
|
this.queryParams.language = languageMap[this.$i18n.locale] || null; |
|
|
listUserRegisterBus(this.queryParams).then(response => { |
|
|
listUserRegisterBus(this.queryParams).then(response => { |
|
|
this.userRegisterList = response.rows; |
|
|
this.userRegisterList = response.rows; |
|
|
this.total = response.total; |
|
|
this.total = response.total; |
|
@ -667,6 +685,7 @@ export default { |
|
|
submitFormInfoBus() { |
|
|
submitFormInfoBus() { |
|
|
this.$refs["formInfoBus"].validate(valid => { |
|
|
this.$refs["formInfoBus"].validate(valid => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
|
|
|
this.formInfoBus.contactAddress = this.formInfoBus.contactAddress + "," + this.formInfoBus.detail; |
|
|
addUserInfoBus(this.formInfoBus).then(response => { |
|
|
addUserInfoBus(this.formInfoBus).then(response => { |
|
|
this.$modal.msgSuccess(this.$t('common.promptMsg.addSuccess')); |
|
|
this.$modal.msgSuccess(this.$t('common.promptMsg.addSuccess')); |
|
|
this.openInfoBus = false; |
|
|
this.openInfoBus = false; |
|
@ -768,6 +787,17 @@ export default { |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|
}); |
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
/** 获取地址列表 */ |
|
|
|
|
|
getAddress() { |
|
|
|
|
|
this.loading = true; |
|
|
|
|
|
getAddress(this.$i18n.locale).then(response => { |
|
|
|
|
|
this.options_addr = response.data; |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
/** 地址联动事件 **/ |
|
|
|
|
|
handleChange(value) { |
|
|
|
|
|
this.formInfo.addr = value; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|