| xqd
@@ -10,17 +10,17 @@
|
|
|
<span style="color:#262626;">供应商个人信息</span>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="供应商" :rules="[{ message: '姓名不能为空不能为空'}]">
|
|
|
- <el-input v-model="form.name" class="ipwidth" disabled/>
|
|
|
+ <el-form-item label="供应商名称" :rules="[{ message: '姓名不能为空不能为空'}]">
|
|
|
+ <el-input v-model="form.name" 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="法人姓名" :rules="[{ message: '身份证不能为空'}]">
|
|
|
- <el-input v-model="form.legalPerson" class="ipwidth" disabled/>
|
|
|
+ <el-input v-model="form.legalPerson" class="ipwidth" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="联系人" :rules="[{ message: '身份证不能为空'}]">
|
|
|
- <el-input v-model="form.contacts" class="ipwidth" disabled/>
|
|
|
+ <el-form-item label="供应商联系人" :rules="[{ message: '身份证不能为空'}]">
|
|
|
+ <el-input v-model="form.contacts" class="ipwidth" />
|
|
|
</el-form-item>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
| xqd
@@ -32,15 +32,26 @@
|
|
|
<span style="color:#262626;">其他信息</span>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="联系电话">
|
|
|
- <el-input v-model="form.contactsMobile" class="ipwidth" disabled/>
|
|
|
+ <el-form-item label="供应商联系电话">
|
|
|
+ <el-input v-model="form.contactsMobile" class="ipwidth" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="账号">
|
|
|
- <el-input v-model="form.account" class="ipwidth" disabled/>
|
|
|
+ <el-form-item label="供应商账号">
|
|
|
+ <el-input v-model="form.account" class="ipwidth" />
|
|
|
</el-form-item>
|
|
|
-
|
|
|
+ <!-- <el-form-item label="供应商密码">
|
|
|
+ <el-input v-model="form.password" class="ipwidth" type="password" show-password/>
|
|
|
+ </el-form-item> -->
|
|
|
<el-collapse v-model="activeNames" style="width: 80%;float: right;">
|
|
|
- <el-collapse-item title="认证照片" name="3">
|
|
|
+ <el-collapse-item title="供应商认证照片" name="3">
|
|
|
+ <div class="boximg">
|
|
|
+ <el-upload action="https://ht.9026.com/api/File" list-type="picture-card"
|
|
|
+ :on-success="handleAvatarSuccess">
|
|
|
+ <i class="el-icon-plus" />
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisibleimg">
|
|
|
+ <img width="100%" :src="form.identifyPicList" alt="" />
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
<div>
|
|
|
<el-image style="width: 100px; height: 100px" v-for="(item,index) in form.identifyPicList" :key="index" :src="item"
|
|
|
:preview-src-list="form.identifyPicList" >
|
| xqd
@@ -48,9 +59,18 @@
|
|
|
</div>
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item title="授权委托书" name="4">
|
|
|
+ <div class="boximg">
|
|
|
+ <el-upload action="https://ht.9026.com/api/File" list-type="picture-card"
|
|
|
+ :on-success="handleSuccess">
|
|
|
+ <i class="el-icon-plus" />
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisibleimg">
|
|
|
+ <img width="100%" :src="form.proxyFileList" alt="" />
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
<div>
|
|
|
<el-image style="width: 100px; height: 100px" v-for="(item,index) in form.proxyFileList" :key="index" :src="item"
|
|
|
- :preview-src-list="form.identifyPicList" >
|
|
|
+ :preview-src-list="form.proxyFileList" >
|
|
|
</el-image>
|
|
|
</div>
|
|
|
</el-collapse-item>
|
| xqd
@@ -66,7 +86,7 @@
|
|
|
|
|
|
|
|
|
<!-- 修改密码弹窗 -->
|
|
|
- <el-dialog title="修改密码" :visible.sync="dialogVisible" width="30%">
|
|
|
+ <!-- <el-dialog title="修改密码" :visible.sync="dialogVisible" width="30%">
|
|
|
<el-form ref="form" :model="password" label-width="80px">
|
|
|
<el-form-item label="旧密码" prop="password.oldPassword">
|
|
|
<el-input v-model="password.oldPassword" style="width: 300px;"></el-input>
|
| xqd
@@ -82,7 +102,7 @@
|
|
|
<el-button type="primary" @click="onSubmit">提交修改</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog> -->
|
|
|
|
|
|
</el-col>
|
|
|
|
| xqd
@@ -129,12 +149,26 @@
|
|
|
return {
|
|
|
// 弹窗
|
|
|
dialogVisible:false,
|
|
|
+ dialogVisibleimg:false,
|
|
|
role: '',
|
|
|
id: '',
|
|
|
resource: '',
|
|
|
radio: '1',
|
|
|
activeNames:'',
|
|
|
- form: {},
|
|
|
+ proxyFileArray:[],
|
|
|
+ identifyPicsArray:[],
|
|
|
+ form: {
|
|
|
+ name:'',
|
|
|
+ account:'',
|
|
|
+ contacts:'',
|
|
|
+ contactsMobile:'',
|
|
|
+ id:'',
|
|
|
+ password:'',
|
|
|
+ socialCode:'',
|
|
|
+ legalPerson:'',
|
|
|
+ identifyPicList:[],
|
|
|
+ proxyFileList:[],
|
|
|
+ },
|
|
|
password:{
|
|
|
oldPassword: '',
|
|
|
newPassword: '',
|
| xqd
@@ -153,14 +187,12 @@
|
|
|
method: 'get'
|
|
|
}).then((res) => {
|
|
|
this.form=res.data
|
|
|
- console.log(res)
|
|
|
})
|
|
|
} else if (this.role === 1) {
|
|
|
this.$request({
|
|
|
url: '/api/Account',
|
|
|
method: 'get'
|
|
|
}).then((res) => {
|
|
|
- console.log(res)
|
|
|
this.form = res.data
|
|
|
})
|
|
|
}
|
| xqd
@@ -187,7 +219,6 @@
|
|
|
type: 'success',
|
|
|
message: '修改密码成功'
|
|
|
})
|
|
|
- this.dialogVisible=false
|
|
|
}
|
|
|
}).catch((err) => {
|
|
|
console.log(err)
|
| xqd
@@ -206,7 +237,6 @@
|
|
|
type: 'success',
|
|
|
message: '修改密码成功'
|
|
|
})
|
|
|
- this.dialogVisible=false
|
|
|
}
|
|
|
})
|
|
|
}
|
| xqd
@@ -217,7 +247,24 @@
|
|
|
message: 'cancel!',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ handleAvatarSuccess(res) {
|
|
|
+ //解构
|
|
|
+ let { file } = res.data;
|
|
|
+ this.identifyPicsArray.push(file);
|
|
|
+ this.form.identifyPicList = this.identifyPicsArray;
|
|
|
+ console.log(this.form,"form")
|
|
|
+ },
|
|
|
+ /* 供应商上传委托书图片上传成功 */
|
|
|
+ handleSuccess(res) {
|
|
|
+ //解构
|
|
|
+ let {
|
|
|
+ file
|
|
|
+ } = res.data;
|
|
|
+ this.proxyFileArray.push(file);
|
|
|
+ this.form.proxyFileList = this.proxyFileArray;
|
|
|
+ console.log(this.form,"form")
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|