Commit 02e29a5d by 张权

Merge branch 'v2.6.0' of http://192.168.3.233:8090/saas/scrm-micro-services into v2.6.0

2 parents 27745739 03c474c7
...@@ -1942,6 +1942,17 @@ ...@@ -1942,6 +1942,17 @@
"color-convert": "^2.0.1" "color-convert": "^2.0.1"
} }
}, },
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"cliui": { "cliui": {
"version": "6.0.0", "version": "6.0.0",
"resolved": "https://registry.nlark.com/cliui/download/cliui-6.0.0.tgz", "resolved": "https://registry.nlark.com/cliui/download/cliui-6.0.0.tgz",
...@@ -1977,12 +1988,31 @@ ...@@ -1977,12 +1988,31 @@
"ms": "2.1.2" "ms": "2.1.2"
} }
}, },
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"is-fullwidth-code-point": { "is-fullwidth-code-point": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz", "resolved": "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz",
"integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=", "integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=",
"dev": true "dev": true
}, },
"loader-utils": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz",
"integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"ms": { "ms": {
"version": "2.1.2", "version": "2.1.2",
"resolved": "https://registry.npmmirror.com/ms/download/ms-2.1.2.tgz", "resolved": "https://registry.npmmirror.com/ms/download/ms-2.1.2.tgz",
...@@ -2018,6 +2048,28 @@ ...@@ -2018,6 +2048,28 @@
"ansi-regex": "^5.0.1" "ansi-regex": "^5.0.1"
} }
}, },
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
},
"wrap-ansi": { "wrap-ansi": {
"version": "6.2.0", "version": "6.2.0",
"resolved": "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-6.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrap-ansi%2Fdownload%2Fwrap-ansi-6.2.0.tgz", "resolved": "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-6.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrap-ansi%2Fdownload%2Fwrap-ansi-6.2.0.tgz",
...@@ -13200,87 +13252,6 @@ ...@@ -13200,87 +13252,6 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz",
"integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": { "vue-router": {
"version": "3.5.3", "version": "3.5.3",
"resolved": "https://registry.npmmirror.com/vue-router/download/vue-router-3.5.3.tgz", "resolved": "https://registry.npmmirror.com/vue-router/download/vue-router-3.5.3.tgz",
......
...@@ -2,7 +2,7 @@ import Vue from 'vue' ...@@ -2,7 +2,7 @@ import Vue from 'vue'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import { message, messageBox } from '@/plugins/element.js' import { message, messageBox } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLButton, GLTable, GLCombiForm, GLTableButton } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
import render from './render' import render from './render'
import 'glsx-components/dist/glsx-components.css' import 'glsx-components/dist/glsx-components.css'
...@@ -12,6 +12,8 @@ let router = null ...@@ -12,6 +12,8 @@ let router = null
let instance = null let instance = null
Vue.use(GLTable) Vue.use(GLTable)
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLCombiForm)
Vue.use(GLTableButton)
// Vue.use(Table) // Vue.use(Table)
// Vue.use(TableColumn) // Vue.use(TableColumn)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
......
...@@ -257,6 +257,12 @@ export default { ...@@ -257,6 +257,12 @@ export default {
if (division.extraCostDivisionFlag == 3) { if (division.extraCostDivisionFlag == 3) {
newArr.push('额外成本') newArr.push('额外成本')
} }
if (division.installCostDivisionFlag == 3) {
newArr.push('安装费用')
}
if (division.marketingCostDivisionFlag == 3) {
newArr.push('营销费用(包含奖惩)')
}
let str = newArr.join(',') let str = newArr.join(',')
division.inCludeStr = str division.inCludeStr = str
if(!newArr.length){ if(!newArr.length){
......
...@@ -355,7 +355,7 @@ export default { ...@@ -355,7 +355,7 @@ export default {
label: levelName[accountLevel + 1], label: levelName[accountLevel + 1],
name: 'merchantIdss', name: 'merchantIdss',
type: 'select', type: 'select',
optionList: child[0].children, optionList: child[0]&&child[0].children?child[0].children:[],
optionId: 'id', optionId: 'id',
optionLabel: 'merchantName', optionLabel: 'merchantName',
isClear: true isClear: true
...@@ -367,19 +367,35 @@ export default { ...@@ -367,19 +367,35 @@ export default {
label: levelName[accountLevel + 2], label: levelName[accountLevel + 2],
name: 'merchantIdsss', name: 'merchantIdsss',
type: 'select', type: 'select',
optionList: child2[0].children, optionList: child2[0]&&child2[0].children?child2[0].children:[],
optionId: 'id', optionId: 'id',
optionLabel: 'merchantName', optionLabel: 'merchantName',
isClear: true isClear: true
} }
const isAdd1 = this.judgeAdd(newForm2,this.searchFormData1,'name')
const isAdd2 = this.judgeAdd(newForm2,this.searchFormData2,'name')
if(!isAdd1){
this.searchFormData1.push(newForm2) this.searchFormData1.push(newForm2)
}
if(!isAdd2){
this.searchFormData2.push(newForm2) this.searchFormData2.push(newForm2)
}
// this.searchFormData1.push(newForm2)
// this.searchFormData2.push(newForm2)
this.refreshComponent() this.refreshComponent()
} }
} }
this.rowNumber = 3 this.rowNumber = 3
const isAdd1 = this.judgeAdd(newForm,this.searchFormData1,'name')
const isAdd2 = this.judgeAdd(newForm,this.searchFormData2,'name')
if(!isAdd1){
this.searchFormData1.push(newForm) this.searchFormData1.push(newForm)
}
if(!isAdd2){
this.searchFormData2.push(newForm) this.searchFormData2.push(newForm)
}
// this.searchFormData1.push(newForm)
// this.searchFormData2.push(newForm)
this.refreshComponent() this.refreshComponent()
} }
} }
...@@ -392,6 +408,16 @@ export default { ...@@ -392,6 +408,16 @@ export default {
this.refreshKey1 = Date.now() this.refreshKey1 = Date.now()
this.refreshKey2 = Date.now() + 1 this.refreshKey2 = Date.now() + 1
}, },
// 判断是否需要添加下拉框
judgeAdd(obj,objList,tag){
let flag = false
objList.forEach(item=>{
if(item[tag]==obj[tag]){
flag = true
}
})
return flag
},
handleOkFn() { handleOkFn() {
this.handlerParams() this.handlerParams()
}, },
......
...@@ -104,9 +104,11 @@ ...@@ -104,9 +104,11 @@
</div> </div>
<div class="box_bg_wrap mini_margin"> <div class="box_bg_wrap mini_margin">
<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:48%' : 'width:32%'"> -->
<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:33.33%' : 'width:50%'" @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>
</template> </template>
...@@ -119,17 +121,17 @@ ...@@ -119,17 +121,17 @@
<template v-if="curTabIndex == 1"> <template v-if="curTabIndex == 1">
<upgrade-order></upgrade-order> <upgrade-order></upgrade-order>
</template> </template>
<template v-if="curTabIndex == 2"> <!-- <template v-if="curTabIndex == 2">
<my-fashionable-order></my-fashionable-order> <my-fashionable-order></my-fashionable-order>
</template> </template> -->
</template> </template>
<template v-if="accountLevel != 4"> <template v-if="accountLevel != 4">
<template v-if="curTabIndex == 0"> <template v-if="curTabIndex == 0">
<upgrade-order :list="storeList"></upgrade-order> <upgrade-order :list="storeList"></upgrade-order>
</template> </template>
<template v-if="curTabIndex == 1"> <!-- <template v-if="curTabIndex == 1">
<my-fashionable-order :list="storeList"></my-fashionable-order> <my-fashionable-order :list="storeList"></my-fashionable-order>
</template> </template> -->
</template> </template>
</div> </div>
</div> </div>
...@@ -170,7 +172,8 @@ export default { ...@@ -170,7 +172,8 @@ export default {
dateType: 'date', dateType: 'date',
dateplaceholder: '选择日期', dateplaceholder: '选择日期',
showMore: true, showMore: true,
tabList: ['精品礼券领取订单', '精品升级订单', '我的分账'], // tabList: ['精品礼券领取订单', '精品升级订单', '我的分账'],
tabList: ['精品礼券领取订单', '精品升级订单'],
curTabIndex: 0, curTabIndex: 0,
customName: '', customName: '',
hxstatus: '', hxstatus: '',
...@@ -195,7 +198,8 @@ export default { ...@@ -195,7 +198,8 @@ export default {
const { session } = this.$globalState const { session } = this.$globalState
this.accountLevel = session.accountLevel this.accountLevel = session.accountLevel
if (session.accountLevel != 4) { if (session.accountLevel != 4) {
this.tabList = ['订单明细', '分账明细'] // this.tabList = ['订单明细', '分账明细']
this.tabList = ['订单明细']
this.toGet4SStore() this.toGet4SStore()
} }
// 获取上一次打开的状态 // 获取上一次打开的状态
......
...@@ -720,7 +720,7 @@ export default { ...@@ -720,7 +720,7 @@ export default {
label: levelName[accountLevel + 1], label: levelName[accountLevel + 1],
name: 'merchantIdss', name: 'merchantIdss',
type: 'select', type: 'select',
optionList: child[0].children, optionList: child[0]&&child[0].children?child[0].children:[],
optionId: 'id', optionId: 'id',
optionLabel: 'merchantName', optionLabel: 'merchantName',
isClear: true isClear: true
...@@ -732,17 +732,23 @@ export default { ...@@ -732,17 +732,23 @@ export default {
label: levelName[accountLevel + 2], label: levelName[accountLevel + 2],
name: 'merchantIdsss', name: 'merchantIdsss',
type: 'select', type: 'select',
optionList: child2[0].children, optionList: child2[0]&&child2[0].children?child2[0].children:[],
optionId: 'id', optionId: 'id',
optionLabel: 'merchantName', optionLabel: 'merchantName',
isClear: true isClear: true
} }
const isAdd = this.judgeAdd(newForm2,this.searchFormData,'name')
if(!isAdd){
this.searchFormData.push(newForm2) this.searchFormData.push(newForm2)
}
this.refreshKey = Date.now() this.refreshKey = Date.now()
} }
} }
this.rowNumber = 3 this.rowNumber = 3
const isAdd = this.judgeAdd(newForm,this.searchFormData,'name')
if(!isAdd){
this.searchFormData.push(newForm) this.searchFormData.push(newForm)
}
this.refreshKey = Date.now() this.refreshKey = Date.now()
} }
} }
...@@ -750,6 +756,16 @@ export default { ...@@ -750,6 +756,16 @@ export default {
this.refreshKey = Date.now() this.refreshKey = Date.now()
}) })
}, },
// 判断是否需要添加下拉框
judgeAdd(obj,objList,tag){
let flag = false
objList.forEach(item=>{
if(item[tag]==obj[tag]){
flag = true
}
})
return flag
},
/**处理新表格动态刷新列方法 */ /**处理新表格动态刷新列方法 */
handlerNewTableCoulum(fieldList) { handlerNewTableCoulum(fieldList) {
this.dynamicTableShow = false this.dynamicTableShow = false
...@@ -792,6 +808,7 @@ export default { ...@@ -792,6 +808,7 @@ export default {
newTableParams.tableColumns[item.level - 1].children.push(obj) newTableParams.tableColumns[item.level - 1].children.push(obj)
}) })
this.newTableParams = newTableParams this.newTableParams = newTableParams
this.$refs.subTable.componentKey = Date.now()
this.$nextTick(() => { this.$nextTick(() => {
this.dynamicTableShow = true this.dynamicTableShow = true
}) })
...@@ -911,6 +928,7 @@ export default { ...@@ -911,6 +928,7 @@ export default {
pageSize: this.$refs.subTable.page.pageSize, pageSize: this.$refs.subTable.page.pageSize,
...this.newHttpParam ...this.newHttpParam
} }
this.$refs.subTable.componentKey = Date.now()
this.getTotalOfJT(this.httpParam) this.getTotalOfJT(this.httpParam)
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!