Commit 7d4ab6ea by 前端

Merge branch 'v2.9.0' into 'master'

V2.9.0  UI表单版本  ----》 master

See merge request !13
2 parents 404c79d4 8a3b02cd
This diff could not be displayed because it is too large.
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.3.7", "glsx-components": "^1.5.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
line-height: 36px; line-height: 36px;
} }
#app { #app {
background: #f4f5fa; // background: #f4f5fa;
// padding: 0px 20px 20px 20px; // padding: 0px 20px 20px 20px;
position: absolute; position: absolute;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -70,4 +70,14 @@ const getMenberType = params => { ...@@ -70,4 +70,14 @@ const getMenberType = params => {
}) })
} }
export default { getExpertList, getDepartment, saveExpert, delExpert, editExpert, expertDetail, getMenberType } const getOtherNumber = params => {
params.method = 'entmicro.api.code.getCodeStaffList'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getExpertList, getDepartment, saveExpert, delExpert, editExpert, expertDetail, getMenberType, getOtherNumber }
...@@ -161,6 +161,14 @@ ...@@ -161,6 +161,14 @@
flex-direction: column; flex-direction: column;
} }
.tableTopButton {
display: flex;
align-items: center;
justify-content: flex-end;
margin-bottom: 10px;
margin-right: 2px;
}
.el-message { .el-message {
z-index: 3000 !important; z-index: 3000 !important;
} }
...@@ -201,11 +209,13 @@ ...@@ -201,11 +209,13 @@
background-color: #fff; background-color: #fff;
border-color: #5850ff; border-color: #5850ff;
} }
.el-button--primary.is-plain:hover { .el-button--primary.is-plain:hover {
color: #7973ff; color: #7973ff;
background-color: #fff; background-color: #fff;
border-color: #7973ff; border-color: #7973ff;
} }
.el-button--primary.is-plain:active { .el-button--primary.is-plain:active {
color: #3a32e1; color: #3a32e1;
background-color: #fff; background-color: #fff;
...@@ -213,12 +223,60 @@ ...@@ -213,12 +223,60 @@
} }
} }
.loadingClass{ .loadingClass {
.el-icon-loading{ .el-icon-loading {
font-size: 22px; font-size: 22px;
} }
.el-icon-loading, .el-icon-loading,
.el-loading-text{ .el-loading-text {
color: #fff!important; color: #fff !important;
}
}
.my-circule-tips {
position: relative !important;
}
.my-circule-tips::before {
position: absolute;
top: 0;
right: -6px;
display: inline-block;
height: 6px;
width: 6px;
content: '';
border-radius: 100%;
background-color: red;
}
.newListPage {
margin-top: 17px;
.wrap {
background-color: #fff;
padding: 20px;
}
}
.my-footer-btn {
width: 100%;
display: flex;
justify-content: center;
}
.page-btm-btn {
display: flex;
justify-content: center;
margin-top: 16px;
}
.my-nav-tabs {
position: fixed;
top: 200px;
background-color: #fff;
right: 74px;
.el-tabs__item {
padding: 0 6px;
height: 24px;
line-height: 24px;
font-size: 12px;
} }
} }
...@@ -27,7 +27,29 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max ...@@ -27,7 +27,29 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
} }
} }
const liveStatusList = [{ function downloadIamge(imgsrc, name = new Date().getTime()) {
//下载图片地址和图片名
var image = new Image()
// 解决跨域 Canvas 污染问题
image.setAttribute('crossOrigin', 'anonymous')
image.onload = function() {
var canvas = document.createElement('canvas')
canvas.width = image.width
canvas.height = image.height
var context = canvas.getContext('2d')
context.drawImage(image, 0, 0, image.width, image.height)
var url = canvas.toDataURL('image/png') //得到图片的base64编码数据
var a = document.createElement('a') // 生成一个a元素
var event = new MouseEvent('click') // 创建一个单击事件
a.download = name || 'photo' // 设置图片名称
a.href = url // 将生成的URL设置为a.href属性
a.dispatchEvent(event) // 触发a的单击事件
}
image.src = imgsrc
}
const liveStatusList = [
{
confId: '101', confId: '101',
confName: '直播中' confName: '直播中'
}, },
...@@ -57,7 +79,8 @@ const liveStatusList = [{ ...@@ -57,7 +79,8 @@ const liveStatusList = [{
} }
] ]
const auditStatusList = [{ const auditStatusList = [
{
confId: 0, confId: 0,
confName: '未审核' confName: '未审核'
}, },
...@@ -75,4 +98,4 @@ const auditStatusList = [{ ...@@ -75,4 +98,4 @@ const auditStatusList = [{
} }
] ]
export { limitPrice, liveStatusList, auditStatusList }
\ No newline at end of file \ No newline at end of file
export { limitPrice, liveStatusList, auditStatusList, downloadIamge }
<!-- 搜索 --> <!-- 搜索 -->
<template> <template>
<div class="glsx-combi-form"> <div class="glsx-combi-form">
<el-form @submit.native.prevent :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block"> <el-form @submit.native.prevent :ref="formRef" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label ? item.label + ':' : ''" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span> <span class="tips-label">{{ item.label ? item.label + ':' : '' }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'"> <el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'">
<span class="tips-icon"></span> <span class="tips-icon"></span>
</el-tooltip> </el-tooltip>
{{ item.label }} {{ item.label ? item.label + ':' : '' }}
</span> </span>
<span v-else-if="!item.isHide && item.label" slot="label"> <span v-else-if="!item.isHide && item.label" slot="label">
<span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label }}</span> <span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label ? item.label + ':' : '' }}</span>
</span> </span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot> <slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<span v-else-if="item.type === 'showTxt'">{{ formObj[item.name] }}</span>
<div v-else-if="item.type === 'input'"> <div v-else-if="item.type === 'input'">
<el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)" @blur="e => handleInputBlur(e, item)"> <el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 3" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)" @blur="e => handleInputBlur(e, item)">
<span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span> <span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span>
<span v-if="item.append" slot="append">{{ item.append }}</span> <span v-if="item.append" slot="append">{{ item.append }}</span>
</el-input> </el-input>
...@@ -158,7 +159,7 @@ export default { ...@@ -158,7 +159,7 @@ export default {
}, },
labelPaddingRight: { labelPaddingRight: {
type: Number, type: Number,
default: 15 default: 8
}, },
formData: { formData: {
type: Array, type: Array,
...@@ -180,6 +181,10 @@ export default { ...@@ -180,6 +181,10 @@ export default {
searchSelectObj: { searchSelectObj: {
type: Object, type: Object,
default: () => {} default: () => {}
},
isInline: {
type: Boolean,
default: true
} }
}, },
......
<!-- 弹窗 --> <!-- 弹窗 -->
<template> <template>
<div> <div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :width="width"> <GLDialog :bigTitle="bigTitle" :mode="mode" :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false">
<span slot="title"> <span slot="title">
{{ title }} {{ title }}
<span class="dialog-sub-title"> <span class="dialog-sub-title">
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
<slot></slot> <slot></slot>
<div slot="footer"> <div slot="footer">
<slot name="btn-start"></slot> <slot name="btn-start"></slot>
<el-button type="primary" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button> <el-button type="primary" size="small" @click="handleConfirm">{{ btnOkLabel }}</el-button>
<el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button> <el-button v-if="!noCancel" size="small" @click="handleClose">取消</el-button>
<slot name="btn-middle"></slot> <slot name="btn-middle"></slot>
</div> </div>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -46,13 +46,17 @@ export default { ...@@ -46,13 +46,17 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
width: { btnSize: {
type: String, type: String,
default: '580px' default: 'small'
}, },
btnSize: { mode:{
type: String, type: String,
default: 'mini' default: 'mid'
},
bigTitle:{
type: String,
default: ''
} }
}, },
......
...@@ -2,7 +2,7 @@ import Vue from 'vue' ...@@ -2,7 +2,7 @@ import Vue from 'vue'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import { message, messageBox } from '@/plugins/element.js' import { message, messageBox } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLButton, GLTable, GLCombiForm, GLTableButton,GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
import render from './render' import render from './render'
import 'glsx-components/dist/glsx-components.css' import 'glsx-components/dist/glsx-components.css'
...@@ -12,15 +12,18 @@ let router = null ...@@ -12,15 +12,18 @@ let router = null
let instance = null let instance = null
Vue.use(GLTable) Vue.use(GLTable)
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLCombiForm)
Vue.use(GLTableButton)
Vue.use(GLDialog)
// Vue.use(Table) // Vue.use(Table)
// Vue.use(TableColumn) // Vue.use(TableColumn)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, request_common, request_merchant, sign_common, sign, secret } = await fetchConfig() const { response, request, request_brand, request_common, request_merchant, sign_common, sign, secret } = await fetchConfig()
// 本地切换域名,不需要Mock上面改动 const => let // 本地切换域名,不需要Mock上面改动 const => let
// request.baseURL = 'https://scrm.test.glsx.com.cn' // request.baseURL = 'http://scrm.dev.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test.glsx.com.cn' // request_brand.baseURL = 'http://scrm.dev.glsx.com.cn'
// request_common.baseURL = 'https://scrm.test.glsx.com.cn' // request_common.baseURL = 'http://scrm.dev.glsx.com.cn'
// request_merchant.baseURL = 'https://rop-merchant.test.glsx.com.cn' // request_merchant.baseURL = 'http://rop-merchant.dev.glsx.com.cn'
// request.baseURL = 'http://192.168.1.78:8064' // request.baseURL = 'http://192.168.1.78:8064'
// request_brand.baseURL = 'http://192.168.1.78:8064' // request_brand.baseURL = 'http://192.168.1.78:8064'
Vue.prototype.$history = history Vue.prototype.$history = history
...@@ -34,6 +37,11 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -34,6 +37,11 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.prototype.$request_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$request_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// const mytken = 'scrm-base-56485521-8ce0-4648-9809-8386f39243d6-rop'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: mytken } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: mytken } })
// Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: mytken } })
// Vue.prototype.$request_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: mytken } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-c13d1275-bc81-4a5f-b909-72c60316945b-rop' } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-c13d1275-bc81-4a5f-b909-72c60316945b-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-c13d1275-bc81-4a5f-b909-72c60316945b-rop' } }) // Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-c13d1275-bc81-4a5f-b909-72c60316945b-rop' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
......
...@@ -253,7 +253,7 @@ export default { ...@@ -253,7 +253,7 @@ export default {
.top_play_wrap { .top_play_wrap {
height: 360px; height: 360px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box; box-sizing: border-box;
padding-right: 50px; padding-right: 50px;
.text_wrap { .text_wrap {
...@@ -305,10 +305,10 @@ export default { ...@@ -305,10 +305,10 @@ export default {
} }
} }
.mid_wrapper { .mid_wrapper {
margin-top: 10px; margin-top: 16px;
height: 513px; height: 513px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box; box-sizing: border-box;
padding: 21px 21px 20px 19px; padding: 21px 21px 20px 19px;
.title_label { .title_label {
...@@ -380,10 +380,10 @@ export default { ...@@ -380,10 +380,10 @@ export default {
} }
} }
.case_wrapper { .case_wrapper {
margin-top: 10px; margin-top: 16px;
min-height: 400px; min-height: 400px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.case_box { .case_box {
width: 50%; width: 50%;
height: 100%; height: 100%;
...@@ -468,10 +468,10 @@ export default { ...@@ -468,10 +468,10 @@ export default {
} }
} }
.step_wrapper { .step_wrapper {
margin-top: 10px; margin-top: 16px;
padding: 20px 20px 20px 19px; padding: 20px 20px 20px 19px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.nodata_tip_3 { .nodata_tip_3 {
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
......
...@@ -13,24 +13,32 @@ ...@@ -13,24 +13,32 @@
</div> </div>
</div> </div>
<div class="mid_wrapper"> <div class="mid_wrapper">
<div class="content_one flex_sc"> <div class="step_wrap_widget flex_sc">
<div class="title left"> <div class="left box">
<span>您提供的</span> <div class="title">您提供的</div>
<div class="line flex_sc">
<i class="el-icon-caret-right"></i> <i class="el-icon-caret-right"></i>
</div> </div>
<div class="title right"> <div class="box_item_wrap flex_cc">
<span>您将获得的</span> <img :src="localList[0].icon" />
<div class="icon_point"></div> <div class="box_title">{{ localList[0].title }}</div>
</div>
</div> </div>
<div class="right box">
<div class="title">您将获得的</div>
<div class="line flex_sc">
<div class="icon_point"></div>
</div> </div>
<div class="content_two flex_scb"> <div class="box_line flex_scb">
<template v-for="(item, index) in localList"> <template v-for="(item, index) in localList">
<div :key="index" class="box_item_wrap flex_cc"> <div v-if="index" :key="index" class="box_item_wrap flex_cc">
<img :src="item.icon" /> <img :src="item.icon" />
<div class="box_title">{{ item.title }}</div> <div class="box_title">{{ item.title }}</div>
</div> </div>
</template> </template>
</div> </div>
</div>
</div>
<div class="label_title">无忧案例</div> <div class="label_title">无忧案例</div>
<div class="content_three"> <div class="content_three">
<template v-for="(item, index) in localList2"> <template v-for="(item, index) in localList2">
...@@ -76,7 +84,7 @@ export default { ...@@ -76,7 +84,7 @@ export default {
return { return {
videoShow: false, videoShow: false,
code: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangdy.png', code: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangdy.png',
phone:'134 8079 2980', phone: '134 8079 2980',
localList: [ localList: [
{ {
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_1.png', icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_1.png',
...@@ -118,7 +126,7 @@ export default { ...@@ -118,7 +126,7 @@ export default {
}, },
mounted() { mounted() {
// let [href] = window.location.href.split('/#/') // let [href] = window.location.href.split('/#/')
let href = window.location.host; let href = window.location.host
// 从域名判断是不是广汇的 // 从域名判断是不是广汇的
let gxurl1 = 'http://scrm.cgacar.com' let gxurl1 = 'http://scrm.cgacar.com'
let gxurl2 = 'https://scrm.cgacar.com' let gxurl2 = 'https://scrm.cgacar.com'
...@@ -135,13 +143,13 @@ export default { ...@@ -135,13 +143,13 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.introduct_container { // .introduct_container {
margin-top: 17px; // margin-top: 17px;
} // }
.top_play_wrap { .top_play_wrap {
height: 360px; height: 360px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box; box-sizing: border-box;
padding-right: 50px; padding-right: 50px;
.text_wrap { .text_wrap {
...@@ -194,52 +202,54 @@ export default { ...@@ -194,52 +202,54 @@ export default {
} }
.mid_wrapper { .mid_wrapper {
background: #ffffff; background: #ffffff;
margin-top: 20px; margin-top: 16px;
box-sizing: border-box; box-sizing: border-box;
padding: 20px; padding: 20px;
.content_one { .step_wrap_widget {
box-sizing: border-box; padding: 20px 0 0 0;
padding: 20px 0 14px 0; .left {
border-bottom: 1px solid #e8e8e8; width: 33.33%;
}
.right {
width: 66.67%;
}
.box {
.title { .title {
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
line-height: 18px; line-height: 18px;
position: relative;
} }
.left { .line {
width: 376px; width: 100%;
height: 1px;
background: #d4d2f3;
position: relative;
margin-top: 14px;
> i { > i {
color: #5850ff; color: #5850ff;
width: 6px; width: 6px;
height: 6px; height: 6px;
position: absolute; position: absolute;
bottom: -11px; top: -8px;
left: -7px; left: -6px;
}
} }
.right {
// width: calc(100% - 376px);
.icon_point { .icon_point {
width: 7px; width: 7px;
height: 7px; height: 7px;
background: #5850ff; background: #5850ff;
border-radius: 50%; border-radius: 50%;
position: absolute; position: absolute;
bottom: -18px; top: -3px;
left: 0px; left: 2px;
} }
} }
}
.content_two {
margin-top: 15px;
.box_item_wrap { .box_item_wrap {
width: 32%; width: calc(100% - 15px);
height: 80px; height: 80px;
background: #f7f6fd; background: #f7f6fd;
box-sizing: border-box; box-sizing: border-box;
margin-top: 15px;
padding: 19px 20px; padding: 19px 20px;
> img { > img {
width: 42px; width: 42px;
...@@ -254,6 +264,10 @@ export default { ...@@ -254,6 +264,10 @@ export default {
margin-left: 10px; margin-left: 10px;
} }
} }
.box_line >.box_item_wrap{
width: calc(50% - 7.5px);
}
}
} }
.label_title { .label_title {
font-size: 18px; font-size: 18px;
...@@ -319,16 +333,16 @@ export default { ...@@ -319,16 +333,16 @@ export default {
} }
} }
} }
::v-deep .video-dialog{ ::v-deep .video-dialog {
.el-dialog__header{ .el-dialog__header {
border-bottom: none; border-bottom: none;
background-color: #000; background-color: #000;
.el-dialog__headerbtn{ .el-dialog__headerbtn {
top:15px; top: 15px;
font-size: 24px; font-size: 24px;
} }
} }
.el-dialog__body{ .el-dialog__body {
padding: 0; padding: 0;
display: flex; display: flex;
} }
......
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
<template v-if="showPage == 1"> <template v-if="showPage == 1">
<div class="edit-container"> <div class="edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="154px" defaultWidth="432px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="140px" defaultWidth="320px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar"> <glsx-combi-form ref="editFormRefBrand" labelWidth="154px" defaultWidth="432px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<template slot="vehicleBrandId"> <template slot="vehicleBrandId">
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width: 320px" clearable> <el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width: 136px" clearable>
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select> </el-select>
</template> </template>
<template slot="vehicleSubBrandId"> <template slot="vehicleSubBrandId">
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width: 320px" clearable> <el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width: 136px" clearable>
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select> </el-select>
</template> </template>
...@@ -58,14 +58,8 @@ ...@@ -58,14 +58,8 @@
</div> </div>
</div> </div>
</div> </div>
<div <div class="fixed_bottom flex_cc">
class="fixed_bottom" <el-button type="primary" @click="handleConfirm">确定</el-button>
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div> </div>
</template> </template>
<template v-if="showPage == 2"> <template v-if="showPage == 2">
...@@ -77,8 +71,8 @@ ...@@ -77,8 +71,8 @@
</div> </div>
</div> </div>
</template> </template>
<el-dialog width="60%" height="50%" :visible.sync="dialogTableVisible"> <GLDialog mode="big" bigTitle="选择渠道活码" :visible.sync="dialogTableVisible">
<div slot="title" class="customTitle"> <div slot="custombigtitle" class="customTitle">
<div class="title1">选择渠道活码</div> <div class="title1">选择渠道活码</div>
<span class="h9_title">仅查询自动回复中活动类型为“无忧服务”的活码</span> <span class="h9_title">仅查询自动回复中活动类型为“无忧服务”的活码</span>
</div> </div>
...@@ -105,12 +99,12 @@ ...@@ -105,12 +99,12 @@
<div v-if="!scope.scope.taggingList || (scope.scope.taggingList && scope.scope.taggingList.length == 0)">--</div> <div v-if="!scope.scope.taggingList || (scope.scope.taggingList && scope.scope.taggingList.length == 0)">--</div>
</div> </div>
</GLTable> </GLTable>
<span slot="footer" class="dialog-footer flex_cc"> <span slot="footer" class="dialog-footer">
<span v-if="!tableData.length" @click="jumpToCreated" class="created_btn">创建活码</span> <span v-if="!tableData.length" @click="jumpToCreated" class="created_btn">创建活码</span>
<el-button size="mini" @click="dialogTableVisible = false">取消</el-button> <el-button plain size="small" class="btn-three" @click="dialogTableVisible = false">取消</el-button>
<el-button size="mini" type="primary" @click="toConfimActived">确定</el-button> <el-button size="small" type="primary" @click="toConfimActived">确定</el-button>
</span> </span>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -123,8 +117,6 @@ export default { ...@@ -123,8 +117,6 @@ export default {
size: 'small', size: 'small',
isBlock: true, isBlock: true,
title: '店面服务设置', title: '店面服务设置',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
editForm: { editForm: {
hotline: '', hotline: '',
...@@ -138,14 +130,13 @@ export default { ...@@ -138,14 +130,13 @@ export default {
{ {
label: '服务热线', label: '服务热线',
name: 'hotline', name: 'hotline',
width: '320px',
type: 'input', type: 'input',
maxlength: 20 maxlength: 20
} }
], ],
editFormDataCar: [ editFormDataCar: [
{ {
label: '品牌', label: '主营品牌',
name: 'vehicleBrandId', name: 'vehicleBrandId',
addHtml: 'vehicleBrandId' addHtml: 'vehicleBrandId'
}, },
...@@ -228,7 +219,7 @@ export default { ...@@ -228,7 +219,7 @@ export default {
}, },
created() { created() {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
this.nodataHeight = clientHeight * 0.8 this.nodataHeight = clientHeight * 0.86
const openStatus = localStorage.getItem('preSetStatus') const openStatus = localStorage.getItem('preSetStatus')
if (openStatus == 2) { if (openStatus == 2) {
this.showPage = 2 this.showPage = 2
...@@ -242,8 +233,6 @@ export default { ...@@ -242,8 +233,6 @@ export default {
mounted() { mounted() {
this.getHotline() this.getHotline()
this.getActiveCode() this.getActiveCode()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}, },
methods: { methods: {
...@@ -401,20 +390,24 @@ export default { ...@@ -401,20 +390,24 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.edit-equity { // .edit-equity {
margin-top: 17px; // // margin-top: 17px;
width: 100%; // // width: 100%;
// height: calc(100% - 108px); // }
}
.edit-container { .edit-container {
width: 100%; width: 100%;
height: 76vh; height: calc(100vh - 195px);
// height: 76vh;
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); // box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
.edit-container /deep/ .el-form--inline .el-form-item { .edit-container /deep/ .el-form--inline .el-form-item {
margin-right: 10px; margin-right: 10px;
} }
/deep/ #vehicleBrandId {
margin-right: 12px !important;
}
/* .before-sale .edit-equity{ /* .before-sale .edit-equity{
height: 100vh; height: 100vh;
} }
...@@ -554,19 +547,20 @@ export default { ...@@ -554,19 +547,20 @@ export default {
} }
} }
.fixed_bottom { .fixed_bottom {
position: fixed; margin-top: 16px;
width: 100%; // position: fixed;
bottom: 0px; // width: 100%;
height: 78px; // bottom: 0px;
display: flex; // height: 78px;
align-items: center; // display: flex;
justify-content: center; // align-items: center;
background: #ffffff; // justify-content: center;
z-index: 999; // background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); // z-index: 999;
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
} }
.nodata_widget { .nodata_widget {
margin-top: 17px; // margin-top: 17px;
.wrapper { .wrapper {
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
...@@ -642,6 +636,13 @@ export default { ...@@ -642,6 +636,13 @@ export default {
} }
.dialog-footer { .dialog-footer {
position: relative; position: relative;
display: flex;
align-items: center;
justify-content: flex-end;
.btn-three {
border-color: #c8c8c8;
color: #666;
}
.created_btn { .created_btn {
position: absolute; position: absolute;
left: 0px; left: 0px;
...@@ -658,4 +659,8 @@ export default { ...@@ -658,4 +659,8 @@ export default {
.edit-equity /deep/ .el-dialog__body { .edit-equity /deep/ .el-dialog__body {
height: 520px; height: 520px;
} }
/deep/ .combi-form-label {
color: #333;
}
</style> </style>
<template> <template>
<div class="member-wrapper"> <div class="member-wrapper">
<div class="member-left"> <div class="member-left">
<!-- <div class="member-title"> <template v-if="showTab">
预选 <el-tabs v-model="activeName" @tab-click="handleClick">
<span>仅筛选有外部客户联系人的成员</span> <el-tab-pane label="本企业员工" name="1"></el-tab-pane>
</div> --> <el-tab-pane label="外部企业员工" name="2"></el-tab-pane>
</el-tabs>
</template>
<selectOtherMembrt v-show="activeName == 2" v-model="otherPersonal"></selectOtherMembrt>
<div v-show="activeName == 1">
<div class="member-content"> <div class="member-content">
<el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent> <el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent>
<el-form-item label="所在门店/部门" style="margin-bottom: 0;"> <el-form-item class="department" label="所在门店/部门" style="margin-bottom: 0;">
<el-popover ref="popover" placement="bottom" width="215" trigger="click" v-model="popoverVisible" @show="onShowPopover" @hide="onHidePopover"> <el-popover ref="popover" placement="bottom" width="215" trigger="click" v-model="popoverVisible" @show="onShowPopover" @hide="onHidePopover">
<el-tree class="select-tree" :data="treeData" :props="defaultProps" default-expand-all @node-click="handleNodeClick"></el-tree> <el-tree class="select-tree" :data="treeData" :props="defaultProps" default-expand-all @node-click="handleNodeClick"></el-tree>
<el-input v-model="searchForm.department" slot="reference" :size="size" readonly placeholder="请选择所在门店/部门" :class="{ rotate: popoverVisible }" suffix-icon="el-icon-arrow-down" @keyup.enter.native="search"></el-input> <el-input v-model="searchForm.department" slot="reference" :size="size" readonly placeholder="请选择所在门店/部门" :class="{ rotate: popoverVisible }" suffix-icon="el-icon-arrow-down" @keyup.enter.native="search"></el-input>
</el-popover> </el-popover>
</el-form-item> </el-form-item>
<el-form-item label="姓名" style="margin-bottom: 0;"> <el-form-item class="personName" label="姓名" style="margin-bottom: 0;">
<el-input :size="size" v-model.trim="searchForm.name" @keyup.enter.native="search" clearable placeholder="请输入姓名搜索"></el-input> <el-input :size="size" v-model.trim="searchForm.name" @keyup.enter.native="search" clearable placeholder="请输入姓名"></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item> <el-form-item style="margin-bottom: 0;">
<el-checkbox v-model="searchForm.checked">仅看跟进专员</el-checkbox>
</el-form-item>-->
<el-form-item style="margin-bottom: 0;padding-top: 1px;">
<el-button type="primary" :size="size" @click="search">查询</el-button> <el-button type="primary" :size="size" @click="search">查询</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -43,30 +44,38 @@ ...@@ -43,30 +44,38 @@
<el-checkbox v-model="checked" @change="checkChange">仅看跟进专员</el-checkbox> <el-checkbox v-model="checked" @change="checkChange">仅看跟进专员</el-checkbox>
</div> </div>
</div> </div>
<!-- <div class="member-right">
<div class="member-title">已选</div>
<div class="member-name">成员名称({{ innerTags.length }}项)</div>
<div class="input-tag-wrapper">
<div class="tag-box">
<el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(tag)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div> </div>
</div> </div>
</div> -->
</div>
</template> </template>
<script> <script>
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import selectOtherMembrt from './selectOtherMembrt'
export default { export default {
name: 'SelectMember', name: 'SelectMember',
props: ['selectData'], props: ['selectData'],
components: {
selectOtherMembrt
},
watch: {
selectPerson(nVal, oVal) {
if (nVal && nVal.staffId) {
this.otherPersonal = null
}
},
otherPersonal(nVal, oVal) {
if (nVal && nVal.id) {
this.selectPerson = null
}
}
},
data() { data() {
return { return {
url: url, url: url,
size: 'small', size: 'small',
activeName: '1',
showTab:false,
otherPersonal: null,
selectPerson: null, selectPerson: null,
searchForm: {}, searchForm: {},
checked: '', checked: '',
...@@ -119,10 +128,16 @@ export default { ...@@ -119,10 +128,16 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(123456) const {session} = this.$globalState
const target = session.loginList.find(item=>item.active)
this.showTab = target && target.accounttypeId == 7
this.listDepartmentTree(false) this.listDepartmentTree(false)
}, },
methods: { methods: {
//切换tab栏
handleClick() {
console.log(this.otherPersonal, 99)
},
selectionTable(val) { selectionTable(val) {
this.innerTags = val this.innerTags = val
// this.$emit('selectTable', val) // this.$emit('selectTable', val)
...@@ -259,6 +274,26 @@ export default { ...@@ -259,6 +274,26 @@ export default {
.el-input.el-input--suffix.rotate .el-input__suffix .el-icon-arrow-down { .el-input.el-input--suffix.rotate .el-input__suffix .el-icon-arrow-down {
transform: rotate(-180deg); transform: rotate(-180deg);
} }
/deep/ .el-tabs__header {
margin-bottom: 0;
}
.department {
margin-right: 0 !important;
/deep/ .el-form-item__label {
width: 105px;
text-align: left;
}
}
.personName {
/deep/.el-form-item__label {
width: 105px;
padding-right: 15px;
}
}
/deep/.el-tabs__nav-wrap::after {
height: 1px;
background-color: #e5e5e5;
}
.select-tree { .select-tree {
max-height: 400px; max-height: 400px;
overflow-y: scroll; overflow-y: scroll;
...@@ -297,7 +332,7 @@ export default { ...@@ -297,7 +332,7 @@ export default {
} }
} }
.member-left { .member-left {
width: 800px; width: 100%;
.member-content { .member-content {
.member-form { .member-form {
...@@ -305,14 +340,11 @@ export default { ...@@ -305,14 +340,11 @@ export default {
/deep/ .el-input__inner { /deep/ .el-input__inner {
height: 32px; height: 32px;
} }
/deep/.el-button--primary {
padding: 8px 20px;
}
} }
.table-content { .table-content {
max-height: 456px; max-height: 456px;
overflow: auto; overflow: auto;
border: 1px solid #eee; border: 1px solid transparent;
} }
} }
.member-checked { .member-checked {
...@@ -320,6 +352,7 @@ export default { ...@@ -320,6 +352,7 @@ export default {
justify-content: space-between; justify-content: space-between;
font-size: 14px; font-size: 14px;
margin-top: 12px; margin-top: 12px;
height: 20px;
.name { .name {
display: flex; display: flex;
align-items: center; align-items: center;
......
<template>
<div class="">
<div class="wrap">
<div class="search-wrap">
<glsxCombiForm ref="showSearch" labelWidth="105px" defaultWidth="215px" :formObj="batchListSearch" :formData="productFormData">
<span slot="footer" class="footer-btns">
<!-- <el-button :size="size" class="resetBtn" @click="handleReset">重置</el-button> -->
<el-button type="primary" :size="size" @click="handleSearch">查询</el-button>
</span>
</glsxCombiForm>
</div>
<GLTable ref="productTable" :hasNum="false" :hasPage="false" :tableData="tableData" :searchForm="searchForm" :tableParams="batchTableParams" @row-click="rowClick">
<div slot="radio" slot-scope="scope">
<el-radio v-model="personal" :label="scope.scope">&nbsp;</el-radio>
</div>
<div slot="qrCode" slot-scope="scope">
<el-popover placement="bottom" width="240" trigger="click">
<img :src="scope.scope.qrCode" style="width: 200px; height: 200px" />
<img :src="scope.scope.qrCode" style="width: 36px; height: 36px" slot="reference" />
</el-popover>
</div>
</GLTable>
<div class="member-checked">
<span class="name">
<img :src="tips" alt="" />
<span style="color:#666;">选择一个渠道活码,将该员工设定为客户加微对象。</span>
</span>
</div>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import util from '@/util/util'
import glsxCombiForm from '@/components/glsx-combi-form'
import { converterApi } from '@/api/modules/converter'
import tips from '@/assets/tips.png'
export default {
name: 'writeOffList',
components: {
glsxCombiForm
},
model: {
prop: 'personal',
event: 'changePerson'
},
props:['personal'],
data() {
return {
tips,
size:'small',
tableData: [],
getListApi: this.$apis.expert.getOtherNumber,
batchListSearch: {
staffName: '',
merchant:''
},
searchForm: {},
productFormData: [
{
label: '所在门店/部门',
name: 'merchant',
type: 'select',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
isClear:true
},
{
label: '姓名',
name: 'staffName',
type: 'input',
isClear: true
}
],
batchTableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '',
prop: 'radio',
addHtml: 'radio',
width: '50'
},
{
label: '渠道活码',
prop: '',
addHtml: 'qrCode'
},
{
label: '渠道名称',
prop: 'codeName'
},
{
label: '员工姓名',
prop: 'staffName'
},
{
label: '所在部门',
prop: 'departmentName'
},
{
label: '所属企业微信',
prop: 'entmicroName'
}
]
}
}
},
created(){
},
mounted() {
this.getPersonList()
this.getTableData()
},
methods: {
rowClick(row) {
this.personal = row
this.$emit('changePerson',this.personal)
},
getPersonList(){
const params = {routerMethod:'dj.smartcarlife.api.partnerMerchant.listYqAndShop'}
converterApi(params).then(res => {
if(res){
let target = this.productFormData.find(item => item.name =='merchant')
target.optionList = res
}
})
},
getParams() {
let params = {...this.batchListSearch}
return params
},
getTableData(){
this.$apis.expert.getOtherNumber(this.getParams()).then(res=>{
if(res){
this.tableData = res
}
})
},
handleSearch() {
this.getTableData()
},
handleReset(type) {
this.batchListSearch = {
packageCode: '',
createTime: '',
updatedTime:''
}
this.$refs.productTable.refreshTable()
},
}
}
</script>
<style lang="scss" scoped>
.wrap {
margin-top: 20px;
/deep/ .combi-form-label {
white-space: nowrap;
}
/deep/ #merchant {
margin-right: 0 !important;
}
}
.member-checked {
display: flex;
justify-content: space-between;
font-size: 14px;
margin-top: 12px;
height: 20px;
.name {
display: flex;
align-items: center;
color: #5850ff;
}
img {
width: 14px;
height: 14px;
margin-right: 8px;
}
/deep/ .el-checkbox__label {
font-size: 14px;
color: #333333;
}
}
</style>
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
<div class="btn-group"> <div class="btn-group">
<div class="add-btn" v-for="item in btnList" :key="item.id"> <div class="add-btn" v-for="item in btnList" :key="item.id">
<!-- <i class="el-icon-circle-plus-outline"></i> --> <!-- <i class="el-icon-circle-plus-outline"></i> -->
<template v-if="!item.isHide">
<img :src="require(`@/assets/guestCustom/add-${item.type}.png`)" alt v-if="item.id == 1" @click="selectEmotion" /> <img :src="require(`@/assets/guestCustom/add-${item.type}.png`)" alt v-if="item.id == 1" @click="selectEmotion" />
<img :src="require(`@/assets/guestCustom/add-${item.type}.png`)" v-else alt /> <img :src="require(`@/assets/guestCustom/add-${item.type}.png`)" v-else alt />
<span v-if="item.id == 1" @click.stop="selectEmotion">{{ item.name }}</span> <span v-if="item.id == 1" @click.stop="selectEmotion">{{ item.name }}</span>
...@@ -52,6 +53,7 @@ ...@@ -52,6 +53,7 @@
<input v-if="item.type == 'img'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input upload-img" :accept="item.accept || 'image/png, image/jpeg, image/jpg'" @change="e => handleImgChange(e, item)" /> <input v-if="item.type == 'img'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input upload-img" :accept="item.accept || 'image/png, image/jpeg, image/jpg'" @change="e => handleImgChange(e, item)" />
<input v-else-if="item.type == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input" :accept="item.accept || 'video/*'" @change="e => handleVideoChange(e, item)" /> <input v-else-if="item.type == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input" :accept="item.accept || 'video/*'" @change="e => handleVideoChange(e, item)" />
<el-link v-else-if="item.type == 'link' || item.type == 'nickname' || item.type == 'acivity'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link> <el-link v-else-if="item.type == 'link' || item.type == 'nickname' || item.type == 'acivity'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
</template>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -13,24 +13,32 @@ ...@@ -13,24 +13,32 @@
</div> </div>
</div> </div>
<div class="mid_wrapper"> <div class="mid_wrapper">
<div class="content_one flex_sc"> <div class="step_wrap_widget flex_sc">
<div class="title left"> <div class="left box">
<span>您提供的</span> <div class="title">您提供的</div>
<div class="line flex_sc">
<i class="el-icon-caret-right"></i> <i class="el-icon-caret-right"></i>
</div> </div>
<div class="title right"> <div class="box_item_wrap flex_cc">
<span>您将获得的</span> <img :src="localList[0].icon" />
<div class="icon_point"></div> <div class="box_title">{{ localList[0].title }}</div>
</div>
</div> </div>
<div class="right box">
<div class="title">您将获得的</div>
<div class="line flex_sc">
<div class="icon_point"></div>
</div> </div>
<div class="content_two flex_scb"> <div class="box_line flex_scb">
<template v-for="(item, index) in localList"> <template v-for="(item, index) in localList">
<div :key="index" class="box_item_wrap flex_cc"> <div v-if="index" :key="index" class="box_item_wrap flex_cc">
<img :src="item.icon" /> <img :src="item.icon" />
<div class="box_title">{{ item.title }}</div> <div class="box_title">{{ item.title }}</div>
</div> </div>
</template> </template>
</div> </div>
</div>
</div>
<div class="label_title">无忧案例</div> <div class="label_title">无忧案例</div>
<div class="content_three"> <div class="content_three">
<template v-for="(item, index) in localList2"> <template v-for="(item, index) in localList2">
...@@ -76,7 +84,7 @@ export default { ...@@ -76,7 +84,7 @@ export default {
return { return {
videoShow: false, videoShow: false,
code: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangdy.png', code: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangdy.png',
phone:'134 8079 2980', phone: '134 8079 2980',
localList: [ localList: [
{ {
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_1.png', icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_1.png',
...@@ -137,13 +145,13 @@ export default { ...@@ -137,13 +145,13 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.introduct_container { // .introduct_container {
margin-top: 17px; // margin-top: 17px;
} // }
.top_play_wrap { .top_play_wrap {
height: 360px; height: 360px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box; box-sizing: border-box;
padding-right: 50px; padding-right: 50px;
.text_wrap { .text_wrap {
...@@ -196,52 +204,54 @@ export default { ...@@ -196,52 +204,54 @@ export default {
} }
.mid_wrapper { .mid_wrapper {
background: #ffffff; background: #ffffff;
margin-top: 20px; margin-top: 16px;
box-sizing: border-box; box-sizing: border-box;
padding: 20px; padding: 20px;
.content_one { .step_wrap_widget {
box-sizing: border-box; padding: 20px 0 0 0;
padding: 20px 0 14px 0; .left {
border-bottom: 1px solid #e8e8e8; width: 33.33%;
}
.right {
width: 66.67%;
}
.box {
.title { .title {
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
line-height: 18px; line-height: 18px;
position: relative;
} }
.left { .line {
width: 376px; width: 100%;
height: 1px;
background: #d4d2f3;
position: relative;
margin-top: 14px;
> i { > i {
color: #5850ff; color: #5850ff;
width: 6px; width: 6px;
height: 6px; height: 6px;
position: absolute; position: absolute;
bottom: -11px; top: -8px;
left: -7px; left: -6px;
}
} }
.right {
// width: calc(100% - 376px);
.icon_point { .icon_point {
width: 7px; width: 7px;
height: 7px; height: 7px;
background: #5850ff; background: #5850ff;
border-radius: 50%; border-radius: 50%;
position: absolute; position: absolute;
bottom: -18px; top: -3px;
left: 0px; left: 2px;
} }
} }
}
.content_two {
margin-top: 15px;
.box_item_wrap { .box_item_wrap {
width: 32%; width: calc(100% - 15px);
height: 80px; height: 80px;
background: #f7f6fd; background: #f7f6fd;
box-sizing: border-box; box-sizing: border-box;
margin-top: 15px;
padding: 19px 20px; padding: 19px 20px;
> img { > img {
width: 42px; width: 42px;
...@@ -256,6 +266,10 @@ export default { ...@@ -256,6 +266,10 @@ export default {
margin-left: 10px; margin-left: 10px;
} }
} }
.box_line > .box_item_wrap {
width: calc(50% - 7.5px);
}
}
} }
.label_title { .label_title {
font-size: 18px; font-size: 18px;
...@@ -321,16 +335,16 @@ export default { ...@@ -321,16 +335,16 @@ export default {
} }
} }
} }
::v-deep .video-dialog{ ::v-deep .video-dialog {
.el-dialog__header{ .el-dialog__header {
border-bottom: none; border-bottom: none;
background-color: #000; background-color: #000;
.el-dialog__headerbtn{ .el-dialog__headerbtn {
top:15px; top: 15px;
font-size: 24px; font-size: 24px;
} }
} }
.el-dialog__body{ .el-dialog__body {
padding: 0; padding: 0;
display: flex; display: flex;
} }
......
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
<template v-if="showPage == 1"> <template v-if="showPage == 1">
<div class="container edit-container mall-server-box"> <div class="container edit-container mall-server-box">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="144px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="154px" defaultWidth="432px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="144px" defaultWidth="215px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar"> <glsx-combi-form ref="editFormRefBrand" labelWidth="154px" defaultWidth="432px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<template slot="vehicleBrandId"> <template slot="vehicleBrandId">
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width:320px;" clearable> <el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width:136px;" clearable>
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select> </el-select>
</template> </template>
<template slot="vehicleSubBrandId"> <template slot="vehicleSubBrandId">
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width:320px;" clearable> <el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width:136px;" clearable>
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select> </el-select>
</template> </template>
...@@ -61,9 +61,8 @@ ...@@ -61,9 +61,8 @@
<img style="margin-top: 20px;" class="qrcodeImg" :src="qrcodeUrl" /> <img style="margin-top: 20px;" class="qrcodeImg" :src="qrcodeUrl" />
</div> --> </div> -->
</div> </div>
<div class="fixed_bottom" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <div class="fixed_bottom flex_cc">
<!-- <div class="footer"> --> <el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div> </div>
</template> </template>
<template v-if="showPage == 2"> <template v-if="showPage == 2">
...@@ -75,8 +74,8 @@ ...@@ -75,8 +74,8 @@
</div> </div>
</div> </div>
</template> </template>
<el-dialog width="60%" height="50%" :visible.sync="dialogTableVisible"> <GLDialog mode="big" bigTitle="选择渠道活码" :visible.sync="dialogTableVisible">
<div slot="title" class="customTitle"> <div slot="custombigtitle" class="customTitle">
<div class="title1">选择渠道活码</div> <div class="title1">选择渠道活码</div>
<span class="h9_title">仅查询自动回复中活动类型为“无忧服务”的活码</span> <span class="h9_title">仅查询自动回复中活动类型为“无忧服务”的活码</span>
</div> </div>
...@@ -103,12 +102,12 @@ ...@@ -103,12 +102,12 @@
<div v-if="!scope.scope.taggingList || (scope.scope.taggingList && scope.scope.taggingList.length == 0)">--</div> <div v-if="!scope.scope.taggingList || (scope.scope.taggingList && scope.scope.taggingList.length == 0)">--</div>
</div> </div>
</GLTable> </GLTable>
<span slot="footer" class="dialog-footer flex_cc"> <span slot="footer" class="dialog-footer">
<span v-if="!tableData.length" @click="jumpToCreated" class="created_btn">创建活码</span> <span v-if="!tableData.length" @click="jumpToCreated" class="created_btn">创建活码</span>
<el-button size="mini" @click="dialogTableVisible = false">取消</el-button> <el-button plain size="small" class="btn-three" @click="dialogTableVisible = false">取消</el-button>
<el-button size="mini" type="primary" @click="toConfimActived">确定</el-button> <el-button size="small" type="primary" @click="toConfimActived">确定</el-button>
</span> </span>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -121,8 +120,6 @@ export default { ...@@ -121,8 +120,6 @@ export default {
size: 'small', size: 'small',
isBlock: true, isBlock: true,
title: '店面服务设置', title: '店面服务设置',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
qrcodeUrl: '', qrcodeUrl: '',
editForm: { editForm: {
...@@ -137,7 +134,6 @@ export default { ...@@ -137,7 +134,6 @@ export default {
{ {
label: '服务热线', label: '服务热线',
name: 'hotline', name: 'hotline',
width: '320px',
type: 'input', type: 'input',
maxlength: 20 maxlength: 20
} }
...@@ -211,7 +207,7 @@ export default { ...@@ -211,7 +207,7 @@ export default {
created() { created() {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
this.nodataHeight = clientHeight * 0.8 this.nodataHeight = clientHeight * 0.86
const openStatus = localStorage.getItem('preSetStatus') const openStatus = localStorage.getItem('preSetStatus')
if (openStatus == 2) { if (openStatus == 2) {
this.showPage = 2 this.showPage = 2
...@@ -228,8 +224,6 @@ export default { ...@@ -228,8 +224,6 @@ export default {
} }
this.getHotline() this.getHotline()
this.getActiveCode() this.getActiveCode()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
// this.getDefaultCarbrand() // this.getDefaultCarbrand()
}, },
...@@ -391,17 +385,12 @@ export default { ...@@ -391,17 +385,12 @@ export default {
.before-sale .container { .before-sale .container {
padding: 0 !important; padding: 0 !important;
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px; padding: 20px;
height: 76vh; height: calc(100vh - 195px);
} }
.before-sale { /deep/ #vehicleBrandId {
padding-top: 17px; margin-right: 12px !important;
}
.before-sale .edit-container {
margin-bottom: 84px;
} }
.before-sale .edit-form-container { .before-sale .edit-form-container {
...@@ -484,7 +473,7 @@ export default { ...@@ -484,7 +473,7 @@ export default {
height: 100%; height: 100%;
} }
.nodata_widget { .nodata_widget {
margin-top: 17px; // margin-top: 17px;
.wrapper { .wrapper {
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
...@@ -509,16 +498,17 @@ export default { ...@@ -509,16 +498,17 @@ export default {
} }
} }
.fixed_bottom { .fixed_bottom {
position: fixed; margin-top: 16px;
width: 100%; // position: fixed;
bottom: 0px; // width: 100%;
height: 78px; // bottom: 0px;
display: flex; // height: 78px;
align-items: center; // display: flex;
justify-content: center; // align-items: center;
background: #ffffff; // justify-content: center;
z-index: 999; // background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); // z-index: 999;
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
} }
.new_container { .new_container {
box-sizing: border-box; box-sizing: border-box;
...@@ -643,6 +633,13 @@ export default { ...@@ -643,6 +633,13 @@ export default {
} }
.dialog-footer { .dialog-footer {
position: relative; position: relative;
display: flex;
align-items: center;
justify-content: flex-end;
.btn-three {
border-color: #c8c8c8;
color: #666;
}
.created_btn { .created_btn {
position: absolute; position: absolute;
left: 0px; left: 0px;
...@@ -659,4 +656,7 @@ export default { ...@@ -659,4 +656,7 @@ export default {
.edit-equity /deep/ .el-dialog__body { .edit-equity /deep/ .el-dialog__body {
height: 520px; height: 520px;
} }
/deep/ .combi-form-label {
color: #333;
}
</style> </style>
<template> <template>
<div id="writeOff" class="writeOff"> <div id="writeOff" class="writeOff">
<template v-if="!isSavePage"> <template v-if="!isSavePage">
<div class="box">
<div class="header">客户信息</div> <div class="header">客户信息</div>
<div class="main box"> <div class="main">
<glsx-combi-form ref="writeOff" :formRules="checkRule" labelWidth="128px" defaultWidth="308px" :formObj="batchListSearch" :formData="writeOffForm"></glsx-combi-form> <glsx-combi-form ref="writeOff" :formRules="checkRule" labelWidth="154px" defaultWidth="432px" :formObj="batchListSearch" :formData="writeOffForm"></glsx-combi-form>
<div class="signal-img"> <div class="signal-img">
<p>核销码示意图</p> <p>核销码示意图</p>
<img :src="url" alt="" /> <img :src="url" alt="" />
</div> </div>
</div> </div>
</div>
</template> </template>
<template v-if="isSavePage"> <template v-if="isSavePage">
<div class="custom box"> <div class="custom box">
<div class="header">报案信息(客户提交)</div> <div class="header">报案信息(客户提交)</div>
<div class="custom-info"> <div class="custom-info">
<span class="code label">核销码:</span> <span class="code">核销码:{{ customObj.writeOffCode }}</span>
<span class="code">{{ customObj.writeOffCode }}</span> <glsx-combi-form ref="customRef" :isInline="false" :formRules="customRule" labelWidth="154px" defaultWidth="432px" :formObj="customObj" :formData="customForm"></glsx-combi-form>
<glsx-combi-form ref="customRef" :formRules="customRule" labelWidth="160px" defaultWidth="300px" :formObj="customObj" :formData="customForm"></glsx-combi-form>
</div> </div>
</div> </div>
<div class="handler box" style="margin-top: 10px"> <div class="handler box" style="margin-top:16px;">
<div class="header">报案信息(店面补充)</div> <div class="header">报案信息(店面补充)</div>
<div class="handler-info"> <div class="handler-info">
<glsx-combi-form ref="handlerRef" :formRules="customRule" labelWidth="160px" defaultWidth="300px" :formObj="customObj" :formData="handlerForm"></glsx-combi-form> <glsx-combi-form ref="handlerRef" :isInline="false" :formRules="customRule" labelWidth="154px" defaultWidth="432px" :formObj="customObj" :formData="handlerForm"></glsx-combi-form>
</div> </div>
</div> </div>
</template> </template>
<div class="my-footer btn-box box"> <div class="page-btm-btn">
<el-button v-if="!isSavePage" size="small" type="primary" @click="handleNextStep">下一步</el-button> <el-button v-if="!isSavePage" type="primary" @click="handleNextStep">下一步</el-button>
<el-button v-else size="small" type="primary" @click="handleSave">提交</el-button> <el-button v-else type="primary" @click="handleSave">提交</el-button>
<el-button type="default" size="small" @click="handleCancel">取消</el-button>
</div> </div>
<qrCode :bottom="320" :codeUrl="serviceImg" phoneTitle="提单及服务咨询" phone="189 3890 7441"></qrCode> <qrCode :bottom="320" :codeUrl="serviceImg" phoneTitle="提单及服务咨询" phone="189 3890 7441"></qrCode>
</div> </div>
...@@ -344,19 +344,19 @@ export default { ...@@ -344,19 +344,19 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.writeOff { .writeOff {
margin-top: 17px; .box {
// height: calc(100vh - 206px);
margin-bottom: 64px;
background-color: #fff; background-color: #fff;
}
.header { .header {
height: 60px; height: 58px;
line-height: 60px; line-height: 58px;
padding: 0 20px; padding: 0 20px;
border-bottom: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee;
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium, PingFang SC;
font-size: 14px; font-size: 16px;
color: #333333; color: #333333;
font-weight: 700; font-weight: 600;
box-sizing: border-box;
} }
/deep/ .el-form-item__label { /deep/ .el-form-item__label {
padding: 0; padding: 0;
...@@ -365,25 +365,22 @@ export default { ...@@ -365,25 +365,22 @@ export default {
margin-right: 0; margin-right: 0;
} }
.custom-info { .custom-info {
padding: 30px 0; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
.code { .code {
color: #666; padding: 0 20px;
margin-bottom: 20px;
display: block;
height: 36px;
width: 100%;
background: #f9f9f9;
color: #333;
font-size: 14px; font-size: 14px;
display: inline-block; line-height: 36px;
width: 160px;
height: 32px;
line-height: 32px;
margin-bottom: 10px;
box-sizing: border-box;
}
.label {
text-align: right;
} }
} }
.handler-info { .handler-info {
height: 437px; padding: 30px 20px;
padding: 30px 0;
box-sizing: border-box; box-sizing: border-box;
/deep/ #serviceCodes { /deep/ #serviceCodes {
display: block; display: block;
...@@ -396,6 +393,15 @@ export default { ...@@ -396,6 +393,15 @@ export default {
margin-right: 20px; margin-right: 20px;
margin-left: 0; margin-left: 0;
display: inline-block; display: inline-block;
&.is-bordered.is-checked {
border-color: #5850ff;
}
.el-checkbox__label {
font-size: 14px;
}
.el-checkbox__input {
padding-top: 2px;
}
} }
} }
.main { .main {
...@@ -416,10 +422,5 @@ export default { ...@@ -416,10 +422,5 @@ export default {
} }
} }
} }
// .btn-box {
// display: flex;
// justify-content: center;
// align-items: center;
// }
} }
</style> </style>
<template> <template>
<div class="writeOff"> <div class="writeOff">
<div class="box"> <div class="box">
<div class="header title" style="height: 53px; line-height: 53px"> <div class="header title">
<span style="height: 53px; cursor: pointer; display: flex; align-items: center" @click="back"> 报案信息(客户提交)
<i class="el-icon-arrow-left" style="font-size: 18px"></i>
返回
</span>
</div> </div>
<div class="custom-info"> <div class="main">
<p class="title" style="margin-bottom: 20px">报案信息(客户提交)</p> <div class="writeOff-wrap">
<div class="info"> <span>核销码:</span>
<span class="item" v-for="(val, key) in customObj" :key="key"> <span>{{ info.writeOffCode }}</span>
<span class="label">{{ val ? val + ':' : '' }}</span>
{{ info[key] }}
</span>
</div> </div>
<glsx-combi-form labelWidth="154px" defaultWidth="432px" formRef="customRef" :formObj="info" :formData="customData" :formRules="infoRule"></glsx-combi-form>
</div> </div>
</div> </div>
<div class="box" style="margin-top: 10px"> <div class="box" style="margin-top: 16px">
<div class="header title">报案信息(店面补充)</div> <div class="header title">报案信息(店面补充)</div>
<div class="handler-info"> <div class="main">
<span class="item" v-for="(val, key) in handlerObj" :key="key"> <glsx-combi-form labelWidth="154px" defaultWidth="432px" formRef="handlerRef" :formObj="info" :formData="handlerData" :formRules="infoRule"></glsx-combi-form>
<span class="label">{{ val ? val + ':' : '' }}</span> <glsx-combi-form labelWidth="154px" defaultWidth="432px" formRef="handlerRef" :formObj="info" :formData="serviceData" :formRules="infoRule">
{{ info[key] }} <div class="sevice-box" slot="serviceList">
</span>
<div class="item service">
<span class="label">申请核赔服务:</span>
<div class="sevice-box">
<div v-for="(item, index) in info.serviceItemsList" :key="index" class="service-item"> <div v-for="(item, index) in info.serviceItemsList" :key="index" class="service-item">
{{ item.serviceItemName }} {{ item.serviceItemName }}
</div> </div>
</div> </div>
</div> </glsx-combi-form>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import glsxCombiForm from '@/components/glsx-combi-form'
import util from '@/util/util' import util from '@/util/util'
export default { export default {
name: 'writeOffDetail', name: 'writeOffDetail',
data() { data() {
return { return {
info: {}, info: {
customObj: { writeOffCode: '',
writeOffCode: '核销码', reporterName: '',
nullval: '', reporterPhone: '',
reporterName: '报案人', reporterDate: '',
reporterPhone: '报案人联系号码', reimbursementDate: '',
reporterDate: '报案日期', handlerName: '',
reimbursementDate: '出险日期' handlerPhone: '',
serviceItemsList:[]
},
infoRule:{
reporterName: { required: true, message: '', trigger: 'change' },
reporterPhone: { required: true, message: '', trigger: 'change' },
reporterDate: { required: true, message: '', trigger: 'change' },
reimbursementDate: { required: true, message: '', trigger: 'change' },
handlerName: { required: true, message: '', trigger: 'change' },
handlerPhone: { required: true, message: '', trigger: 'change' },
serviceItemsList:{ required: true, message: '', trigger: 'change' }
},
writeOffData: [
{
label: '核销码:',
name: 'writeOffCode',
type: 'showTxt'
}
],
customData:[
{
label: '报案人:',
name: 'reporterName',
type: 'showTxt'
},
{
label: '报案人联系号码:',
name: 'reporterPhone',
type: 'showTxt'
}, },
handlerObj: { {
handlerName: '经办人', label: '报案日期:',
handlerPhone: '经办人联系号码' name: 'reporterDate',
type: 'showTxt'
},
{
label: '出险日期:',
name: 'reimbursementDate',
type: 'showTxt'
}
],
handlerData:[
{
label: '经办人:',
name: 'handlerName',
type: 'showTxt'
},
{
label: '经办人联系号码:',
name: 'handlerPhone',
type: 'showTxt'
} }
],
serviceData:[
{
label: '申请核赔服务:',
name: 'serviceItemsList',
addHtml:'serviceList'
} }
]
}
},
components: {
glsxCombiForm
}, },
mounted() { mounted() {
this.getDetail(this.$route.params) this.getDetail(this.$route.params)
...@@ -67,54 +116,31 @@ export default { ...@@ -67,54 +116,31 @@ export default {
this.info = res.data this.info = res.data
} }
}) })
},
back() {
this.$router.push({
path: '/ghPreSale/writeOff/writeOffList'
})
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.writeOff { .writeOff {
margin-top: 17px;
.box { .box {
background-color: #fff; background-color: #fff;
} }
p { .main {
margin: 0; padding: 20px;
} .writeOff-wrap {
.item {
width: 350px;
padding: 15px 0;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #6c6f71;
line-height: 17px;
display: inline-block;
margin-right: 120px;
.label {
width: 140px;
text-align: right;
display: inline-block;
}
}
.service {
margin-right: 0 !important;
display: flex;
width: 100%; width: 100%;
.label { font-size: 14px;
margin-bottom: 12px;
padding: 0 20px;
background: #f9f9f9;
height: 36px; height: 36px;
line-height: 36px; line-height: 36px;
white-space: nowrap;
} }
.sevice-box { .sevice-box {
width: 800px; width: 800px;
.service-item { .service-item {
width: 240px; width: 240px;
height: 36px; height: 32px;
background: #f7f7f7; background: #f7f7f7;
border: 1px solid #e9e9e9; border: 1px solid #e9e9e9;
display: inline-flex; display: inline-flex;
...@@ -129,6 +155,14 @@ export default { ...@@ -129,6 +155,14 @@ export default {
margin: 0 20px 20px 0; margin: 0 20px 20px 0;
} }
} }
/deep/.el-form {
.combi-form-label {
padding-right: 0 !important;
}
.el-form-item__content {
width: 300px;
}
}
} }
.title { .title {
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
...@@ -143,16 +177,5 @@ export default { ...@@ -143,16 +177,5 @@ export default {
line-height: 60px; line-height: 60px;
padding: 0 20px; padding: 0 20px;
} }
.custom-info {
height: 220px;
padding: 20px;
box-sizing: border-box;
.info {
width: 950px;
}
}
.handler-info {
padding: 20px;
}
} }
</style> </style>
...@@ -3,18 +3,9 @@ ...@@ -3,18 +3,9 @@
<GLButton size="small" style="margin-bottom: 10px;" fn="新增核赔" class="el-icon-plus" type="primary" @click="addWriteOff(1)">新增核赔</GLButton> <GLButton size="small" style="margin-bottom: 10px;" fn="新增核赔" class="el-icon-plus" type="primary" @click="addWriteOff(1)">新增核赔</GLButton>
<div class="contain equity-wrap"> <div class="contain equity-wrap">
<div class="search-wrap"> <div class="search-wrap">
<glsx-combi-form ref="showSearch" labelWidth="100px" defaultWidth="230px" :formObj="batchListSearch" :formData="writeOffForm"> <GLCombiForm :rowNumber="1" ref="showSearch" @handleOk="handleSearch" @handleRest="handleReset('reset')" labelWidth="100px" defaultWidth="230px" :formObj="batchListSearch" :formData="writeOffForm"></GLCombiForm>
<!-- <span slot="footer" class="footer-btns">
<el-button size="small" type="primary" @click="handleSearch">查询</el-button>
<el-button size="small" @click="handleReset('reset')">重置</el-button>
</span> -->
</glsx-combi-form>
</div>
<div class="my-search-btn" style="float: right; margin-right: 0; margin-bottom: 20px">
<el-button plain type="primary" size="small" @click="handleReset('reset')">重置</el-button>
<el-button size="small" type="primary" @click="handleSearch">查询</el-button>
<el-button size="small" @click="handleExport" class="selectBtn">导出</el-button>
</div> </div>
<el-button size="small" plain style="float:right;margin-bottom:10px;" @click="handleExport" class="selectBtn">导出</el-button>
<GLTable ref="writeOffTable" :pageSizes="sizeList" :searchForm="searchForm" :tableParams="batchTableParams" :getListApi="getListApi" :pageConf="batchPageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="writeOffTable" :pageSizes="sizeList" :searchForm="searchForm" :tableParams="batchTableParams" :getListApi="getListApi" :pageConf="batchPageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope"> <div class="table-btns" slot="table-btns" slot-scope="scope">
<GLButton fn="查看" type="text" @click="handleView(scope.scope)">查看</GLButton> <GLButton fn="查看" type="text" @click="handleView(scope.scope)">查看</GLButton>
...@@ -25,7 +16,6 @@ ...@@ -25,7 +16,6 @@
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import glsxCombiForm from '@/components/glsx-combi-form'
import util from '@/util/util' import util from '@/util/util'
export default { export default {
name: 'writeOffList', name: 'writeOffList',
...@@ -63,7 +53,6 @@ export default { ...@@ -63,7 +53,6 @@ export default {
{ {
label: '核销码', label: '核销码',
prop: 'writeOffCode', prop: 'writeOffCode',
width: 120,
formatter: cellValue => { formatter: cellValue => {
return cellValue.writeOffCode || '-' return cellValue.writeOffCode || '-'
} }
...@@ -71,7 +60,6 @@ export default { ...@@ -71,7 +60,6 @@ export default {
{ {
label: '客户名', label: '客户名',
prop: 'reporterName', prop: 'reporterName',
width: 200,
formatter: cellValue => { formatter: cellValue => {
return cellValue.reporterName || '-' return cellValue.reporterName || '-'
} }
...@@ -79,7 +67,6 @@ export default { ...@@ -79,7 +67,6 @@ export default {
{ {
label: '合同号', label: '合同号',
prop: 'contractNo', prop: 'contractNo',
width: 200,
formatter: cellValue => { formatter: cellValue => {
return cellValue.contractNo || '-' return cellValue.contractNo || '-'
} }
...@@ -87,7 +74,6 @@ export default { ...@@ -87,7 +74,6 @@ export default {
{ {
label: '价格区间', label: '价格区间',
prop: 'priceSection', prop: 'priceSection',
width: 200,
formatter: cellValue => { formatter: cellValue => {
return cellValue.priceSection || '-' return cellValue.priceSection || '-'
} }
...@@ -95,7 +81,6 @@ export default { ...@@ -95,7 +81,6 @@ export default {
{ {
label: '门店提交时间', label: '门店提交时间',
prop: 'commitTime', prop: 'commitTime',
width: 200,
formatter: cellValue => { formatter: cellValue => {
return cellValue.commitTime ? util.dateFormat(cellValue.commitTime, 'YYYY-MM-DD HH:mm:ss') : '-' return cellValue.commitTime ? util.dateFormat(cellValue.commitTime, 'YYYY-MM-DD HH:mm:ss') : '-'
} }
...@@ -110,7 +95,7 @@ export default { ...@@ -110,7 +95,7 @@ export default {
{ {
label: '操作', label: '操作',
prop: '', prop: '',
width: '100px', width: '70px',
fixed: 'right', fixed: 'right',
addHtml: 'table-btns' addHtml: 'table-btns'
} }
...@@ -119,9 +104,6 @@ export default { ...@@ -119,9 +104,6 @@ export default {
batchPageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' } batchPageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }
} }
}, },
components: {
glsxCombiForm
},
mounted() {}, mounted() {},
methods: { methods: {
handleView({ writeOffCode }) { handleView({ writeOffCode }) {
...@@ -177,12 +159,10 @@ export default { ...@@ -177,12 +159,10 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.writeOff { .writeOff {
margin-top: 17px;
.equity-wrap { .equity-wrap {
background-color: #fff; background-color: #fff;
padding: 20px; padding: 20px;
.search-wrap { .search-wrap {
margin-top: 20px;
// padding: 20px 20px 0; // padding: 20px 20px 0;
} }
} }
......
...@@ -73,8 +73,7 @@ ...@@ -73,8 +73,7 @@
</div> </div>
</div> </div>
<qrCode phone="138 2651 0577" :codeUrl="code" :bottom="182" v-if="nodata == 0 && noList == 0"></qrCode> <qrCode phone="138 2651 0577" :codeUrl="code" :bottom="182" v-if="nodata == 0 && noList == 0"></qrCode>
<el-dialog :visible.sync="computeShow" width="50%" :before-close="handleClose"> <GLDialog title="分润计算说明" :visible.sync="computeShow" mode="mid" :hasFooter="false" :before-close="handleClose">
<div slot="title" class="dialogTitle">分润计算说明</div>
<div class="dialogContent"> <div class="dialogContent">
<div class="wrap"> <div class="wrap">
<div class="line_tip"> <div class="line_tip">
...@@ -126,7 +125,7 @@ ...@@ -126,7 +125,7 @@
</div> </div>
</div> </div>
</div> </div>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -136,7 +135,6 @@ import { getRulesData, getRulesListData } from '../../api/modules/rules' ...@@ -136,7 +135,6 @@ import { getRulesData, getRulesListData } from '../../api/modules/rules'
import ruleTable from './ruleTable.vue' import ruleTable from './ruleTable.vue'
import utils from '../../util/util' import utils from '../../util/util'
import qrCode from '../../components/qr-code/index.vue' import qrCode from '../../components/qr-code/index.vue'
import util from '../../util/util'
export default { export default {
name: '', name: '',
components: { components: {
...@@ -182,7 +180,7 @@ export default { ...@@ -182,7 +180,7 @@ export default {
this.getRuleNote(merchantId) this.getRuleNote(merchantId)
} }
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
this.nodataHeight = clientHeight * 0.5 this.nodataHeight = clientHeight * 0.49
this.stepHeight = clientHeight - clientHeight * 0.5 - 133 this.stepHeight = clientHeight - clientHeight * 0.5 - 133
}, },
methods: { methods: {
...@@ -325,9 +323,9 @@ export default { ...@@ -325,9 +323,9 @@ export default {
width: 100%; width: 100%;
// min-height: 520px; // min-height: 520px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px; // margin-top: 17px;
padding-bottom: 15px; // padding-bottom: 15px;
.tip_line { .tip_line {
box-sizing: border-box; box-sizing: border-box;
padding: 22px 20px 25px 20px; padding: 22px 20px 25px 20px;
...@@ -368,9 +366,9 @@ export default { ...@@ -368,9 +366,9 @@ export default {
} }
} }
.list_wrapper { .list_wrapper {
margin-top: 26px; // margin-top: 26px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box; box-sizing: border-box;
padding: 20px 19px 17px 20px; padding: 20px 19px 17px 20px;
.find_wrap { .find_wrap {
...@@ -564,16 +562,14 @@ export default { ...@@ -564,16 +562,14 @@ export default {
padding: 20px 0; padding: 20px 0;
} }
.nodata_widget { .nodata_widget {
margin-top: 17px;
.wrapper { .wrapper {
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
// padding: 150px 0 145px 0;
overflow: hidden; overflow: hidden;
.nodata_tip_1 { .nodata_tip_1 {
font-size: 18px; font-size: 18px;
...@@ -591,7 +587,7 @@ export default { ...@@ -591,7 +587,7 @@ export default {
.step_wrap { .step_wrap {
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 10px; margin-top: 10px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
...@@ -100,8 +100,8 @@ export default { ...@@ -100,8 +100,8 @@ export default {
width: 100%; width: 100%;
// height: calc(100% - 17px); // height: calc(100% - 17px);
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px; // margin-top: 17px;
} }
.top_tip_title { .top_tip_title {
width: 100%; width: 100%;
......
...@@ -257,7 +257,7 @@ export default { ...@@ -257,7 +257,7 @@ export default {
width: 100%; width: 100%;
height: 360px; height: 360px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box; box-sizing: border-box;
padding-right: 50px; padding-right: 50px;
.text_wrap { .text_wrap {
...@@ -313,8 +313,8 @@ export default { ...@@ -313,8 +313,8 @@ export default {
.wrap_con_mid { .wrap_con_mid {
// height: 270px; // height: 270px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 10px; margin-top: 16px;
padding: 20px 20px 0 20px; padding: 20px 20px 0 20px;
.first_con { .first_con {
display: flex; display: flex;
...@@ -404,10 +404,10 @@ export default { ...@@ -404,10 +404,10 @@ export default {
} }
} }
.wrap_con_foot { .wrap_con_foot {
height: 300px; // height: 300px;
margin-top: 10px; margin-top: 16px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.title { .title {
box-sizing: border-box; box-sizing: border-box;
font-size: 18px; font-size: 18px;
......
...@@ -138,8 +138,8 @@ export default { ...@@ -138,8 +138,8 @@ export default {
width: 100%; width: 100%;
// height: 360px; // height: 360px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px; // margin-top: 17px;
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -192,9 +192,9 @@ export default { ...@@ -192,9 +192,9 @@ export default {
width: 100%; width: 100%;
height: 100px; height: 100px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box; box-sizing: border-box;
margin: 10px 0; margin: 16px 0;
padding: 0 20px; padding: 0 20px;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
// min-height: 344px; // min-height: 344px;
padding: 20px 0; padding: 20px 0;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
} }
.wrapper { .wrapper {
box-sizing: border-box; box-sizing: border-box;
...@@ -351,11 +351,10 @@ export default { ...@@ -351,11 +351,10 @@ export default {
} }
} }
.step_wrap { .step_wrap {
width: 100%;
padding: 20px; padding: 20px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 10px; margin-top: 16px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
......
...@@ -104,11 +104,11 @@ ...@@ -104,11 +104,11 @@
</div> </div>
<div class="box_bg_wrap mini_margin"> <div class="box_bg_wrap mini_margin">
<div class="tab_wrap"> <div class="tab_wrap">
<!-- <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:48%' : 'width:32%'"> --> <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:48%' : 'width:32%'">
<div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:32%' : 'width:16%'"> <!-- <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:32%' : 'width:16%'"> -->
<template v-for="(item, index) in tabList"> <template v-for="(item, index) in tabList">
<!-- <div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:33.33%' : 'width:50%'" @click="changeTab(index)"> --> <div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:33.33%' : 'width:50%'" @click="changeTab(index)">
<div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:50%' : 'width:100%'" @click="changeTab(index)"> <!-- <div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:50%' : 'width:100%'" @click="changeTab(index)"> -->
<div class="tab_item h13_title flex_cc" :class="curTabIndex == index ? 'tab_item_active' : ''">{{ item }}</div> <div class="tab_item h13_title flex_cc" :class="curTabIndex == index ? 'tab_item_active' : ''">{{ item }}</div>
</div> </div>
</template> </template>
...@@ -121,17 +121,17 @@ ...@@ -121,17 +121,17 @@
<template v-if="curTabIndex == 1"> <template v-if="curTabIndex == 1">
<upgrade-order></upgrade-order> <upgrade-order></upgrade-order>
</template> </template>
<!-- <template v-if="curTabIndex == 2"> <template v-if="curTabIndex == 2">
<my-fashionable-order></my-fashionable-order> <my-fashionable-order></my-fashionable-order>
</template> --> </template>
</template> </template>
<template v-if="accountLevel != 4"> <template v-if="accountLevel != 4">
<template v-if="curTabIndex == 0"> <template v-if="curTabIndex == 0">
<upgrade-order :list="storeList"></upgrade-order> <upgrade-order :list="storeList"></upgrade-order>
</template> </template>
<!-- <template v-if="curTabIndex == 1"> <template v-if="curTabIndex == 1">
<my-fashionable-order :list="storeList"></my-fashionable-order> <my-fashionable-order :list="storeList"></my-fashionable-order>
</template> --> </template>
</template> </template>
</div> </div>
</div> </div>
...@@ -172,8 +172,8 @@ export default { ...@@ -172,8 +172,8 @@ export default {
dateType: 'date', dateType: 'date',
dateplaceholder: '选择日期', dateplaceholder: '选择日期',
showMore: true, showMore: true,
// tabList: ['精品礼券领取订单', '精品升级订单', '我的分账'], tabList: ['精品礼券领取订单', '精品升级订单', '我的分账'],
tabList: ['精品礼券领取订单', '精品升级订单'], // tabList: ['精品礼券领取订单', '精品升级订单'],
curTabIndex: 0, curTabIndex: 0,
customName: '', customName: '',
hxstatus: '', hxstatus: '',
...@@ -198,9 +198,9 @@ export default { ...@@ -198,9 +198,9 @@ export default {
const { session } = this.$globalState const { session } = this.$globalState
this.accountLevel = session.accountLevel this.accountLevel = session.accountLevel
if (session.accountLevel != 4) { if (session.accountLevel != 4) {
// this.tabList = ['订单明细', '分账明细'] this.tabList = ['订单明细', '分账明细']
this.tabList = ['订单明细'] // this.tabList = ['订单明细']
this.toGet4SStore() // this.toGet4SStore()
} }
// 获取上一次打开的状态 // 获取上一次打开的状态
let lastOpenStatus = localStorage.getItem(`showMore${session.merchantId}`) let lastOpenStatus = localStorage.getItem(`showMore${session.merchantId}`)
...@@ -366,27 +366,27 @@ export default { ...@@ -366,27 +366,27 @@ export default {
} }
}) })
}, },
toGet4SStore() { // toGet4SStore() {
const { session } = this.$globalState // const { session } = this.$globalState
let level = this.accountLevel // let level = this.accountLevel
let para = { // let para = {
currentPage: 1, // currentPage: 1,
pageSize: 200000 // pageSize: 200000
} // }
let temp = level + 1 // let temp = level + 1
if (session.admin) { // if (session.admin) {
temp = 1 // temp = 1
} // }
para = { // para = {
...para, // ...para,
'merchantAccountLevelList[0]': temp // 'merchantAccountLevelList[0]': temp
} // }
get4SList(para).then(res => { // get4SList(para).then(res => {
if (res) { // if (res) {
this.storeList = res.list || [] // this.storeList = res.list || []
} // }
}) // })
} // }
} }
} }
</script> </script>
...@@ -394,11 +394,11 @@ export default { ...@@ -394,11 +394,11 @@ export default {
.box_bg_wrap { .box_bg_wrap {
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); // box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px; // margin-top: 17px;
} }
.mini_margin { .mini_margin {
margin-top: 10px; margin-top: 16px;
} }
.top_widget { .top_widget {
width: 100%; width: 100%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!