Commit c7c3a683 by 前端

Merge branch 'v3.5.0' into 'master'

V3.5.0售前权益优化版本申请合并到主干

See merge request !24
2 parents 908a611c c53771ac
...@@ -1174,24 +1174,44 @@ export default { ...@@ -1174,24 +1174,44 @@ export default {
// 获取产品的数据 // 获取产品的数据
toGetProductData(arr) { toGetProductData(arr) {
arr.forEach(item => { arr.forEach(item => {
if (item.packageName.includes('整车全损')) { if(item.packageType==1){//定制权益
item.idName = 'car'
} else if (item.packageName.includes('轮胎')) {
item.idName = 'tire'
} else if (item.packageName.includes('碰撞')) {
item.idName = 'crash'
this.productModal[item.idName]['planId'] = item.planId
this.productModal['vip']['planId'] = item.planId
this.getCase(item.planId)
} else if (item.packageName.includes('盗抢')) {
item.idName = 'stolen'
} else if (item.packageType == 1) {
item.idName = 'vip' item.idName = 'vip'
} else if (item.packageName.includes('玻璃')) { }else{// 自选权益
this.vailGlassName = item.packageName // 备用 if (item.packageName.includes('整车全损')) {
this.vailGlassCode = item.packageCode item.idName = 'car'
item.idName = 'glass' } else if (item.packageName.includes('轮胎')) {
item.idName = 'tire'
} else if (item.packageName.includes('碰撞')) {
item.idName = 'crash'
this.productModal[item.idName]['planId'] = item.planId
this.productModal['vip']['planId'] = item.planId
this.getCase(item.planId)
} else if (item.packageName.includes('盗抢')) {
item.idName = 'stolen'
} else if (item.packageName.includes('玻璃')) {
this.vailGlassName = item.packageName // 备用
this.vailGlassCode = item.packageCode
item.idName = 'glass'
}
} }
// if (item.packageName.includes('整车全损')) {
// item.idName = 'car'
// } else if (item.packageName.includes('轮胎')) {
// item.idName = 'tire'
// } else if (item.packageName.includes('碰撞')) {
// item.idName = 'crash'
// this.productModal[item.idName]['planId'] = item.planId
// this.productModal['vip']['planId'] = item.planId
// this.getCase(item.planId)
// } else if (item.packageName.includes('盗抢')) {
// item.idName = 'stolen'
// } else if (item.packageType == 1) {
// item.idName = 'vip'
// } else if (item.packageName.includes('玻璃')) {
// this.vailGlassName = item.packageName // 备用
// this.vailGlassCode = item.packageCode
// item.idName = 'glass'
// }
item.disabled = false item.disabled = false
item.serviceItems = item.serviceItemsList.length ? item.serviceItemsList.map(k => k.serviceName).join(',') : '' item.serviceItems = item.serviceItemsList.length ? item.serviceItemsList.map(k => k.serviceName).join(',') : ''
let newArr = [] let newArr = []
......
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
</div> </div>
<div class="container"> <div class="container">
<div class="find_wrap"> <div class="find_wrap">
<GLCombiForm ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" @handleOk="handleSearch" @handleRest="handleReset" :formData="searchFormData"></GLCombiForm> <GLCombiForm :key="newKey" ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" @handleOk="handleSearch" @handleRest="handleReset" :formData="searchFormData"></GLCombiForm>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<div class="table_wrapper"> <div class="table_wrapper">
<el-button plain :size="size" style="float:right;margin-bottom:10px;" @click="handleExport">导出</el-button> <el-button plain :size="size" style="float: right; margin-bottom: 10px" @click="handleExport">导出</el-button>
<GLTable ref="equityRef" :pageSizes="sizeList" :paginationattrs="paginationattrs" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="equityRef" :pageSizes="sizeList" :paginationattrs="paginationattrs" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope"> <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> <!-- <GLButton v-if="[2, 4, 5].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton>
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
name: 'equityList', name: 'equityList',
data() { data() {
return { return {
// :page-size="100" newKey: new Date(),
paginationattrs: { paginationattrs: {
'page-size': 5 'page-size': 5
}, },
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
auditStatus: '', auditStatus: '',
dataPerfection: '', dataPerfection: '',
successDate: [], successDate: [],
effectiveDate: [] effectiveDate: [],
}, },
tableSearchForm: {}, tableSearchForm: {},
// 合同打印 // 合同打印
...@@ -231,6 +231,14 @@ export default { ...@@ -231,6 +231,14 @@ export default {
{ {
label: '车架号', label: '车架号',
name: 'vin' name: 'vin'
},
{
label: '卡号',
name: 'cardSeqNo'
},
{
label: '设备号',
name: 'sn'
} }
], ],
handleSelectChange: value => { handleSelectChange: value => {
...@@ -268,6 +276,73 @@ export default { ...@@ -268,6 +276,73 @@ export default {
name: 'effectiveDate', name: 'effectiveDate',
type: 'datePicker', type: 'datePicker',
isClear: true isClear: true
},
{
label: '总部',
name: 'merchantId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'merchantList',
isHide: true,
changeAttr: (val, targetItem) => {
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.searchFormData.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow[i + '']] = ''
}
this.getMerchantList(val, 2, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}
},
{
label: '省代',
name: 'dqtId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'dqList',
isHide: true,
changeAttr: (val, targetItem) => {
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['3'])
this.searchFormData[idx].isHide = false
this.searchForm[this.levelToShow['3']] = ''
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.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}
},
{
label: '市代',
name: 'pqId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'pqList',
isHide: true,
changeAttr: (val, targetItem) => {
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.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}
},
{
label: '门店',
name: 'mdId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'mdList',
isHide: true
} }
], ],
searchFormData2: [ searchFormData2: [
...@@ -580,11 +655,11 @@ export default { ...@@ -580,11 +655,11 @@ export default {
this.getCountNoData() this.getCountNoData()
this.$apis.beforeSale.getUserInfoApi({}).then(res => { this.$apis.beforeSale.getUserInfoApi({}).then(res => {
this.userInfo = res this.userInfo = res
// if (res.merchantAccountLevel != 4) { if (res.merchantAccountLevel != 4) {
// var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1]) 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].isHide = false
// this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName) this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
// } }
}) })
}, },
...@@ -671,6 +746,7 @@ export default { ...@@ -671,6 +746,7 @@ export default {
} }
}) })
} }
this.newKey = new Date()
}, },
secondConfirm(title, txt, apiModule, apiName, apiParams) { secondConfirm(title, txt, apiModule, apiName, apiParams) {
......
...@@ -288,6 +288,7 @@ export default { ...@@ -288,6 +288,7 @@ export default {
if (!res) { if (!res) {
return return
} }
res.list = res.list || []
res.list.length ? (this.$refs.table.tableHeightValues = '') : this.$refs.table.setTableHeightFun() res.list.length ? (this.$refs.table.tableHeightValues = '') : this.$refs.table.setTableHeightFun()
this.tableData = res.list.map(item => { this.tableData = res.list.map(item => {
item.createdDate = utils.dateFormat(item.createdDate, 'YYYY-MM-DD HH:mm:ss') item.createdDate = utils.dateFormat(item.createdDate, 'YYYY-MM-DD HH:mm:ss')
...@@ -317,6 +318,7 @@ export default { ...@@ -317,6 +318,7 @@ export default {
orderType: 6 orderType: 6
} }
converterApi(para).then(res => { converterApi(para).then(res => {
res.list = res&&res.list?res.list:[]
this.tabletotal1 = res.total this.tabletotal1 = res.total
this.tableData1 = res.list.map(item => { this.tableData1 = res.list.map(item => {
item.createdDate = item.createdDate ? utils.dateFormat(item.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--' item.createdDate = item.createdDate ? utils.dateFormat(item.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--'
......
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
isShow: false isShow: false
} }
}, },
mounted() { created() {
this.check(0) this.check(0)
}, },
methods: { methods: {
...@@ -301,8 +301,10 @@ export default { ...@@ -301,8 +301,10 @@ export default {
this.videoList = [] this.videoList = []
} }
this.activeIndex = 0 this.activeIndex = 0
this.$refs.videoContent.style.transform = `translateX(0px)` if(this.$refs.videoContent){
this.$refs.videoContent.style.transition = `all 0s linear` this.$refs.videoContent.style.transform = `translateX(0px)`
this.$refs.videoContent.style.transition = `all 0s linear`
}
}, },
valuations(val) { valuations(val) {
this.isValuation = val this.isValuation = val
......
...@@ -531,6 +531,7 @@ export default { ...@@ -531,6 +531,7 @@ export default {
...this.newHttpParam ...this.newHttpParam
} }
converterApi(para).then(res => { converterApi(para).then(res => {
res.list = res&&res.list?res.list:[]
res.list.map(item => { res.list.map(item => {
item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上分账' item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上分账'
item.successDate = item.paySuccessDate ? utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss') : '--' item.successDate = item.paySuccessDate ? utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss') : '--'
......
...@@ -98,12 +98,12 @@ ...@@ -98,12 +98,12 @@
<div v-show="accountLevel != 4"> <div v-show="accountLevel != 4">
<ranking ref="myRanking" :product="productValueInfo.divisionMoney" :show="openRankFlag" @closeRank="toCloseRanking"></ranking> <ranking ref="myRanking" :product="productValueInfo.divisionMoney" :show="openRankFlag" @closeRank="toCloseRanking"></ranking>
</div> </div>
<div class="box_bg_wrap mini_margin"> <div class="box_bg_wrap">
<div class="tab_wrap"> <div class="tab_wrap">
<div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:48%' : 'width:32%'"> <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:32%' : 'width:32%'">
<!-- <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:32%' : 'width:16%'"> --> <!-- <div class="tab_line flex_sc" :style="accountLevel == 4 ? 'width:32%' : 'width:16%'"> -->
<template v-for="(item, index) in tabList"> <template v-for="(item, index) in tabList">
<div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:33.33%' : 'width:50%'" @click="changeTab(index)"> <div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:50%' : 'width:50%'" @click="changeTab(index)">
<!-- <div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:50%' : 'width:100%'" @click="changeTab(index)"> --> <!-- <div :key="index" class="tab_element_wrap" :style="accountLevel == 4 ? 'width:50%' : 'width:100%'" @click="changeTab(index)"> -->
<div class="tab_item h13_title flex_cc" :class="curTabIndex == index ? 'tab_item_active' : ''">{{ item }}</div> <div class="tab_item h13_title flex_cc" :class="curTabIndex == index ? 'tab_item_active' : ''">{{ item }}</div>
</div> </div>
...@@ -321,7 +321,7 @@ export default { ...@@ -321,7 +321,7 @@ export default {
// this.chartStartDate = utils.getDateStr(-15) // this.chartStartDate = utils.getDateStr(-15)
this.chartStartDate = this.bengintime this.chartStartDate = this.bengintime
this.chartEndDate = this.endtime this.chartEndDate = this.endtime
this.orderDataInfo() // this.orderDataInfo()
}, },
// 门店统计 // 门店统计
orderDataInfo() { orderDataInfo() {
......
...@@ -918,6 +918,7 @@ export default { ...@@ -918,6 +918,7 @@ export default {
...this.newHttpParam ...this.newHttpParam
} }
converterApi(para).then(res => { converterApi(para).then(res => {
res.list = res&&res.list?res.list:[]
this.tableData = res.list.map((item, index) => { this.tableData = res.list.map((item, index) => {
const TYPELIST = ['--', '毛利', '收入', '固定'] const TYPELIST = ['--', '毛利', '收入', '固定']
// let ruleType = item.shopProfitType == 1 ? '毛利' : '收入' // let ruleType = item.shopProfitType == 1 ? '毛利' : '收入'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!