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 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.3.7",
"glsx-components": "^1.5.1",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......
......@@ -163,7 +163,7 @@ const getProListApi = params => {
// 获取无忧卡套餐列表
const getPackageListApi = params => {
params.method = `scrm.api.equity.service.package.dj.list.get`
// params.method = `scrm.api.equity.service.package.list.get`
// params.method = `scrm.api.equity.service.package.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
......@@ -325,50 +325,81 @@ const spaAgressData = params => {
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
sign: true
})
}
// 店铺信息
const merchantInfo = params => {
params.method = 'scrm.api.equity.common.merchant.detail.det'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
})
}
// 卡号---获取期限
params.method = 'scrm.api.equity.common.merchant.detail.det'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 卡号---获取期限
const dateBycarNo = params => {
params.method = 'scrm.api.equity.service.cfc.get.by.seqno'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
sign: true
})
}
// 获取活码列表-
const activeCodeList = params => {
params.method = 'entmicro.api.code.getFreeChannelCode'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true,
})
}
// 更新活码
const updateActiveCode = params => {
params.method = 'scrm.api.equity.service.merchant.qrcode.update'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
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
// 获取活码列表-
const activeCodeList = params => {
params.method = 'entmicro.api.code.getFreeChannelCode'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 更新活码
const updateActiveCode = params => {
params.method = 'scrm.api.equity.service.merchant.qrcode.update'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
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 { 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 @@
background: #ffffff;
margin: 0 0 20px 0;
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 {
display: inline-block;
......@@ -359,3 +359,121 @@
// .equity-wrap table td {
// 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
/**
* 时间控件-限制月份
*/
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
}
}
<!-- 搜索 -->
<template>
<div class="glsx-combi-formwrap">
<div class="glsx-combi-form">
<GLSearch @onOk="handleOkFn" @onRest="handleRestFn">
<el-form :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :style="{ ...item.style }" :prop="item.name">
<GLSearchItem>
<div slot="name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'">
<span class="tips-icon"></span>
</el-tooltip>
{{ item.label }}:
</span>
<span v-else-if="!item.isHide && item.label" slot="label">
<span class="combi-form-label" :style="{ width: '112px', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label }}:</span>
</span>
<!-- // select 组件 作为label -->
<div v-if="item.type === 'selectInput'" id="selectlabel">
<el-select v-model="searchSelectObj[item.selectName].attr" placeholder="请选择" @change="item.handleSelectChange">
<el-option v-for="(subItem, subIndex) in item.selectOption" :key="subIndex" :label="subItem.label" :value="subItem.name"></el-option>
</el-select>
</div>
</div>
<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'">
<el-input :placeholder="item.placeholder || '请输入' + item.label" :prefix-icon="item.prefixIcon" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :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.append" slot="append">{{ item.append }}</span>
</el-input>
<slot :name="item.suffixSlot" :scope="item"></slot>
</div>
<!-- 选择-输入框 -->
<el-input class="select-inp" v-else-if="item.type === 'selectInput'" :placeholder="'请输入' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label" :maxlength="item.maxlength" v-model.trim="searchSelectObj[item.selectName].value" :clearable="item.isClear || false">
<!-- <el-select v-model="searchSelectObj[item.selectName].attr" :style="{ width: item.selectWidth || (labelWidth + 'px') }" slot="prepend" placeholder="请选择" @change="item.handleSelectChange">
<el-option v-for="(subItem, subIndex) in item.selectOption" :key="subIndex" :label="subItem.label" :value="subItem.name"></el-option>
</el-select> -->
</el-input>
<!-- 选择-时间选择框 -->
<!-- <template v-else-if="item.type === 'selectDatePicker'">
<el-select v-model="searchSelectObj[item.selectName].attr" :style="{ width: item.selectWidth || (labelWidth + 'px') }" placeholder="请选择" @change="item.handleSelectChange">
<el-option v-for="(subItem, subIndex) in item.selectOption" :key="subIndex" :label="subItem.label" :value="subItem.name"></el-option>
</el-select>
<el-date-picker v-model="searchSelectObj[item.selectName].value" :type="item.dateType || 'daterange'" :clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOption[item.pickerOptions]"></el-date-picker>
</template> -->
<!-- 双选择框 -->
<!-- <template v-else-if="item.type === 'selectDouble'">
<el-select v-model="searchSelectObj[item.selectName].attr" :style="{ width: item.selectWidth || (labelWidth + 'px') }" placeholder="请选择" @change="item.handleSelectChange">
<el-option v-for="(subItem, subIndex) in item.selectOption" :key="subIndex" :label="subItem.label" :value="subItem.name"></el-option>
</el-select>
<el-select v-model="searchSelectObj[item.selectName].value" :placeholder="'请选择' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label">
<el-option label="全部" value=""></el-option>
<el-option v-for="subItem in item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).optionList" :key="subItem[item.optionId]" :label="subItem[item.optionLabel]" :value="subItem[item.optionId]"></el-option>
</el-select>
</template> -->
<!-- 选择框 -->
<div v-else-if="item.type === 'select'">
<el-select v-model="formObj[item.name]" :clearable="item.isClear || false" :placeholder="item.placeholder || '请选择' + item.label" :filterable="!item.noFilter" :disabled="item.isDisabled" :no-data-text="item.noDataText || '无数据'" :multiple="item.multiple || false" :collapse-tags="item.collapseTags || true" @change="selectAddAttr($event, item)">
<el-option v-for="subItem in item.optionList" :key="subItem[item.optionId]" :label="subItem[item.optionLabel]" :value="subItem[item.optionId]" :disabled="subItem.isDisabled || false"></el-option>
</el-select>
<slot :name="item.suffixSlot" :scope="item"></slot>
</div>
<!-- radio -->
<el-radio-group v-else-if="item.type === 'radio'" v-model="formObj[item.name]" :disabled="item.isDisabled" @change="item.handleRadioChange">
<el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :disabled="subItem.isDisabled" :label="subItem[item.optionId]">{{ subItem[item.optionLabel] }}</el-radio>
</el-radio-group>
<el-date-picker v-else-if="item.type === 'datePicker'" v-bind="item.datePickerAttrs ? item.datePickerAttrs : {}" v-on="item.datePickerListeners ? item.datePickerListeners : {}" v-model="formObj[item.name]" :type="item.dateType || 'daterange'" :disabled="item.isDisabled" :value-format="item.valueFormat" :clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="item.customPickerOptions || pickerOption[item.pickerOptions]"></el-date-picker>
</GLSearchItem>
</el-form-item>
</template>
<slot name="footer"></slot>
</el-form>
</GLSearch>
</div>
</div>
</template>
<script>
import GLSearch from '../../GlSearch'
import GLSearchItem from '../../GlSearchItem'
import { beforeRangePickerOptions, afterRangePickerOptions } from './common'
export default {
name: 'GLCombiForm',
data() {
return {
pickerOption: {
beforeRangePickerOptions: beforeRangePickerOptions,
afterRangePickerOptions: afterRangePickerOptions
},
isImgVisible: false,
dialogObj: {
url: '',
uploadType: 'img'
}
}
},
props: {
isBlock: {
type: Boolean,
default: false
},
// defaultWidth: {
// type: String,
// default: '215px'
// },
formRef: {
type: String,
default: 'formRef'
},
isEdit: {
type: Boolean,
default: false
},
// labelWidth: {
// type: Number,
// // 默认是四个字符长度
// default: 56
// },
labelPaddingRight: {
type: Number,
default: 0
},
formData: {
type: Array,
default: () => []
},
formObj: {
type: Object,
default: () => {}
},
hasTitle: {
type: Boolean,
default: true
},
formRules: {
type: Object,
default: () => {}
},
// 搜索+输入框/搜索组合组件,搜索栏绑值
searchSelectObj: {
type: Object,
default: () => {}
}
},
mounted() {},
components: {
GLSearch,
GLSearchItem
},
methods: {
//gl-search 方法
handleOkFn() {
this.$emit('handleOk')
},
handleRestFn() {
this.$emit('handleRest')
},
// 选择框-添加其他属性
selectAddAttr(value, targetItem) {
targetItem.changeAttr && targetItem.changeAttr(value, targetItem)
},
handleInputDown(e, item) {
if (e.keyCode === 13 && item.hasOwnProperty('keyFn')) {
item.keyFn()
}
},
handleInputBlur(e, item) {
item.inputBlur && item.inputBlur(e, item)
}
}
}
</script>
<style lang="scss">
.glsx-combi-formwrap {
/* .glsx-combi-form {
min-width: 922px;
} */
.glsx-combi-form .glsx-combi-form-block {
width: 100%;
}
.glsx-combi-form .isBlock {
display: block !important;
}
/* .glsx-combi-form .el-form-item {
width: 65%;
} */
@media screen and (max-width: 1062px) {
.glsx-combi-form .el-form-item--small {
width: 100%;
}
.glsx-combi-form .el-form-item--small .el-form-item__content {
width: 100%;
}
.search-list {
width: 100%;
}
}
@media screen and (min-width: 1062px) and (max-width: 1440px) {
.glsx-combi-form .el-form-item--small {
width: 50%;
}
.glsx-combi-form .el-form-item--small .el-form-item__content {
width: 100%;
}
.search-list {
width: 100%;
}
}
@media screen and (min-width: 1440px) and (max-width: 1720px) {
.glsx-combi-form .el-form-item--small {
width: 33.33%;
}
.glsx-combi-form .el-form-item--small .el-form-item__content {
width: 100%;
}
.search-list {
width: 100%;
}
}
@media screen and (min-width: 1720px) {
.glsx-combi-form .el-form-item--small {
width: 25%;
}
.glsx-combi-form .el-form-item--small .el-form-item__content {
width: 100%;
}
.search-list {
width: 100%;
}
}
// .glsx-combi-form .el-form-item--small {
// width: 100%;
// }
// .glsx-combi-form .el-form-item--small .el-form-item__content {
// width: 100%;
// }
// .glsx-combi-form .el-form-item--small .el-form-item__content .search-item {
// width: 100%;
// }
// .glsx-combi-form .el-form-item--small .el-form-item__content .search-item .el-input {
// width: 100%;
// }
.glsx-combi-form .el-form-item--small.el-form-item {
margin: 0;
}
.glsx-combi-form .el-form-item--small .el-form-item__label {
padding: 0;
}
/* .glsx-combi-form .el-form-item--small .el-form-item__content {
width: calc(100% - 85px);
} */
.glsx-combi-form .el-col {
margin-bottom: 10px;
}
.glsx-combi-form .el-select {
width: 100%;
}
.glsx-combi-form .item-height {
height: 37px;
}
.glsx-combi-form input::-webkit-outer-spin-button,
.glsx-combi-form input::-webkit-inner-spin-button {
-webkit-appearance: none !important;
}
.glsx-combi-form input[type='number'] {
-moz-appearance: textfield !important;
}
.glsx-combi-form .input-with-select .el-input-group__prepend {
background-color: #fff;
}
/* 提示图标 */
.glsx-combi-form .tips-block {
position: relative;
}
.glsx-combi-form .tips-label {
margin-right: 20px;
}
.glsx-combi-form .tips-icon {
position: absolute;
display: inline-block;
width: 12px;
height: 12px;
top: 3px;
right: 14px;
margin-right: 4px;
cursor: pointer;
border: 1px dotted #7f7f7f;
border-radius: 50%;
}
.glsx-combi-form .tips-icon::before {
content: '?';
position: absolute;
width: 8px;
height: 8px;
top: -8px;
left: 1px;
font-size: 10px;
}
/* .glsx-combi-form .tips {
margin: 0;
} */
.glsx-combi-form .combi-form-label {
display: inline-block;
box-sizing: border-box;
}
/* 图片上传 */
.glsx-combi-form .photo-top-tips {
/* height: 36px; */
margin: 0 0;
color: #999999;
}
.glsx-combi-form .img-w-h {
width: 80px;
height: 80px;
}
.glsx-combi-form .activity-img {
position: relative;
color: #999999;
background-color: #f7f7f7;
border: 1px dotted #d9d9d9;
cursor: pointer;
}
.glsx-combi-form .activity-Input {
position: absolute;
top: 0;
left: 0;
}
.glsx-combi-form .muti-imgs {
display: inline-block;
position: relative;
}
.activity-img .add {
position: absolute;
top: 40%;
font-size: 40px;
left: 50%;
transform: translate3d(-50%, -50%, 0);
}
.activity-img .number {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
#selectlabel {
.el-select {
width: 100% !important;
.el-input__inner {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
}
}
.select-inp {
.el-input__inner {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
}
.muti-imgs .img-btns {
display: none;
height: 100%;
position: absolute;
width: 80px;
height: 80px;
left: 0;
top: 0;
z-index: 2;
color: #fff;
background: rgba(0, 0, 0, 0.5);
}
.glsx-combi-form .el-icon-delete,
.glsx-combi-form .el-icon-zoom-in {
cursor: pointer;
}
.muti-imgs .img-btns .btn-item {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.muti-imgs .img-btns .btn-item {
display: flex;
width: 70%;
justify-content: space-around;
}
.muti-imgs:hover .img-btns {
display: block;
}
.glsx-combi-form .dialog-img {
width: 100%;
height: 100%;
}
.glsx-combi-form .dialog-look {
text-align: center;
}
.glsx-combi-form .dialog-video {
width: 50%;
height: 50%;
}
/* 图片上传 */
.glsx-combi-form .el-tag.el-tag--info .el-tag__close {
color: #e8e8ea;
background-color: #5850ff !important;
}
.glsx-combi-form .el-tag.el-tag--info {
border-color: #5850ff;
}
.glsx-combi-form .el-tag--plain.el-tag--info .el-tag__close:hover {
background-color: #e8e8ea;
}
.glsx-combi-form .el-tag.el-tag--info .el-tag__close:hover {
background-color: #e8e8ea;
}
}
</style>
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
<!-- <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
<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 @@
</span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<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.append" slot="append">{{ item.append }}</span>
</el-input>
......@@ -456,4 +456,7 @@ export default {
.glsx-combi-form .el-tag.el-tag--info .el-tag__close:hover {
background-color: #e8e8ea;
}
.el-textarea__inner {
font-family: auto !important;
}
</style>
<!-- 弹窗 -->
<template>
<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">
{{ title }}
<span class="dialog-sub-title">
......@@ -15,7 +15,7 @@
<el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button>
<slot name="btn-middle"></slot>
</div>
</el-dialog>
</GLDialog>
</div>
</template>
......@@ -53,6 +53,14 @@ export default {
btnSize: {
type: String,
default: 'small'
},
mode:{
type: String,
default: 'mid'
},
bigTitle:{
type: String,
default: ''
}
},
......
<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>
<el-row>
<el-col :span="12">
......
......@@ -48,6 +48,12 @@ const staticRoutes = Object.freeze([
meta: {}
},
{
name: 'equitySummary',
path: '/beforeSale/equitySummary',
component: resolve => require([`@/views/beforeSale/equitySummary.vue`], resolve),
meta: {}
},
{
name: 'equityList',
path: '/beforeSale/equityList',
component: resolve => require([`@/views/beforeSale/equityList.vue`], resolve),
......
import Vue from 'vue'
import { message, messageBox } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建)
// import GLCombiForm from '@/components/GlCombiForm'
// import GlSearch from '@/components/GlSearch'
// import GlSearchItem from '@/components/GlSearchItem'
import { GLButton, GLTable , GLCombiForm, GLTableButton,GLDialog} from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router'
import render from './render'
import 'glsx-components/dist/glsx-components.css'
......@@ -12,12 +9,7 @@ import 'glsx-components/dist/glsx-components.css'
let routes = []
let router = null
let instance = null
Vue.use(GLTable)
// Vue.use(Table)
// Vue.use(TableColumn)
// Vue.use(GLCombiForm)
// Vue.use(GlSearch)
// Vue.use(GlSearchItem)
Vue.use(GLTable).use(GLCombiForm).use(GLTableButton).use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig()
// request.baseURL = 'https://scrm.test.glsx.com.cn'
......
<template>
<div class="equity-wrap" style="margin-top: 20px">
<div class="equity-wrap">
<div class="equity-wrap contain">
<el-button type="primary" @click="add" size="small" class="addButtom">生成</el-button>
<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">
<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>
</GLTable>
<!-- 生成弹窗 -->
<el-dialog title="生成无忧卡" v-if="addDialog" :visible.sync="addDialog" width="712px" :before-close="handleClose" class="detailDialog">
<el-form :inline="true" :model="addDialogForm" :rules="addDialogRules" ref="detailForm" label-width="120px" class="detailForm">
<div class="form">
<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>
<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">
<glsx-combi-form ref="productCard" labelWidth="154px" defaultWidth="284px" formRef="detailForm" :formObj="addDialogForm" :formData="addDialogFormData" :formRules="addDialogRules"></glsx-combi-form>
</GLDialog>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
import glsxCombiForm from '@/components/glsx-combi-form'
function date_format(date) {
var date2 = new Date(date)
var YY = date2.getFullYear() + '-'
......@@ -105,55 +64,128 @@ const validatorQuantity = (rule, value, callback) => {
}
export default {
name: '',
components:{
glsxCombiForm
},
data() {
return {
date_format,
getWorryBatcnList: this.$apis.addWorryFree.getWorryBatcnList,
addDialogForm: {},
addDialog: false,
addPageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
dialogEditOptions: [
buttonList: [
{
value: '1',
label: '尊享版'
},
{
value: '2',
label: '畅享版'
type: 'el-button',
name: row => {
return '批量下载'
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.download(row.scope)
}
}
],
dialogTypeOptions: [
getWorryBatcnList: this.$apis.addWorryFree.getWorryBatcnList,
addDialogForm: {
batchType: '',
packageCode:'',
quantity: '',
actualPrice:'',
servicePeriod: '',
remark: ''
},
addDialogFormData: [
{
value: 'PC0005',
label: '盗抢全损无忧'
label: '版本',
name: 'batchType',
type: 'select',
optionList: [
{
value: '1',
label: '尊享版'
},
{
value: '2',
label: '畅享版'
}
],
optionId: 'value',
optionLabel: 'label'
},
{
value: 'PC0006',
label: '轮胎无忧'
label: '适用类型',
name: 'packageCode',
type: 'select',
optionList: [
{
value: 'PC0005',
label: '盗抢全损无忧'
},
{
value: 'PC0006',
label: '轮胎无忧'
},
{
value: 'PC0007',
label: '整车全损无忧'
},
{
value: 'PC0008',
label: '碰撞无忧'
}
],
optionId: 'value',
optionLabel: 'label',
changeAttr:(e)=>{
this.changePgCode(e)
}
},
{
value: 'PC0007',
label: '整车全损无忧'
type: 'input',
label: '数量',
placeholder:'请输入1-5000的数字',
name: 'quantity',
isClear: true
},
{
value: 'PC0008',
label: '碰撞无忧'
}
],
dialogYearOptions: [
{
value: '1',
label: '1年'
type: 'input',
label: '具体价格/万',
name: 'actualPrice',
isClear: true
},
{
value: '2',
label: '2年'
label: '使用年限',
name: 'servicePeriod',
type: 'select',
isClear: true,
optionList: [
{
value: '1',
label: '1年'
},
{
value: '2',
label: '2年'
},
{
value: '3',
label: '3年'
}
],
optionId: 'value',
optionLabel: 'label'
},
{
value: '3',
label: '3年'
type: 'input',
label: '备注',
inputType:'textarea',
name: 'remark',
isClear: true,
placeholder:'请输入活动详情或规则',
maxlength: 200
}
],
addDialog: false,
addPageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
addDialogRules: {
batchType: [{ required: true, message: '请选择版本', trigger: 'change' }],
packageCode: [{ required: true, message: '请选择适应类型', trigger: 'change' }],
......@@ -165,7 +197,9 @@ export default {
addParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: true,
tableOption: {
width: 100
},
tableColumns: [
{
label: '批次号',
......@@ -195,7 +229,7 @@ export default {
mounted() {},
methods: {
changePgCode(e){
let arr = [ {
const arr = [{
value: '1',
label: '1年'
},
......@@ -207,8 +241,7 @@ export default {
value: '3',
label: '3年'
}]
if(e=='PC0005' || e=='PC0007'){
this.dialogYearOptions = [ ...arr, {
const moreArr = [{
value: '4',
label: '4年'
},
......@@ -216,9 +249,9 @@ export default {
value: '5',
label: '5年'
}]
}else{
this.dialogYearOptions = [...arr]
}
const target = this.addDialogFormData.find(item => item.name=='servicePeriod')
target.optionList = (e=='PC0005' || e=='PC0007') ? [ ...arr, ...moreArr] : [...arr]
this.addDialogForm.servicePeriod = ''
},
//批量下载
download(e) {
......@@ -239,12 +272,18 @@ export default {
},
// 关闭弹窗界面
cancelDetailDialog() {
console.log('1')
this.addDialog = false
this.addDialogForm = {}
this.addDialogForm = {
batchType: '',
packageCode:'',
quantity: '',
actualPrice:'',
servicePeriod: '',
remark: ''
}
},
submitForm(formName) {
this.$refs[formName].validate(valid => {
this.$refs.productCard.$refs[formName].validate(valid => {
if (valid) {
this.$apis.addWorryFree.addCards(this.addDialogForm).then(res => {
if (res.code == '0') {
......@@ -252,8 +291,7 @@ export default {
message: '操作成功',
type: 'success'
})
this.addDialog = false
this.addDialogForm = {}
this.cancelDetailDialog()
this.$refs.detailTable.refreshTable()
} else {
this.$message({
......@@ -281,36 +319,6 @@ export default {
padding: 8px 16px;
// 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 {
margin-top: 5px;
margin-bottom: 10px;
......@@ -322,4 +330,4 @@ export default {
/deep/ .el-pagination {
margin-top: 20px;
}
</style>
\ No newline at end of file
</style>
......@@ -2,54 +2,26 @@
<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>
<div class="equity-wrap contain" style="margin-top: 10px">
<el-form :inline="true" label-width="auto" label-position="right" class="selectForm">
<el-row style="align-items: center">
<el-form-item label="特约名称">
<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">
<GLCombiForm :rowNumber="1" ref="showSearch" :formObj="appointmentForm" :formData="searchFormData" @handleOk="seletTable('select')" @handleRest="seletTable('reset')"></GLCombiForm>
<el-button plain style="float:right;margin-bottom:10px;" size="small" @click="exportTable" class="selectBtn">导出</el-button>
<GLTable ref="appointmentTable" :searchForm="appointmentForm" :tableParams="tableParams" :pageConf="tablePageConf" :getListApi="getAppointmentList">
<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="del(scope.scope)">删除</el-button>
<!-- <el-button type="text" @click="showDialog(scope.scope)">修改</el-button>
<el-button type="text" @click="del(scope.scope)">删除</el-button> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</span>
</GLTable>
<!-- 修改界面弹窗 -->
<el-dialog :title="dialogTitle" v-if="modifyDialog" :visible.sync="modifyDialog" width="712px" :before-close="handleClose" class="detailDialog">
<el-form :inline="true" :model="modifyDialogForm" :rules="modifyDialogRules" ref="modifyForm" label-width="120px" class="detailForm">
<div class="form">
<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>
<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">
<glsx-combi-form ref="spaRef" labelWidth="154px" defaultWidth="284px" formRef="modifyForm" :formObj="modifyDialogForm" :formData="modifyDialogData" :formRules="modifyDialogRules"></glsx-combi-form>
</GLDialog>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
import glsxCombiForm from '@/components/glsx-combi-form'
function date_format(date) {
var date2 = new Date(date)
var YY = date2.getFullYear() + '-'
......@@ -63,9 +35,66 @@ function date_format(date) {
import utils from '../../util/util'
export default {
name: '',
components:{
glsxCombiForm
},
data() {
return {
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,
getAppointmentList: this.$apis.appointmentApi.getAppointmentList,
dialogTitle: '',
......@@ -83,27 +112,33 @@ export default {
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: true,
tableOption: {
width: 120
},
tableColumns: [
{
label: '特约名称',
prop: 'spaName'
prop: 'spaName',
width: 400,
line:1
},
{
label: '特约内容',
prop: 'spaContent',
line:2,
width:160
width: 400,
line:1
},
{
label: '操作人',
prop: 'updatedBy'
prop: 'updatedBy',
minWidth: 100,
},
{
label: '创建时间',
prop: 'createdDate',
width:220,
formatter: cellValue => {
return this.date_format(cellValue.createdDate)
}
......@@ -112,6 +147,7 @@ export default {
{
label: '更新时间',
prop: 'updatedDate',
width:220,
formatter: cellValue => {
return this.date_format(cellValue.updatedDate)
}
......@@ -135,7 +171,7 @@ export default {
this.modifyDialogForm = {}
},
submitForm(formName) {
this.$refs[formName].validate(valid => {
this.$refs.spaRef.$refs[formName].validate(valid => {
if (valid) {
this.$apis.appointmentApi.modifyAppointment(this.modifyDialogForm).then(res => {
if (res.code == '0') {
......@@ -145,7 +181,7 @@ export default {
})
this.modifyDialog = false
this.modifyDialogForm = {}
this.$refs.modifyForm.clearValidate()
this.$refs.spaRef.$refs.modifyForm.clearValidate()
this.$refs.appointmentTable.refreshTable()
} else {
this.$message({
......@@ -252,59 +288,4 @@ export default {
}
</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
<style lang="scss" scoped></style>
......@@ -188,25 +188,10 @@
</div>
<!-- 底部固定按钮 -->
<div style="height: 78px"></div>
<div
class="fixed_bottom"
:style="{
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 class="page-btm-btn">
<el-button v-if="![3, 5].includes(routeInfo.addOrEdit)" class="custom_black" @click="handleReset">重置</el-button>
<el-button class="custom_blue" v-if="![3, 5].includes(routeInfo.addOrEdit)" @click="handleDraft">草稿</el-button>
<el-button v-if="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
</div>
<!-- 二维码 -->
......@@ -1796,9 +1781,6 @@ export default {
}
</script>
<style lang="scss" scoped>
.edit-equity {
margin-top: 17px;
}
.before-sale .container {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
......@@ -2061,40 +2043,6 @@ export default {
.m-r-10 {
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 {
background: #f4f5fa;
padding: 0px 20px 20px 40px;
......
......@@ -8,28 +8,15 @@
</div>
<div class="container">
<div class="find_wrap">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData3">
<span slot="footer" class="footer-btns">
<el-button :size="size" class="resetBtn" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" @click="handleExport">导出</el-button>
</span>
</glsx-combi-form>
<GLCombiForm :key="newKey" ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
</div>
<!-- 表格区域 开始 -->
<div class="table_wrapper">
<el-button plain style="float:right;margin-bottom:10px;" :size="size" @click="handleExport">导出</el-button>
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<GLButton v-if="[2, 4, 5].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton>
<!-- <el-button v-if="[2, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(5, scope.scope)">查看</el-button> -->
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button>
<GLButton v-if="[0].includes(scope.scope.orderStatus)" fn="编辑" type="text" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<GLButton v-if="[2].includes(scope.scope.orderStatus)" fn="修改" type="text" @click="handleEdit(3, scope.scope)">修改</GLButton>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button>
<GLButton v-if="[3, 4, 5].includes(scope.scope.orderStatus)" fn="重新提单" type="text" @click="handleEdit(4, scope.scope)">重新提单</GLButton>
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</div>
</GLTable>
</div>
......@@ -63,7 +50,7 @@
<script>
import * as dayjs from 'dayjs'
import glsxCombiForm from '@/components/glsx-combi-form'
// import glsxCombiForm from '@/components/glsx-combi-form'
import glsxDialog from '@/components/glsx-dialog'
import pdfDialog from './pdfDialog'
import utils from '../../util/util'
......@@ -72,6 +59,103 @@ export default {
data() {
return {
size: 'small',
newKey: new Date(),
buttonList: [
{
type: 'GLButton',
name: row => {
return '查看'
},
condition: row => {
return [2, 4, 5].includes(row.scope.orderStatus)
},
attrs: {
type: 'text',
fn: '查看'
},
listeners: {
click: row => this.handleEdit(5, row.scope)
}
},
{
type: 'el-button',
name: row => {
return '打印'
},
condition: row => {
return [2].includes(row.scope.orderStatus)
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.handlePdf(row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '编辑'
},
condition: row => {
return [0].includes(row.scope.orderStatus)
},
attrs: {
type: 'text',
fn: '编辑'
},
listeners: {
click: row => this.handleEdit(2, row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '修改'
},
condition: row => {
return [2].includes(row.scope.orderStatus)
},
attrs: {
type: 'text',
fn: '修改'
},
listeners: {
click: row => this.handleEdit(3, row.scope)
}
},
{
type: 'el-button',
name: row => {
return '退单'
},
condition: row => {
return [2].includes(row.scope.orderStatus)
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.handleBack(row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '重新提单'
},
condition: row => {
return [3, 4, 5].includes(row.scope.orderStatus)
},
attrs: {
type: 'text',
fn: '重新提单'
},
listeners: {
click: row => this.handleEdit(4, row.scope)
}
}
],
noCancel: true,
isBlock: true,
isTipVisible: false,
......@@ -163,9 +247,7 @@ export default {
optionId: 'packageCode',
optionLabel: 'packageName',
optionsName: 'goodsStatusList'
}
],
searchFormData2: [
},
{
label: '提单成功时间',
name: 'successDate',
......@@ -179,9 +261,7 @@ export default {
name: 'effectiveDate',
type: 'datePicker',
isClear: true
}
],
searchFormData3: [
},
{
label: '总部',
name: 'merchantId',
......@@ -192,16 +272,16 @@ export default {
optionsName: 'merchantList',
isHide: true,
changeAttr: (val, targetItem) => {
var idx = this.searchFormData3.findIndex(item => item.name == this.levelToShow['2'])
this.searchFormData3[idx].isHide = false
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['2'])
this.searchFormData[idx].isHide = false
this.searchForm[this.levelToShow['2']] = ''
var tempIdx = ''
for (var i = 3; i <= 4; i++) {
tempIdx = this.searchFormData3.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData3[tempIdx].isHide = true
tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow[i + '']] = ''
}
this.getMerchantList(val, 2, this.searchFormData3[idx].name, this.searchFormData3[idx].optionsName)
this.getMerchantList(val, 2, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}
},
{
......@@ -214,13 +294,13 @@ export default {
optionsName: 'dqList',
isHide: true,
changeAttr: (val, targetItem) => {
var idx = this.searchFormData3.findIndex(item => item.name == this.levelToShow['3'])
this.searchFormData3[idx].isHide = false
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['3'])
this.searchFormData[idx].isHide = false
this.searchForm[this.levelToShow['3']] = ''
var tempIdx = this.searchFormData3.findIndex(item => item.name == this.levelToShow['4'])
this.searchFormData3[tempIdx].isHide = true
var tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow['4'])
this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow['4']] = ''
this.getMerchantList(val, 3, this.searchFormData3[idx].name, this.searchFormData3[idx].optionsName)
this.getMerchantList(val, 3, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}
},
{
......@@ -233,10 +313,10 @@ export default {
optionsName: 'pqList',
isHide: true,
changeAttr: (val, targetItem) => {
var idx = this.searchFormData3.findIndex(item => item.name == this.levelToShow['4'])
this.searchFormData3[idx].isHide = false
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['4'])
this.searchFormData[idx].isHide = false
this.searchForm[this.levelToShow['4']] = ''
this.getMerchantList(val, 4, this.searchFormData3[idx].name, this.searchFormData3[idx].optionsName)
this.getMerchantList(val, 4, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}
},
{
......@@ -250,6 +330,22 @@ export default {
isHide: true
}
],
searchFormData2: [
{
label: '提单成功时间',
name: 'successDate',
type: 'datePicker',
labelWidth: 95,
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '生效时间',
name: 'effectiveDate',
type: 'datePicker',
isClear: true
}
],
// 表格
getListApi: this.$apis.beforeSale.getListApi,
tableParams: {
......@@ -260,26 +356,23 @@ export default {
label: '车主姓名',
prop: 'customerName',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.customerName || '-'
}
width: '200px'
},
{
label: '合同号',
prop: 'contractNo',
width: '200px',
width: 250,
formatter: cellValue => {
return [2, 4, 5].includes(cellValue.orderStatus) ? cellValue.contractNo || '-' : '-'
return [2, 4, 5].includes(cellValue.orderStatus) ? cellValue.contractNo || '--' : '--'
}
},
{
label: '提单成功时间',
line: 1,
prop: 'successDate',
width: '160px',
width: 200,
formatter: cellValue => {
return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '-'
return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '--'
}
},
{
......@@ -288,76 +381,56 @@ export default {
prop: 'billingDate',
width: '130px',
formatter: cellValue => {
return cellValue.billingDate ? dayjs(cellValue.billingDate).format('YYYY-MM-DD') : '-'
return cellValue.billingDate ? dayjs(cellValue.billingDate).format('YYYY-MM-DD') : '--'
}
},
{
label: '店面名称',
line: 1,
prop: 'merchantName',
width: '160px',
formatter: cellValue => {
return cellValue.merchantName || '-'
}
width: '160px'
},
{
label: '车品牌',
line: 1,
prop: 'vehicleBrandName',
width: '160px',
formatter: cellValue => {
return cellValue.vehicleBrandName || '-'
}
width: '160px'
},
{
label: '车系',
line: 1,
width: '160px',
prop: 'vehicleSeriesName',
formatter: cellValue => {
return cellValue.vehicleSeriesName || '-'
}
prop: 'vehicleSeriesName'
},
{
label: '无忧卡卡号',
line: 1,
prop: 'cardSeqNo',
width: '200px',
formatter: cellValue => {
return cellValue.cardSeqNo || '-'
}
width: '200px'
},
{
label: '车架号',
prop: 'vin',
width: '200px',
formatter: cellValue => {
return cellValue.vin || '-'
}
width: '200px'
},
{
label: '电话',
prop: 'customerPhone',
width: '160px',
formatter: cellValue => {
return cellValue.customerPhone || '-'
}
width: '160px'
},
{
label: '产品名称',
prop: 'packageName',
width: '200px',
formatter: cellValue => {
return cellValue.packageName || '-'
}
width: '200px'
},
{
label: '无忧保障服务费',
line: 1,
align: 'right',
prop: 'actualSalesPrice',
width: '160px',
formatter: cellValue => {
return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-'
return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '0'
}
},
// {
......@@ -381,9 +454,10 @@ export default {
{
label: '服务期限',
line: 1,
width: 130,
prop: 'servicePeriod',
formatter: cellValue => {
return cellValue.servicePeriod ? `${cellValue.servicePeriod}年` : '-'
return cellValue.servicePeriod ? `${cellValue.servicePeriod}年` : '--'
}
},
{
......@@ -392,7 +466,7 @@ export default {
prop: 'effectiveDate',
width: '130px',
formatter: cellValue => {
return cellValue.effectiveDate ? dayjs(cellValue.effectiveDate).format('YYYY-MM-DD') : '-'
return cellValue.effectiveDate ? dayjs(cellValue.effectiveDate).format('YYYY-MM-DD') : '--'
}
},
{
......@@ -400,7 +474,7 @@ export default {
prop: 'orderStatus',
width: '170px',
formatter: cellValue => {
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '-'
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '--'
}
},
// {
......@@ -480,28 +554,19 @@ export default {
// },
{
label: '省代',
line: 1,
prop: 'provinceMerchantName',
formatter: cellValue => {
return cellValue.provinceMerchantName || '-'
}
width: 150,
prop: 'provinceMerchantName'
},
{
label: '市代',
line: 1,
prop: 'cityMerchantName',
formatter: cellValue => {
return cellValue.cityMerchantName || '-'
}
width: 150,
prop: 'cityMerchantName'
},
{
label: '操作人',
line: 1,
prop: 'updatedBy',
width: '140px',
formatter: cellValue => {
return cellValue.updatedBy || '-'
}
width: '140px'
},
{
label: '操作',
......@@ -591,7 +656,7 @@ export default {
},
components: {
glsxCombiForm,
// glsxCombiForm,
// glsxDialog,
pdfDialog
},
......@@ -618,10 +683,10 @@ export default {
console.log(res)
this.userInfo = res
if (res.merchantAccountLevel != 4) {
var idx = this.searchFormData3.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
this.searchFormData3[idx].isHide = false
this.searchFormData3[idx].labelWidth = 95
this.getMerchantList('', '', this.searchFormData3[idx].name, this.searchFormData3[idx].optionsName)
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
this.searchFormData[idx].isHide = false
this.searchFormData[idx].labelWidth = 95
this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}
})
},
......@@ -639,7 +704,7 @@ export default {
}
this.$apis.beforeSale.getMerchantApi(params).then(res => {
this.baseData[listName] = res
this.getOptionsList('searchFormData3', false, attrName)
this.getOptionsList('searchFormData', false, attrName)
})
},
getSelectInputParams() {
......@@ -709,6 +774,7 @@ export default {
}
})
}
this.newKey = new Date()
},
secondConfirm(title, txt, apiModule, apiName, apiParams) {
......@@ -763,7 +829,7 @@ export default {
if (addOrEdit == 3 && !this.userInfo.admin && new Date(new Date().setDate(new Date().getDate() - 7)) > new Date(row.successDate)) {
const h = this.$createElement
this.$message({
message: h('p', null, [h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '为保障客户权益,请邮件主送:operation@didihu.com.cn,抄送:liuqm@didihu.com.cn,jiangfj@didihu.com.cn提交退单申请 ')]),
message: h('p', null, [h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '为保障客户权益,请邮件主送:service@didihu.com.cn,提交修改申请 ,邮件标题:门店名称+合同号+修改内容,并备注门店接待姓名+电话')]),
type: 'error'
})
return true
......@@ -886,7 +952,7 @@ export default {
if (!this.userInfo.admin && new Date(new Date().setDate(new Date().getDate() - 7)) > new Date(row.successDate)) {
const h = this.$createElement
this.$message({
message: h('p', null, [h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '为保障客户权益,请邮件主送:operation@didihu.com.cn,抄送:liuqm@didihu.com.cn,jiangfj@didihu.com.cn提交退单申请 ')]),
message: h('p', null, [h('p', { style: 'text-align: center; line-height: 20px; color: #F56C6C;' }, '为保障客户权益,请邮件主送:service@didihu.com.cn,提交退单申请 ,邮件标题:门店名称+合同号+退单原因,并备注门店接待姓名+电话')]),
type: 'error'
})
return true
......@@ -938,8 +1004,8 @@ export default {
var addNum = this.userInfo.admin ? 1 : 2
if (this.userInfo.merchantAccountLevel != 4) {
for (var i = this.userInfo.merchantAccountLevel + addNum; i <= 4; i++) {
tempIdx = this.searchFormData3.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData3[tempIdx].isHide = true
tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow[i + '']] = ''
}
}
......@@ -961,15 +1027,12 @@ export default {
overflow-y: auto;
height: 100%;
}
.before-sale {
margin-top: 17px;
}
.before-sale .flex {
display: flex;
}
.find_wrap {
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);
padding: 20px 20px 2px 20px;
.resetBtn {
background: #ffffff;
......@@ -983,7 +1046,7 @@ export default {
.table_wrapper {
// margin-top: 10px;
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);
padding: 0 20px 20px;
}
......@@ -1028,14 +1091,14 @@ export default {
/* margin-bottom: 18px; */
}
.before-sale .el-table .cell {
line-height: 16px;
}
.before-sale .table-btns {
display: grid;
grid-template-columns: repeat(auto-fill, 33.33%);
grid-row-gap: 10px;
}
// .before-sale .el-table .cell {
// line-height: 16px;
// }
// .before-sale .table-btns {
// display: grid;
// grid-template-columns: repeat(auto-fill, 33.33%);
// grid-row-gap: 10px;
// }
.before-sale .table-btns .el-button {
// padding: 0 0 0 5px;
border-radius: 0;
......
<!-- 权益订单列表 -->
<template>
<div class="before-sale">
<div class="container">
<div class="find_wrap">
<GLCombiForm ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
</div>
<!-- 表格区域 开始 -->
<div class="table_wrapper">
<el-button plain style="float:right;margin-bottom:10px;" :size="size" @click="handleExport">导出</el-button>
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable>
</div>
<!-- 表格区域 end -->
</div>
</div>
</template>
<script>
import * as dayjs from 'dayjs'
import utils from '../../util/util'
export default {
name: 'equityList',
data() {
return {
size: 'small',
searchForm: {
completionStatus: '',
packageCode: '',
channel: '',
successDate: [],
effectiveDate: []
},
tableSearchForm: {},
// 搜索
searchSelectObj: {
nameOrNoOrVin: {
attr: 'customerName',
value: ''
}
},
searchFormData: [
{
type: 'selectInput',
selectName: 'nameOrNoOrVin',
isClear: true,
inputWidth: '325px',
selectWidth: '110px',
selectOption: [
{
label: '车主姓名',
name: 'customerName'
},
{
label: '合同号',
name: 'contractNo'
},
{
label: '车架号',
name: 'vin'
},
{
label: '店面名称',
name: 'merchantName'
}
],
handleSelectChange: value => {
this.searchSelectObj.nameOrNoOrVin.value = ''
}
},
{
label: '完成状态',
name: 'completionStatus',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'completList'
},
{
label: '产品名称',
name: 'packageCode',
type: 'select',
optionList: [],
optionId: 'packageCode',
optionLabel: 'packageName',
optionsName: 'goodsStatusList'
},
{
label: '渠道',
name: 'channel',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'channelList'
},
{
label: '提单成功时间',
name: 'successDate',
type: 'datePicker',
labelWidth: 95,
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '生效时间',
name: 'effectiveDate',
type: 'datePicker',
isClear: true
}
],
// 表格
getListApi: this.$apis.beforeSale.getOrdersummary,
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '车主姓名',
prop: 'customerName',
line: 1,
width: 200
},
{
label: '合同号',
prop: 'contractNo',
width: 250,
formatter: cellValue => {
return [2, 4, 5, 7, 8, 9, 10, 11].includes(cellValue.orderStatus) ? cellValue.contractNo || '--' : '--'
}
},
{
label: '提单成功时间',
line: 1,
prop: 'successDate',
width: 200,
formatter: cellValue => {
return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '--'
}
},
{
label: '店面名称',
line: 1,
prop: 'merchantName',
width: '160px'
},
{
label: '车品牌',
line: 1,
prop: 'vehicleBrandName',
width: '160px'
},
{
label: '车系',
line: 1,
width: '160px',
prop: 'vehicleSeriesName'
},
{
label: '车架号',
prop: 'vin',
width: '200px'
},
{
label: '电话',
prop: 'customerPhone',
width: '160px'
},
{
label: '产品名称',
prop: 'packageName',
width: '200px'
},
{
label: '服务期限',
line: 1,
width: 130,
prop: 'servicePeriod',
formatter: cellValue => {
return cellValue.servicePeriod ? `${cellValue.servicePeriod}年` : '--'
}
},
{
label: '生效时间',
line: 1,
prop: 'effectiveDate',
width: '130px',
formatter: cellValue => {
return cellValue.effectiveDate ? dayjs(cellValue.effectiveDate).format('YYYY-MM-DD') : '--'
}
},
{
label: '完成状态',
prop: 'completionStatus',
width: '170px',
formatter: cellValue => {
return this.baseData.completList.map(item => item.confId).includes(cellValue.completionStatus) ? this.baseData.completList.find(item => item.confId == cellValue.completionStatus).confName : '--'
}
},
{
label: '操作人',
line: 1,
prop: 'updatedBy',
width: '140px'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageCount', totalCount: 'total' },
// 公共数据
baseData: {
goodsStatusList: [],
merchantList: [],
dqList: [],
pqList: [],
mdList: [],
channelList: [
{
confId: 1,
confName: '嘀加'
},
{
confId: 2,
confName: '广汇'
}
],
completList: [
{
confId: 2,
confName: '提单成功'
},
{
confId: 4,
confName: '已退单'
}
],
orderStatusList: [
{
confId: 0,
confName: '待提单'
},
{
confId: 2,
confName: '提单成功'
},
{
confId: 3,
confName: '提单失败'
},
{
confId: 4,
confName: '已退单'
},
{
confId: 5,
confName: '已过期'
}
],
dataPerfectionList: [
{
confId: 1,
confName: '已完成'
},
{
confId: 0,
confName: '未完成'
}
],
auditStatusList: [
{
confId: 0,
confName: '待审核'
},
{
confId: 1,
confName: '已审核'
}
]
}
}
},
mounted() {
this.$apis.beforeSale.getSummaryPackage({}).then(res => {
this.baseData.goodsStatusList = res
this.getOptionsList('searchFormData')
})
},
methods: {
getSelectInputParams() {
const list = Object.keys(this.searchSelectObj)
var params = {}
list.forEach(i => {
const item = this.searchSelectObj[i]
item.value && (params[item.attr] = item.value)
})
return params
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
const tempParams = this.getSelectInputParams()
params = {
...params,
...tempParams
}
if (this.searchForm.successDate.length) {
params.successStartDates = new Date(this.searchForm.successDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.successEndDates = new Date(this.searchForm.successDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
if (this.searchForm.effectiveDate.length) {
params.effectiveStartDates = new Date(this.searchForm.effectiveDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.effectiveEndDates = new Date(this.searchForm.effectiveDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
delete params.successDate
delete params.effectiveDate
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
resolve()
})
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
}
})
}
},
// 导出
handleExport() {
var params = this.getParams()
this.$apis.beforeSale.getSummaryExportApi(params).then(res => {
// window.open(res)
let tempaa = utils.getExplorer()
if (tempaa == 'QQ') {
window.open(res)
} else {
let iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.src = res
document.body.appendChild(iframe)
}
})
},
handleSearch() {
this.$refs.equityRef.refreshTable()
},
handleReset() {
this.searchForm = {
completionStatus: '',
packageCode: '',
channel: '',
successDate: [],
effectiveDate: []
}
this.searchSelectObj = {
nameOrNoOrVin: {
attr: 'customerName',
value: ''
}
}
this.handleSearch()
}
}
}
</script>
<style lang="scss" scoped>
.app {
background: #f4f5fa;
padding: 0px 20px 20px 40px;
position: absolute;
box-sizing: border-box;
width: 100%;
top: 0px;
left: 0px;
overflow-y: auto;
height: 100%;
}
.before-sale .flex {
display: flex;
}
.find_wrap {
background: #ffffff;
padding: 20px 20px 2px 20px;
.resetBtn {
background: #ffffff;
color: #5850ff;
border: 1px solid #5850ff;
}
.m-r-l-20 {
margin: 0 20px;
}
}
.table_wrapper {
background: #ffffff;
padding: 0 20px 20px;
}
.before-sale .m-b-10 {
margin-bottom: 10px;
}
.before-sale .table-top-tips {
box-sizing: border-box;
margin-left: 10px;
width: 100%;
height: 32px;
line-height: 30px;
font-size: 12px;
background-color: #fff0bb;
border: 1px solid #ffca78;
padding: 0 10px;
border-radius: 2px;
}
.before-sale .table-top-tips .el-icon-warning {
font-size: 12px;
color: #f77315;
margin-right: 8px;
}
.before-sale .circule-tips {
position: absolute;
top: 0;
right: -6px;
display: inline-block;
height: 6px;
width: 6px;
border-radius: 100%;
background-color: red;
}
.before-sale .footer-btns {
float: right;
}
.before-sale .table-btns .el-button {
border-radius: 0;
border: 0;
padding: 0;
margin: 0;
}
.tips-dialog .el-icon-success {
margin-right: 10px;
font-size: 22px;
color: #228b22;
}
.tips-dialog .el-icon-warning {
margin-right: 10px;
font-size: 22px;
color: #f77315;
}
.tips-dialog .el-icon-error {
margin-right: 10px;
font-size: 22px;
color: #f56c6c;
}
.f-size {
font-size: 14px;
display: flex;
/* text-align: center; */
}
.tips-dialog .el-dialog__body {
padding: 10px 15px 20px !important;
}
</style>
<template>
<div class="introduct_container">
<div class="top_play_wrap flex_scb">
<div class="text_wrap">
<span class="maxTitle">售前权益服务</span>
<span class="maxTitle">一套可变现的权益服务系统</span>
<span class="midTitle">帮您实现客户线上化闭环</span>
<span>车生活权益促活跃,养车权益促返厂,赚钱锁客两不误</span>
<div class="introduct_container">
<div class="top_play_wrap flex_scb">
<div class="text_wrap">
<span class="maxTitle">售前权益服务</span>
<span class="maxTitle">一套可变现的权益服务系统</span>
<span class="midTitle">帮您实现客户线上化闭环</span>
<span>车生活权益促活跃,养车权益促返厂,赚钱锁客两不误</span>
</div>
<div class="bg_wrap flex_cc">
<img class="max_icon" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_intro.png" />
<img @click="videoShow = true" class="play_icon" src="../../assets/play_icon.png" />
</div>
</div>
<div class="mid_wrapper">
<div class="content_one flex_sc">
<div class="title left">
<span>您提供的</span>
<i class="el-icon-caret-right"></i>
</div>
<div class="bg_wrap flex_cc">
<img class="max_icon" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_intro.png" />
<img @click="videoShow = true" class="play_icon" src="../../assets/play_icon.png" />
<div class="title right">
<span>您将获得的</span>
<div class="icon_point"></div>
</div>
</div>
<div class="mid_wrapper">
<div class="content_one flex_sc">
<div class="title left">
<span>您提供的</span>
<i class="el-icon-caret-right"></i>
</div>
<div class="title right">
<span>您将获得的</span>
<div class="icon_point"></div>
<div class="content_two flex_scb">
<template v-for="(item, index) in localList">
<div :key="index" class="box_item_wrap flex_cc">
<img :src="item.icon" />
<div class="box_title">{{ item.title }}</div>
</div>
</div>
<div class="content_two flex_scb">
<template v-for="(item, index) in localList">
<div :key="index" class="box_item_wrap flex_cc">
<img :src="item.icon" />
<div class="box_title">{{ item.title }}</div>
</div>
</template>
</div>
<div class="label_title">无忧案例</div>
<div class="content_three">
<template v-for="(item, index) in localList2">
<div :key="index" class="box_new_item_wrapper" :class="[{ noborder: index == 1 }]">
<div class="left_wrap">
<img class="image_wrap" :src="item.icon" />
<div class="new_title">{{ item.title }}</div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc1 }}</div>
</div>
<div style="height: 15px"></div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc2 }}</div>
</template>
</div>
<div class="label_title">无忧案例</div>
<div class="content_three">
<template v-for="(item, index) in localList2">
<div :key="index" class="box_new_item_wrapper" :class="[{ noborder: index == 1 }]">
<div class="left_wrap">
<img class="image_wrap" :src="item.icon" />
<div class="new_title">{{ item.title }}</div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc1 }}</div>
</div>
<div class="right_wrap">
<img :src="item.img" />
<div style="height: 15px"></div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc2 }}</div>
</div>
</div>
</template>
</div>
<div class="right_wrap">
<img :src="item.img" />
</div>
</div>
</template>
</div>
<qrCode :codeUrl="code" :phone="phone"></qrCode>
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose">
<div slot="title" style="height: 18px"></div>
<video v-if="videoShow" width="100%" height="100%" autoplay controls src="https://img02.glsx.com.cn/scrm/video/beforeSale.mp4"></video>
</el-dialog>
</div>
<qrCode :codeUrl="code" :phone="phone"></qrCode>
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose">
<div slot="title" style="height: 18px"></div>
<video v-if="videoShow" width="100%" height="100%" autoplay controls src="https://img02.glsx.com.cn/scrm/video/beforeSale.mp4"></video>
</el-dialog>
</div>
</template>
<script>
import qrCode from '../../components/qr-code/index.vue'
......@@ -137,7 +137,7 @@ export default {
<style lang="scss" scoped>
.app {
background: #f4f5fa;
padding: 0px 20px 20px 40px;
padding: 0px 20px 20px 40px;
position: absolute;
box-sizing: border-box;
width: 100%;
......@@ -146,13 +146,9 @@ export default {
overflow-y: auto;
height: 100%;
}
.introduct_container {
margin-top: 17px;
}
.top_play_wrap {
height: 360px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
padding-right: 50px;
.text_wrap {
......@@ -205,7 +201,7 @@ export default {
}
.mid_wrapper {
background: #ffffff;
margin-top: 20px;
margin-top: 16px;
box-sizing: border-box;
padding: 20px;
.content_one {
......
......@@ -228,7 +228,7 @@ export default {
.report-components {
background: white;
margin: 20px 0 64px;
margin: 20px 0 0;
.title {
padding: 0 20px;
font-size: 16px;
......@@ -368,7 +368,7 @@ export default {
cursor: pointer;
}
.del_img {
right: -44px;
right: -49px;
}
/deep/ .el-progress-bar__outer {
height: 26px !important;
......
<template>
<div>
<div v-if="isGH" class="report-components">
<div v-if="isGH" class="report-components gl-form-page">
<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 class="report-components repair-wrap">
<div class="title">维修信息</div>
......@@ -39,8 +39,8 @@
<el-radio :label="1">其他</el-radio>
</el-radio-group>
</div>
<div class="account-info">
<glsx-combi-form ref="accountRef" :formRules="accountRule" labelWidth="144px" defaultWidth="320px" :formObj="accountForm" :formData="accountData"></glsx-combi-form>
<div class="account-info gl-form-page">
<glsx-combi-form ref="accountRef" :formRules="accountRule" labelWidth="154px" defaultWidth="432px" :formObj="accountForm" :formData="accountData"></glsx-combi-form>
</div>
</div>
</div>
......@@ -407,7 +407,7 @@ export default {
}
/deep/ .account-info {
margin: 10px 0 0 115px;
padding: 20px 10px 0 20px;
padding: 20px;
background: #f9f9f9;
display: inline-block;
.el-radio {
......
<template>
<div class="report-components">
<div class="report-components gl-form-page">
<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">
<el-button style="margin:0 12px;" type="primary" @click="toSearchOrderDetail">同步</el-button>
<span style="font-weight: 400; color:#666;">{{ `同步${isGH ? '核销码关联合同中的' : '合同中'}以下信息,同步后的信息可手动编辑` }}</span>
......
......@@ -13,27 +13,23 @@
单校验不通过退回处理,为保障客户权益,请尽快处理哦!
</div>
<div class="search_container">
<glsx-combi-form ref="showSearch" labelWidth="112px" defaultWidth="218px" :formObj="searchForm" :formData="searchFormData">
<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>
<GLCombiForm :rowNumber="1" ref="showSearch" :formObj="searchForm" :formData="searchFormData" @handleOk="handleOkFn" @handleRest="handleRestFn()"></GLCombiForm>
</div>
<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">
<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="[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>
</GLTable>
</div>
</div>
</template>
<script>
import glsxCombiForm from '@/components/glsx-combi-form'
import * as dayjs from 'dayjs'
const statusList = [
{
......@@ -66,6 +62,56 @@ export default {
data() {
return {
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,
sizeList: [5, 10, 20, 30, 40],
pageConf: { pageSize: 'pageCount', pageNum: 'pageNum', totalCount: 'total' },
......@@ -109,7 +155,7 @@ export default {
{
label: '核销码',
prop: 'writeOffCode',
width: '90',
width: 100,
formatter: cellValue => {
return cellValue.writeOffCode || '-'
}
......@@ -117,7 +163,7 @@ export default {
{
label: '报案号',
prop: 'registNo',
width: '220',
width: 220,
formatter: cellValue => {
return cellValue.registNo || '-'
}
......@@ -125,7 +171,7 @@ export default {
{
label: '客户名称',
prop: 'reporterName',
width: '200',
width: 160,
formatter: cellValue => {
return cellValue.reporterName || '-'
}
......@@ -133,7 +179,7 @@ export default {
{
label: '合同号',
prop: 'contractNo',
width: '200',
width: 200,
formatter: cellValue => {
return cellValue.contractNo || '-'
}
......@@ -141,7 +187,7 @@ export default {
{
label: '价格区间',
prop: 'priceSection',
width: '100',
width: 100,
formatter: cellValue => {
return cellValue.priceSection || '-'
}
......@@ -149,7 +195,7 @@ export default {
{
label: '门店提交时间',
prop: 'commitTime',
width: '180',
width: 180,
formatter: cellValue => {
return cellValue.commitTime ? dayjs(cellValue.commitTime).format('YYYY-MM-DD HH:mm:ss') : '-'
}
......@@ -157,7 +203,7 @@ export default {
{
label: '提交国任时间',
prop: 'commitGuoRenDate',
width: '180',
width: 180,
formatter: cellValue => {
return cellValue.commitGuoRenDate ? dayjs(cellValue.commitGuoRenDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
......@@ -165,7 +211,7 @@ export default {
{
label: '服务名称',
prop: 'serviceName',
width: '300',
width: 300,
line: 1,
formatter: cellValue => {
return cellValue.serviceName || '-'
......@@ -174,7 +220,7 @@ export default {
{
label: '服务状态',
prop: 'status',
width: '120',
width: 120,
formatter: cellValue => {
if (!cellValue) return '-'
return statusList.map(item => item.confId).includes(cellValue.status) ? statusList.find(item => item.confId === cellValue.status).confName : '-'
......@@ -183,7 +229,8 @@ export default {
{
label: '状态描述',
prop: 'statusDesc',
width: '200',
width: 250,
line: 1,
formatter: cellValue => {
return cellValue.statusDesc || '-'
}
......@@ -191,7 +238,8 @@ export default {
{
label: '批准金额',
prop: 'approvalAmount',
width: '100',
width: 100,
align: 'right',
formatter: cellValue => {
return cellValue.approvalAmount || '-'
}
......@@ -199,7 +247,8 @@ export default {
{
label: '支付金额',
prop: 'paymentAmount',
width: '100',
align: 'right',
width: 100,
formatter: cellValue => {
return cellValue.paymentAmount || '-'
}
......@@ -207,7 +256,7 @@ export default {
{
label: '操作人',
prop: 'operatorName',
width: '100',
width: 100,
formatter: cellValue => {
return cellValue.operatorName || '-'
}
......@@ -215,7 +264,7 @@ export default {
{
label: '操作',
prop: '',
width: '200',
width: 100,
fixed: 'right',
addHtml: 'table-btns'
}
......@@ -223,9 +272,6 @@ export default {
}
}
},
components: {
glsxCombiForm
},
created() {
this.diffHost()
......@@ -309,7 +355,7 @@ export default {
<style lang="scss" scoped>
.header_info_widget {
box-sizing: border-box;
margin: 20px 0;
margin: 16px 0;
width: 100%;
height: 40px;
display: flex;
......
......@@ -4,15 +4,9 @@
<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>
<material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material>
<div class="footer operate-btn primary_plain_btn">
<template v-if="pageType != 2">
<el-button size="small" type="primary" @click="confirmSubmit(1)">提交</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 class="page-btm-btn">
<el-button type="primary" @click="confirmSubmit(1)">提交</el-button>
<el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button>
</div>
</div>
</template>
......@@ -86,7 +80,7 @@ export default {
computed: {
totalPrice() {
let total = this.serviceItemsList.reduce(function(prev, cur) {
return prev + (+(cur.approveAmount * 100).toFixed(0))
return prev + +(cur.approveAmount * 100).toFixed(0)
}, 0)
return total / 100
}
......
......@@ -76,6 +76,12 @@
</el-radio-group>
</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-form-item>
<el-form-item>
......@@ -105,17 +111,8 @@
</el-row>
</relateStoreDialog>
</div>
<div
class="footer-panel"
: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 class="page-btm-btn">
<el-button type="primary" @click="onSubmit">确定</el-button>
</div>
</div>
</template>
......@@ -134,6 +131,7 @@ export default {
vehicleServerList:[],
configTitle:'',
selectedTable: false,
checkPosition: false,
tableData: [],
merchantIds: [],
selectedList: [],
......@@ -300,6 +298,7 @@ export default {
this.costPrice = res.openCostPrice == 1
this.storeSelParams = res
this.id = res.id
this.checkPosition = res.checkPosition == 0
let arrs = []
arrs = res.packageConfigs
for (var i = 0; i < arrs.length; i++) {
......@@ -424,6 +423,7 @@ export default {
delete targetParams.createDetailRequests
}else{
delete targetParams.openCostPrice
targetParams.checkPosition = this.checkPosition ? 0 : 1
}
if (this.add == true) {
targetParams.merchantIds = this.merchantIds
......@@ -534,14 +534,6 @@ export default {
</script>
<style lang="scss" scoped>
/deep/ .el-dialog__footer {
padding: 15px;
border-top: 1px solid #e6e6e6;
text-align: center;
}
.container {
padding-bottom: 74px;
}
.allWrap {
padding-bottom: 80px;
}
......
......@@ -3,34 +3,14 @@
<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> -->
<div class="equity-wrap contain merchant-select">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="85px" label-position="right">
<el-row>
<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">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" @handleOk="selConfig" @handleRest="selConfig('reset')"></GLCombiForm>
<div class="row-btns">
<!-- <el-button size="small" @click="toggleAll">全选</el-button> -->
<!-- <el-checkbox v-model="checkbox" @change="toggleAll" style="margin-left:20px">全选</el-checkbox> -->
<div style="float: right">
<el-button size="small" @click="batchOperation(1)">批量开通</el-button>
<div style="float: right;" class="primary_plain_btn">
<el-button size="small" plain @click="batchOperation(1)">批量开通</el-button>
<el-button size="small" @click="batchOperation(2)">批量关闭</el-button>
<el-button size="small" @click="exportTable">导出</el-button>
</div>
</div>
<GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check">
......@@ -46,7 +26,7 @@
</div>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
function date_format(date) {
var date2 = new Date(date)
var YY = date2.getFullYear() + '-'
......@@ -76,10 +56,57 @@ export default {
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
flag: true,
searchForm: {
merchantId: '',
merchantName: ''
openFlag : ''
},
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: [
{
label: '全部',
......@@ -116,7 +143,7 @@ export default {
tableColumns: [
{
label: '商户名称',
prop: 'merchantName'
prop: 'merchantName',
},
{
label: '商户号',
......@@ -134,7 +161,8 @@ export default {
label: '开通时间',
formatter: cellValue => {
return this.date_format(cellValue.createdDate)
}
},
width: 170
},
{
label: '操作人',
......@@ -142,12 +170,12 @@ export default {
},
{
label: '操作',
minWidth: '200',
addHtml: 'operate'
},
{
label: '开通开关',
addHtml: 'openFlag',
width: 100,
formatter: cellValue => {
if (cellValue.openFlag == '1') {
return true
......@@ -163,7 +191,7 @@ export default {
}
},
mounted() {
},
created(){
this.diffHost()
......@@ -199,7 +227,7 @@ export default {
if (e == 'add') {
this.$router.push({ path: '/config/addConfig', query: { $title: encodeURI('开通配置') } })
} else {
let query = { $title: encodeURI('修改配置') }
let query = { $title: encodeURI('修改配置') }
query.merchantId = e
console.log(query, 'query')
this.$router.push({ path: '/config/addConfig', query })
......@@ -214,26 +242,22 @@ export default {
})
},
selConfig(e) {
if (this.select == 1) {
this.searchForm.merchantName = this.selectInput
this.searchForm.merchantId = ''
} else {
this.searchForm.merchantId = this.selectInput
this.searchForm.merchantName = ''
this.searchForm = {
openFlag : this.searchForm.openFlag
}
if (e == 'reset') {
this.openFlag = '全部'
this.searchForm = {}
this.selectInput = ''
this.$refs.table.refreshTable()
} else {
if (this.openFlag < 2) {
this.searchForm.openFlag = this.openFlag
this.$refs.table.refreshTable()
} else {
this.$refs.table.refreshTable()
this.searchForm = {
openFlag: ''
}
this.searchSelectObj = {
idOrName: {
attr: 'merchantName',
value: ''
}
}
}
this.searchForm[this.searchSelectObj.idOrName.attr] = this.searchSelectObj.idOrName.value
this.$refs.table.refreshTable()
},
// ['开通', '关闭'] //
batchOperation(status) {
......@@ -352,7 +376,7 @@ export default {
}
/deep/ .equity-wrap {
.el-button + .el-button {
margin-left: 20px;
margin-left: 8px;
}
.el-form--inline .el-form-item {
margin-bottom: 0;
......@@ -378,16 +402,6 @@ export default {
width: 166px;
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 {
color: #333;
padding-left: 8px;
......@@ -409,4 +423,4 @@ export default {
/deep/ .el-input-group__prepend {
background-color: #fff;
}
</style>
\ No newline at end of file
</style>
<template>
<div class="equity-wrap" style="margin-top: 20px">
<div class="equity-wrap">
<div class="equity-wrap contain">
<el-form :inline="true" label-width="70px" label-position="right" class="detailForm">
<el-row style="align-items: center">
<el-form-item label="序列号">
<el-input v-model="detailForm.seqNo" placeholder="请输入" size="small" class="formItem"></el-input>
</el-form-item>
<el-form-item label="版本">
<el-select v-model="detailForm.batchType" placeholder="请选择" size="small" class="formItem">
<el-option v-for="(item, index) in editOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="适用类型" style="margin-left: 30px">
<el-select v-model="detailForm.packageCode" placeholder="请选择" size="small" class="formItem">
<el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="状态">
<el-select v-model="detailForm.status" placeholder="请选择" size="small" class="formItem">
<el-option v-for="(item, index) in statusOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="具体价格">
<el-input v-model="detailForm.actualPrice" placeholder="请输入" size="small" class="formItem"></el-input>
</el-form-item>
<el-form-item label="使用年限" style="margin-left: 30px">
<el-select v-model="detailForm.servicePeriod" placeholder="请选择" size="small" class="formItem">
<el-option v-for="(item, index) in lifeOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" style="float: right; margin-right: 0px !important; padding-top: 5px">
<el-button class="selectBtn" size="small" @click="detailSelect('reset')" style="border-color: #5850ff; color: #5850ff; margin-right: 10px">重置</el-button>
<el-button class="selectBtn" size="small" type="primary" @click="detailSelect('select')" style="">查询</el-button>
</el-form-item>
</el-row>
</el-form>
<el-alert style="margin-top: 20px" :closable="false" type="info" show-icon>总计{{ line.total }}张,已使用{{ line.usedAmount }}张</el-alert>
<GLCombiForm ref="showSearch" :formObj="detailForm" :formData="detailFormData" @handleOk="detailSelect('select')" @handleRest="detailSelect('reset')"></GLCombiForm>
<el-alert :closable="false" type="info" show-icon>总计{{ line.total }}张,已使用{{ line.usedAmount }}张</el-alert>
<GLTable ref="detailTable" :searchForm="detailForm" :tableParams="detailParams" :pageConf="detailPageConf" :getListApi="getDetailList" :beforeSearchFn="check" style="margin-top: 10px">
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="modify(scope.scope)" :disabled="scope.scope.status == 0 ? false : true">修改</el-button>
<!-- <el-button type="text" @click="modify(scope.scope)" :disabled="scope.scope.status">修改</el-button> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</span>
</GLTable>
</div>
<!-- 详情弹窗 -->
<el-dialog title="修改无忧卡" v-if="detailDialog" :visible.sync="detailDialog" width="712px" :before-close="handleClose" class="detailDialog">
<el-form :inline="true" :model="detailDialogForm" :rules="detailDialogRules" ref="detailForm" label-width="120px" class="detailForm">
<div class="form">
<el-row>
<el-form-item label="版本:" prop="batchType">
<el-select v-model="detailDialogForm.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="detailDialogForm.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="actualPrice">
<el-input v-model="detailDialogForm.actualPrice" placeholder="请输入" size="small"></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="使用年限:" prop="servicePeriod">
<el-select v-model="detailDialogForm.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>
</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>
<GLDialog class="gl-form-page gl-form-min" title="修改无忧卡" v-if="detailDialog" :visible.sync="detailDialog" mode="mid" :before-close="handleClose" @onOk="submitForm('detailForm')" @onCancel="cancelDetailDialog">
<glsx-combi-form ref="product" labelWidth="154px" defaultWidth="284px" formRef="detailForm" :formObj="detailDialogForm" :formData="addDialogFormData" :formRules="detailDialogRules"></glsx-combi-form>
</GLDialog>
</div>
</template>
<script type="text/ecmascript-6">
import glsxCombiForm from '@/components/glsx-combi-form'
function date_format(date) {
var date2 = new Date(date)
var YY = date2.getFullYear() + '-'
......@@ -113,9 +47,29 @@ const validatorActualPrice = (rule, value, callback) => {
}
export default {
name: '',
components:{
glsxCombiForm
},
data() {
return {
date_format,
buttonList: [
{
type: 'el-button',
name: row => {
return '修改'
},
attrs: {
type: 'text',
disabled:(row)=>{
return row.scope.status
}
},
listeners: {
click: row => this.modify(row.scope)
}
}
],
line: {
total: '',
usedAmount: ''
......@@ -131,12 +85,208 @@ export default {
actualPrice: '',
status: ''
},
detailFormData: [
{
type: 'input',
label: '序列号',
name: 'seqNo',
isClear: true
},
{
label: '版本',
name: 'batchType',
type: 'select',
isClear: true,
optionList: [ {
confId: '',
confName: '全部'
},
{
confId: '1',
confName: '尊享版'
},
{
confId: '2',
confName: '畅享版'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '适用类型',
name: 'packageCode',
type: 'select',
isClear: true,
optionList: [
{
confId: '',
confName: '全部'
},
{
confId: 'PC0005',
confName: '盗抢全损无忧'
},
{
confId: 'PC0006',
confName: '轮胎无忧'
},
{
confId: 'PC0007',
confName: '整车全损无忧'
},
{
confId: 'PC0008',
confName: '碰撞无忧'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '状态',
name: 'status',
isClear: true,
type: 'select',
optionList: [
{
confId: '',
confName: '全部'
},
{
confId: '0',
confName: '未使用'
},
{
confId: '1',
confName: '已使用'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
type: 'input',
label: '具体价格',
name: 'actualPrice',
isClear: true
},
{
label: '使用年限',
name: 'servicePeriod',
type: 'select',
isClear: true,
optionList: [
{
confId: '',
confName: '全部'
},
{
confId: '1',
confName: '1年'
},
{
confId: '2',
confName: '2年'
},
{
confId: '3',
confName: '3年'
},
{
confId: '4',
confName: '4年'
},
{
confId: '5',
confName: '5年'
}
],
optionId: 'confId',
optionLabel: 'confName'
}
],
detailDialogForm: {
batchType: '',
packageCode: '',
actualPrice: '',
servicePeriod: ''
},
addDialogFormData: [
{
label: '版本',
name: 'batchType',
type: 'select',
optionList: [
{
value: '1',
label: '尊享版'
},
{
value: '2',
label: '畅享版'
}
],
optionId: 'value',
optionLabel: 'label'
},
{
label: '适用类型',
name: 'packageCode',
type: 'select',
optionList: [
{
value: 'PC0005',
label: '盗抢全损无忧'
},
{
value: 'PC0006',
label: '轮胎无忧'
},
{
value: 'PC0007',
label: '整车全损无忧'
},
{
value: 'PC0008',
label: '碰撞无忧'
}
],
optionId: 'value',
optionLabel: 'label',
changeAttr:(e)=>{
this.changePgCode(e)
}
},
{
type: 'input',
label: '具体价格/万',
name: 'actualPrice',
isClear: true
},
{
label: '使用年限',
name: 'servicePeriod',
type: 'select',
isClear: true,
optionList: [
{
value: '1',
label: '1年'
},
{
value: '2',
label: '2年'
},
{
value: '3',
label: '3年'
}
],
optionId: 'value',
optionLabel: 'label'
}
],
editOptions: [
{
value: '',
......@@ -264,11 +414,14 @@ export default {
detailParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: true,
tableOption: {
width: 70
},
tableColumns: [
{
label: '序列号',
prop: 'seqNo'
prop: 'seqNo',
width: 100
},
{
label: '版本',
......@@ -301,8 +454,8 @@ export default {
PC0007: '整车全损无忧',
PC0008: '碰撞无忧'
}[cellValue.packageCode]
}
// minWidth: '200'
},
width: 220
},
{
label: '使用时间',
......@@ -313,22 +466,24 @@ export default {
} else {
return ''
}
}
},
width: 220
},
{
label: '使用者',
prop: 'useMerchantName'
// minWidth: '200'
prop: 'useMerchantName',
line: 1,
width: 200
},
{
label: '使用年限',
prop: 'servicePeriod'
// minWidth: '200'
prop: 'servicePeriod',
width: 100
},
{
label: '具体价格',
prop: 'actualPrice'
// minWidth: '200'
prop: 'actualPrice',
width: 100
}
]
}
......@@ -339,7 +494,7 @@ export default {
},
methods: {
changePgCode(e){
let arr = [ {
const arr = [{
value: '1',
label: '1年'
},
......@@ -351,8 +506,7 @@ export default {
value: '3',
label: '3年'
}]
if(e=='PC0005' || e=='PC0007'){
this.dialogYearOptions = [ ...arr, {
const moreArr = [{
value: '4',
label: '4年'
},
......@@ -360,9 +514,9 @@ export default {
value: '5',
label: '5年'
}]
}else{
this.dialogYearOptions = [...arr]
}
const target = this.addDialogFormData.find(item => item.name=='servicePeriod')
target.optionList = (e=='PC0005' || e=='PC0007') ? [ ...arr, ...moreArr] : [...arr]
this.detailDialogForm.servicePeriod = ''
},
check() {
return new Promise((resolve, reject) => {
......@@ -422,20 +576,16 @@ export default {
detailFormat() {},
// 关闭弹窗界面
cancelDetailDialog() {
console.log('1')
this.detailDialog = false
this.detailDialogForm = {}
},
submitForm(formName) {
console.log(this.detailDialogForm)
this.$refs[formName].validate(valid => {
this.$refs.product.$refs[formName].validate(valid => {
if (valid) {
if (this.detailDialogForm.batchType == '尊享版') {
this.detailDialogForm.batchType = '1'
console.log('1111')
} else if (this.detailDialogForm.batchType == '畅享版') {
this.detailDialogForm.batchType = '2'
console.log('22222')
}
console.log(this.detailDialogForm.batchType)
this.$apis.worryDetailApi.modWorryDetailList(this.detailDialogForm).then(res => {
......@@ -468,60 +618,11 @@ export default {
margin-bottom: 20px;
margin-left: 40px;
padding: 8px 16px;
// margin-bottom: 20px;
}
/deep/ .contain .el-input--small .el-input__inner {
width: 215px;
}
/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;
.el-button {
width: 72px;
margin: 0 10px;
}
}
}
.contain:first-child {
margin-bottom: 10px;
.el-row:first-child {
margin-bottom: 20px;
}
/deep/ .el-form-item {
margin-bottom: 0;
.el-form-item__label {
color: #333;
height: 32px;
}
.el-input__inner {
height: 32px;
}
}
}
.row-btns {
margin-top: 5px;
margin-bottom: 10px;
}
/deep/ .el-dialog__footer {
padding: 16px 20px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-top: 1px solid #e6e6e6;
text-align: center;
}
/deep/ .el-alert {
height: 40px;
background: #e6e9ff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!