Commit a7b3110f by 张立顺

Merge branch 'develop' into 'master'

Develop

See merge request !45
2 parents 10cd18ef b156dc34
......@@ -7,7 +7,7 @@
"serve": "vue-cli-service serve",
"start": "set NODE_OPTIONS=--openssl-legacy-provider && npm run serve",
"dev": "set NODE_OPTIONS=--openssl-legacy-provider && npm run serve",
"build": " vue-cli-service build --no-module",
"build": "vue-cli-service build --no-module",
"build:nomock": "vue-cli-service build --mode nomock",
"build:travis": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode travis",
"lint": "vue-cli-service lint --fix",
......
......@@ -324,6 +324,15 @@
label="流量方"
width="170"
align="center" />
<el-table-column prop="subShopMerchantName"
v-if="isShowSubShopMerchantName"
label="二级流量方"
width="170"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.subShopMerchantName || '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="shopProfitType"
label="流量方比例"
width="120"
......@@ -527,6 +536,7 @@ import { getTransferData, getPlatformMerchantList } from '@api/index'
import funnelOption from '../index/funnelOption'
import { getServiceStore, getParkStore } from '@api/editCustomer'
import { mapActions, mapState } from 'vuex'
import { baseConfig } from "@/main"
import {
divisionTypeList,
payTypeList,
......@@ -549,6 +559,7 @@ export default {
data() {
return {
isShowSubShopMerchantName: baseConfig.subShopMerchantName,
userInfo: this.$store.state.d2admin.user.info,
isSubOrder: false,
hideVisible: true,
......@@ -556,7 +567,7 @@ export default {
totalObj: {},
summayData: {},
searchForm: {
sceneType: '',
sceneType: '1',
time: '',
yqMerchantId: '',
merchantId: '',
......@@ -802,65 +813,68 @@ export default {
summaryDate(newValue) {
this.getSummary()
},
'searchForm.sceneType'(val) {
console.log('searchForm.sceneType', val)
if (val == 0) {
/** 1.0场景(暂无业务支撑)
1)隐藏顶部统计区域部分;
2)隐藏园区店相关的筛选字段;
3)隐藏园区店相关字段及转化员;
4)隐藏流量方比例,流量费=流量方各项分账类目之和;
5)下载对账单隐藏园区店对账单入口 */
this.sunmmaryVisible = false
this.showFormData[this.findFormIdx('yqMerchantId')].isHide = true
this.showFormData[this.findFormIdx('merchantId')].isHide = true
this.showFormData[this.findFormIdx('businessModel')].isHide = true
this.sellerName_visible = false
this.shopProfitType_visible = false
this.yq_visible = false
} else if (val == 1) {
/** 1.1场景
1)隐藏流量方比例,流量费=流量方各项分账类目之和 */
this.sunmmaryVisible = true
this.$nextTick(() => {
this.getSummary()
this.financeChart = echarts.init(document.getElementById('financeChart'))
this.drawFunnelChart()
})
this.showFormData[this.findFormIdx('yqMerchantId')].isHide = false
this.showFormData[this.findFormIdx('merchantId')].isHide = false
this.showFormData[this.findFormIdx('businessModel')].isHide = false
this.sellerName_visible = true
this.shopProfitType_visible = false
this.yq_visible = true
} else if (val == 2) {
/** 1.2场景(暂无业务支撑)
1)隐藏顶部统计区域部分;
2)隐藏流量方比例,流量费=流量方各项分账类目之和 */
this.sunmmaryVisible = false
this.showFormData[this.findFormIdx('yqMerchantId')].isHide = false
this.showFormData[this.findFormIdx('merchantId')].isHide = false
this.showFormData[this.findFormIdx('businessModel')].isHide = false
this.sellerName_visible = true
this.shopProfitType_visible = false
} else if (val == 3) {
/** 1.3场景
1)隐藏顶部统计区域部分;
2)隐藏园区店相关的筛选字段;
3)隐藏园区店相关字段及转化员;
4)隐藏流量方比例,流量费=流量方各项分账类目之和;
5)下载对账单隐藏园区店对账单入口 */
this.sunmmaryVisible = false
this.showFormData[this.findFormIdx('yqMerchantId')].isHide = true
this.showFormData[this.findFormIdx('merchantId')].isHide = true
this.showFormData[this.findFormIdx('businessModel')].isHide = true
this.sellerName_visible = false
this.shopProfitType_visible = false
this.yq_visible = false
}
this.handleReset(val)
this.getList()
this.getTotal()
'searchForm.sceneType': {
handler(val) {
// console.log('searchForm.sceneType', val)
if (val == 0) {
/** 1.0场景(暂无业务支撑)
1)隐藏顶部统计区域部分;
2)隐藏园区店相关的筛选字段;
3)隐藏园区店相关字段及转化员;
4)隐藏流量方比例,流量费=流量方各项分账类目之和;
5)下载对账单隐藏园区店对账单入口 */
this.sunmmaryVisible = false
this.showFormData[this.findFormIdx('yqMerchantId')].isHide = true
this.showFormData[this.findFormIdx('merchantId')].isHide = true
this.showFormData[this.findFormIdx('businessModel')].isHide = true
this.sellerName_visible = false
this.shopProfitType_visible = false
this.yq_visible = false
} else if (val == 1) {
/** 1.1场景
1)隐藏流量方比例,流量费=流量方各项分账类目之和 */
this.sunmmaryVisible = true
this.$nextTick(() => {
this.getSummary()
this.financeChart = echarts.init(document.getElementById('financeChart'))
this.drawFunnelChart()
})
this.showFormData[this.findFormIdx('yqMerchantId')].isHide = false
this.showFormData[this.findFormIdx('merchantId')].isHide = false
this.showFormData[this.findFormIdx('businessModel')].isHide = false
this.sellerName_visible = true
this.shopProfitType_visible = false
this.yq_visible = true
} else if (val == 2) {
/** 1.2场景(暂无业务支撑)
1)隐藏顶部统计区域部分;
2)隐藏流量方比例,流量费=流量方各项分账类目之和 */
this.sunmmaryVisible = false
this.showFormData[this.findFormIdx('yqMerchantId')].isHide = false
this.showFormData[this.findFormIdx('merchantId')].isHide = false
this.showFormData[this.findFormIdx('businessModel')].isHide = false
this.sellerName_visible = true
this.shopProfitType_visible = false
} else if (val == 3) {
/** 1.3场景
1)隐藏顶部统计区域部分;
2)隐藏园区店相关的筛选字段;
3)隐藏园区店相关字段及转化员;
4)隐藏流量方比例,流量费=流量方各项分账类目之和;
5)下载对账单隐藏园区店对账单入口 */
this.sunmmaryVisible = false
this.showFormData[this.findFormIdx('yqMerchantId')].isHide = true
this.showFormData[this.findFormIdx('merchantId')].isHide = true
this.showFormData[this.findFormIdx('businessModel')].isHide = true
this.sellerName_visible = false
this.shopProfitType_visible = false
this.yq_visible = false
}
this.handleReset(val)
this.getList()
this.getTotal()
},
immediate: true
}
},
methods: {
......
......@@ -732,7 +732,7 @@ export default {
},
// 跳转订单补录
handlMakeUpOrder(data) {
console.log('跳转订单补录')
// console.log('跳转订单补录')
this.$router.push({
name: 'orderSupplement'
// params: {
......
......@@ -398,7 +398,7 @@ export default {
getMessage(msg) {
var data = JSON.parse(msg.data)
console.log(data)
if ((data.type === 'TEST_PAY_SUCCESS') && (data.content === this.financialCalculationObj.orderCode)) {
if ((data.type === 'TEST_PAY_SUCCESS') && (data.content === this.financialCalculationObj?.orderCode)) {
this.subProgress = 36
// this.$emit('changeParentVal', { attrName: 'isShowOkbtn', value: true })
// this.$emit('getRuleProgress')
......
......@@ -129,15 +129,6 @@ module.exports = {
// dayjs: 'dayjs',
// 'flex.css': 'flex.css'
// 非开发环境
// if (isDev) {
// config.optimization.minimizer[0].options.terserOptions.compress.warnings = false
// config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
// config.optimization.minimizer[0].options.terserOptions.compress.drop_debugger = true
// config.optimization.minimizer[0].options.terserOptions.compress.pure_funcs = [
// 'console.log'
// ]
// }
// console.log(config)
// const Plugins = [
// new MiniCssExtractPlugin({
......@@ -187,6 +178,16 @@ module.exports = {
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
chainWebpack: (config) => {
// 删除注释
config.optimization.minimizer("terser").tap((args) => {
args[0].terserOptions.compress.drop_console = true
args[0].terserOptions.compress.drop_debugger = true
args[0].terserOptions.compress.pure_funcs = ["console.log"]
args[0].terserOptions.output = {
comments: false
}
return args
})
/**
* 删除懒加载模块的 prefetch preload,降低带宽压力
* https://cli.vuejs.org/zh/guide/html-and-static-assets.html#prefetch
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!