|
@@ -16,16 +16,18 @@
|
|
<el-form-item label="供应商账号">
|
|
<el-form-item label="供应商账号">
|
|
<el-input v-model="form.account" class="ipwidth" disabled/>
|
|
<el-input v-model="form.account" class="ipwidth" disabled/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="供应商密码">
|
|
|
|
- <el-input v-model="form.password" class="ipwidth" type="password" show-password/>
|
|
|
|
- </el-form-item>
|
|
|
|
<el-form-item label="供应商联系人" :rules="[{ message: '身份证不能为空'}]">
|
|
<el-form-item label="供应商联系人" :rules="[{ message: '身份证不能为空'}]">
|
|
<el-input v-model="form.contacts" class="ipwidth" />
|
|
<el-input v-model="form.contacts" class="ipwidth" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="供应商联系电话">
|
|
<el-form-item label="供应商联系电话">
|
|
<el-input v-model="form.contactsMobile" class="ipwidth" />
|
|
<el-input v-model="form.contactsMobile" class="ipwidth" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-
|
|
|
|
|
|
+ <el-form-item label="法人姓名" :rules="[{ message: '身份证不能为空'}]">
|
|
|
|
+ <el-input v-model="form.legalPerson" class="ipwidth" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="社会信用代码" :rules="[{ message: '电话号码不能为空'}]">
|
|
|
|
+ <el-input v-model="form.socialCode" class="ipwidth" disabled/>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item >
|
|
<el-form-item >
|
|
<el-button type="primary" @click="update">保存修改</el-button>
|
|
<el-button type="primary" @click="update">保存修改</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -38,12 +40,7 @@
|
|
<span style="visibility: hidden;">其他信息</span>
|
|
<span style="visibility: hidden;">其他信息</span>
|
|
</span>
|
|
</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="法人姓名" :rules="[{ message: '身份证不能为空'}]">
|
|
|
|
- <el-input v-model="form.legalPerson" class="ipwidth" />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="社会信用代码" :rules="[{ message: '电话号码不能为空'}]">
|
|
|
|
- <el-input v-model="form.socialCode" class="ipwidth" disabled/>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+
|
|
<el-form-item label="供应商认证照片" >
|
|
<el-form-item label="供应商认证照片" >
|
|
<div style="display: flex;">
|
|
<div style="display: flex;">
|
|
<div>
|
|
<div>
|
|
@@ -84,8 +81,9 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <!-- <el-collapse v-model="activeNames" style="width: 80%;float: right;">
|
|
|
|
- <el-collapse-item title="供应商认证照片" name="3">
|
|
|
|
|
|
+ <el-form-item label="修改密码">
|
|
|
|
+ <el-collapse v-model="activeNames" style="width: 80%;">
|
|
|
|
+ <!-- <el-collapse-item title="供应商认证照片" name="3">
|
|
<div class="boximg">
|
|
<div class="boximg">
|
|
<el-upload action="https://ht.9026.com/api/File" list-type="picture-card"
|
|
<el-upload action="https://ht.9026.com/api/File" list-type="picture-card"
|
|
:on-success="handleAvatarSuccess">
|
|
:on-success="handleAvatarSuccess">
|
|
@@ -117,13 +115,13 @@
|
|
</el-image>
|
|
</el-image>
|
|
</div>
|
|
</div>
|
|
</el-collapse-item> -->
|
|
</el-collapse-item> -->
|
|
- <!-- <el-collapse-item title="修改密码" name="5">
|
|
|
|
|
|
+ <el-collapse-item name="1">
|
|
<el-input v-model="password.oldPassword" placeholder="请输入旧密码" type="password" show-password></el-input>
|
|
<el-input v-model="password.oldPassword" placeholder="请输入旧密码" type="password" show-password></el-input>
|
|
<el-input v-model="password.newPassword" placeholder="请输入新密码" type="password" show-password></el-input>
|
|
<el-input v-model="password.newPassword" placeholder="请输入新密码" type="password" show-password></el-input>
|
|
<el-input v-model="password.ConfirmnewPassword" placeholder="确认新密码" type="password" show-password ></el-input>
|
|
<el-input v-model="password.ConfirmnewPassword" placeholder="确认新密码" type="password" show-password ></el-input>
|
|
<el-button type="primary" @click="onSubmit">确认修改</el-button>
|
|
<el-button type="primary" @click="onSubmit">确认修改</el-button>
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
- </el-collapse> -->
|
|
|
|
|
|
+ </el-collapse>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
@@ -206,7 +204,6 @@
|
|
contacts:'',
|
|
contacts:'',
|
|
contactsMobile:'',
|
|
contactsMobile:'',
|
|
id:'',
|
|
id:'',
|
|
- password:'',
|
|
|
|
socialCode:'',
|
|
socialCode:'',
|
|
legalPerson:'',
|
|
legalPerson:'',
|
|
identifyPics:[],
|
|
identifyPics:[],
|
|
@@ -250,7 +247,13 @@
|
|
type:"error",
|
|
type:"error",
|
|
message:'密码和确认密码不一致'
|
|
message:'密码和确认密码不一致'
|
|
})
|
|
})
|
|
- }else{
|
|
|
|
|
|
+ }else if(this.password.ConfirmnewPassword.length<6||this.password.newPassword.length<6){
|
|
|
|
+ this.$message({
|
|
|
|
+ type:'error',
|
|
|
|
+ message:'密码至少六位'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
if(this.role===2){
|
|
if(this.role===2){
|
|
this.$request({
|
|
this.$request({
|
|
url: '/api/Supplier/password',
|
|
url: '/api/Supplier/password',
|
|
@@ -303,9 +306,7 @@
|
|
/* 供应商上传委托书图片上传成功 */
|
|
/* 供应商上传委托书图片上传成功 */
|
|
handleSuccess(res) {
|
|
handleSuccess(res) {
|
|
//解构
|
|
//解构
|
|
- let {
|
|
|
|
- file
|
|
|
|
- } = res.data;
|
|
|
|
|
|
+ let {file} = res.data;
|
|
this.proxyFileArray.push(file);
|
|
this.proxyFileArray.push(file);
|
|
this.form.proxyFile = this.proxyFileArray;
|
|
this.form.proxyFile = this.proxyFileArray;
|
|
},
|
|
},
|