添加与编辑——弹窗完成

This commit is contained in:
user--卷毛 2023-05-23 17:17:18 +08:00
parent 5d902e1586
commit 30f27dc831

View File

@ -239,6 +239,14 @@
<el-form-item label="登陆密码" :label-width="formLabelWidth" prop="mer_password">
<el-input v-model="form.mer_password" autocomplete="off" placeholder="请输入登陆密码" :disabled="!add"></el-input>
</el-form-item>
<div class="dis">
<el-form-item label="已支付的保证金" :label-width="formLabelWidth" class="mer_phone">
<el-input v-model="form.paid_margin" style="width:200px" autocomplete="off" placeholder="请输入已支付的保证金"></el-input>
</el-form-item>
<el-form-item label="自动扣除保证金比例" :label-width="formLabelWidth" prop="commission_rate">
<el-input v-model="form.auto_margin_rate" style="width:200px" autocomplete="off" ></el-input>
</el-form-item>
</div>
<el-form-item label="商户姓名" :label-width="formLabelWidth" prop="real_name">
<el-input v-model="form.real_name" autocomplete="off" placeholder="请输入商户姓名"></el-input>
</el-form-item>
@ -339,6 +347,8 @@ export default {
area_id:'',//code
street_id:'',//code
village_id:'',//id
paid_margin:'',//
auto_margin_rate:'', //
options:[],
options1:[],
options2:[],
@ -358,7 +368,7 @@ export default {
value4:'关',
value5:'关',
},
formLabelWidth: '120px',
formLabelWidth: '130px',
//
rules:{
mer_name:[
@ -531,6 +541,8 @@ export default {
console.log('res',res);
if(res.status==200){
this.open2(res.message)
//
this.popFormVisible=false
}
} catch (error) {
this.open4(error.message)
@ -543,7 +555,8 @@ export default {
console.log('res',res);
if(res.status==200){
this.open2(res.message)
//
this.popFormVisible=false
}
} catch (error) {
this.open4(error.message)
@ -704,7 +717,8 @@ export default {
this.form.mer_password = res.mer_password
this.form.real_name = res.real_name
this.form.mer_phone = res.mer_phone
this.form.auto_margin_rate=res.auto_margin_rate//
this.form.paid_margin=res.paid_margin//
this.form.area_id = res.geo_address.area_id
this.form.street_id = res.geo_address.street_id
this.form.village_id = res.geo_address.village_id
@ -790,7 +804,7 @@ export default {
<style scoped lang="scss">
/deep/.el-dialog{
margin-top: 0 !important;
width: 820px;
width: 840px;
}
.mer_phone{
width: 400px;