Commit b156dc34 by 张立顺

Merge branch 'dev_v4.15.4' into 'develop'

Dev v4.15.4

See merge request !44
2 parents e40bb9b3 51b47e2c
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"start": "set NODE_OPTIONS=--openssl-legacy-provider && npm run serve", "start": "set NODE_OPTIONS=--openssl-legacy-provider && npm run serve",
"dev": "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:nomock": "vue-cli-service build --mode nomock",
"build:travis": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode travis", "build:travis": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode travis",
"lint": "vue-cli-service lint --fix", "lint": "vue-cli-service lint --fix",
......
...@@ -324,6 +324,15 @@ ...@@ -324,6 +324,15 @@
label="流量方" label="流量方"
width="170" width="170"
align="center" /> 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" <el-table-column prop="shopProfitType"
label="流量方比例" label="流量方比例"
width="120" width="120"
...@@ -527,6 +536,7 @@ import { getTransferData, getPlatformMerchantList } from '@api/index' ...@@ -527,6 +536,7 @@ import { getTransferData, getPlatformMerchantList } from '@api/index'
import funnelOption from '../index/funnelOption' import funnelOption from '../index/funnelOption'
import { getServiceStore, getParkStore } from '@api/editCustomer' import { getServiceStore, getParkStore } from '@api/editCustomer'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { baseConfig } from "@/main"
import { import {
divisionTypeList, divisionTypeList,
payTypeList, payTypeList,
...@@ -549,6 +559,7 @@ export default { ...@@ -549,6 +559,7 @@ export default {
data() { data() {
return { return {
isShowSubShopMerchantName: baseConfig.subShopMerchantName,
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
isSubOrder: false, isSubOrder: false,
hideVisible: true, hideVisible: true,
...@@ -556,7 +567,7 @@ export default { ...@@ -556,7 +567,7 @@ export default {
totalObj: {}, totalObj: {},
summayData: {}, summayData: {},
searchForm: { searchForm: {
sceneType: '', sceneType: '1',
time: '', time: '',
yqMerchantId: '', yqMerchantId: '',
merchantId: '', merchantId: '',
...@@ -802,8 +813,9 @@ export default { ...@@ -802,8 +813,9 @@ export default {
summaryDate(newValue) { summaryDate(newValue) {
this.getSummary() this.getSummary()
}, },
'searchForm.sceneType'(val) { 'searchForm.sceneType': {
console.log('searchForm.sceneType', val) handler(val) {
// console.log('searchForm.sceneType', val)
if (val == 0) { if (val == 0) {
/** 1.0场景(暂无业务支撑) /** 1.0场景(暂无业务支撑)
1)隐藏顶部统计区域部分; 1)隐藏顶部统计区域部分;
...@@ -861,6 +873,8 @@ export default { ...@@ -861,6 +873,8 @@ export default {
this.handleReset(val) this.handleReset(val)
this.getList() this.getList()
this.getTotal() this.getTotal()
},
immediate: true
} }
}, },
methods: { methods: {
......
...@@ -732,7 +732,7 @@ export default { ...@@ -732,7 +732,7 @@ export default {
}, },
// 跳转订单补录 // 跳转订单补录
handlMakeUpOrder(data) { handlMakeUpOrder(data) {
console.log('跳转订单补录') // console.log('跳转订单补录')
this.$router.push({ this.$router.push({
name: 'orderSupplement' name: 'orderSupplement'
// params: { // params: {
......
...@@ -398,7 +398,7 @@ export default { ...@@ -398,7 +398,7 @@ export default {
getMessage(msg) { getMessage(msg) {
var data = JSON.parse(msg.data) var data = JSON.parse(msg.data)
console.log(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.subProgress = 36
// this.$emit('changeParentVal', { attrName: 'isShowOkbtn', value: true }) // this.$emit('changeParentVal', { attrName: 'isShowOkbtn', value: true })
// this.$emit('getRuleProgress') // this.$emit('getRuleProgress')
......
...@@ -129,15 +129,6 @@ module.exports = { ...@@ -129,15 +129,6 @@ module.exports = {
// dayjs: 'dayjs', // dayjs: 'dayjs',
// 'flex.css': 'flex.css' // '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 = [ // const Plugins = [
// new MiniCssExtractPlugin({ // new MiniCssExtractPlugin({
...@@ -187,6 +178,16 @@ module.exports = { ...@@ -187,6 +178,16 @@ module.exports = {
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js // 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
chainWebpack: (config) => { 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,降低带宽压力 * 删除懒加载模块的 prefetch preload,降低带宽压力
* https://cli.vuejs.org/zh/guide/html-and-static-assets.html#prefetch * 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!