| xqd
@@ -13,15 +13,21 @@
|
|
|
<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 label="供应商账号">
|
|
|
+ <el-input v-model="form.account" class="ipwidth" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="法人姓名" :rules="[{ message: '身份证不能为空'}]">
|
|
|
- <el-input v-model="form.legalPerson" class="ipwidth" />
|
|
|
+ <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-input v-model="form.contacts" class="ipwidth" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="供应商联系电话">
|
|
|
+ <el-input v-model="form.contactsMobile" class="ipwidth" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item >
|
|
|
+ <el-button type="primary" @click="update">保存修改</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-col>
|
| xqd
@@ -32,15 +38,12 @@
|
|
|
<span style="color:#262626;">其他信息</span>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="供应商联系电话">
|
|
|
- <el-input v-model="form.contactsMobile" class="ipwidth" />
|
|
|
+ <el-form-item label="法人姓名" :rules="[{ message: '身份证不能为空'}]">
|
|
|
+ <el-input v-model="form.legalPerson" class="ipwidth" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="供应商账号">
|
|
|
- <el-input v-model="form.account" class="ipwidth" />
|
|
|
+ <el-form-item label="社会信用代码" :rules="[{ message: '电话号码不能为空'}]">
|
|
|
+ <el-input v-model="form.socialCode" class="ipwidth" disabled/>
|
|
|
</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">
|
|
|
<div class="boximg">
|
| xqd
@@ -49,12 +52,12 @@
|
|
|
<i class="el-icon-plus" />
|
|
|
</el-upload>
|
|
|
<el-dialog :visible.sync="dialogVisibleimg">
|
|
|
- <img width="100%" :src="form.identifyPicList" alt="" />
|
|
|
+ <img width="100%" :src="form.identifyPics" 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" >
|
|
|
+ <el-image style="width: 100px; height: 100px" v-for="(item,index) in form.identifyPics" :key="index" :src="item"
|
|
|
+ :preview-src-list="form.identifyPics">
|
|
|
</el-image>
|
|
|
</div>
|
|
|
</el-collapse-item>
|
| xqd
@@ -65,21 +68,21 @@
|
|
|
<i class="el-icon-plus" />
|
|
|
</el-upload>
|
|
|
<el-dialog :visible.sync="dialogVisibleimg">
|
|
|
- <img width="100%" :src="form.proxyFileList" alt="" />
|
|
|
+ <img width="100%" :src="form.proxyFile" 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.proxyFileList" >
|
|
|
+ <el-image style="width: 100px; height: 100px" v-for="(item,index) in form.proxyFile" :key="index" :src="item"
|
|
|
+ :preview-src-list="form.proxyFile" >
|
|
|
</el-image>
|
|
|
</div>
|
|
|
</el-collapse-item>
|
|
|
- <el-collapse-item title="修改密码" name="5">
|
|
|
+ <!-- <el-collapse-item title="修改密码" name="5">
|
|
|
<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.ConfirmnewPassword" placeholder="确认新密码" type="password" show-password ></el-input>
|
|
|
<el-button type="primary" @click="onSubmit">确认修改</el-button>
|
|
|
- </el-collapse-item>
|
|
|
+ </el-collapse-item> -->
|
|
|
</el-collapse>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
| xqd
@@ -166,8 +169,8 @@
|
|
|
password:'',
|
|
|
socialCode:'',
|
|
|
legalPerson:'',
|
|
|
- identifyPicList:[],
|
|
|
- proxyFileList:[],
|
|
|
+ identifyPics:[],
|
|
|
+ proxyFile:[],
|
|
|
},
|
|
|
password:{
|
|
|
oldPassword: '',
|
| xqd
@@ -187,6 +190,9 @@
|
|
|
method: 'get'
|
|
|
}).then((res) => {
|
|
|
this.form=res.data
|
|
|
+ console.log(res)
|
|
|
+ this.form.identifyPics=res.data.identifyPicList
|
|
|
+ this.form.proxyFile=res.data.proxyFileList
|
|
|
})
|
|
|
} else if (this.role === 1) {
|
|
|
this.$request({
|
| xqd
@@ -252,8 +258,7 @@
|
|
|
//解构
|
|
|
let { file } = res.data;
|
|
|
this.identifyPicsArray.push(file);
|
|
|
- this.form.identifyPicList = this.identifyPicsArray;
|
|
|
- console.log(this.form,"form")
|
|
|
+ this.form.identifyPics = this.identifyPicsArray;
|
|
|
},
|
|
|
/* 供应商上传委托书图片上传成功 */
|
|
|
handleSuccess(res) {
|
| xqd
@@ -262,8 +267,28 @@
|
|
|
file
|
|
|
} = res.data;
|
|
|
this.proxyFileArray.push(file);
|
|
|
- this.form.proxyFileList = this.proxyFileArray;
|
|
|
- console.log(this.form,"form")
|
|
|
+ this.form.proxyFile = this.proxyFileArray;
|
|
|
+ },
|
|
|
+ update() {
|
|
|
+ console.log(this.form)
|
|
|
+ this.$request({
|
|
|
+ url:'/api/Supplier/update',
|
|
|
+ method:'post',
|
|
|
+ data:this.form
|
|
|
+ }).then((res)=>{
|
|
|
+ console.log(res)
|
|
|
+ if(res.code===200){
|
|
|
+ this.$message({
|
|
|
+ type:'success',
|
|
|
+ message:'修改成功!'
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ type:'error',
|
|
|
+ message:'修改失败!'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
}
|
|
|
}
|