Commit ec02092a by chenwq

样式调整,邀请字段

1 parent 0c605405
...@@ -68,3 +68,11 @@ html { ...@@ -68,3 +68,11 @@ html {
.el-cascader-menu__wrap { .el-cascader-menu__wrap {
height: 204px !important; height: 204px !important;
} }
.one-line-ellipsis {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
...@@ -87,11 +87,12 @@ ...@@ -87,11 +87,12 @@
<div v-else v-html="formObj[item.name]"></div> <div v-else v-html="formObj[item.name]"></div>
</div> --> </div> -->
<!-- 地图 --> <!-- 地图 -->
<div v-else-if="item.type === 'map'" class="province-sty"> <!-- <div v-else-if="item.type === 'map'" class="province-sty">
<span class="province-icon">*</span> <span class="province-icon">*</span>
<Province ref="provinceForm" :subdistrict="subdistrict" :provinceLabel="item.labelName" :inline="item.inline" @selectProvince="selectProvince" @selectCity="selectCity" @selectAddressByMap="selectAddressByMap" :detailAddressLabel="detailAddressLabel"></Province> <Province ref="provinceForm" :subdistrict="subdistrict" :provinceLabel="item.labelName" :inline="item.inline" @selectProvince="selectProvince" @selectCity="selectCity" @selectAddressByMap="selectAddressByMap" :detailAddressLabel="detailAddressLabel"></Province>
</div> </div> -->
<div v-else-if="item.type == 'brand'"> <div v-else-if="item.type == 'brand'" class="province-sty">
<span class="province-icon">*</span>
<select-brand :brandListTree="brandListTree" @clickBrand="clickBrand" @brandChange="brandChange" ref="brandListTree"></select-brand> <select-brand :brandListTree="brandListTree" @clickBrand="clickBrand" @brandChange="brandChange" ref="brandListTree"></select-brand>
</div> </div>
</el-form-item> </el-form-item>
...@@ -116,7 +117,7 @@ ...@@ -116,7 +117,7 @@
// import textBox from '@/views/material/components/textBox' // import textBox from '@/views/material/components/textBox'
// import Province from './provinceCity.vue' // import Province from './provinceCity.vue'
// import mapView from './mapView.vue' // import mapView from './mapView.vue'
import Province from './province-city/index.vue' // import Province from './province-city/index.vue'
import SelectBrand from './selectBrand.vue' import SelectBrand from './selectBrand.vue'
import { beforeRangePickerOptions, afterRangePickerOptions } from './common' import { beforeRangePickerOptions, afterRangePickerOptions } from './common'
export default { export default {
...@@ -193,7 +194,6 @@ export default { ...@@ -193,7 +194,6 @@ export default {
// textBox, // textBox,
// Province, // Province,
// mapView // mapView
Province,
SelectBrand SelectBrand
}, },
...@@ -395,34 +395,34 @@ export default { ...@@ -395,34 +395,34 @@ export default {
// this.$refs.provinceForm[0].init(province, city) // this.$refs.provinceForm[0].init(province, city)
// }, // },
// 获取省 // 获取省
selectProvince(val) { // selectProvince(val) {
this.formObj.merchantAddress = '' // this.formObj.merchantAddress = ''
this.formObj.cityName = '' // this.formObj.cityName = ''
this.formObj.provinceName = val.name // this.formObj.provinceName = val.name
this.formObj.provinceCode = val.adcode // this.formObj.provinceCode = val.adcode
}, // },
// 获取市 // // 获取市
selectCity(val) { // selectCity(val) {
if (val.name) { // if (val.name) {
this.formObj.cityName = val.name // this.formObj.cityName = val.name
this.formObj.cityCode = val.adcode // this.formObj.cityCode = val.adcode
} else { // } else {
this.formObj.cityName = '' // this.formObj.cityName = ''
this.formObj.cityCode = '' // this.formObj.cityCode = ''
} // }
this.formObj.merchantAddress = '' // this.formObj.merchantAddress = ''
}, // },
// 通过地图选择省市和详细地址 // // 通过地图选择省市和详细地址
selectAddressByMap(val) { // selectAddressByMap(val) {
const { provinceName, provinceCode, cityName, cityCode, fullAddress, lat, lng } = val // const { provinceName, provinceCode, cityName, cityCode, fullAddress, lat, lng } = val
this.formObj.merchantAddress = fullAddress // this.formObj.merchantAddress = fullAddress
this.formObj.provinceName = provinceName // this.formObj.provinceName = provinceName
provinceCode && (this.formObj.provinceCode = provinceCode) // provinceCode && (this.formObj.provinceCode = provinceCode)
this.formObj.cityName = cityName // this.formObj.cityName = cityName
cityCode && (this.formObj.cityCode = cityCode) // cityCode && (this.formObj.cityCode = cityCode)
this.formObj.latitude = lat // this.formObj.latitude = lat
this.formObj.longitude = lng // this.formObj.longitude = lng
} // }
} }
} }
</script> </script>
...@@ -589,6 +589,17 @@ export default { ...@@ -589,6 +589,17 @@ export default {
width: 50%; width: 50%;
height: 50%; height: 50%;
} }
.glsx-combi-form .province-sty {
display: flex;
}
.glsx-combi-form .province-sty .province-icon {
color: #f56c6c;
position: absolute;
margin-left: 72px;
margin-top: 12px;
}
/* 图片上传 */ /* 图片上传 */
/* .glsx-combi-form .el-tag.el-tag--info .el-tag__close { /* .glsx-combi-form .el-tag.el-tag--info .el-tag__close {
...@@ -612,7 +623,7 @@ export default { ...@@ -612,7 +623,7 @@ export default {
.glsx-combi-form .province-sty .province-icon { .glsx-combi-form .province-sty .province-icon {
color: #f56c6c; color: #f56c6c;
position: absolute; position: absolute;
margin-left: 100px; margin-left: -80px;
margin-top: 0px; margin-top: 0px;
} }
/* .textBox .el-form-item__content { /* .textBox .el-form-item__content {
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
{{ item.label }} {{ item.label }}
</el-tag> </el-tag>
</template> </template>
<div v-if="!getCheckedArr.length" class="txt-grey">请选择</div>
<el-popover placement="top" width="600" trigger="hover" class="select-popover"> <el-popover placement="top" width="600" trigger="hover" class="select-popover">
<div class="select-popover-box"> <div class="select-popover-box">
<el-tag effect="plain" class="popover-item" v-for="(item, idx) in getCheckedArr" type="info" :key="idx" closable :disable-transitions="false" @close="removeItem(item, idx)"> <el-tag effect="plain" class="popover-item" v-for="(item, idx) in getCheckedArr" type="info" :key="idx" closable :disable-transitions="false" @close="removeItem(item, idx)">
...@@ -251,6 +252,11 @@ export default { ...@@ -251,6 +252,11 @@ export default {
line-height: 26px; line-height: 26px;
box-sizing: border-box; box-sizing: border-box;
} }
.txt-grey {
margin-left: 8px;
font-size: 14px;
color: #999999;
}
} }
.select-popover { .select-popover {
&-box { &-box {
......
...@@ -4,6 +4,13 @@ ...@@ -4,6 +4,13 @@
<div> <div>
<slot name="search"></slot> <slot name="search"></slot>
<GLTable ref="storeRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="storeRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="brand" slot-scope="scope">
<el-popover placement="top" popper-class="base-popper" trigger="hover" :content="scope.scope.merchantBrandNameList.length ? scope.scope.merchantBrandNameList.join('/') : '--'">
<span slot="reference" class="one-line-ellipsis">
{{ scope.scope.merchantBrandNameList.length ? scope.scope.merchantBrandNameList.join('/') : '--' }}
</span>
</el-popover>
</div>
<div slot="applyStatus" slot-scope="scope" class="flex"> <div slot="applyStatus" slot-scope="scope" class="flex">
<div :class="['dot', statusClass[scope.scope.reviewStatus]]"></div> <div :class="['dot', statusClass[scope.scope.reviewStatus]]"></div>
{{ reviewStatusObj[scope.scope.reviewStatus] }} {{ reviewStatusObj[scope.scope.reviewStatus] }}
...@@ -37,12 +44,14 @@ export default { ...@@ -37,12 +44,14 @@ export default {
}, },
{ {
label: '联系人', label: '联系人',
prop: 'contactName' prop: 'contactName',
width: 120,
line: 1
}, },
{ {
label: '联系电话', label: '联系电话',
prop: 'phone', prop: 'phone',
width: 120 width: 130
}, },
{ {
label: '地址', label: '地址',
...@@ -54,18 +63,22 @@ export default { ...@@ -54,18 +63,22 @@ export default {
label: '主营品牌', label: '主营品牌',
prop: '', prop: '',
width: 140, width: 140,
formatter: cellValue => { line: 1,
return cellValue.merchantBrandNameList.length ? cellValue.merchantBrandNameList.join('/') : '--' addHtml: 'brand'
} // formatter: cellValue => {
// return cellValue.merchantBrandNameList.length ? cellValue.merchantBrandNameList.join('/') : '--'
// }
}, },
{ {
label: '所属服务中心', label: '所属服务中心',
prop: 'yqMerchantName' prop: 'yqMerchantName',
width: 120,
line: 1
}, },
{ {
label: '申请时间', label: '申请时间',
prop: 'createdDate', prop: 'createdDate',
width: '180px', width: '170px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.createdDate ? dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') : '--' return cellValue.createdDate ? dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') : '--'
} }
...@@ -78,7 +91,9 @@ export default { ...@@ -78,7 +91,9 @@ export default {
}, },
{ {
label: '说明', label: '说明',
prop: 'rejectedReason' prop: 'rejectedReason',
width: 100,
line: 1
} }
] ]
}, },
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
sceneStr = sceneStr + (sceneStr ? (',' + sceneToNum[item]) : sceneToNum[item]) sceneStr = sceneStr + (sceneStr ? (',' + sceneToNum[item]) : sceneToNum[item])
}) })
let params = { let params = {
merchantId: this.inviteInfo.yqMerchantId, merchantId: this.inviteInfo.shopMerchantId,
staffLabel: sceneStr staffLabel: sceneStr
} }
this.$apis.customer.getInviteCode(params).then(res => { this.$apis.customer.getInviteCode(params).then(res => {
......
<template> <template>
<div v-if="provinceView"> <div v-if="provinceView">
<el-form ref="provinceForm" :model="provinceForm" :inline="inline" class="province" label-width="154px"> <el-form ref="provinceForm" :model="provinceForm" :inline="inline" class="province" label-width="172px">
<el-form-item :label="provinceLabel"> <el-form-item :label="provinceLabel">
<el-select size="small" v-model="provinceForm.provinceName" clearable placeholder="选择省份" @clear="selectProvince" class="select-padding" :style="{ width: subdistrict == 2 ? '52%' : '33.33%' }"> <div class="province-box">
<el-option v-for="(item, index) in AllData" :key="'province' + index" :label="item.name" :value="item.name" @click.native="selectProvince(item)"></el-option> <el-select size="small" v-model="provinceForm.provinceName" clearable placeholder="选择省份" @clear="selectProvince" class="select-padding" :style="{ width: subdistrict == 2 ? '136px' : '33.33%' }">
</el-select> <el-option v-for="(item, index) in AllData" :key="'province' + index" :label="item.name" :value="item.name" @click.native="selectProvince(item)"></el-option>
<el-select size="small" v-model="provinceForm.cityName" clearable placeholder="选择市" @clear="selectCity" class="select-padding" :style="{ width: subdistrict == 2 ? '52%' : '33.33%' }"> </el-select>
<el-option v-for="(item, index) in cityList" :key="'city' + index" :label="item.name" :value="item.name" @click.native="selectCity(item)"></el-option> <el-select size="small" v-model="provinceForm.cityName" clearable placeholder="选择市" @clear="selectCity" class="select-padding" :style="{ width: subdistrict == 2 ? '136px' : '33.33%' }">
</el-select> <el-option v-for="(item, index) in cityList" :key="'city' + index" :label="item.name" :value="item.name" @click.native="selectCity(item)"></el-option>
<el-select v-if="subdistrict == 3" size="small" v-model="provinceForm.townName" clearable placeholder="选择区" @clear="selectTown" class="select-padding" :style="{ width: subdistrict == 2 ? '52%' : '33.33%' }"> </el-select>
<el-option v-for="(item, index) in townList" :key="'town' + index" :label="item.name" :value="item.name" @click.native="selectTown(item)"></el-option> <el-select v-if="subdistrict == 3" size="small" v-model="provinceForm.townName" clearable placeholder="选择区" @clear="selectTown" class="select-padding" :style="{ width: subdistrict == 2 ? '52%' : '33.33%' }">
</el-select> <el-option v-for="(item, index) in townList" :key="'town' + index" :label="item.name" :value="item.name" @click.native="selectTown(item)"></el-option>
</el-select>
</div>
</el-form-item> </el-form-item>
<el-form-item :label="detailAddressLabel"> <el-form-item :label="detailAddressLabel">
<el-input size="small" v-if="mapView" readonly placeholder="请选择详细地址" v-model="provinceForm.fullAddress" class="map-input"> <el-input size="small" v-if="mapView" readonly placeholder="请选择详细地址" v-model="provinceForm.fullAddress" class="map-input">
...@@ -166,7 +168,7 @@ export default { ...@@ -166,7 +168,7 @@ export default {
}, },
// 省市回显 // 省市回显
init(provinceData) { init(provinceData) {
console.log(provinceData, 'fdkjfkdfdkfldfkl000000000000') console.log(provinceData, 'fdkjfkdfdkfldfkl000000000000')
// const { provinceName, cityName, townName, merchantAddress, longitude, latitude } = provinceData // const { provinceName, cityName, townName, merchantAddress, longitude, latitude } = provinceData
this.provinceForm.provinceName = provinceData.provinceName this.provinceForm.provinceName = provinceData.provinceName
this.provinceForm.cityName = provinceData.cityName this.provinceForm.cityName = provinceData.cityName
...@@ -174,7 +176,7 @@ export default { ...@@ -174,7 +176,7 @@ export default {
this.provinceForm.fullAddress = provinceData.merchantAddress this.provinceForm.fullAddress = provinceData.merchantAddress
this.provinceForm.lng = provinceData.longitude this.provinceForm.lng = provinceData.longitude
this.provinceForm.lat = provinceData.latitude this.provinceForm.lat = provinceData.latitude
console.log(this.provinceForm, 'provinceForm') console.log(this.provinceForm, 'provinceForm')
if (provinceData.provinceName) { if (provinceData.provinceName) {
this.AllData.map(item => { this.AllData.map(item => {
if (item.name.indexOf(provinceData.provinceName) != -1) { if (item.name.indexOf(provinceData.provinceName) != -1) {
...@@ -327,16 +329,27 @@ export default { ...@@ -327,16 +329,27 @@ export default {
} }
</script> </script>
<style scoped lang="scss"> <style lang="scss">
// .province { // .province {
// display: inline-flex; // display: inline-flex;
// } // }
.province-box {
display: inline-block;
display: flex;
}
.gl-form-page .el-form .province-box .el-select .el-input {
width: 136px !important;
}
.gl-form-page .el-form .el-form-item {
display: flex;
}
.province { .province {
.select-padding { .select-padding {
&:nth-child(1) { &:nth-child(1) {
margin-left: 0; margin-left: 0;
} }
margin-left: 10px; margin-left: 10px;
margin-right: 0 !important;
} }
.map-input { .map-input {
/deep/ .el-input__inner { /deep/ .el-input__inner {
......
...@@ -350,7 +350,7 @@ export default { ...@@ -350,7 +350,7 @@ export default {
.province-icon { .province-icon {
color: #f56c6c; color: #f56c6c;
position: absolute; position: absolute;
margin-left: 100px; margin-left: 103px;
margin-top: 0px; margin-top: 0px;
} }
</style> </style>
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<h2>客户管理列表</h2> <h2>客户管理列表</h2>
<div> <div>
<el-button size="small" @click="handleEditCustomer('add')" type="primary" plain>新增客户</el-button> <el-button size="small" @click="handleEditCustomer('add')" type="primary" plain>新增客户</el-button>
<el-button size="small" @click="handleApply">我的开店申请</el-button> <el-button size="small" @click="handleApply" type="primary">我的开店申请</el-button>
</div> </div>
</div> </div>
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
{ {
label: '联系电话', label: '联系电话',
prop: 'phone', prop: 'phone',
width: '130px' width: '120px'
}, },
{ {
label: '所属服务中心', label: '所属服务中心',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!