Commit 60e7987e authored by zhengke's avatar zhengke

修改

parent c2837214
......@@ -38,7 +38,7 @@
<q-td :props="props" style="width:200px;">
<q-btn flat size="xs" icon="edit" v-if="authObj.isShowEdit" color="accent" style="font-weight:400" label="编辑"
@click="EditCustom(props.row)" />
<q-btn flat v-if="props.row.ApproveState==0||props.row.ApproveState==2" size="xs" icon="edit" color="accent"
<q-btn flat v-if="(props.row.ApproveState==0||props.row.ApproveState==2)&&!authObj.isShowEdit" size="xs" icon="edit" color="accent"
style="font-weight:400" label="客户审批" @click="AuditCustomer(props.row,1)" />
<q-btn flat v-if="props.row.ApproveState==1" size="xs" icon="iconfont icon-View" color="accent"
style="font-weight:400" label="查看" @click="AuditCustomer(props.row,2)" />
......
......@@ -29,7 +29,11 @@
.info_Item {
margin: 20px 0;
}
.customHeader{
display: inline-block;
width:55px;
height:55px;
}
</style>
<template>
<q-dialog v-model="persistent" maximized full-height seamless position="right" @hide="closeperForm">
......@@ -81,6 +85,33 @@
<span class="backOtherInfo">{{ objOption.Address }}</span>
</div>
</div>
<div class="row info_Item">
<div class="col-6">
<span class="backInfo_Title">OpenId:</span>
<span class="backOtherInfo" v-if="objOption.OpenId">
{{ objOption.OpenId }}
</span>
</div>
<div class="col-6">
<span class="backInfo_Title">UnionId:</span>
<span class="backOtherInfo">{{ objOption.UnionId }}</span>
</div>
</div>
<div class="row info_Item">
<div class="col-6">
<span class="backInfo_Title">微信名:</span>
<span class="backOtherInfo" v-if="objOption.WeChatName">
{{ objOption.WeChatName }}
</span>
</div>
<div class="col-6">
<span class="backInfo_Title" style="vertical-align:top;">头像:</span>
<span class="customHeader">
<img style="width:100%;height:100%;" :src="objOption.WeChatPhoto" alt="" />
</span>
</div>
</div>
<div style="display: flex;justify-content: space-between;align-items: center;margin-top: 20px;">
<div>审批意见</div>
<div>
......
......@@ -72,7 +72,14 @@
display: table-row;
height: 20px;
}
.customerPhoto{
width:55px;
height:55px;
}
.customerPhoto img{
width:100%;
height:100%;
}
</style>
<template>
<q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale">
......@@ -125,6 +132,27 @@
label="详细地址" :rules="[val => !!val || '请输入地址']" />
</div>
</div>
<div class="row wrap">
<div class="col-6">
<q-input filled stack-label maxlength="20" disable :dense="false" v-model="objOption.OpenId" ref="OpenId"
class="col-6 q-pr-lg q-pb-lg" label="OpenId" />
</div>
<div class="col-6">
<q-input filled stack-label :dense="false" disable v-model="objOption.UnionId" ref="UnionId" class="col-6 q-pb-lg"
label="UnionId"/>
</div>
</div>
<div class="row wrap">
<div class="col-6">
<q-input filled stack-label maxlength="20" disable :dense="false" v-model="objOption.WeChatName" ref="WeChatName"
class="col-6 q-pr-lg q-pb-lg" label="微信名" />
</div>
<div class="col-6">
<div class="customerPhoto">
<img :src="objOption.WeChatPhoto" alt="" />
</div>
</div>
</div>
<div class="row wrap">
<div class="col-12">
<q-input filled type="textarea" stack-label :dense="false" v-model="objOption.Remark" ref="Remark"
......@@ -177,6 +205,10 @@
LngLat: "", //经纬度
Account: "", //账号
Remark: "", //备注
OpenId: '',
UnionId: '',
WeChatName: '',
WeChatPhoto: ''
},
saveCustomLoading: false,
provinceList: [], //省
......@@ -211,6 +243,10 @@
this.objOption.Address = tempData.Address;
this.objOption.Account = tempData.Account;
this.objOption.Remark = tempData.Remark;
this.objOption.OpenId = tempData.OpenId;
this.objOption.UnionId = tempData.UnionId;
this.objOption.WeChatName = tempData.WeChatName;
this.objOption.WeChatPhoto = tempData.WeChatPhoto;
}
})
this.optionTitle = "修改客户信息"
......@@ -225,6 +261,10 @@
this.objOption.Address = '';
this.objOption.Account = '';
this.objOption.Remark = '';
this.objOption.OpenId = '';
this.objOption.UnionId = '';
this.objOption.WeChatName = '';
this.objOption.WeChatPhoto = '';
this.optionTitle = "新增客户信息"
}
},
......
......@@ -11,7 +11,7 @@
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-right-column-table sticky-column-table" separator="none" :data="dataList" :columns="columns"
row-key="name">
<template v-slot:top="props">
<template v-slot:top="props">
<div class="col-2 q-table__title">营销任务</div>
<q-space />
<div class="page-option">
......
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