Commit c3ae393c by Jianli Ou

bug处理

parent df4760e5
......@@ -9,221 +9,214 @@
label-width='160px'
:model='form'>
<el-form-item label='企业名称(中文):'
prop='chineseName'
prop='firmName'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-input v-model='form.chineseName' autocomplete='off' placeholder="请输入企业中文名称"></el-input>
<el-input v-model='form.firmName' :disabled="true" autocomplete='off' placeholder="请输入企业中文名称"></el-input>
</el-form-item>
<el-form-item label='企业名称(英文):'
prop='englishName'
prop='firmName1'
>
<el-input v-model='form.englishName' autocomplete='off' placeholder="请输入企业英文名称"></el-input>
<el-input v-model='form.firmName1' :disabled="true" autocomplete='off' placeholder="请输入企业英文名称"></el-input>
</el-form-item>
<el-form-item label='注册地址:'
prop='registeredAddress'
prop='registerAddress'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]"
>
<el-input placeholder="请输入注册地址" v-model="form.registeredAddress" class="input-with-select">
<el-select v-model="form.city" slot="prepend" placeholder="请选择" class="smallselect">
<el-option label="黑龙江" value="1" ></el-option>
</el-select>
<el-input placeholder="请输入注册地址" :disabled="true" v-model="form.registerAddress" class="input-with-select">
<el-cascader
slot="prepend" placeholder="请选择" class="smallselect" style="margin: -10px -20px;"
v-model="form.political"
:disabled="true"
:options="cascadeRegion"
:props="{ expandTrigger: 'hover', label: 'label', value: 'code' }"
size="medium"
@change="politicalChangeEvent"></el-cascader>
<!-- <el-select v-model="form.political" @change="politicalChangeEvent" slot="prepend" placeholder="请选择" class="smallselect">-->
<!-- <el-option v-for="item in AdministrativeDivisionCode" :label="item.label" :value="item.value" :key="item.value"></el-option>-->
<!-- </el-select>-->
</el-input>
</el-form-item>
<el-form-item label='注册地址(英文):'
prop='englishRegisterAddr'
prop='registerAddress1'
>
<el-input v-model='form.englishRegisterAddr' autocomplete='off' placeholder="请输入英文注册地址"></el-input>
<el-input v-model='form.registerAddress1' :disabled="true" autocomplete='off' placeholder="请输入英文注册地址"></el-input>
</el-form-item>
<el-form-item label='注册地址邮政编码:'
prop='registerAddrCode'
prop='postcode'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-input v-model='form.registerAddrCode' autocomplete='off' placeholder="请输入注册地址邮政编码"></el-input>
<el-input v-model='form.postcode' :disabled="true" autocomplete='off' placeholder="请输入注册地址邮政编码"></el-input>
</el-form-item>
<el-form-item label='办公地址:'
prop='officeAddr'
prop='address'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-input v-model='form.officeAddr' autocomplete='off' placeholder="请输入办公地址"></el-input>
<el-input v-model='form.address' :disabled="true" autocomplete='off' placeholder="请输入办公地址"></el-input>
</el-form-item>
<el-form-item label='办公地址(英文):'
prop='englishOfficeAddr'
prop='address1'
>
<el-input v-model='form.englishOfficeAddr' autocomplete='off' placeholder="请输入英文办公地址"></el-input>
<el-input v-model='form.address1' :disabled="true" autocomplete='off' placeholder="请输入英文办公地址"></el-input>
</el-form-item>
<el-form-item label='办公地址邮政编码:'
prop='officeAddrCode'
prop='postcode1'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-input v-model='form.officeAddrCode' autocomplete='off' placeholder="请输入办公地址邮政编码"></el-input>
<el-input v-model='form.postcode1' :disabled="true" autocomplete='off' placeholder="请输入办公地址邮政编码"></el-input>
</el-form-item>
<el-form-item label='统一社会信用代码:'
prop='creditCode'
prop='certificateCode'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-input v-model='form.creditCode' autocomplete='off' placeholder="请输入统一社会信用代码"></el-input>
<el-input v-model='form.certificateCode' :disabled="true" autocomplete='off' placeholder="请输入统一社会信用代码"></el-input>
</el-form-item>
<el-form-item label='注册资金(万元):'
prop='registeredCapital'
prop='registerPrincipal'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-input v-model='form.registeredCapital' autocomplete='off' placeholder="请输入注册资金(万元)"></el-input>
<el-input v-model='form.registerPrincipal' :disabled="true" autocomplete='off' placeholder="请输入注册资金(万元)"></el-input>
</el-form-item>
<el-form-item label='货币种类:'
prop='currency'
prop='coinType'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-select v-model="form.currency" placeholder="请选择货币种类" >
<el-option label="" value="1" ></el-option>
<el-select v-model="form.coinType" :disabled="true" placeholder="请选择货币种类" >
<el-option v-for="item in coinTypeList" :label="item.label" :value="item.value" :key="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label='企业类别:'
prop='enterpriseCategory'
prop='firmType'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-select v-model="form.enterpriseCategory" placeholder="请选择企业类别" >
<el-option label="" value="1" ></el-option>
<el-select v-model="form.firmType" :disabled="true" placeholder="请选择企业类别" >
<el-option v-for="item in firmTypeList" :label="item.label" :value="item.value" :key="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label='经济类型代码:'
prop='economicTypeCode'
prop='dm'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-select v-model="form.economicTypeCode" placeholder="请选择经济类型代码" >
<el-option label="" value="1" ></el-option>
<el-select v-model="form.dm" :disabled="true" placeholder="请选择经济类型代码" >
<el-option v-for="item in EconomicCategoryCode" :label="item.label" :value="item.value" :key="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label='国民经济行业分类代码:'
prop='nationalEconomyCode'
prop='TJDm'
class="moreLong"
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-select v-model="form.branch" placeholder="请选择国民经济行业分类代码" >
<el-option label="" value="1" ></el-option>
<el-select v-model="form.TJDm" :disabled="true" placeholder="请选择国民经济行业分类代码" >
<el-option v-for="item in NationalIndustryClassificationCode" :label="item.label" :value="item.value" :key="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label='组织机构代码:'
prop='organizationCode'
prop='firmCode'
>
<el-input v-model='form.organizationCode' autocomplete='off' placeholder="请输入组织机构代码"></el-input>
<el-input v-model='form.firmCode' :disabled="true" autocomplete='off' placeholder="请输入组织机构代码"></el-input>
</el-form-item>
<el-form-item label='法定代表人:'
prop='legalRepresentative'
prop='leader'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-input v-model='form.legalRepresentative' autocomplete='off' placeholder="请输入法定代表人"></el-input>
<el-input v-model='form.leader' :disabled="true" autocomplete='off' placeholder="请输入法定代表人"></el-input>
</el-form-item>
<el-form-item label='电话:'
prop='legalRepresentativeTel'
<el-form-item label='法定代表人电话:'
prop='leaderTele'
>
<el-input v-model='form.legalRepresentativeTel' autocomplete='off' placeholder="请输入法定代表人电话"></el-input>
<el-input v-model='form.leaderTele' :disabled="true" autocomplete='off' placeholder="请输入法定代表人电话"></el-input>
</el-form-item>
<el-form-item label='手机:'
prop='legalRepresentativePhone'
<el-form-item label='法定代表人手机:'
prop='leaderHandset'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-input v-model='form.legalRepresentativePhone' autocomplete='off' placeholder="请输入法定代表人手机"></el-input>
<el-input v-model='form.leaderHandset' :disabled="true" autocomplete='off' placeholder="请输入法定代表人手机"></el-input>
</el-form-item>
<el-form-item label='企业网址:'
prop='website'
prop='netStation'
>
<el-input v-model='form.website' autocomplete='off' placeholder="请输入企业网址:"></el-input>
<el-input v-model='form.netStation' :disabled="true" autocomplete='off' placeholder="请输入企业网址:"></el-input>
</el-form-item>
<p class="content-from-title">经办人信息</p>
<p class="content-from-title">经办人信息填报</p>
<el-form-item label='经办人姓名:'
prop='name'
prop='contactman'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-input v-model='form.name' autocomplete='off' placeholder="请输入经办人姓名"></el-input>
<el-input v-model='form.contactman' :disabled="true" autocomplete='off' placeholder="请输入经办人姓名"></el-input>
</el-form-item>
<el-form-item label='电话:'
prop='tel'
prop='contactmanCtqh'
:rules="[{
required: true,
required: false,
message: '不能为空',
}]">
<el-input v-model='form.tel' autocomplete='off' placeholder="请输入电话"></el-input>
<el-input v-model='form.contactmanCtqh' :disabled="true" autocomplete='off' placeholder="请输入电话"></el-input>
</el-form-item>
<el-form-item label='手机:'
prop='mobile'
prop='contactmanMp'
:rules="[{
required: true,
required: false,
message: '不能为空',
},
{ validator:checkMobileReg },
{ validator:checkMobile, trigger:'blur' },]">
<el-input v-model='form.mobile' autocomplete='off' placeholder="请输入手机"></el-input>
<el-input v-model='form.contactmanMp' :disabled="true" autocomplete='off' placeholder="请输入手机"></el-input>
</el-form-item>
<el-form-item label='传真:'
prop='fax'
:rules="[{
required: true,
message: '不能为空',
}]">
<el-input v-model='form.email' autocomplete='off' placeholder="请输入传真"></el-input>
prop='contactmanFax'
>
<el-input v-model='form.contactmanFax' :disabled="true" autocomplete='off' placeholder="请输入传真"></el-input>
</el-form-item>
<el-form-item label='E-mail:'
prop='email'
prop='contactmanEmail'
:rules="[{
required: true,
required: false,
message: '不能为空',
},
{ type: 'email',
message: '请输入正确的邮箱地址',
trigger: ['blur', 'change']
}]">
<el-input v-model='form.email' autocomplete='off' placeholder="请输入E-mail"></el-input>
<el-input v-model='form.contactmanEmail' :disabled="true" autocomplete='off' placeholder="请输入E-mail"></el-input>
</el-form-item>
</el-form>
</div>
<div class="btn-div">
<el-button type="primary" @click="register" style="width: 110px">保 存</el-button>
<el-button style="width: 110px">取 消</el-button>
</div>
<!-- <div class="btn-div">-->
<!-- <el-button type="primary" @click="register" style="width: 110px">保 存</el-button>-->
<!-- <el-button style="width: 110px">取 消</el-button>-->
<!-- </div>-->
</div>
</div>
......@@ -234,46 +227,96 @@ export default {
name: "index",
data() {
return {
loginInfo: {},
memberInfo: {},
hasSent: false,
timer: null,
time: 60,
form: {
chineseName:'',
englishName:'',
registeredAddress:'',
city:'1',
englishRegisterAddr:'',
registerAddrCode:'',
officeAddr:'',
englishOfficeAddr:'',
officeAddrCode:'',
creditCode:'',
registeredCapital:'',
currency:'',
enterpriseCategory:'',
economicTypeCode:'',
nationalEconomyCode:'',
organizationCode:'',
legalRepresentative:'',
legalRepresentativeTel:'',
legalRepresentativePhone:'',
website:'',
name:'',
tel:'',
mobile:'',
fax:'',
email:'',
business:''
firmName:'', // 企业名称
firmName1:'', // 企业名称(英文)
registerAddress:'', // 注册地址
political:'', // 注册地址地区编码 6位数字
branchCode:'', // 所属分支机构
registerAddress1:'', // 注册地址(英文)
postcode:'', // 注册地址邮政编码
address:'', // 办公地址
address1:'', // 办公地址(英文)
postcode1:'', // 办公地址邮政编码
certificateCode:'', // 统一社会信用代码
registerPrincipal:'', // 注册资金
coinType:'', // 货币种类 人民币、美元、欧元、港币、日元、英镑、德国马克、瑞士法郎、澳门元
firmType:'', // 企业类别
dm:'', // 经济类型代码
TJDm:'', // 国民经济行业分类代码
firmCode:'', // 组织机构代码
leader:'', // 法定代表人
leaderTele:'', // 法定代表人电话
leaderHandset:'', // 法定代表人手机
netStation:'', // 企业网址
firmBusinessLicenseFile: '', // 上传已年检企业营业执照扫描件
contactman:'', // 经办人姓名
contactmanCtqh:'', // 经办人电话 提交数据到接口时,区号和电话后8位需分开 区号存入contactmanCtqh字段,后8位存入contactmanTele字段
contactmanMp:'', // 经办人手机
contactmanFax:'', // 经办人传真
contactmanEmail:'', // 经办人邮箱
serviceType:'' // 办理业务
// chineseName:'',
// englishName:'',
// registeredAddress:'',
// city:'1',
// englishRegisterAddr:'',
// registerAddrCode:'',
// officeAddr:'',
// englishOfficeAddr:'',
// officeAddrCode:'',
// creditCode:'',
// registeredCapital:'',
// currency:'',
// enterpriseCategory:'',
// economicTypeCode:'',
// nationalEconomyCode:'',
// organizationCode:'',
// legalRepresentative:'',
// legalRepresentativeTel:'',
// legalRepresentativePhone:'',
// website:'',
// name:'',
// tel:'',
// mobile:'',
// fax:'',
// email:'',
// business:''
},
mobilePattern: /^((13[0-9])|(15[^4])|(18[0-9])|(17[0-8])|(147))\d{8}$/,
cascadeRegion: window.CodeTable.cascadeRegion,
coinTypeList: [
{label: '人民币', value: '人民币'},
{label: '美元', value: '美元'},
{label: '欧元', value: '欧元'},
{label: '港币', value: '港币'},
{label: '日元', value: '日元'},
{label: '英镑', value: '英镑'},
{label: '德国马克', value: '德国马克'},
{label: '瑞士法郎', value: '瑞士法郎'},
{label: '澳门元', value: '澳门元'}
],
firmTypeList: [
{label: '单个生产企业', value: '单个生产企业'},
{label: '集团公司', value: '集团公司'},
{label: '进出口公司', value: '进出口公司'}
],
serviceTypeList: [
{label: '进口商品数据通报', value: '进口商品数据通报'},
{label: '申请全球位置码(GLN)', value: '申请全球位置码(GLN)'}
],
branchList: [],
AdministrativeDivisionCode: window.CodeTable.AdministrativeDivisionCodeHandle,
EconomicCategoryCode: window.CodeTable.EconomicCategoryCodeHandle,
NationalIndustryClassificationCode: window.CodeTable.NationalIndustryClassificationCodeHandle
}
},
methods: {
register() {
},
checkMobileReg(rule, value, callback) {
if (value !== '') {
if (this.mobilePattern.test(value)) {
......@@ -283,16 +326,42 @@ export default {
}
}
},
checkMobile() {
console.log('checkMobile');
return new Promise((resolve) => {
resolve(true);
});
},
politicalChangeEvent() {
console.log(this.form.political)
this.form.branchCode = ''
this.branchList = window.CodeTable.getBranches(this.form.political[this.form.political.length - 1])
this.branchList.length > 0 && (this.form.branchCode = this.branchList[0].value)
},
async getTycpdmFirmInfo() {
const result = await this.$api.myManage.tycpdmFirmInfo({userName: this.memberInfo.username})
const tycpdmFirmInfo = result.data.data
this.initFormData(tycpdmFirmInfo)
},
async getMemberInfo() {
this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data
await this.getTycpdmFirmInfo()
},
initFormData(tycpdmFirmInfo) {
this.form.political = [tycpdmFirmInfo.political]
this.politicalChangeEvent()
Object.keys(this.form).forEach(key => {
if (['political'].indexOf(key) < 0) {
this.form[key] = tycpdmFirmInfo[key.toLowerCase()]
}
})
this.form.contactmanCtqh = tycpdmFirmInfo['contactmanctqh'] + '-' + tycpdmFirmInfo['contactmantele']
}
},
mounted() {
this.loginInfo = JSON.parse(localStorage.getItem('loginInfo'))
this.getMemberInfo()
}
}
</script>
......
......@@ -51,6 +51,10 @@ export default {
this.uploading = false
},
uploadEvent() {
this.$confirm('请核对企业信息。提交后,在管理员审核完成前,不能修改。', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消'
}).then(() => {
let inputObj = null
if (!document.getElementById('file')) {
inputObj = document.createElement('input')
......@@ -72,6 +76,7 @@ export default {
inputObj = document.getElementById('file')
}
inputObj.click()
}).catch(() => {});
},
async getTycpdmFirmInfo() {
const result = await this.$api.myManage.tycpdmFirmInfo({userName: this.memberInfo.username})
......
<template>
<div class="container2" v-loading="uploading">
<div class="header">
<div v-if="status === 2" class="header">
<p><i class="bi bi-exclamation-triangle-fill"></i>注:若您只是变更了不需要审核的信息(请查看 <a href="/MyManage/UnVerify/vendorModify">修改企业信息</a>),系统会默认通过审核。</p>
</div>
<div v-else class="header">
<p><i class="bi bi-exclamation-triangle-fill"></i>厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证)</p>
</div>
<div class="content">
......@@ -34,6 +37,7 @@
prop='firmName1'
>
<el-input v-model='form.firmName1' autocomplete='off' placeholder="请输入企业英文名称"></el-input>
<span class="form-item-tip">对俄罗斯出口的企业,本项必填!</span>
</el-form-item>
<el-form-item label='注册地址:'
prop='registerAddress'
......@@ -199,8 +203,17 @@
required: true,
message: '不能为空',
}]">
<el-input v-model='form.firmBusinessLicenseFile' autocomplete='off' type="file" style="display:none"></el-input>
<el-button @click="uploadEvent" type="primary" style="width: 110px;height: 36px;">上传</el-button>
<el-input v-model='form.firmBusinessLicenseFile' autocomplete='off' style="display:none"></el-input>
<el-button @click="uploadEvent" type="primary" style="width: 110px;height: 36px;">上传</el-button><br/>
<span style="margin-right: 15px;cursor: pointer;color: #0D6EFD;">查看历史上传文件</span>
<el-popover
placement="bottom"
width="300"
trigger="hover"
v-model="uploadTipVisible">
<span slot="reference" style="cursor:pointer;">必须为清晰彩色原件扫描件或数码照,必须...</span>
必须为清晰彩色原件扫描件或数码照,必须在有效期内且年检章齐全(当年成立的公司可无年检章),支持png,bmp,jpg格式,大小不得超过3M
</el-popover>
</el-form-item>
<p class="content-from-title">经办人信息填报</p>
......@@ -276,6 +289,12 @@
<t-j-dm-select @cancel="dialogVisible = false" :initSelect="form.TJDm" @confirm="confirmEvent"/>
</div>
</el-dialog>
<el-image
id="image"
style="width: 10px; height: 10px;opacity: 0;"
:src="imagePreview.url"
:preview-src-list="imagePreview.srcList">
</el-image>
</div>
</template>
......@@ -291,8 +310,13 @@ export default {
return {
dialogVisible: false,
uploading: false,
uploadTipVisible: false,
loginInfo: {},
memberInfo: {},
imagePreview: {
url: '',
srcList: []
},
hasSent: false,
timer: null,
time: 60,
......@@ -671,6 +695,13 @@ export default {
}
}
}
.form-item-tip {
position: absolute;
margin: 10px 0 0 5px;
width: 200px;
font-size: 13px;
color: #F56C6C;
}
</style>
<style lang="scss" scoped>
@media (max-width: 768px) {
......
<template>
<div class="container2" v-loading="uploading">
<div class="header">
<p><i class="bi bi-exclamation-triangle-fill"></i>注:若需对以下不可编辑的信息进行修改,必须申请 <a href="/MyManage/UnVerify/vendor">变更厂商实名认证信息 。</a></p>
</div>
<div class="content">
<div class="title">
修改企业信息 <a href="/MyManage/UnVerify/vendor">变更厂商实名认证信息</a>
......
......@@ -131,20 +131,26 @@ export default {
},
{
id: uuid("gs_nav"),
name: "修改登录密码",
name: "企业信息",
index: 1,
link: '/MyManage/SystemMember/companyInfo'
},
{
id: uuid("gs_nav"),
name: "修改登录密码",
index: 2,
link: "/MyManage/UnVerify/changePass",
},
{
id: uuid("gs_nav"),
name: "修改手机号码",
index: 2,
index: 3,
link: "/MyManage/UnVerify/changePhone",
},
{
id: uuid("gs_nav"),
name: "变更企业信息",
index: 1,
index: 4,
link: "/MyManage/UnVerify/vendor",
},
],
......@@ -185,35 +191,25 @@ export default {
adminBranchRouterList: [
{
id: uuid("gs_nav"),
name: "业务审核",
name: "实名认证业务审核",
index: 0,
link: "/MyManage/admin/check",
},
// {
// id: uuid("gs_nav"),
// name: "统一产品编码",
// index: 1,
// link: "/MyManage/admin/code",
// },
{
id: uuid("gs_nav"),
name: "审核状态修改",
index: 2,
link: "/MyManage/admin/status_change",
},
link: "",
children: [
{
id: uuid("gs_nav"),
name: "企业信息修改",
index: 3,
link: "/MyManage/admin/ent_info",
name: "企业实名认证",
index: 0,
link: "/MyManage/admin/check",
},
{
id: uuid("gs_nav"),
name: "日志查看",
index: 4,
link: "/MyManage/admin/log",
name: "企业实名认证变更",
index: 1,
link: "/MyManage/admin/check",
},
],
}
],
userType: ADMIN,
loginInfo: JSON.parse(localStorage.getItem('loginInfo'))
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment