Commit 6491336e by 前端

Merge branch 'v2.9.0_0901' into 'master'

V2.9.0 0901  ---> master

See merge request !12
2 parents e20ad8f9 ab9f217e
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.1",
"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",
......
...@@ -325,7 +325,7 @@ const spaAgressData = params => { ...@@ -325,7 +325,7 @@ const spaAgressData = params => {
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
}) })
} }
...@@ -336,39 +336,70 @@ const merchantInfo = params => { ...@@ -336,39 +336,70 @@ const merchantInfo = params => {
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
}) })
} }
// 卡号---获取期限 // 卡号---获取期限
const dateBycarNo = params => { const dateBycarNo = params => {
params.method = 'scrm.api.equity.service.cfc.get.by.seqno' params.method = 'scrm.api.equity.service.cfc.get.by.seqno'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
}) })
} }
// 获取活码列表- // 获取活码列表-
const activeCodeList = params => { const activeCodeList = params => {
params.method = 'entmicro.api.code.getFreeChannelCode' params.method = 'entmicro.api.code.getFreeChannelCode'
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
}) })
} }
// 更新活码 // 更新活码
const updateActiveCode = params => { const updateActiveCode = params => {
params.method = 'scrm.api.equity.service.merchant.qrcode.update' params.method = 'scrm.api.equity.service.merchant.qrcode.update'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
})
}
// 获取汇总订单列表
const getOrdersummary = params => {
params.method = 'scrm.api.equity.service.order.summary.page'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取汇总产品列表
const getSummaryPackage = params => {
params.method = 'scrm.api.equity.service.summary.package'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
}) })
} }
const getSummaryExportApi = params => {
params.method = `scrm.api.equity.service.order.summary.export`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo,activeCodeList,updateActiveCode }
\ No newline at end of file \ No newline at end of file
export default { getOrdersummary, getSummaryPackage, getSummaryExportApi, getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo, activeCodeList, updateActiveCode }
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
background: #ffffff; background: #ffffff;
margin: 0 0 20px 0; margin: 0 0 20px 0;
padding: 20px; padding: 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1); // box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
} }
.equity-wrap .contain .el-table__empty-text { .equity-wrap .contain .el-table__empty-text {
display: inline-block; display: inline-block;
...@@ -359,3 +359,121 @@ ...@@ -359,3 +359,121 @@
// .equity-wrap table td { // .equity-wrap table td {
// min-width: 50px; // min-width: 50px;
// } // }
.page-btm-btn{
display: flex;
justify-content: center;
margin-top: 16px;
}
.gl-form-page {
.ml12 {
margin-left: 12px;
}
.mr12 {
margin-right: 12px;
}
.mr24 {
margin-right: 24px;
}
.mb10 {
margin-bottom: 10px;
}
.mb12 {
margin-bottom: 12px;
}
.mb20 {
margin-bottom: 20px;
}
.w136 {
width: 136px !important;
}
.w154 {
width: 154px !important;
}
.w284 {
width: 284px !important;
}
.w432 {
width: 432px !important;
}
.w580 {
width: 580px !important;
}
.w728 {
width: 728px !important;
}
.el-form {
padding-left: 20px;
.el-form-item {
&:last-child {
margin-bottom: 0;
}
margin-bottom: 20px;
}
.el-form-item__label {
padding: 0;
width: 154px;
}
.el-button--medium {
padding: 10px 20px;
font-size: 14px;
border-radius: 4px;
}
.el-input {
width: 432px;
}
.el-input-number{
width: 136px;
.el-input {
width:100%;
}
.el-input-number__decrease{
background-color: #fff;
}
.el-input-number__increase{
background-color: #fff;
}
}
.el-textarea {
width: 580px !important;
}
.el-select {
width: 432px;
margin-right: 12px;
.el-input {
width: 432px;
}
.el-input--small .el-input__inner {
height: 32px;
line-height: 32px;
}
}
.el-date-editor {
width: 432px;
}
.welcome-box {
width: 580px;
}
}
&.gl-form-min {
.el-form {
.el-input {
width: 284px;
}
.el-textarea {
width: 432px !important;
}
.el-select {
width: 284px;
.el-input {
width: 284px;
}
}
.el-date-editor {
width: 284px;
}
.welcome-box {
width: 432px;
}
}
}
}
import GLCombiForm from './src/index.vue'
// 为组件提供 install 安装方法,供按需引入
GLCombiForm.install = function(Vue) {
Vue.component(GLCombiForm.name, GLCombiForm)
}
// 默认导出组件
export default GLCombiForm
\ No newline at end of file \ No newline at end of file
/**
* 时间控件-限制月份
*/
export const beforeRangePickerOptions = {
disabledDate(date) {
if (date > new Date()) {
return true
}
return false
}
}
export const afterRangePickerOptions = {
disabledDate(date) {
const yesterday = new Date(new Date().setDate(new Date().getDate() - 1))
if (date < yesterday) {
return true
}
return false
}
}
import GLSearch from './src/index.vue'
// 为组件提供 install 安装方法,供按需引入
GLSearch.install = function(Vue) {
Vue.component(GLSearch.name, GLSearch)
}
// 默认导出组件
export default GLSearch
\ No newline at end of file \ No newline at end of file
<!-- <content> -->
<GLSearch @onOk="handleOkFn" @onRest="handleRestFn">
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-input size="small" v-model="input" placeholder="请输入内容"></el-input>
</GLSearchItem>
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-select v-model="value" size="small" placeholder="请选择">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</GLSearchItem>
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-date-picker size="small" v-model="value1" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</GLSearchItem>
<GLSearchItem>
<el-select v-model="selvalue" placeholder="请选择" size="small" slot="name">
<el-option v-for="item in seloptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
<el-input size="small" v-model="input" placeholder="请输入内容"></el-input>
</GLSearchItem>
</GLSearch>
<el-button type="warning" @click="toggleShow(1)">显示代码</el-button>
```js {mixin:true}
{
data() {
return {
demo1: true,
//gl-search数据
input: '',
options: [
{
value: '选项1',
label: '黄金糕'
},
{
value: '选项2',
label: '双皮奶'
},
{
value: '选项3',
label: '蚵仔煎'
},
{
value: '选项4',
label: '龙须面'
},
{
value: '选项5',
label: '北京烤鸭'
}
],
value: '',
value1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)],
seloptions: [
{
value: '选项1',
label: '黄金糕'
},
{
value: '选项2',
label: '双皮奶'
},
{
value: '选项3',
label: '蚵仔煎北京烤鸭'
},
{
value: '选项4',
label: '龙须面北京烤鸭'
},
{
value: '选项5',
label: '北京烤鸭北京烤鸭'
}
],
selvalue: ''
}
},
methods:{
toggleShow(num){
// console.log(123)
this['demo' + num] = !this['demo' + num]
},
//gl-search 方法
handleOkFn() {
console.log('您点击了确定')
},
handleRestFn() {
console.log('您点击了取消')
}
}
}
```
# 用来作为 markdown 代码的示例部分
<div v-if="demo1">
```vue
<template>
<GLSearch @onOk="handleOkFn" @onRest="handleRestFn">
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-input size="small" v-model="input" placeholder="请输入内容"></el-input>
</GLSearchItem>
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-select v-model="value" size="small" placeholder="请选择">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</GLSearchItem>
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-date-picker size="small" v-model="value1" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</GLSearchItem>
<GLSearchItem>
<el-select v-model="selvalue" placeholder="请选择" size="small" slot="name">
<el-option v-for="item in seloptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
<el-input size="small" v-model="input" placeholder="请输入内容"></el-input>
</GLSearchItem>
</GLSearch>
</template>
<script>
import {GLSearch, GLSearchItem} from 'glsx-components'
// 全局引入一次css即可
import 'glsx-components/dist/glsx-components.css'
export default {
data() {
return {
//gl-search数据
input: '',
options: [
{
value: '选项1',
label: '黄金糕'
},
{
value: '选项2',
label: '双皮奶'
},
{
value: '选项3',
label: '蚵仔煎'
},
{
value: '选项4',
label: '龙须面'
},
{
value: '选项5',
label: '北京烤鸭'
}
],
value: '',
value1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)],
seloptions: [
{
value: '选项1',
label: '黄金糕'
},
{
value: '选项2',
label: '双皮奶'
},
{
value: '选项3',
label: '蚵仔煎北京烤鸭'
},
{
value: '选项4',
label: '龙须面北京烤鸭'
},
{
value: '选项5',
label: '北京烤鸭北京烤鸭'
}
],
selvalue: ''
}
},
methods: {
handleOkFn() {
console.log('您点击了确定')
},
handleRestFn() {
console.log('您点击了取消')
}
}
}
</script>
```
</div>
<!-- </content> -->
<template>
<div class="gl-search" id="gl-search" :class="{ transTo: !expand }">
<div class="search-list">
<!-- 默认插槽 -->
<slot></slot>
<!-- <div class="search-item">
<div class="name">我是文本输入框</div>
<div class="input">
<el-input
size="small"
v-model="input"
placeholder="请输入内容"
></el-input>
</div>
</div> -->
<!-- <div class="search-item">
<div class="name">我是文本输入框</div>
<div class="input">
<el-input
size="small"
v-model="input"
placeholder="请输入内容"
></el-input>
</div>
</div> -->
<!-- <div class="search-item">
<div class="name">我是文本输入框</div>
<div class="input">
<el-input
size="small"
v-model="input"
placeholder="请输入内容"
></el-input>
</div>
</div>
<div class="search-item">
<div class="name">我是文本输入框</div>
<div class="input">
<el-input
size="small"
v-model="input"
placeholder="请输入内容"
></el-input>
</div>
</div> -->
</div>
<div class="gl-operate">
<div class="operate">
<el-button size="small" type="primary" @click="handleOk">查询</el-button>
<el-button size="small" @click="handleRest">重置</el-button>
<el-button type="text" size="small" @click="expandFn" v-if="hasExpand">
<span>{{ !expand ? '展开' : '收起' }}</span>
<i class="expand" :class="classIcon"></i>
</el-button>
<!-- <i class="el-icon-arrow-down expand"></i> -->
<!-- <i class="el-icon-arrow-up"></i> -->
</div>
</div>
</div>
</template>
<script>
export default {
name: 'GLSearch',
props: {},
data() {
return {
// input: '',
expand: false,
itemNum: 0,
time: null,
hasExpand: false
}
},
created() {},
mounted() {
this.getItemNum()
// 判断宽度按,是否显示展开收起
this.getClientWith()
window.addEventListener('resize', this.getClientWith, false)
},
computed: {
classIcon() {
return !this.expand ? 'el-icon-arrow-down' : 'el-icon-arrow-up'
}
},
methods: {
// 展开收起
expandFn() {
this.expand = !this.expand
},
// 获取item 输入框 的个数
getItemNum() {
const items = document.getElementById('gl-search').getElementsByClassName('search-item').length
this.itemNum = items
},
// 判断是否有展开收起标志
ifHasExpand(nowCol) {
if (this.itemNum > nowCol) {
return true
}
return false
},
// 监听函数
getClientWith() {
if (this.time) clearTimeout(this.time)
this.time = setTimeout(() => {
const clientWidth = document.documentElement.clientWidth
// console.log('clientWidth: ', clientWidth)
if (clientWidth <= 800) {
// 1列
this.hasExpand = this.ifHasExpand(1)
} else if (clientWidth <= 1440 && clientWidth > 800) {
// 2列
this.hasExpand = this.ifHasExpand(2)
} else if (clientWidth <= 1720 && clientWidth > 1440) {
// 3列
this.hasExpand = this.ifHasExpand(3)
} else {
// 4列
this.hasExpand = this.ifHasExpand(4)
}
}, 300)
},
handleOk() {
// 点击确定的回调
this.$emit('onOk')
},
handleRest() {
// 点击重置的回调
this.$emit('onRest')
}
},
components: {},
watch: {},
beforeDestroy() {
window.removeEventListener('resize', this.getClientWith, false)
this.time = null
}
}
</script>
<style lang="scss">
.gl-search {
&.transTo {
height: 52px;
}
display: flex;
justify-content: space-between;
overflow: hidden;
// @media screen and (max-width: 1062px) {
// .search-list {
// .search-item {
// width: 100%;
// }
// }
// }
// @media screen and (min-width: 1062px) and (max-width: 1440px) {
// .search-list {
// .search-item {
// width: 100%;
// }
// }
// }
// @media screen and (min-width: 1440px) and (max-width: 1720px) {
// .search-list {
// .search-item {
// width: 100%;
// }
// }
// }
// @media screen and (min-width: 1720px) {
// .search-list {
// .search-item {
// width: 100%;
// }
// }
// }
.search-list {
.search-item {
width: 100%;
}
}
.search-list {
flex: 1;
display: flex;
flex-wrap: wrap;
.search-item {
// flex: 1;
// padding-right: 12px;
margin-bottom: 20px;
min-width: 276px;
display: flex;
align-items: center;
box-sizing: border-box;
.name {
width: 112px;
text-align: right;
font-size: 14px;
font-weight: 400;
color: #666;
}
.input {
flex: 1;
// width:100%;
}
.el-input {
width: 100%;
}
.el-select {
width: 100%;
}
.el-date-editor {
width: 100%;
}
}
}
.gl-operate {
display: flex;
align-items: flex-end;
.operate {
text-align: left;
width: 190px;
margin-bottom: 20px;
.expand {
font-size: 14px;
}
.el-button + .el-button {
margin-left: 8px;
}
}
}
}
</style>
import GLSearchItem from './src/index.vue'
// 为组件提供 install 安装方法,供按需引入
GLSearchItem.install = function(Vue) {
Vue.component(GLSearchItem.name, GLSearchItem)
}
// 默认导出组件
export default GLSearchItem
\ No newline at end of file \ No newline at end of file
<template>
<div :style="{ 'padding-right': spacer + 'px' }" class="search-item">
<div class="name">
<!-- {{ label }} -->
<!-- name 插槽 -->
<slot name="name"></slot>
</div>
<div class="input">
<!-- 默认插槽 -->
<slot></slot>
<!-- <el-input
size="small"
v-model="input"
placeholder="请输入内容"
></el-input> -->
</div>
</div>
</template>
<script>
export default {
name: 'GLSearchItem',
props: {
// 每个项间隙
spacer: {
type: Number,
default: 12
}
},
data () {
return {}
},
created () {},
mounted () {},
computed: {},
methods: {},
components: {},
watch: {}
}
</script>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</span> </span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot> <slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<div v-else-if="item.type === 'input'"> <div v-else-if="item.type === 'input'">
<el-input @change="item.inputChange" :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)"> <el-input @change="item.inputChange" :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)">
<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>
...@@ -456,4 +456,7 @@ export default { ...@@ -456,4 +456,7 @@ export default {
.glsx-combi-form .el-tag.el-tag--info .el-tag__close:hover { .glsx-combi-form .el-tag.el-tag--info .el-tag__close:hover {
background-color: #e8e8ea; background-color: #e8e8ea;
} }
.el-textarea__inner {
font-family: auto !important;
}
</style> </style>
<!-- 弹窗 --> <!-- 弹窗 -->
<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" :title="title" :mode="mode" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :width="width">
<span slot="title"> <span slot="title">
{{ title }} {{ title }}
<span class="dialog-sub-title"> <span class="dialog-sub-title">
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button> <el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button>
<slot name="btn-middle"></slot> <slot name="btn-middle"></slot>
</div> </div>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -53,6 +53,14 @@ export default { ...@@ -53,6 +53,14 @@ export default {
btnSize: { btnSize: {
type: String, type: String,
default: 'small' default: 'small'
},
mode:{
type: String,
default: 'mid'
},
bigTitle:{
type: String,
default: ''
} }
}, },
......
<template> <template>
<glsx-dialog title="选择商户" :isVisible.sync="relateStoreVisible" width="70%" btnOkLabel="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore"> <glsx-dialog bigTitle="选择商户" mode="big" :isVisible.sync="relateStoreVisible" width="70%" btnOkLabel="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore">
<slot></slot> <slot></slot>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
......
...@@ -48,6 +48,12 @@ const staticRoutes = Object.freeze([ ...@@ -48,6 +48,12 @@ const staticRoutes = Object.freeze([
meta: {} meta: {}
}, },
{ {
name: 'equitySummary',
path: '/beforeSale/equitySummary',
component: resolve => require([`@/views/beforeSale/equitySummary.vue`], resolve),
meta: {}
},
{
name: 'equityList', name: 'equityList',
path: '/beforeSale/equityList', path: '/beforeSale/equityList',
component: resolve => require([`@/views/beforeSale/equityList.vue`], resolve), component: resolve => require([`@/views/beforeSale/equityList.vue`], resolve),
......
import Vue from 'vue' import Vue from 'vue'
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 GLCombiForm from '@/components/GlCombiForm'
// import GlSearch from '@/components/GlSearch'
// import GlSearchItem from '@/components/GlSearchItem'
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,12 +9,7 @@ import 'glsx-components/dist/glsx-components.css' ...@@ -12,12 +9,7 @@ import 'glsx-components/dist/glsx-components.css'
let routes = [] let routes = []
let router = null let router = null
let instance = null let instance = null
Vue.use(GLTable) Vue.use(GLTable).use(GLCombiForm).use(GLTableButton).use(GLDialog)
// Vue.use(Table)
// Vue.use(TableColumn)
// Vue.use(GLCombiForm)
// Vue.use(GlSearch)
// Vue.use(GlSearchItem)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig() const { response, request, request_brand, sign, secret } = await fetchConfig()
// request.baseURL = 'https://scrm.test.glsx.com.cn' // request.baseURL = 'https://scrm.test.glsx.com.cn'
......
<template> <template>
<div class="equity-wrap" style="margin-top: 20px"> <div class="equity-wrap">
<div class="equity-wrap contain"> <div class="equity-wrap contain">
<el-button type="primary" @click="add" size="small" class="addButtom">生成</el-button> <el-button type="primary" @click="add" size="small" class="addButtom">生成</el-button>
<div class="blank"></div> <div class="blank"></div>
<GLTable ref="detailTable" :searchForm="addForm" :tableParams="addParams" :pageConf="addPageConf" style="margin-top: 10px" :hasNum="false" :getListApi="getWorryBatcnList"> <GLTable ref="detailTable" :searchForm="addForm" :tableParams="addParams" :pageConf="addPageConf" style="margin-top: 10px" :getListApi="getWorryBatcnList">
<span slot="auth-button" slot-scope="scope" :data="scope.scope"> <span slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="download(scope.scope)">批量下载</el-button> <!-- <el-button type="text" @click="download(scope.scope)">批量下载</el-button> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</span> </span>
</GLTable> </GLTable>
<!-- 生成弹窗 --> <!-- 生成弹窗 -->
<el-dialog title="生成无忧卡" v-if="addDialog" :visible.sync="addDialog" width="712px" :before-close="handleClose" class="detailDialog"> <GLDialog class="gl-form-page gl-form-min" title="生成无忧卡" mode="mid" v-if="addDialog" :visible.sync="addDialog" :before-close="handleClose" @onOk="submitForm('detailForm')" @onCancel="cancelDetailDialog">
<el-form :inline="true" :model="addDialogForm" :rules="addDialogRules" ref="detailForm" label-width="120px" class="detailForm"> <glsx-combi-form ref="productCard" labelWidth="154px" defaultWidth="284px" formRef="detailForm" :formObj="addDialogForm" :formData="addDialogFormData" :formRules="addDialogRules"></glsx-combi-form>
<div class="form"> </GLDialog>
<el-row>
<el-form-item label="版本:" prop="batchType">
<el-select v-model="addDialogForm.batchType" placeholder="请选择" size="small">
<el-option v-for="(item, index) in dialogEditOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="适用类型:" prop="packageCode">
<el-select @change="changePgCode" v-model="addDialogForm.packageCode" placeholder="请选择" size="small">
<el-option v-for="(item, index) in dialogTypeOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="数量:" prop="quantity">
<el-input v-model="addDialogForm.quantity" placeholder="请输入1-5000的数字" size="small"></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="具体价格(万)" prop="actualPrice">
<el-input v-model="addDialogForm.actualPrice" placeholder="请输入" size="small"></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="使用年限:" prop="servicePeriod">
<el-select v-model="addDialogForm.servicePeriod" placeholder="请选择" size="small">
<el-option v-for="(item, index) in dialogYearOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="备注" prop="remark">
<el-input type="textarea" v-model="addDialogForm.remark" maxlength="200" style="width: 320px" placeholder="请输入活动详情或规则"></el-input>
</el-form-item>
</el-row>
</div>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="cancelDetailDialog">取 消</el-button>
<el-button size="small" type="primary" @click="submitForm('detailForm')">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
import glsxCombiForm from '@/components/glsx-combi-form'
function date_format(date) { function date_format(date) {
var date2 = new Date(date) var date2 = new Date(date)
var YY = date2.getFullYear() + '-' var YY = date2.getFullYear() + '-'
...@@ -105,14 +64,41 @@ const validatorQuantity = (rule, value, callback) => { ...@@ -105,14 +64,41 @@ const validatorQuantity = (rule, value, callback) => {
} }
export default { export default {
name: '', name: '',
components:{
glsxCombiForm
},
data() { data() {
return { return {
date_format, date_format,
buttonList: [
{
type: 'el-button',
name: row => {
return '批量下载'
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.download(row.scope)
}
}
],
getWorryBatcnList: this.$apis.addWorryFree.getWorryBatcnList, getWorryBatcnList: this.$apis.addWorryFree.getWorryBatcnList,
addDialogForm: {}, addDialogForm: {
addDialog: false, batchType: '',
addPageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, packageCode:'',
dialogEditOptions: [ quantity: '',
actualPrice:'',
servicePeriod: '',
remark: ''
},
addDialogFormData: [
{
label: '版本',
name: 'batchType',
type: 'select',
optionList: [
{ {
value: '1', value: '1',
label: '尊享版' label: '尊享版'
...@@ -122,7 +108,14 @@ export default { ...@@ -122,7 +108,14 @@ export default {
label: '畅享版' label: '畅享版'
} }
], ],
dialogTypeOptions: [ optionId: 'value',
optionLabel: 'label'
},
{
label: '适用类型',
name: 'packageCode',
type: 'select',
optionList: [
{ {
value: 'PC0005', value: 'PC0005',
label: '盗抢全损无忧' label: '盗抢全损无忧'
...@@ -140,7 +133,31 @@ export default { ...@@ -140,7 +133,31 @@ export default {
label: '碰撞无忧' label: '碰撞无忧'
} }
], ],
dialogYearOptions: [ optionId: 'value',
optionLabel: 'label',
changeAttr:(e)=>{
this.changePgCode(e)
}
},
{
type: 'input',
label: '数量',
placeholder:'请输入1-5000的数字',
name: 'quantity',
isClear: true
},
{
type: 'input',
label: '具体价格/万',
name: 'actualPrice',
isClear: true
},
{
label: '使用年限',
name: 'servicePeriod',
type: 'select',
isClear: true,
optionList: [
{ {
value: '1', value: '1',
label: '1年' label: '1年'
...@@ -154,6 +171,21 @@ export default { ...@@ -154,6 +171,21 @@ export default {
label: '3年' label: '3年'
} }
], ],
optionId: 'value',
optionLabel: 'label'
},
{
type: 'input',
label: '备注',
inputType:'textarea',
name: 'remark',
isClear: true,
placeholder:'请输入活动详情或规则',
maxlength: 200
}
],
addDialog: false,
addPageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
addDialogRules: { addDialogRules: {
batchType: [{ required: true, message: '请选择版本', trigger: 'change' }], batchType: [{ required: true, message: '请选择版本', trigger: 'change' }],
packageCode: [{ required: true, message: '请选择适应类型', trigger: 'change' }], packageCode: [{ required: true, message: '请选择适应类型', trigger: 'change' }],
...@@ -165,7 +197,9 @@ export default { ...@@ -165,7 +197,9 @@ export default {
addParams: { addParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableOption: true, tableOption: {
width: 100
},
tableColumns: [ tableColumns: [
{ {
label: '批次号', label: '批次号',
...@@ -195,7 +229,7 @@ export default { ...@@ -195,7 +229,7 @@ export default {
mounted() {}, mounted() {},
methods: { methods: {
changePgCode(e){ changePgCode(e){
let arr = [ { const arr = [{
value: '1', value: '1',
label: '1年' label: '1年'
}, },
...@@ -207,8 +241,7 @@ export default { ...@@ -207,8 +241,7 @@ export default {
value: '3', value: '3',
label: '3年' label: '3年'
}] }]
if(e=='PC0005' || e=='PC0007'){ const moreArr = [{
this.dialogYearOptions = [ ...arr, {
value: '4', value: '4',
label: '4年' label: '4年'
}, },
...@@ -216,9 +249,9 @@ export default { ...@@ -216,9 +249,9 @@ export default {
value: '5', value: '5',
label: '5年' label: '5年'
}] }]
}else{ const target = this.addDialogFormData.find(item => item.name=='servicePeriod')
this.dialogYearOptions = [...arr] target.optionList = (e=='PC0005' || e=='PC0007') ? [ ...arr, ...moreArr] : [...arr]
} this.addDialogForm.servicePeriod = ''
}, },
//批量下载 //批量下载
download(e) { download(e) {
...@@ -239,12 +272,18 @@ export default { ...@@ -239,12 +272,18 @@ export default {
}, },
// 关闭弹窗界面 // 关闭弹窗界面
cancelDetailDialog() { cancelDetailDialog() {
console.log('1')
this.addDialog = false this.addDialog = false
this.addDialogForm = {} this.addDialogForm = {
batchType: '',
packageCode:'',
quantity: '',
actualPrice:'',
servicePeriod: '',
remark: ''
}
}, },
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate(valid => { this.$refs.productCard.$refs[formName].validate(valid => {
if (valid) { if (valid) {
this.$apis.addWorryFree.addCards(this.addDialogForm).then(res => { this.$apis.addWorryFree.addCards(this.addDialogForm).then(res => {
if (res.code == '0') { if (res.code == '0') {
...@@ -252,8 +291,7 @@ export default { ...@@ -252,8 +291,7 @@ export default {
message: '操作成功', message: '操作成功',
type: 'success' type: 'success'
}) })
this.addDialog = false this.cancelDetailDialog()
this.addDialogForm = {}
this.$refs.detailTable.refreshTable() this.$refs.detailTable.refreshTable()
} else { } else {
this.$message({ this.$message({
...@@ -281,36 +319,6 @@ export default { ...@@ -281,36 +319,6 @@ export default {
padding: 8px 16px; padding: 8px 16px;
// margin-bottom: 20px; // margin-bottom: 20px;
} }
/deep/ .el-dialog {
.el-dialog__body {
padding: 40px 20px;
display: flex;
justify-content: center;
.el-form-item__label {
color: #333;
}
input {
height: 36px;
width: 320px;
font-size: 14px;
}
}
.el-dialog__footer {
height: 70px;
padding: 16px 20px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-top: 1px solid #e6e6e6;
text-align: center;
.el-button {
width: 72px;
margin: 0 10px;
}
}
}
/deep/ .contain .el-input--small .el-input__inner {
width: 215px;
}
.row-btns { .row-btns {
margin-top: 5px; margin-top: 5px;
margin-bottom: 10px; margin-bottom: 10px;
......
...@@ -2,54 +2,26 @@ ...@@ -2,54 +2,26 @@
<div class="equity-wrap"> <div class="equity-wrap">
<el-button type="primary" icon="el-icon-plus" size="small" @click="showDialog('add')"><span style="margin-left: 5px">新增特别约定</span></el-button> <el-button type="primary" icon="el-icon-plus" size="small" @click="showDialog('add')"><span style="margin-left: 5px">新增特别约定</span></el-button>
<div class="equity-wrap contain" style="margin-top: 10px"> <div class="equity-wrap contain" style="margin-top: 10px">
<el-form :inline="true" label-width="auto" label-position="right" class="selectForm"> <GLCombiForm :rowNumber="1" ref="showSearch" :formObj="appointmentForm" :formData="searchFormData" @handleOk="seletTable('select')" @handleRest="seletTable('reset')"></GLCombiForm>
<el-row style="align-items: center"> <el-button plain style="float:right;margin-bottom:10px;" size="small" @click="exportTable" class="selectBtn">导出</el-button>
<el-form-item label="特约名称"> <GLTable ref="appointmentTable" :searchForm="appointmentForm" :tableParams="tableParams" :pageConf="tablePageConf" :getListApi="getAppointmentList">
<el-input v-model="appointmentForm.spaName" placeholder="请输入" size="small"></el-input>
</el-form-item>
<el-form-item label="特约内容">
<el-input v-model="appointmentForm.spaContent" placeholder="请输入" size="small"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right; margin-right: 0px !important">
<el-button plain size="small" @click="seletTable('reset')" class="selectBtn">重置</el-button>
<el-button type="primary" size="small" @click="seletTable('select')" class="selectBtn">查询</el-button>
<el-button plain size="small" @click="exportTable" class="selectBtn">导出</el-button>
</el-form-item>
</el-row>
</el-form>
<GLTable ref="appointmentTable" style="margin-top:10px" :searchForm="appointmentForm" :tableParams="tableParams" :pageConf="tablePageConf" :getListApi="getAppointmentList">
<span slot="auth-button" slot-scope="scope" :data="scope.scope"> <span slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- 批次管理详情弹窗按钮 --> <!-- 批次管理详情弹窗按钮 -->
<el-button type="text" @click="showDialog(scope.scope)">修改</el-button> <!-- <el-button type="text" @click="showDialog(scope.scope)">修改</el-button>
<el-button type="text" @click="del(scope.scope)">删除</el-button> <el-button type="text" @click="del(scope.scope)">删除</el-button> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</span> </span>
</GLTable> </GLTable>
<!-- 修改界面弹窗 --> <!-- 修改界面弹窗 -->
<el-dialog :title="dialogTitle" v-if="modifyDialog" :visible.sync="modifyDialog" width="712px" :before-close="handleClose" class="detailDialog"> <GLDialog class="gl-form-page gl-form-min" :title="dialogTitle" mode="mid" v-if="modifyDialog" :visible.sync="modifyDialog" :before-close="handleClose" @onOk="submitForm('modifyForm')" @onCancel="cancelDialog">
<el-form :inline="true" :model="modifyDialogForm" :rules="modifyDialogRules" ref="modifyForm" label-width="120px" class="detailForm"> <glsx-combi-form ref="spaRef" labelWidth="154px" defaultWidth="284px" formRef="modifyForm" :formObj="modifyDialogForm" :formData="modifyDialogData" :formRules="modifyDialogRules"></glsx-combi-form>
<div class="form"> </GLDialog>
<el-row>
<el-form-item label="名称:" prop="spaName">
<el-input v-model="modifyDialogForm.spaName" placeholder="请输入" size="small"></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="特约内容" prop="spaContent" style="margin-top: 24px">
<el-input type="textarea" v-model="modifyDialogForm.spaContent" maxlength="200" placeholder="请输入"></el-input>
</el-form-item>
</el-row>
</div>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="cancelDialog">取 消</el-button>
<el-button size="small" type="primary" @click="submitForm('modifyForm')">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
import glsxCombiForm from '@/components/glsx-combi-form'
function date_format(date) { function date_format(date) {
var date2 = new Date(date) var date2 = new Date(date)
var YY = date2.getFullYear() + '-' var YY = date2.getFullYear() + '-'
...@@ -63,9 +35,66 @@ function date_format(date) { ...@@ -63,9 +35,66 @@ function date_format(date) {
import utils from '../../util/util' import utils from '../../util/util'
export default { export default {
name: '', name: '',
components:{
glsxCombiForm
},
data() { data() {
return { return {
date_format, date_format,
buttonList: [
{
type: 'el-button',
name: row => {
return '修改'
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.showDialog(row.scope)
}
},
{
type: 'el-button',
name: row => {
return '删除'
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.del(row.scope)
}
}
],
searchFormData:[
{
label: '特约名称',
name: 'spaName',
type: 'input'
},
{
label: '特约内容',
name: 'spaContent',
type: 'input'
}
],
modifyDialogData: [
{
type: 'input',
label: '特约名称',
name: 'spaName',
isClear: true,
},
{
type: 'input',
label: '特约内容',
name: 'spaContent',
isClear: true,
maxlength: 200,
inputType:'textarea',
}
],
isAdd: false, isAdd: false,
getAppointmentList: this.$apis.appointmentApi.getAppointmentList, getAppointmentList: this.$apis.appointmentApi.getAppointmentList,
dialogTitle: '', dialogTitle: '',
...@@ -83,27 +112,33 @@ export default { ...@@ -83,27 +112,33 @@ export default {
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableOption: true, tableOption: {
width: 120
},
tableColumns: [ tableColumns: [
{ {
label: '特约名称', label: '特约名称',
prop: 'spaName' prop: 'spaName',
width: 400,
line:1
}, },
{ {
label: '特约内容', label: '特约内容',
prop: 'spaContent', prop: 'spaContent',
line:2, width: 400,
width:160 line:1
}, },
{ {
label: '操作人', label: '操作人',
prop: 'updatedBy' prop: 'updatedBy',
minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createdDate', prop: 'createdDate',
width:220,
formatter: cellValue => { formatter: cellValue => {
return this.date_format(cellValue.createdDate) return this.date_format(cellValue.createdDate)
} }
...@@ -112,6 +147,7 @@ export default { ...@@ -112,6 +147,7 @@ export default {
{ {
label: '更新时间', label: '更新时间',
prop: 'updatedDate', prop: 'updatedDate',
width:220,
formatter: cellValue => { formatter: cellValue => {
return this.date_format(cellValue.updatedDate) return this.date_format(cellValue.updatedDate)
} }
...@@ -135,7 +171,7 @@ export default { ...@@ -135,7 +171,7 @@ export default {
this.modifyDialogForm = {} this.modifyDialogForm = {}
}, },
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate(valid => { this.$refs.spaRef.$refs[formName].validate(valid => {
if (valid) { if (valid) {
this.$apis.appointmentApi.modifyAppointment(this.modifyDialogForm).then(res => { this.$apis.appointmentApi.modifyAppointment(this.modifyDialogForm).then(res => {
if (res.code == '0') { if (res.code == '0') {
...@@ -145,7 +181,7 @@ export default { ...@@ -145,7 +181,7 @@ export default {
}) })
this.modifyDialog = false this.modifyDialog = false
this.modifyDialogForm = {} this.modifyDialogForm = {}
this.$refs.modifyForm.clearValidate() this.$refs.spaRef.$refs.modifyForm.clearValidate()
this.$refs.appointmentTable.refreshTable() this.$refs.appointmentTable.refreshTable()
} else { } else {
this.$message({ this.$message({
...@@ -252,59 +288,4 @@ export default { ...@@ -252,59 +288,4 @@ export default {
} }
</script> </script>
<style lang="scss" scoped>
/deep/ .contain .el-input--small .el-input__inner {
width: 215px;
}
/deep/ .el-form-item {
margin-bottom: 0;
}
.selectForm .el-button + .el-button {
margin-left: 20px;
}
/deep/ .detailForm .el-input--small .el-input__inner {
height: 32px;
line-height: 32px;
width: 320px !important;
}
/deep/ .detailDialog .el-dialog__title {
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 28px;
}
/deep/ .detailDialog .el-dialog__body {
padding: 30px 0px;
color: #606266;
font-size: 14px;
word-break: break-all;
text-align: center;
}
/deep/ .detailDialog .el-dialog__footer {
padding: 15px;
border-top: 1px solid #e6e6e6;
text-align: center;
}
/deep/ .el-form-item__content .el-button--small:first-child, .row-btns>div .el-button--small:first-child {
border-color: #5850ff;
color: #5850ff;
}
/deep/ .el-textarea__inner {
display: block;
resize: vertical;
padding: 5px 15px;
line-height: 1.5;
box-sizing: border-box;
width: 100%;
font-size: inherit;
color: #606266;
background-color: #fff;
background-image: none;
border: 1px solid #dcdfe6;
border-radius: 4px;
transition: border-color .2s cubic-bezier(.645,.045,.355,1);
width: 320px;
height: 80px;
}
</style>
\ No newline at end of file \ No newline at end of file
<style lang="scss" scoped></style>
...@@ -188,25 +188,10 @@ ...@@ -188,25 +188,10 @@
</div> </div>
<!-- 底部固定按钮 --> <!-- 底部固定按钮 -->
<div style="height: 78px"></div> <div class="page-btm-btn">
<div <el-button v-if="![3, 5].includes(routeInfo.addOrEdit)" class="custom_black" @click="handleReset">重置</el-button>
class="fixed_bottom" <el-button class="custom_blue" v-if="![3, 5].includes(routeInfo.addOrEdit)" @click="handleDraft">草稿</el-button>
:style="{ <el-button v-if="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<div class="ma_top"></div>
<div class="flex_cc ma_bot">
<el-button v-if="![3, 5].includes(routeInfo.addOrEdit)" size="small" class="custom_black" @click="handleReset">重置</el-button>
<div class="mar-10"></div>
<el-button class="custom_blue" v-if="![3, 5].includes(routeInfo.addOrEdit)" size="small" @click="handleDraft">草稿</el-button>
<div class="mar-10"></div>
<el-button v-if="routeInfo.addOrEdit != '5'" type="primary" size="small" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
<div class="mar-10"></div>
<el-button v-if="routeInfo.addOrEdit != 5" size="small" @click="handleCancel">返回</el-button>
<el-button v-else size="small" type="primary" @click="handleCancel">返回</el-button>
</div>
</div> </div>
<!-- 二维码 --> <!-- 二维码 -->
...@@ -1796,9 +1781,6 @@ export default { ...@@ -1796,9 +1781,6 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.edit-equity {
margin-top: 17px;
}
.before-sale .container { .before-sale .container {
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);
...@@ -2061,40 +2043,6 @@ export default { ...@@ -2061,40 +2043,6 @@ export default {
.m-r-10 { .m-r-10 {
margin-right: 10px; margin-right: 10px;
} }
.fixed_bottom {
position: fixed;
width: 100%;
bottom: 0px;
height: 82px;
// display: flex;
// align-items: center;
// justify-content: center;
background: #ffffff;
z-index: 999;
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
.ma_top {
height: 4px;
background: #f4f5fa;
}
.ma_bot {
box-sizing: border-box;
padding: 0 20px 0 40px;
height: 78px;
.custom_black {
background: #ffffff;
color: #333333;
border: 1px solid #333333;
}
.custom_blue {
background: #ffffff;
color: #5850ff;
border: 1px solid #5850ff;
}
.mar-10 {
width: 20px;
}
}
}
.app { .app {
background: #f4f5fa; background: #f4f5fa;
padding: 0px 20px 20px 40px; padding: 0px 20px 20px 40px;
......
...@@ -146,13 +146,9 @@ export default { ...@@ -146,13 +146,9 @@ export default {
overflow-y: auto; overflow-y: auto;
height: 100%; height: 100%;
} }
.introduct_container {
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-sizing: border-box; box-sizing: border-box;
padding-right: 50px; padding-right: 50px;
.text_wrap { .text_wrap {
...@@ -205,7 +201,7 @@ export default { ...@@ -205,7 +201,7 @@ 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 { .content_one {
......
...@@ -228,7 +228,7 @@ export default { ...@@ -228,7 +228,7 @@ export default {
.report-components { .report-components {
background: white; background: white;
margin: 20px 0 64px; margin: 20px 0 0;
.title { .title {
padding: 0 20px; padding: 0 20px;
font-size: 16px; font-size: 16px;
...@@ -368,7 +368,7 @@ export default { ...@@ -368,7 +368,7 @@ export default {
cursor: pointer; cursor: pointer;
} }
.del_img { .del_img {
right: -44px; right: -49px;
} }
/deep/ .el-progress-bar__outer { /deep/ .el-progress-bar__outer {
height: 26px !important; height: 26px !important;
......
<template> <template>
<div> <div>
<div v-if="isGH" class="report-components"> <div v-if="isGH" class="report-components gl-form-page">
<div class="title">报案信息(店面补充)</div> <div class="title">报案信息(店面补充)</div>
<glsx-combi-form class="edit-form-container" ref="handlerRef" :formRules="accountRule" labelWidth="144px" defaultWidth="320px" :formObj="accountForm" :formData="handlerForm"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="handlerRef" :formRules="accountRule" labelWidth="154px" defaultWidth="432px" :formObj="accountForm" :formData="handlerForm"></glsx-combi-form>
</div> </div>
<div class="report-components repair-wrap"> <div class="report-components repair-wrap">
<div class="title">维修信息</div> <div class="title">维修信息</div>
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
<el-radio :label="1">其他</el-radio> <el-radio :label="1">其他</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
<div class="account-info"> <div class="account-info gl-form-page">
<glsx-combi-form ref="accountRef" :formRules="accountRule" labelWidth="144px" defaultWidth="320px" :formObj="accountForm" :formData="accountData"></glsx-combi-form> <glsx-combi-form ref="accountRef" :formRules="accountRule" labelWidth="154px" defaultWidth="432px" :formObj="accountForm" :formData="accountData"></glsx-combi-form>
</div> </div>
</div> </div>
</div> </div>
...@@ -407,7 +407,7 @@ export default { ...@@ -407,7 +407,7 @@ export default {
} }
/deep/ .account-info { /deep/ .account-info {
margin: 10px 0 0 115px; margin: 10px 0 0 115px;
padding: 20px 10px 0 20px; padding: 20px;
background: #f9f9f9; background: #f9f9f9;
display: inline-block; display: inline-block;
.el-radio { .el-radio {
......
<template> <template>
<div class="report-components"> <div class="report-components gl-form-page">
<div class="title">报案信息(客户提交)</div> <div class="title">报案信息(客户提交)</div>
<glsxCombiForm :regionData="regionData" class="edit-form-container " ref="editFormRefReport" labelWidth="144px" defaultWidth="320px" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsxCombiForm :regionData="regionData" class="edit-form-container " ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div v-if="pageType == 1" style="display:inline-block;" slot="syncBtn"> <div v-if="pageType == 1" style="display:inline-block;" slot="syncBtn">
<el-button style="margin:0 12px;" type="primary" @click="toSearchOrderDetail">同步</el-button> <el-button style="margin:0 12px;" type="primary" @click="toSearchOrderDetail">同步</el-button>
<span style="font-weight: 400; color:#666;">{{ `同步${isGH ? '核销码关联合同中的' : '合同中'}以下信息,同步后的信息可手动编辑` }}</span> <span style="font-weight: 400; color:#666;">{{ `同步${isGH ? '核销码关联合同中的' : '合同中'}以下信息,同步后的信息可手动编辑` }}</span>
......
...@@ -13,27 +13,23 @@ ...@@ -13,27 +13,23 @@
单校验不通过退回处理,为保障客户权益,请尽快处理哦! 单校验不通过退回处理,为保障客户权益,请尽快处理哦!
</div> </div>
<div class="search_container"> <div class="search_container">
<glsx-combi-form ref="showSearch" labelWidth="112px" defaultWidth="218px" :formObj="searchForm" :formData="searchFormData"> <GLCombiForm :rowNumber="1" ref="showSearch" :formObj="searchForm" :formData="searchFormData" @handleOk="handleOkFn" @handleRest="handleRestFn()"></GLCombiForm>
<div slot="footer" class="footer-btns primary_plain_btn" style="float:right;">
<el-button size="small" @click="handleRestFn()">重置</el-button>
<el-button size="small" type="primary" @click="handleOkFn">查询</el-button>
<el-button size="small" type="primary" @click="exportList" plain>导出excel</el-button>
</div>
</glsx-combi-form>
</div> </div>
<div class="table_widget"> <div class="table_widget">
<el-button plain style="float:right;margin-bottom:10px;" size="small" @click="exportList">导出</el-button>
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf"> <GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf">
<div class="table-btns" slot="table-btns" slot-scope="scope"> <div class="table-btns" slot="table-btns" slot-scope="scope">
<GLButton v-if="[0].includes(scope.scope.status)" fn="去处理" type="text" @click="handleEdit(4, scope.scope)">去处理</GLButton> <!-- <GLButton v-if="[0].includes(scope.scope.status)" fn="去处理" type="text" @click="handleEdit(4, scope.scope)">去处理</GLButton>
<GLButton v-if="[1, 3, 4].includes(scope.scope.status)" fn="查看" type="text" @click="handleEdit(2, scope.scope)">查看</GLButton> <GLButton v-if="[1, 3, 4].includes(scope.scope.status)" fn="查看" type="text" @click="handleEdit(2, scope.scope)">查看</GLButton>
<GLButton v-if="[2].includes(scope.scope.status)" fn="重新提交" type="text" @click="handleEdit(3, scope.scope)">重新提交</GLButton> <GLButton v-if="[2].includes(scope.scope.status)" fn="重新提交" type="text" @click="handleEdit(3, scope.scope)">重新提交</GLButton> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</div> </div>
</GLTable> </GLTable>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import glsxCombiForm from '@/components/glsx-combi-form'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
const statusList = [ const statusList = [
{ {
...@@ -66,6 +62,56 @@ export default { ...@@ -66,6 +62,56 @@ export default {
data() { data() {
return { return {
orderCount: {}, orderCount: {},
buttonList: [
{
type: 'GLButton',
name: row => {
return '去处理'
},
condition: row => {
return [0].includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '去处理'
},
listeners: {
click: row => this.handleEdit(4, row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '查看'
},
condition: row => {
return [1, 3, 4].includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '查看'
},
listeners: {
click: row => this.handleEdit(2, row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '重新提交'
},
condition: row => {
return [2].includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '重新提交'
},
listeners: {
click: row => this.handleEdit(3, row.scope)
}
}
],
getListApi: this.$apis.claims.getclaimsList, getListApi: this.$apis.claims.getclaimsList,
sizeList: [5, 10, 20, 30, 40], sizeList: [5, 10, 20, 30, 40],
pageConf: { pageSize: 'pageCount', pageNum: 'pageNum', totalCount: 'total' }, pageConf: { pageSize: 'pageCount', pageNum: 'pageNum', totalCount: 'total' },
...@@ -109,7 +155,7 @@ export default { ...@@ -109,7 +155,7 @@ export default {
{ {
label: '核销码', label: '核销码',
prop: 'writeOffCode', prop: 'writeOffCode',
width: '90', width: 100,
formatter: cellValue => { formatter: cellValue => {
return cellValue.writeOffCode || '-' return cellValue.writeOffCode || '-'
} }
...@@ -117,7 +163,7 @@ export default { ...@@ -117,7 +163,7 @@ export default {
{ {
label: '报案号', label: '报案号',
prop: 'registNo', prop: 'registNo',
width: '220', width: 220,
formatter: cellValue => { formatter: cellValue => {
return cellValue.registNo || '-' return cellValue.registNo || '-'
} }
...@@ -125,7 +171,7 @@ export default { ...@@ -125,7 +171,7 @@ export default {
{ {
label: '客户名称', label: '客户名称',
prop: 'reporterName', prop: 'reporterName',
width: '200', width: 160,
formatter: cellValue => { formatter: cellValue => {
return cellValue.reporterName || '-' return cellValue.reporterName || '-'
} }
...@@ -133,7 +179,7 @@ export default { ...@@ -133,7 +179,7 @@ export default {
{ {
label: '合同号', label: '合同号',
prop: 'contractNo', prop: 'contractNo',
width: '200', width: 200,
formatter: cellValue => { formatter: cellValue => {
return cellValue.contractNo || '-' return cellValue.contractNo || '-'
} }
...@@ -141,7 +187,7 @@ export default { ...@@ -141,7 +187,7 @@ export default {
{ {
label: '价格区间', label: '价格区间',
prop: 'priceSection', prop: 'priceSection',
width: '100', width: 100,
formatter: cellValue => { formatter: cellValue => {
return cellValue.priceSection || '-' return cellValue.priceSection || '-'
} }
...@@ -149,7 +195,7 @@ export default { ...@@ -149,7 +195,7 @@ export default {
{ {
label: '门店提交时间', label: '门店提交时间',
prop: 'commitTime', prop: 'commitTime',
width: '180', width: 180,
formatter: cellValue => { formatter: cellValue => {
return cellValue.commitTime ? dayjs(cellValue.commitTime).format('YYYY-MM-DD HH:mm:ss') : '-' return cellValue.commitTime ? dayjs(cellValue.commitTime).format('YYYY-MM-DD HH:mm:ss') : '-'
} }
...@@ -157,7 +203,7 @@ export default { ...@@ -157,7 +203,7 @@ export default {
{ {
label: '提交国任时间', label: '提交国任时间',
prop: 'commitGuoRenDate', prop: 'commitGuoRenDate',
width: '180', width: 180,
formatter: cellValue => { formatter: cellValue => {
return cellValue.commitGuoRenDate ? dayjs(cellValue.commitGuoRenDate).format('YYYY-MM-DD HH:mm:ss') : '-' return cellValue.commitGuoRenDate ? dayjs(cellValue.commitGuoRenDate).format('YYYY-MM-DD HH:mm:ss') : '-'
} }
...@@ -165,7 +211,7 @@ export default { ...@@ -165,7 +211,7 @@ export default {
{ {
label: '服务名称', label: '服务名称',
prop: 'serviceName', prop: 'serviceName',
width: '300', width: 300,
line: 1, line: 1,
formatter: cellValue => { formatter: cellValue => {
return cellValue.serviceName || '-' return cellValue.serviceName || '-'
...@@ -174,7 +220,7 @@ export default { ...@@ -174,7 +220,7 @@ export default {
{ {
label: '服务状态', label: '服务状态',
prop: 'status', prop: 'status',
width: '120', width: 120,
formatter: cellValue => { formatter: cellValue => {
if (!cellValue) return '-' if (!cellValue) return '-'
return statusList.map(item => item.confId).includes(cellValue.status) ? statusList.find(item => item.confId === cellValue.status).confName : '-' return statusList.map(item => item.confId).includes(cellValue.status) ? statusList.find(item => item.confId === cellValue.status).confName : '-'
...@@ -183,7 +229,8 @@ export default { ...@@ -183,7 +229,8 @@ export default {
{ {
label: '状态描述', label: '状态描述',
prop: 'statusDesc', prop: 'statusDesc',
width: '200', width: 250,
line: 1,
formatter: cellValue => { formatter: cellValue => {
return cellValue.statusDesc || '-' return cellValue.statusDesc || '-'
} }
...@@ -191,7 +238,8 @@ export default { ...@@ -191,7 +238,8 @@ export default {
{ {
label: '批准金额', label: '批准金额',
prop: 'approvalAmount', prop: 'approvalAmount',
width: '100', width: 100,
align: 'right',
formatter: cellValue => { formatter: cellValue => {
return cellValue.approvalAmount || '-' return cellValue.approvalAmount || '-'
} }
...@@ -199,7 +247,8 @@ export default { ...@@ -199,7 +247,8 @@ export default {
{ {
label: '支付金额', label: '支付金额',
prop: 'paymentAmount', prop: 'paymentAmount',
width: '100', align: 'right',
width: 100,
formatter: cellValue => { formatter: cellValue => {
return cellValue.paymentAmount || '-' return cellValue.paymentAmount || '-'
} }
...@@ -207,7 +256,7 @@ export default { ...@@ -207,7 +256,7 @@ export default {
{ {
label: '操作人', label: '操作人',
prop: 'operatorName', prop: 'operatorName',
width: '100', width: 100,
formatter: cellValue => { formatter: cellValue => {
return cellValue.operatorName || '-' return cellValue.operatorName || '-'
} }
...@@ -215,7 +264,7 @@ export default { ...@@ -215,7 +264,7 @@ export default {
{ {
label: '操作', label: '操作',
prop: '', prop: '',
width: '200', width: 100,
fixed: 'right', fixed: 'right',
addHtml: 'table-btns' addHtml: 'table-btns'
} }
...@@ -223,9 +272,6 @@ export default { ...@@ -223,9 +272,6 @@ export default {
} }
} }
}, },
components: {
glsxCombiForm
},
created() { created() {
this.diffHost() this.diffHost()
...@@ -309,7 +355,7 @@ export default { ...@@ -309,7 +355,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.header_info_widget { .header_info_widget {
box-sizing: border-box; box-sizing: border-box;
margin: 20px 0; margin: 16px 0;
width: 100%; width: 100%;
height: 40px; height: 40px;
display: flex; display: flex;
......
...@@ -4,15 +4,9 @@ ...@@ -4,15 +4,9 @@
<report @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report> <report @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report>
<repair ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair> <repair ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair>
<material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material> <material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material>
<div class="footer operate-btn primary_plain_btn"> <div class="page-btm-btn">
<template v-if="pageType != 2"> <el-button type="primary" @click="confirmSubmit(1)">提交</el-button>
<el-button size="small" type="primary" @click="confirmSubmit(1)">提交</el-button> <el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button>
<el-button size="small" type="primary" plain @click="confirmSubmit(2)">草稿</el-button>
<el-button size="small" @click="handleCancel">取消</el-button>
</template>
<template v-else>
<el-button size="small" type="primary" @click="handleCancel">返回</el-button>
</template>
</div> </div>
</div> </div>
</template> </template>
...@@ -86,7 +80,7 @@ export default { ...@@ -86,7 +80,7 @@ export default {
computed: { computed: {
totalPrice() { totalPrice() {
let total = this.serviceItemsList.reduce(function(prev, cur) { let total = this.serviceItemsList.reduce(function(prev, cur) {
return prev + (+(cur.approveAmount * 100).toFixed(0)) return prev + +(cur.approveAmount * 100).toFixed(0)
}, 0) }, 0)
return total / 100 return total / 100
} }
......
...@@ -76,6 +76,12 @@ ...@@ -76,6 +76,12 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-checkbox v-model="checkPosition">位置点验证</el-checkbox>
<el-checkbox-group v-model="checkPosition">
<el-checkbox label="不验证位置点"></el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item>
<el-checkbox v-model="honorable">舒享版</el-checkbox> <el-checkbox v-model="honorable">舒享版</el-checkbox>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -105,17 +111,8 @@ ...@@ -105,17 +111,8 @@
</el-row> </el-row>
</relateStoreDialog> </relateStoreDialog>
</div> </div>
<div <div class="page-btm-btn">
class="footer-panel" <el-button type="primary" @click="onSubmit">确定</el-button>
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<div class="wrap_driver">
<el-button type="primary" @click="onSubmit" size="small">确定</el-button>
</div>
<el-button @click="$router.go(-1)" size="small">取消</el-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -134,6 +131,7 @@ export default { ...@@ -134,6 +131,7 @@ export default {
vehicleServerList:[], vehicleServerList:[],
configTitle:'', configTitle:'',
selectedTable: false, selectedTable: false,
checkPosition: false,
tableData: [], tableData: [],
merchantIds: [], merchantIds: [],
selectedList: [], selectedList: [],
...@@ -300,6 +298,7 @@ export default { ...@@ -300,6 +298,7 @@ export default {
this.costPrice = res.openCostPrice == 1 this.costPrice = res.openCostPrice == 1
this.storeSelParams = res this.storeSelParams = res
this.id = res.id this.id = res.id
this.checkPosition = res.checkPosition == 0
let arrs = [] let arrs = []
arrs = res.packageConfigs arrs = res.packageConfigs
for (var i = 0; i < arrs.length; i++) { for (var i = 0; i < arrs.length; i++) {
...@@ -424,6 +423,7 @@ export default { ...@@ -424,6 +423,7 @@ export default {
delete targetParams.createDetailRequests delete targetParams.createDetailRequests
}else{ }else{
delete targetParams.openCostPrice delete targetParams.openCostPrice
targetParams.checkPosition = this.checkPosition ? 0 : 1
} }
if (this.add == true) { if (this.add == true) {
targetParams.merchantIds = this.merchantIds targetParams.merchantIds = this.merchantIds
...@@ -534,14 +534,6 @@ export default { ...@@ -534,14 +534,6 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/ .el-dialog__footer {
padding: 15px;
border-top: 1px solid #e6e6e6;
text-align: center;
}
.container {
padding-bottom: 74px;
}
.allWrap { .allWrap {
padding-bottom: 80px; padding-bottom: 80px;
} }
......
...@@ -3,34 +3,14 @@ ...@@ -3,34 +3,14 @@
<GLButton fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</GLButton> <GLButton fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</GLButton>
<!-- <el-button fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</el-button> --> <!-- <el-button fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</el-button> -->
<div class="equity-wrap contain merchant-select"> <div class="equity-wrap contain merchant-select">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="85px" label-position="right"> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" @handleOk="selConfig" @handleRest="selConfig('reset')"></GLCombiForm>
<el-row> <div class="row-btns">
<el-form-item size="small" label="">
<el-input placeholder="请输入内容" v-model="selectInput" class="input-with-select">
<el-select v-model="select" slot="prepend" placeholder="请选择">
<el-option label="商户名称" value="1"></el-option>
<el-option label="商户号" value="2"></el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item class="open-status" size="small" label="开通状态" style="margin-left: -10px">
<el-select size="small" v-model="openFlag">
<el-option v-for="item in openFlagList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" class="fr-mr0">
<el-button size="small" @click="selConfig('reset')">重置</el-button>
<el-button size="small" type="primary" @click="selConfig">查询</el-button>
<el-button size="small" @click="exportTable">导出</el-button>
</el-form-item>
</el-row>
</el-form>
<div class="row-btns" style="margin-top: 20px">
<!-- <el-button size="small" @click="toggleAll">全选</el-button> --> <!-- <el-button size="small" @click="toggleAll">全选</el-button> -->
<!-- <el-checkbox v-model="checkbox" @change="toggleAll" style="margin-left:20px">全选</el-checkbox> --> <!-- <el-checkbox v-model="checkbox" @change="toggleAll" style="margin-left:20px">全选</el-checkbox> -->
<div style="float: right"> <div style="float: right;" class="primary_plain_btn">
<el-button size="small" @click="batchOperation(1)">批量开通</el-button> <el-button size="small" plain @click="batchOperation(1)">批量开通</el-button>
<el-button size="small" @click="batchOperation(2)">批量关闭</el-button> <el-button size="small" @click="batchOperation(2)">批量关闭</el-button>
<el-button size="small" @click="exportTable">导出</el-button>
</div> </div>
</div> </div>
<GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check"> <GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check">
...@@ -46,7 +26,7 @@ ...@@ -46,7 +26,7 @@
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
function date_format(date) { function date_format(date) {
var date2 = new Date(date) var date2 = new Date(date)
var YY = date2.getFullYear() + '-' var YY = date2.getFullYear() + '-'
...@@ -76,10 +56,57 @@ export default { ...@@ -76,10 +56,57 @@ export default {
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
flag: true, flag: true,
searchForm: { searchForm: {
merchantId: '', openFlag : ''
merchantName: ''
}, },
searchSelectObj: {
idOrName: {
attr: 'merchantName',
value: ''
}
},
searchFormData: [
{
type: 'selectInput',
selectName: 'idOrName',
isClear: true,
inputWidth: '325px',
selectWidth: '110px',
selectOption: [
{
label: '商户名称',
name: 'merchantName'
},
{
label: '商户号',
name: 'merchantId'
}
],
handleSelectChange: value => {
this.searchSelectObj.idOrName.value = ''
}
},
{
label: '开通状态',
name: 'openFlag',
type: 'select',
optionList: [
{
label: '全部',
value: ''
},
{
label: '未开通',
value: '0'
},
{
label: '已开通',
value: '1'
}
],
optionId: 'value',
optionLabel: 'label'
}
],
openFlagList: [ openFlagList: [
{ {
label: '全部', label: '全部',
...@@ -116,7 +143,7 @@ export default { ...@@ -116,7 +143,7 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '商户名称', label: '商户名称',
prop: 'merchantName' prop: 'merchantName',
}, },
{ {
label: '商户号', label: '商户号',
...@@ -134,7 +161,8 @@ export default { ...@@ -134,7 +161,8 @@ export default {
label: '开通时间', label: '开通时间',
formatter: cellValue => { formatter: cellValue => {
return this.date_format(cellValue.createdDate) return this.date_format(cellValue.createdDate)
} },
width: 170
}, },
{ {
label: '操作人', label: '操作人',
...@@ -142,12 +170,12 @@ export default { ...@@ -142,12 +170,12 @@ export default {
}, },
{ {
label: '操作', label: '操作',
minWidth: '200',
addHtml: 'operate' addHtml: 'operate'
}, },
{ {
label: '开通开关', label: '开通开关',
addHtml: 'openFlag', addHtml: 'openFlag',
width: 100,
formatter: cellValue => { formatter: cellValue => {
if (cellValue.openFlag == '1') { if (cellValue.openFlag == '1') {
return true return true
...@@ -214,26 +242,22 @@ export default { ...@@ -214,26 +242,22 @@ export default {
}) })
}, },
selConfig(e) { selConfig(e) {
if (this.select == 1) { this.searchForm = {
this.searchForm.merchantName = this.selectInput openFlag : this.searchForm.openFlag
this.searchForm.merchantId = ''
} else {
this.searchForm.merchantId = this.selectInput
this.searchForm.merchantName = ''
} }
if (e == 'reset') { if (e == 'reset') {
this.openFlag = '全部' this.searchForm = {
this.searchForm = {} openFlag: ''
this.selectInput = '' }
this.$refs.table.refreshTable() this.searchSelectObj = {
} else { idOrName: {
if (this.openFlag < 2) { attr: 'merchantName',
this.searchForm.openFlag = this.openFlag value: ''
this.$refs.table.refreshTable() }
} else {
this.$refs.table.refreshTable()
} }
} }
this.searchForm[this.searchSelectObj.idOrName.attr] = this.searchSelectObj.idOrName.value
this.$refs.table.refreshTable()
}, },
// ['开通', '关闭'] // // ['开通', '关闭'] //
batchOperation(status) { batchOperation(status) {
...@@ -352,7 +376,7 @@ export default { ...@@ -352,7 +376,7 @@ export default {
} }
/deep/ .equity-wrap { /deep/ .equity-wrap {
.el-button + .el-button { .el-button + .el-button {
margin-left: 20px; margin-left: 8px;
} }
.el-form--inline .el-form-item { .el-form--inline .el-form-item {
margin-bottom: 0; margin-bottom: 0;
...@@ -378,16 +402,6 @@ export default { ...@@ -378,16 +402,6 @@ export default {
width: 166px; width: 166px;
color: #999; color: #999;
} }
.el-form-item__content .el-button--small:first-child,
.row-btns > div .el-button--small:first-child {
border-color: #5850ff;
color: #5850ff;
}
.el-form-item__content .el-button--small:last-child,
.row-btns > div .el-button--small:last-child {
border-color: #999;
color: #666666;
}
.row-btns .el-checkbox__label { .row-btns .el-checkbox__label {
color: #333; color: #333;
padding-left: 8px; padding-left: 8px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!