Commit a7247966 by 张立顺

Merge branch 'dev_v4.25.1' into 'develop'

Dev v4.25.1

See merge request !226
2 parents 4d576aee 2409d3cb
...@@ -43,6 +43,11 @@ const getCrowdfundingParams = (data) => { ...@@ -43,6 +43,11 @@ const getCrowdfundingParams = (data) => {
data.marketingType = 3 data.marketingType = 3
return request(data) return request(data)
} }
/** 快递信息&门店 */
const addDeliveryApi = (data) => {
data.method = "dj.api.smartcarlife.configUpgradeOrder.addDelivery"
return request(data)
}
export default { export default {
pictureUpload, pictureUpload,
...@@ -52,5 +57,6 @@ export default { ...@@ -52,5 +57,6 @@ export default {
getCountApi, getCountApi,
getOrderDetailApi, getOrderDetailApi,
orderExportApi, orderExportApi,
finishOrderStatus finishOrderStatus,
addDeliveryApi
} }
...@@ -459,14 +459,16 @@ export const sceneCodeList = [ ...@@ -459,14 +459,16 @@ export const sceneCodeList = [
{ confId: 1, confValue: "精品升级" }, { confId: 1, confValue: "精品升级" },
{ confId: 2, confValue: "次新车转化" }, { confId: 2, confValue: "次新车转化" },
{ confId: 3, confValue: "售后众筹" }, { confId: 3, confValue: "售后众筹" },
{ confId: 0, confValue: "会员权益/升级" } { confId: 0, confValue: "会员权益/升级" },
{ confId: 4, confValue: "积分商城" }
] ]
// 所属场景 // 所属场景
export const sceneList = { export const sceneList = {
1: "精品升级", 1: "精品升级",
2: "次新车转化", 2: "次新车转化",
3: "售后众筹", 3: "售后众筹",
0: "会员权益/升级" 0: "会员权益/升级",
4: "积分商城"
} }
// 导流方下拉选项对应 // 导流方下拉选项对应
...@@ -604,6 +606,21 @@ export const orderManageStatusList = [ ...@@ -604,6 +606,21 @@ export const orderManageStatusList = [
{ confId: "10", confName: "售后完成" }, { confId: "10", confName: "售后完成" },
{ confId: "11", confName: "待审批" } { confId: "11", confName: "待审批" }
] ]
export const orderManageStatusList_integral = [
{ confId: "1", confName: "待付款" },
{ confId: "2", confName: "已支付" },
{ confId: "3", confName: "已失效" },
// { confId: '21', confName: '待收货(待核销)' },
{ confId: "21", confName: "已发货" },
{ confId: "22", confName: "已收货" },
// { confId: '22', confName: '已收货(已核销)' },
{ confId: "6", confName: "待发货" },
// { confId: '7', confName: '待核销' },
// { confId: '8', confName: '已核销' },
{ confId: "9", confName: "售后中" },
{ confId: "10", confName: "售后完成" },
{ confId: "11", confName: "待审批" }
]
export const orderSourceList = [ export const orderSourceList = [
{ confId: "1", confName: "商城订单" }, { confId: "1", confName: "商城订单" },
{ confId: "2", confName: "直播订单" }, { confId: "2", confName: "直播订单" },
......
<template>
<div class="gl-dialog-wrap " :class="mode" :id="idDom">
<el-dialog v-bind="$attrs" v-on="$listeners">
<template #title>
<!-- 标题插槽 -->
<slot name="title" v-if="!bigTitle"></slot>
<template v-if="bigTitle">
<template v-if="mode === 'big'">
<span class="el-dialog__title" v-if="!$slots.custombigtitle">
{{ bigTitle }}
</span>
<span class="el-dialog__title" v-if="$slots.custombigtitle">
<!-- 大弹窗自定义插槽 -->
<slot name="custombigtitle"></slot>
</span>
<button type="button" aria-label="Close" class="el-dialog__headerbtn">
<!-- <i v-if="mode === 'big'" class="el-icon-full-screen full-screen" @click="fullScreenFn"></i> -->
<!-- <i v-if="mode === 'big'" :class="isFull ? 's-full-screen' : 'full-screen'" @click="fullScreenFn"></i> -->
<!-- <i class="el-icon-close "></i> -->
</button>
</template>
</template>
</template>
<template #default>
<!-- 默认插槽 -->
<slot name="default" v-if="!content"></slot>
<template v-if="content">
<div v-if="mode === 'small'" class="small-content">
<i :class="iconType"></i>
<div class="content">{{ content }}</div>
</div>
<div v-else class="content">{{ content }}</div>
</template>
</template>
<template #footer v-if="hasFooter">
<template v-if="!$slots.footer">
<span class="dialog-footer">
<el-button type="primary" @click="ok">{{ okName }}</el-button>
<el-button plain class="btn-three" @click="cancel">{{ cancelName }}</el-button>
</span>
</template>
<!-- footer插槽 -->
<slot name="footer" v-if="$slots.footer"></slot>
</template>
</el-dialog>
</div>
</template>
<script>
export default {
name: 'GLDialog',
inheritAttrs: false,
// 传入width会覆盖默认的宽度
props: {
// 弹框模式
mode: {
type: String,
// `big` / `mid` / `small`
default: 'mid'
},
// 是否有按钮
hasFooter: {
type: Boolean,
default: true
},
// 取消按钮名称
cancelText: {
type: String,
default: ''
},
// 确定按钮名称
okText: {
type: String,
default: ''
},
// 大标题(不与title(低)共存)
bigTitle: {
type: String,
default: ''
},
// 内容(small生效)
content: {
type: String,
default: ''
},
// 消息类型(图标,small生效)
type: {
type: String,
// `success` / `info` / `warning` / `error`
default: ''
},
// 是否添加到body
appendToBody: {
type: Boolean,
default: false
}
},
data() {
return {
isFull: false,
idDom: Math.random().toString(36).slice(-8)
}
},
mounted() {
document.addEventListener('keyup', (e) => {
this.keyupHook(e)
})
if (this.appendToBody) {
document.body.appendChild(this.$el)
}
},
computed: {
okName: function () {
let resName
switch (this.mode) {
case 'small':
resName = this.okText ? this.okText : '是'
break
default:
resName = this.okText ? this.okText : '确定'
break
}
return resName
},
cancelName: function () {
let resName
switch (this.mode) {
case 'small':
resName = this.cancelText ? this.cancelText : '否'
break
default:
resName = this.cancelText ? this.cancelText : '取消'
break
}
return resName
},
iconType: function () {
let type
switch (this.type) {
case 'success':
type = 'el-icon-success'
break
case 'info':
type = 'el-icon-info'
break
case 'warning':
type = 'el-icon-warning'
break
case 'error':
type = 'el-icon-error'
break
}
return type
}
},
methods: {
ok() {
// 这是确认事件
this.$emit('onOk')
},
cancel() {
// 这是取消事件
this.$emit('onCancel')
},
escFn() {
setTimeout(() => {
this.isFull = false
this.exitFullscreenHook()
}, 300)
},
fullScreenFn() {
if (this.isFull) {
this.exitFullscreenHook()
this.isFull = false
} else {
this.fullScreenHook()
this.isFull = true
}
},
fullScreenHook() {
const rootdom = document.getElementById(this.idDom)
const dialog = rootdom.getElementsByClassName('el-dialog')[0]
const dialogBody = rootdom.getElementsByClassName('el-dialog__body')[0]
dialog.style.margin = 0
dialog.style.width = window.innerWidth + 'px'
dialog.style.height = window.innerHeight + 'px'
// dialogBody.style.maxHeight = window.innerHeight -60 -40 -64 + 'px'
dialogBody.style.minHeight = window.innerHeight - 60 - 40 - 64 + 'px'
},
exitFullscreenHook() {
const rootdom = document.getElementById(this.idDom)
const dialog = rootdom.getElementsByClassName('el-dialog')[0]
const dialogBody = rootdom.getElementsByClassName('el-dialog__body')[0]
if (dialogBody) {
// dialogBody.style.maxHeight = '586px'
dialogBody.style.minHeight = '156px'
}
dialog.style.margin = '15vh auto 50px'
dialog.style.width = 1080 + 'px'
dialog.style.height = 'auto'
},
keyupHook(e) {
if (this.isFull) {
if (e.key === 'Escape') {
this.escFn()
}
}
}
},
beforeDestroy() {
document.removeEventListener('keyup', (e) => {
this.keyupHook(e)
})
if (this.appendToBody && this.$el && this.$el.parentNode) {
this.$el.parentNode.removeChild(this.$el)
}
}
}
</script>
<style lang="scss">
.gl-dialog-wrap {
&.big {
.el-dialog {
width: 1080px;
}
.el-dialog__body {
min-height: 156px;
max-height: 586px;
}
}
&.mid {
.el-dialog {
width: 720px;
}
.el-dialog__body {
min-height: 156px;
max-height: 586px;
}
}
&.small {
.el-dialog {
width: 576px;
}
.el-dialog__body {
height: 152px;
}
.el-dialog__footer {
text-align: center;
}
.small-content {
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.el-icon-success {
font-size: 48px;
color: #67c23a;
}
.el-icon-info {
font-size: 48px;
color: #909399;
}
.el-icon-warning {
font-size: 48px;
color: #e6a23c;
}
.el-icon-error {
font-size: 48px;
color: #f56c6c;
}
.content {
margin-top: 16px;
}
}
}
.el-dialog__header {
padding: 16px 20px;
.el-dialog__headerbtn {
top: 18px;
font-size: 24px;
font-weight: 600;
line-height: 24px;
color: #000;
// .full-screen {
// display: block;
// margin-right: 34px;
// width: 24px;
// height: 24px;
// background-image: url('../../../assets/full-screen.png');
// background-size: 100% 100%;
// // &:hover {
// // color: $color-primary;
// // }
// }
// .s-full-screen {
// display: block;
// margin-right: 34px;
// width: 24px;
// height: 24px;
// background-image: url('../../../assets/s-full-screen.png');
// background-size: 100% 100%;
// }
}
}
.el-dialog__body {
padding: 20px;
overflow: auto;
}
.el-dialog__footer {
padding: 15px 20px 16px;
}
.el-table .el-table__row td {
height: 40px;
}
}
</style>
import GLTable from './src/index.vue'
// 一次性注册所有的过滤器 本地测试
import filters from '@/filters'
// 为组件提供 install 安装方法,供按需引入
GLTable.install = function(Vue) {
// 注册全局过滤器(一次性注册) 目前只用一个
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
})
Vue.component(GLTable.name, GLTable)
}
// 默认导出组件
export default GLTable
<!-- <content> -->
#### Demo1 注:table column pagination 属性事件透传
<GLTable ref="liveRoomRef" :tableParams="tableParams" :tableData="tableData" :tableTotal="100" header-row-class-name="header-row" @row-click="handleRowClick" :paginationattrs="paginationattrs" :paginationlisteners="paginationlisteners">
</GLTable>
<el-button type="warning" @click="toggleShow(1)">显示代码</el-button>
```js {mixin:true}
{
data() {
return {
demo1: true,
// el分页属性透传
paginationattrs: {
'prev-text':'上一页',
'next-text':'下一页'
},
// el分页事件透传
paginationlisteners: {
'prev-click':this.prevClickHandle,
'next-click':this.nextClickHandle
},
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '最近开播',
prop: 'time',
width: '180',
formatter: cellValue => {
return cellValue.startTime + '-' + cellValue.endTime
},
// column 属性透传
columnattrs:{
'class-name':'custom-class'
}
},
{
label: '直播间名称',
prop: 'name',
line: 1
},
{
label: '房间号',
prop: 'roomId'
},
{
label: '主播',
prop: 'anchorName',
line: 1
}
]
},
tableData: [
{
name: '王小虎王小虎王小虎王',
liveStatus3: '132',
liveStatus4: '789',
name1: '123',
name2: '123'
},
{
name: '王小虎王小虎王小虎王',
liveStatus3: '132',
liveStatus4: '789',
name1: '123',
name2: '123'
},
{
name: '王小虎',
liveStatus3: '132',
liveStatus4: '789',
name1: '123',
name2: '123'
},
{
name: '王小虎王小虎王小虎王',
liveStatus3: '132',
liveStatus4: '789',
name1: '123',
name2: '123'
}
]
}
},
methods:{
btnClick(){
alert('点击')
},
toggleShow(num){
// console.log(123)
this['demo' + num] = !this['demo' + num]
},
handleRowClick(){
alert('点击这行')
},
prevClickHandle(){
alert('我是上一页点击事件')
},
nextClickHandle(){
alert('我是下一页点击事件')
}
}
}
```
# 用来作为 markdown 代码的示例部分
<div v-if="demo1">
```html
<template>
<GLTable ref="liveRoomRef" :tableParams="tableParams" :tableData="tableData" :tableTotal="100" header-row-class-name="header-row" @row-click="handleRowClick" :paginationattrs="paginationattrs" :paginationlisteners="paginationlisteners"></GLTable>
</template>
<script>
export default {
data() {
return {
// el分页属性透传
paginationattrs: {
'prev-text':'上一页',
'next-text':'下一页'
},
// el分页事件透传
paginationlisteners: {
'prev-click':this.prevClickHandle,
'next-click':this.nextClickHandle
},
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '最近开播',
prop: 'time',
width: '180',
formatter: cellValue => {
return cellValue.startTime + '-' + cellValue.endTime
},
// column 属性透传
columnattrs:{
'class-name':'custom-class'
}
},
{
label: '直播间名称',
prop: 'name',
line: 1
},
{
label: '房间号',
prop: 'roomId'
},
{
label: '主播',
prop: 'anchorName',
line: 1
}
]
},
tableData: [
{
name: '王小虎王小虎王小虎王',
liveStatus3: '132',
liveStatus4: '789',
name1: '123',
name2: '123'
},
{
name: '王小虎王小虎王小虎王',
liveStatus3: '132',
liveStatus4: '789',
name1: '123',
name2: '123'
},
{
name: '王小虎',
liveStatus3: '132',
liveStatus4: '789',
name1: '123',
name2: '123'
},
{
name: '王小虎王小虎王小虎王',
liveStatus3: '132',
liveStatus4: '789',
name1: '123',
name2: '123'
}
]
}
},
methods:{
handleRowClick(){
alert('点击这行')
},
prevClickHandle(){
alert('我是上一页点击事件')
},
nextClickHandle(){
alert('我是下一页点击事件')
}
}
}
</script>
```
</div>
<!-- </content> -->
<template>
<div class="sub-el-table-column">
<el-table-column v-for="(item, index) in reverseData" :key="index" :label="item.label" :prop="item.prop" :width="item.width" :min-width="item.minWidth" :fixed="item.fixed" :align="item.align || 'center'" :sortable="item.sortable" :render-header="item.renderHeader">
<template slot-scope="scope">
<slot v-if="item.addHtml" :name="item.addHtml" :scope="scope.row" :prop="item.prop" :width="item.width"></slot>
<template v-else-if="item.formatter">
<span class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" :title="item.formatter(scope.row)" v-text="item.formatter(scope.row)"></span>
</template>
<template v-else-if="getListApi">
<span class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" :title="scope.row[item.prop]" v-text="scope.row[item.prop]"></span>
</template>
<!-- <template v-else-if="item.labelchildren">
<el-table-column v-for="(labelitem, labelindex) in tableColumns.labelchildren" :key="'labelindex'+labelindex">
<span>123456</span>
</el-table-column> -->
<!-- <span class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" :title="tableData[scope.$index][item.prop]" v-text="tableData[scope.$index][item.prop]"></span> -->
<!-- </template> -->
<template v-else>
<!-- 大于10或 20个字节长度 -->
<el-popover v-if="tableData[scope.$index][item.prop] && tableData[scope.$index][item.prop].length >= 10 * item.line" placement="top" title="标题" width="200" trigger="click" :content="tableData[scope.$index][item.prop]">
<span slot="reference" class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" v-text="tableData[scope.$index][item.prop]"></span>
</el-popover>
<span v-else class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" v-text="tableData[scope.$index][item.prop]"></span>
</template>
<template v-if="item.addSymbol">
<span v-text="item.addSymbol"></span>
</template>
</template>
<!-- 递归 -->
<sub-el-table-column v-if="item.children" :data="item.children"></sub-el-table-column>
</el-table-column>
</div>
</template>
<script>
export default {
name: 'sub-el-table-column',
props: {
data: {
type: Array,
default: () => []
}
},
computed: {
reverseData() {
return [...this.data].reverse()
}
}
// created(){
// // console.log('data',this.data)
// }
}
</script>
<style lang="scss">
// .sub-el-table-column {
// }
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="sub-el-table-column">
<el-table-column v-for="(item, index) in reverseData" :key="index" v-bind="item.columnattrs ? item.columnattrs : {}" v-on="item.columnlisteners ? item.columnlisteners : {}" :label="item.label" :prop="item.prop" :width="item.width" :min-width="item.minWidth" :fixed="item.fixed" :align="item.align || 'center'" :sortable="item.sortable" :render-header="item.renderHeader">
<template slot-scope="scope">
<slot v-if="item.addHtml" :name="item.addHtml" :scope="scope.row" :prop="item.prop" :width="item.width"></slot>
<template v-else-if="item.formatter">
<el-popover v-if="scope.row[item.prop] && scope.row[item.prop].length >= Math.ceil(item.width / 16) * item.line" placement="top" popper-class="base-popper" trigger="hover" :content="item.formatter(scope.row)">
<span slot="reference" class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }">
{{ item.formatter(scope.row) | lineEllipsis(item.width, item.line) }}
</span>
</el-popover>
<span v-else class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" v-text="item.formatter(scope.row)"></span>
</template>
<template v-else-if="getListApi">
<el-popover v-if="scope.row[item.prop] && scope.row[item.prop].length >= Math.ceil(item.width / 16) * item.line" placement="top" popper-class="base-popper" trigger="hover" :content="scope.row[item.prop]">
<span slot="reference" class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }">
{{ scope.row[item.prop] | lineEllipsis(item.width, item.line) }}
</span>
</el-popover>
<span v-else class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" v-text="scope.row[item.prop]"></span>
</template>
<template v-else>
<!-- 大于10或 20个字节长度 -->
<el-popover v-if="tableData[scope.$index][item.prop] && tableData[scope.$index][item.prop].length >= Math.ceil(item.width / 16) * item.line" placement="top" width="200" trigger="hover" :content="tableData[scope.$index][item.prop]">
<span slot="reference" class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }">
{{ tableData[scope.$index][item.prop] | lineEllipsis(item.width, item.line) }}
</span>
</el-popover>
<!-- <span v-else class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }" v-text="tableData[scope.$index][item.prop]"></span> -->
<span v-else class="line-ellipsis" :style="{ '-webkit-line-clamp': item.line ? item.line : '' }">
{{ tableData[scope.$index][item.prop] }}
</span>
</template>
<template v-if="item.addSymbol">
<span v-text="item.addSymbol"></span>
</template>
</template>
<!-- 递归 -->
<sub-el-table-column v-if="item.children" :data="item.children" :tableData="tableData" :getListApi="getListApi"></sub-el-table-column>
</el-table-column>
</div>
</template>
<script>
import GlSubTableColumn from '../../GlSubTableColumn'
export default {
name: 'sub-el-table-column',
props: {
data: {
type: Array,
default: () => []
},
// 表格数据-外部传入
tableData: {
type: Array,
default: () => []
},
// 获取列表接口
getListApi: {
type: Function,
default: null
}
},
computed: {
reverseData() {
return [...this.data].reverse()
}
},
components: {
GlSubTableColumn
}
// created(){
// // console.log('data',this.data)
// }
}
</script>
<style lang="scss">
// .sub-el-table-column {
// }
</style>
\ No newline at end of file \ No newline at end of file
...@@ -18,5 +18,6 @@ Vue.component("RelateStoreDialog", () => ...@@ -18,5 +18,6 @@ Vue.component("RelateStoreDialog", () =>
) )
Vue.component("BaseDialog", () => import("./baseDialog/index.vue")) Vue.component("BaseDialog", () => import("./baseDialog/index.vue"))
Vue.component("GlsxCombiForm", () => import("./glsx-combi-form/index.vue")) Vue.component("GlsxCombiForm", () => import("./glsx-combi-form/index.vue"))
Vue.component("GLDialog", () => import("./GLDialog/index.vue"))
// Vue.component([authButton.name], authButton) // Vue.component([authButton.name], authButton)
Vue.component(authButton.name, authButton) Vue.component(authButton.name, authButton)
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
}, },
mounted() { mounted() {
if (this.scene == '0' || this.scene == '2' || this.scene == '3') { if (this.scene == '0' || this.scene == '2' || this.scene == '3' || this.scene == '4') {
/** 1.0场景和1.3场景隐藏园区店对账单入口 */ /** 1.0场景和1.3场景隐藏园区店对账单入口 */
this.yqCheckVisible = false this.yqCheckVisible = false
} }
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
name="3" /> name="3" />
<el-tab-pane :label="sceneList['0']" <el-tab-pane :label="sceneList['0']"
name="0" /> name="0" />
<el-tab-pane :label="sceneList['4']"
name="4" />
</el-tabs> </el-tabs>
<el-card class="finance_list_summary" <el-card class="finance_list_summary"
:body-style="{ padding: 0 }" :body-style="{ padding: 0 }"
...@@ -861,7 +863,7 @@ export default { ...@@ -861,7 +863,7 @@ export default {
'searchForm.sceneType': { 'searchForm.sceneType': {
handler(val) { handler(val) {
// console.log('searchForm.sceneType', val) // console.log('searchForm.sceneType', val)
if (val == 0) { if (val == 0 || val == 4) {
/** 1.0场景(暂无业务支撑) /** 1.0场景(暂无业务支撑)
1)隐藏顶部统计区域部分; 1)隐藏顶部统计区域部分;
2)隐藏园区店相关的筛选字段; 2)隐藏园区店相关的筛选字段;
......
...@@ -237,12 +237,12 @@ ...@@ -237,12 +237,12 @@
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- store-api (1精品升级 2次新车转化 3售后众筹 查询嘀加的门店数据 getList)(0会员/权益升级 查询账户中心所有4s店 getAccountMerchantList) --> <!-- store-api (1精品升级 2次新车转化 3售后众筹 查询嘀加的门店数据 getList)(0会员/权益升级 4积分商城 查询账户中心所有4s店 getAccountMerchantList -->
<relate-store-dialog <relate-store-dialog
v-if="relateStoreVisible" v-if="relateStoreVisible"
ref="formRelateStore" ref="formRelateStore"
:relate-store-visible="relateStoreVisible" :relate-store-visible="relateStoreVisible"
:store-api="formData.sceneType ? getList : getAccountMerchantList" :store-api="[1, 2, 3].includes(formData.sceneType) ? getList : getAccountMerchantList"
:store-search-form="storeSearchForm" :store-search-form="storeSearchForm"
:store-selected="storeSelected" :store-selected="storeSelected"
:selected-scene="formData.sceneType" :selected-scene="formData.sceneType"
......
...@@ -128,6 +128,10 @@ export default { ...@@ -128,6 +128,10 @@ export default {
}) })
}, },
getSelectingList() { getSelectingList() {
let _storeSearchForm = this.storeSearchForm
if ([0, 4].includes(this.selectedScene)) { // 会员权益,积分商城场景查询门店名称参数
_storeSearchForm.merchantIdName = _storeSearchForm.merchantName // 账户中心所有门店接口查询条件
}
this.storeApi({ this.storeApi({
...this.storeSearchForm, ...this.storeSearchForm,
currentPage: this.currentPage, currentPage: this.currentPage,
...@@ -135,7 +139,7 @@ export default { ...@@ -135,7 +139,7 @@ export default {
scene: this.selectedScene scene: this.selectedScene
}).then(res => { }).then(res => {
res?.list?.forEach(val => { // 账户中心门店返回商户号字段是merchantNo res?.list?.forEach(val => { // 账户中心门店返回商户号字段是merchantNo
if (val.merchantNo) val.merchantId = val.merchantNo if (val.merchantNo) val.merchantId = Number(val.merchantNo)
val?.sceneList?.forEach(subVal => { val?.sceneList?.forEach(subVal => {
if (subVal.scene == this.selectedScene) { if (subVal.scene == this.selectedScene) {
val.yqMerchantId = subVal?.yqMerchant?.merchantId || '-' val.yqMerchantId = subVal?.yqMerchant?.merchantId || '-'
......
...@@ -51,11 +51,6 @@ ...@@ -51,11 +51,6 @@
<span>{{ item.thirdPartyCode }}</span> <span>{{ item.thirdPartyCode }}</span>
</el-form-item> </el-form-item>
<el-form-item class="d2-drawer-item" <el-form-item class="d2-drawer-item"
v-if="$$(commodityInfo.goodsInfo,'goodsType') == 1"
label="部位:">
<span>{{ item.positionNames }}</span>
</el-form-item>
<el-form-item class="d2-drawer-item"
:label="membraneTypeList.includes(commodityInfo.goodsInfo.goodsType) ? '参考售价(元)/车:' : '参考售价(元)/件:'"> :label="membraneTypeList.includes(commodityInfo.goodsInfo.goodsType) ? '参考售价(元)/车:' : '参考售价(元)/件:'">
<span>{{ !filterEmpty(item.upgradePrice) ? priceFilter(item.upgradePrice) : '无' }}</span> <span>{{ !filterEmpty(item.upgradePrice) ? priceFilter(item.upgradePrice) : '无' }}</span>
</el-form-item> </el-form-item>
...@@ -87,6 +82,11 @@ ...@@ -87,6 +82,11 @@
label="服务项目:"> label="服务项目:">
<span>{{ !filterEmpty(item.serviceItemNames) ? item.serviceItemNames : '无' }}</span> <span>{{ !filterEmpty(item.serviceItemNames) ? item.serviceItemNames : '无' }}</span>
</el-form-item> </el-form-item>
<el-form-item class="d2-drawer-item flex_1"
v-if="$$(commodityInfo.goodsInfo,'goodsType') == 1"
label="部位:">
<span>{{ item.positionNames }}</span>
</el-form-item>
</div> </div>
</el-form> </el-form>
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
getInfo(id) { getInfo(id) {
getGoodsInfoById({ id: id }).then(res => { getGoodsInfoById({ id: id }).then(res => {
res?.upgradeGoodsList?.forEach(item => { res?.upgradeGoodsList?.forEach(item => {
let positionNamesArr = item?.goodsInfo?.goodsType == 1 ? deepClone(this.positionTypeList).filter(val => item.position.includes(val.position)) : [] let positionNamesArr = item?.goodsInfo?.goodsType == 1 ? deepClone(this.positionTypeList).filter(val => item.position?.includes(val.position)) : []
item.positionNames = positionNamesArr.length ? positionNamesArr.map(subItem => { return subItem?.confName }).join('/') : '' item.positionNames = positionNamesArr.length ? positionNamesArr.map(subItem => { return subItem?.confName }).join('/') : ''
item.serviceItemNames = item?.upgradeGoodsServiceItemsList?.map(v => { return `${v.serviceName}-${v.serviceGrade}/${v.servicePeriod}` })?.join(',') item.serviceItemNames = item?.upgradeGoodsServiceItemsList?.map(v => { return `${v.serviceName}-${v.serviceGrade}/${v.servicePeriod}` })?.join(',')
}) })
......
...@@ -21,7 +21,7 @@ import { getBrandSupplyMerchant, addBrandSupplyMerchant, editBrandSupplyMerchant ...@@ -21,7 +21,7 @@ import { getBrandSupplyMerchant, addBrandSupplyMerchant, editBrandSupplyMerchant
import productForm from './productForm.vue' import productForm from './productForm.vue'
import { baseConfig } from '@/main' import { baseConfig } from '@/main'
export default { export default {
name: 'sourceMaterial', name: 'SourceMaterial',
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
}), }),
// 获取全部类目 屏蔽服务商自建类目 // 获取全部类目 屏蔽服务商自建类目
getGoodTypeList() { getGoodTypeList() {
getProductTypeBySceneId({categoryTypeList: this.selfBuildGoodsType}).then(res => { getProductTypeBySceneId({ categoryTypeList: this.selfBuildGoodsType }).then(res => {
this.editForm[0].formBlock[this.editForm[0].formBlock.findIndex(val => val.name == 'goodsType')].optionList = res this.editForm[0].formBlock[this.editForm[0].formBlock.findIndex(val => val.name == 'goodsType')].optionList = res
}) })
}, },
...@@ -206,9 +206,10 @@ export default { ...@@ -206,9 +206,10 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.sourceMaterial-form{ .sourceMaterial-form {
background: #ffffff; background: #ffffff;
.title{
.title {
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
padding: 0 20px; padding: 0 20px;
......
<!-- 订单列表 --> <!-- 售后众筹订单列表 -->
<template> <template>
<d2-container class="order-list m-t-40"> <d2-container class="order-list m-t-40">
<div class="header" slot="header"> <div class="header" slot="header">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<d2-dialog title="选择分账规则" <d2-dialog title="选择分账规则"
:is-visible="ruleVisible" :is-visible="ruleVisible"
class="chooseRuleDialog" class="chooseRuleDialog"
width="60%" width="65%"
@closeDialog="handleClose" @closeDialog="handleClose"
@confirmDialog="handleAddConfirm"> @confirmDialog="handleAddConfirm">
<!-- <div> <!-- <div>
......
<!-- 会员权益订单列表 -->
<template> <template>
<div class="configUpgradation-list"> <div class="configUpgradation-list">
<div class="table-tips"> <div class="table-tips">
......
...@@ -5,16 +5,25 @@ ...@@ -5,16 +5,25 @@
<div class="edit-box"> <div class="edit-box">
<div class="container m-b-20"> <div class="container m-b-20">
<p class="edit-title">订单信息</p> <p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px"
<el-row v-for="(item, index) in detailFormDataRow" :key="index"> :inline="true">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label" <el-row v-for="(item, index) in detailFormDataRow"
:key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label"
class="row-item"> class="row-item">
<div class="" v-if="subItem.isImage"> <div class=""
<img v-if="detailForm[subItem.name]" class="order-img" :src="detailForm[subItem.name]" v-if="subItem.isImage">
<img v-if="detailForm[subItem.name]"
class="order-img"
:src="detailForm[subItem.name]"
@click="handleEnlargeImg(detailForm[subItem.name])"> @click="handleEnlargeImg(detailForm[subItem.name])">
<span v-else>-</span> <span v-else>-</span>
</div> </div>
<span v-else class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ <span v-else
class="detail-txt ellipsis-1"
:title="detailForm[subItem.name]">{{
detailForm[subItem.name] || detailForm[subItem.name] == 0 detailForm[subItem.name] || detailForm[subItem.name] == 0
? detailForm[subItem.name] + (subItem.suffix || "") ? detailForm[subItem.name] + (subItem.suffix || "")
: "-" : "-"
...@@ -30,18 +39,23 @@ ...@@ -30,18 +39,23 @@
</div> </div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']"> <div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<p class="edit-title">发货信息</p> <p class="edit-title">发货信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px"
:inline="true">
<el-form-item label="物流信息"> <el-form-item label="物流信息">
<span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ <span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{
detailForm.deliveryNumber detailForm.deliveryNumber
}}</span> }}</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div v-if="orderGoods.length" class="p-l-40"> <div v-if="orderGoods.length"
class="p-l-40">
<table class="show-table"> <table class="show-table">
<tbody> <tbody>
<tr v-for="(item, index) in orderGoods" :key="index" style="height: 70px"> <tr v-for="(item, index) in orderGoods"
<td><img :src="item.goodsImage" class="img-60" /></td> :key="index"
style="height: 70px">
<td><img :src="item.goodsImage"
class="img-60" /></td>
<td>{{ item.goodsName }}</td> <td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td> <td>{{ item.specificationData }}</td>
<td> <td>
...@@ -60,23 +74,33 @@ ...@@ -60,23 +74,33 @@
</table> </table>
</div> </div>
</div> </div>
<div class="container edit-container" v-if="orderRefund"> <div class="container edit-container"
v-if="orderRefund">
<p class="edit-title">售后信息</p> <p class="edit-title">售后信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px"
<el-row v-for="(item, index) in afterInfoDataRow" :key="index"> :inline="true">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label"> <el-row v-for="(item, index) in afterInfoDataRow"
<span class="detail-txt ellipsis-1" :title="orderRefund[subItem.name]">{{ :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label">
<span class="detail-txt ellipsis-1"
:title="orderRefund[subItem.name]">{{
(orderRefund[subItem.name] || orderRefund[subItem.name] == 0) ? orderRefund[subItem.name] : "-" (orderRefund[subItem.name] || orderRefund[subItem.name] == 0) ? orderRefund[subItem.name] : "-"
}}</span> }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div class="form-img"> <div class="form-img">
<el-form label-width="100px" :inline="true"> <el-form label-width="100px"
:inline="true">
<el-form-item label="售后凭证"> <el-form-item label="售后凭证">
<div class="flex"> <div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index"> <span v-for="(item, index) in orderRefund.imgUrls"
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image> :key="index">
<el-image class="img-60 comment-img"
:src="item"
:preview-src-list="[item]"></el-image>
</span> </span>
</div> </div>
</el-form-item> </el-form-item>
...@@ -86,12 +110,17 @@ ...@@ -86,12 +110,17 @@
</div> </div>
<!-- <GLFooter> --> <!-- <GLFooter> -->
<div class="footer_box"> <div class="footer_box">
<el-button @click="handleCancel" class="footer_btn" size="medium">取消</el-button> <el-button @click="handleCancel"
class="footer_btn"
size="medium">取消</el-button>
</div> </div>
<!-- </GLFooter> --> <!-- </GLFooter> -->
</div> </div>
<el-dialog :visible="imgVisible" :before-close="handleEnlargeImg"> <el-dialog :visible="imgVisible"
<img width="100%" :src="detailForm.payVoucher" alt="图片"> :before-close="handleEnlargeImg">
<img width="100%"
:src="detailForm.payVoucher"
alt="图片">
</el-dialog> </el-dialog>
</d2-container> </d2-container>
</template> </template>
...@@ -175,6 +204,7 @@ export default { ...@@ -175,6 +204,7 @@ export default {
created() { }, created() { },
mounted() { mounted() {
this.routeInfo = this.$route.query
this.getCrowdfundingOrderConfig() this.getCrowdfundingOrderConfig()
}, },
...@@ -244,7 +274,7 @@ export default { ...@@ -244,7 +274,7 @@ export default {
name: "finalPaymentAmount" name: "finalPaymentAmount"
}, },
{ {
label: "发货地址", label: this.routeInfo.orderType == 'integralShopping' ? "收货人信息" : "发货地址",
name: "shipAddress" name: "shipAddress"
}, },
{ {
...@@ -278,7 +308,6 @@ export default { ...@@ -278,7 +308,6 @@ export default {
// } // }
] ]
this.detailFormData = detailFormData this.detailFormData = detailFormData
this.routeInfo = this.$route.query
this.getInfo() this.getInfo()
this.formToRow("afterInfoData") this.formToRow("afterInfoData")
}, },
...@@ -405,6 +434,15 @@ export default { ...@@ -405,6 +434,15 @@ export default {
this.imgVisible = !this.imgVisible this.imgVisible = !this.imgVisible
}, },
handleCancel() { handleCancel() {
if (this.routeInfo.orderType == 'integralShopping') {
this.$router.push({
name: 'orderList',
params: {
tabPane: "5",
tabLabel: "integral-shopping"
}
})
} else {
this.$router.push({ this.$router.push({
name: 'orderList', name: 'orderList',
params: { params: {
...@@ -414,6 +452,7 @@ export default { ...@@ -414,6 +452,7 @@ export default {
}) })
} }
} }
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -481,7 +520,7 @@ export default { ...@@ -481,7 +520,7 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
.order-detail .show-table>tbody>tr>td { .order-detail .show-table > tbody > tr > td {
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
} }
......
<!-- 次新车列表 -->
<template> <template>
<div class="crowdfunding-list"> <div class="crowdfunding-list">
<div class="table-tips"> <div class="table-tips">
...@@ -1029,7 +1030,7 @@ export default { ...@@ -1029,7 +1030,7 @@ export default {
name: "afterSaleStatuses", name: "afterSaleStatuses",
type: "select", type: "select",
labelWidth: 72, labelWidth: 72,
multiple: true, // multiple: true,
optionList: [], optionList: [],
optionId: "confId", optionId: "confId",
optionLabel: "confName", optionLabel: "confName",
...@@ -1359,19 +1360,12 @@ export default { ...@@ -1359,19 +1360,12 @@ export default {
? Util.dateFormate(this.recordInfo.payDate, "YYYY-MM-DD HH:mm:ss") ? Util.dateFormate(this.recordInfo.payDate, "YYYY-MM-DD HH:mm:ss")
: "" : ""
this.recordInfo.totalPrice = this.recordInfo.payprice ? this.recordInfo.payprice / 100 : '0.00' this.recordInfo.totalPrice = this.recordInfo.payprice ? this.recordInfo.payprice / 100 : '0.00'
this.recordInfo.sceneType = 3 //因为账户中心场景定义与蔡远明这边不一样,因此固定传3不能从列表拿,列表对应的场景映射值不统一 this.recordInfo.sceneType = 3 // 因为账户中心场景定义与蔡远明这边不一样,因此固定传3不能从列表拿,列表对应的场景映射值不统一
console.log(this.recordInfo) console.log(this.recordInfo)
this.ruleVisible = true this.ruleVisible = true
}, },
ruleDialogClose(flag) {
this.ruleVisible = !this.ruleVisible
if (flag) {
this.handleSearch()
}
},
// 分账记录 // 分账记录
ruleHistory(row) { ruleHistory(row) {
this.recordInfo = row this.recordInfo = row
...@@ -1405,7 +1399,7 @@ export default { ...@@ -1405,7 +1399,7 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
cancelDivideAccountsAPI({orderCode: row.orderCode}).then(res => { cancelDivideAccountsAPI({ orderCode: row.orderCode }).then(res => {
this.notice.okTips() this.notice.okTips()
this.handleSearch() this.handleSearch()
}) })
......
<template> <template>
<div class="order-list-wrap"> <div class="order-list-wrap">
<div class="header" <div class="header" slot="header" style="background: #e7eaec">
slot="header" <el-tabs v-model="activeName" @tab-click="handleClick">
style="background: #e7eaec"> <el-tab-pane v-for="(item, index) in tabPaneList" :label="item.label" :name="item.name" :key="index">
<el-tabs v-model="activeName"
@tab-click="handleClick">
<el-tab-pane v-for="(item, index) in tabPaneList"
:label="item.label"
:name="item.name"
:key="index">
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<components :is="tabName"></components> <components :is="tabName"></components>
...@@ -20,13 +14,15 @@ import Order from "./order.vue" ...@@ -20,13 +14,15 @@ import Order from "./order.vue"
import CrowdFunding from "./crowdfunding.vue" import CrowdFunding from "./crowdfunding.vue"
import carDamage from "./carDamage.vue" import carDamage from "./carDamage.vue"
import configUpgradation from "./configUpgradation.vue" import configUpgradation from "./configUpgradation.vue"
import integralShopping from "./integralShopping.vue"
export default { export default {
name: "OrderList", name: "OrderList",
components: { components: {
Order, Order,
CrowdFunding, CrowdFunding,
carDamage, carDamage,
configUpgradation configUpgradation,
integralShopping
}, },
data() { data() {
return { return {
...@@ -47,8 +43,13 @@ export default { ...@@ -47,8 +43,13 @@ export default {
{ {
label: "会员权益/升级", label: "会员权益/升级",
name: "4" name: "4"
},
{
label: "积分商城",
name: "5"
} }
], ],
// tabName: "integralShopping"
tabName: "Order" tabName: "Order"
} }
}, },
...@@ -65,11 +66,12 @@ export default { ...@@ -65,11 +66,12 @@ export default {
this.getOptionsList() this.getOptionsList()
}, },
handleClick() { handleClick() {
let arr = { const arr = {
1: "order", 1: "order",
2: "config-upgradation", 2: "config-upgradation",
3: "crowd-funding", 3: "crowd-funding",
4: "carDamage" 4: "carDamage",
5: "integral-shopping"
} }
this.tabName = arr[+this.activeName] this.tabName = arr[+this.activeName]
} }
...@@ -79,6 +81,7 @@ export default { ...@@ -79,6 +81,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.order-list-wrap { .order-list-wrap {
padding: 0 24px; padding: 0 24px;
.header { .header {
::v-deep .el-tabs__header { ::v-deep .el-tabs__header {
margin: 0; margin: 0;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<d2-dialog title="查看分账操作记录" <d2-dialog title="查看分账操作记录"
:is-visible="ruleInfoVisible" :is-visible="ruleInfoVisible"
class="ruleInfoDialog" class="ruleInfoDialog"
width="60%" width="65%"
:noCancel="true" :noCancel="true"
@confirmDialog="handleAddConfirm" @confirmDialog="handleAddConfirm"
@closeDialog="handleClose"> @closeDialog="handleClose">
......
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
<template> <template>
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm"> <baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm">
<div class="reject-dialog"> <div class="reject-dialog">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="150px" default-width="350px" :form-ref="editChildRef" :form-obj="infoForm" :form-data="editFormData" :form-rules="formRules"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="150px" default-width="350px"
<span :style="{'margin-left': '150px'}"></span> :form-ref="editChildRef" :form-obj="infoForm" :form-data="editFormData" :form-rules="formRules"></glsx-combi-form>
<span :style="{ 'margin-left': '150px' }">{{ txtObj[fromPage] }}</span>
</div> </div>
</baseDialog> </baseDialog>
</template> </template>
......
...@@ -98,6 +98,10 @@ export default { ...@@ -98,6 +98,10 @@ export default {
confId: 0, confId: 0,
confLabel: '会员权益/升级', confLabel: '会员权益/升级',
// disabled: true // disabled: true
},
{
confId: 4,
confLabel: '积分商城'
} }
] ]
}, },
......
...@@ -650,10 +650,10 @@ export default { ...@@ -650,10 +650,10 @@ export default {
// } // }
}, },
goodsTypeGroupDivisionId() { goodsTypeGroupDivisionId() {
console.log( // console.log(
this.tabItem.groupDivisionRuleId, // this.tabItem.groupDivisionRuleId,
"this.tabItem.groupDivisionRuleId" // "this.tabItem.groupDivisionRuleId"
) // )
const id = const id =
this.tabItem.testFlag != "Y" ? this.tabItem.groupDivisionRuleId : false this.tabItem.testFlag != "Y" ? this.tabItem.groupDivisionRuleId : false
return id || false return id || false
...@@ -826,10 +826,10 @@ export default { ...@@ -826,10 +826,10 @@ export default {
// ...mapMutations('FinancialRules', ['toggle', 'set']), // ...mapMutations('FinancialRules', ['toggle', 'set']),
resetGoodsTypeGroupDivisionId() { resetGoodsTypeGroupDivisionId() {
// goodsTypeGroupDivisionId() { // goodsTypeGroupDivisionId() {
console.log( // console.log(
this.tabItem.groupDivisionRuleId, // this.tabItem.groupDivisionRuleId,
"this.tabItem.groupDivisionRuleId" // "this.tabItem.groupDivisionRuleId"
) // )
// const id = this.tabItem.testFlag != 'Y' ? this.tabItem.groupDivisionRuleId : false // const id = this.tabItem.testFlag != 'Y' ? this.tabItem.groupDivisionRuleId : false
// this.goodsTypeGroupDivisionId = id || false // this.goodsTypeGroupDivisionId = id || false
// } // }
......
...@@ -210,6 +210,8 @@ export default { ...@@ -210,6 +210,8 @@ export default {
const length1 = this.goodsTypeGroupRelations.length const length1 = this.goodsTypeGroupRelations.length
const length2 = this.editableTabs.length - 1 const length2 = this.editableTabs.length - 1
const length3 = this.goodsSelectList.length const length3 = this.goodsSelectList.length
console.log(length1, length2, length3, 'addVisible')
console.log((length1 - length3) > 0 && length1 > length2, 'addVisible')
return (length1 - length3) > 0 && length1 > length2 return (length1 - length3) > 0 && length1 > length2
}, },
// //
...@@ -291,8 +293,9 @@ export default { ...@@ -291,8 +293,9 @@ export default {
this.settleTimeObj[settleTimeType == 1 ? 'first' : 'second'] = settleTime this.settleTimeObj[settleTimeType == 1 ? 'first' : 'second'] = settleTime
}, },
getGoodsCategoryConfiguration() { getGoodsCategoryConfiguration() {
const { scene: sceneType } = this.routerInfo // const { scene: sceneType } = this.routerInfo
getGoodsCategoryConfiguration({ sceneType }).then((result) => { // sceneType
getGoodsCategoryConfiguration({}).then((result) => {
const { list } = result const { list } = result
if (list.length) { if (list.length) {
this.productType = list.map(({ categoryType, categoryName }) => { this.productType = list.map(({ categoryType, categoryName }) => {
......
...@@ -56,8 +56,9 @@ ...@@ -56,8 +56,9 @@
:goods-type-group-reconciliation-rules="goodsTypeGroupReconciliationRules" :goods-type-group-reconciliation-rules="goodsTypeGroupReconciliationRules"
:goods-select-list="goodsSelectList" :query-fee-category-by-type-flow="queryFeeCategoryByTypeFlow" :goods-select-list="goodsSelectList" :query-fee-category-by-type-flow="queryFeeCategoryByTypeFlow"
:query-fee-category-by-type-serve="queryFeeCategoryByTypeServe" :tabindex="idx" :key="idx" :query-fee-category-by-type-serve="queryFeeCategoryByTypeServe" :tabindex="idx" :key="idx"
@assignGoodsTypeList="assignGoodsTypeList" @deleteGoodsTypeItem="deleteGoodsTypeItem" :upgradeGoodsList="upgradeGoodsList" @assignGoodsTypeList="assignGoodsTypeList" @deleteGoodsTypeItem="deleteGoodsTypeItem"
@deleteUpgradeGoodsItem="deleteUpgradeGoodsItem" @assignUpgradeGoodsList="assignUpgradeGoodsList" :selectUpgradeGoodsList="selectUpgradeGoodsList"/> :upgrade-goods-list="upgradeGoodsList" @deleteUpgradeGoodsItem="deleteUpgradeGoodsItem"
@assignUpgradeGoodsList="assignUpgradeGoodsList" :select-upgrade-goods-list="selectUpgradeGoodsList" />
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane key="add" v-if="addVisible" name="add"> <el-tab-pane key="add" v-if="addVisible" name="add">
...@@ -230,8 +231,8 @@ export default { ...@@ -230,8 +231,8 @@ export default {
}) })
}, },
getGoodsCategoryConfiguration() { getGoodsCategoryConfiguration() {
const { scene: sceneType } = this.routerInfo // const { scene: sceneType } = this.routerInfo
getGoodsCategoryConfiguration({ sceneType }).then((result) => { getGoodsCategoryConfiguration({}).then((result) => {
const { list } = result const { list } = result
// console.log(list, 'list') // console.log(list, 'list')
if (list.length) { if (list.length) {
...@@ -274,7 +275,7 @@ export default { ...@@ -274,7 +275,7 @@ export default {
pageSize: this.pageSize pageSize: this.pageSize
}).then(res => { }).then(res => {
this.allPages = res.pages this.allPages = res.pages
let resArr = [] const resArr = []
res.list && res.list.forEach(val => { res.list && res.list.forEach(val => {
val.upgradeGoodsList.forEach(v => { val.upgradeGoodsList.forEach(v => {
resArr.push({ resArr.push({
...@@ -292,9 +293,9 @@ export default { ...@@ -292,9 +293,9 @@ export default {
}) })
}, },
// 数据去重 // 数据去重
unique(arr){ unique(arr) {
const res= new Map() const res = new Map()
return arr.filter((a)=> !res.has(a.upgradeGoodsId) && res.set(a.upgradeGoodsId,1)) return arr.filter((a) => !res.has(a.upgradeGoodsId) && res.set(a.upgradeGoodsId, 1))
}, },
getMerchantLevel(id, name) { getMerchantLevel(id, name) {
// console.log(this.merchantInfo) // console.log(this.merchantInfo)
...@@ -489,7 +490,7 @@ export default { ...@@ -489,7 +490,7 @@ export default {
this.goodsTypeGroupReconciliationRules = res?.goodsTypeGroupReconciliationRules this.goodsTypeGroupReconciliationRules = res?.goodsTypeGroupReconciliationRules
this.formObj = res this.formObj = res
// 所有按具体商品已选中的商品数据 // 所有按具体商品已选中的商品数据
let upgradeArr = [] const upgradeArr = []
typeList.forEach((item, index) => { typeList.forEach((item, index) => {
index && this.editableTabs.push({ index && this.editableTabs.push({
title: '特殊品类' + index, title: '特殊品类' + index,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!