Commit f5790bce by 李伟康

兼容广汇

1 parent 43a2c982
......@@ -56,13 +56,14 @@
></el-tab-pane>
</el-tabs>
</div>
<!-- 2023.03.17屏蔽 -->
<!-- <el-button
<!-- 2023.03.17屏蔽,广汇不屏蔽 -->
<el-button
v-if="channelType == 2"
class="default-blue-btn"
:size="size"
type="default"
@click="handleExport"
>导出</el-button> -->
>导出</el-button>
</div>
</div>
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
......@@ -616,7 +617,8 @@ export default {
{ confId: '4', confName: '已取消' }
],
},
showTable: false
showTable: false,
channelType: 1
}
},
created () {
......@@ -637,7 +639,7 @@ export default {
methods: {
async getCrowdfundingOrderConfig () {
const {channelType} = this.$globalState.session
const { channelType } = this.$globalState.session
let tableColumns = [
{
label: '客户名称',
......@@ -666,7 +668,7 @@ export default {
addHtml: 'weChatName',
width: 210
},
// 2023.03.17屏蔽
// 2023.03.17屏蔽,广汇不屏蔽
// {
// label: '推荐人',
// prop: 'shareStaffName',
......@@ -685,7 +687,7 @@ export default {
width: 210,
addHtml: 'assignName'
},
// 2023.03.17屏蔽
// 2023.03.17屏蔽 ,广汇不屏蔽
// {
// label: '推荐人手机号',
// prop: 'shareStaffPhone',
......@@ -753,7 +755,7 @@ export default {
}
},
{
label: channelType == 2 ? '付款金额/元' :'支付定金/元',
label: channelType == 2 ? '付款金额/元' : '支付定金/元',
prop: 'payPrice',
width: '120',
formatter: cellValue => {
......@@ -955,7 +957,7 @@ export default {
type: 'input',
maxlength: 50
},
// 2023.03.17屏蔽
// 2023.03.17屏蔽,广汇不屏蔽
// {
// label: '推荐人',
// name: 'shareStaffName',
......@@ -993,7 +995,7 @@ export default {
type: 'input',
maxlength: 11
},
// 2023.03.17屏蔽
// 2023.03.17屏蔽,广汇不屏蔽
// {
// label: '推荐人手机号',
// name: 'shareStaffPhone',
......@@ -1050,9 +1052,40 @@ export default {
} catch (error) {
console.log(error)
}
if (channelType == 2) {
tableColumns.splice(4, 0, {
label: '推荐人',
prop: 'shareStaffName',
width: 210,
addHtml: 'shareStaffName'
})
tableColumns.splice(7, 0, {
label: '推荐人手机号',
prop: 'shareStaffPhone',
width: 160,
formatter: cellValue => {
return cellValue.shareStaffPhone || '-'
}
})
searchFormData.splice(10, 0, {
label: '推荐人',
name: 'shareStaffName',
labelWidth: 56,
type: 'input',
maxlength: 100
})
searchFormData.splice(15, 0, {
label: '推荐人手机号',
name: 'shareStaffPhone',
labelWidth: 56,
type: 'input',
maxlength: 11
})
}
this.tableParams.tableColumns = tableColumns
this.searchFormData = searchFormData
this.showTable = true
this.channelType = channelType
this.getOptionsList('searchFormData')
},
initParams () {
......
......@@ -4,10 +4,24 @@
<div class="edit-box">
<div class="container m-b-20">
<p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true">
<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">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
<el-form
label-width="100px"
:inline="true"
>
<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"
>
<span
class="detail-txt ellipsis-1"
:title="detailForm[subItem.name]"
>{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
<template v-if="detailForm.formDescribe">
......@@ -17,43 +31,88 @@
</div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<p class="edit-title">发货信息</p>
<el-form label-width="100px" :inline="true">
<el-form
label-width="100px"
:inline="true"
>
<el-form-item label="物流信息">
<span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ detailForm.deliveryNumber }}</span>
</el-form-item>
</el-form>
<div v-if="orderGoods.length" class="p-l-40">
<div
v-if="orderGoods.length"
class="p-l-40"
>
<table class="show-table">
<tbody>
<tr v-for="(item, index) in orderGoods" :key="index" style="height: 70px;">
<td><img :src="item.goodsImage" class="img-60" /></td>
<tr
v-for="(item, index) in orderGoods"
:key="index"
style="height: 70px;"
>
<td><img
:src="item.goodsImage"
class="img-60"
/></td>
<td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ item.goodsNumber }}</td>
</tr>
<tr v-if="detailForm.subOrderCoupon" style="height: 40px;">
<td style="text-align: left;" colspan="3">优惠券</td>
<tr
v-if="detailForm.subOrderCoupon"
style="height: 40px;"
>
<td
style="text-align: left;"
colspan="3"
>优惠券</td>
<td>{{ detailForm.subOrderCoupon.discountAmount }}元</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="container edit-container" v-if="orderRefund">
<div
class="container edit-container"
v-if="orderRefund"
>
<p class="edit-title">售后信息</p>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in afterInfoDataRow" :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] || '-' }}</span>
<el-form
label-width="100px"
:inline="true"
>
<el-row
v-for="(item, index) in afterInfoDataRow"
: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] || '-' }}</span>
</el-form-item>
</el-row>
</el-form>
<div class="form-img">
<el-form label-width="100px" :inline="true">
<el-form
label-width="100px"
:inline="true"
>
<el-form-item label="售后凭证">
<div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index">
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image>
<span
v-for="(item, index) in orderRefund.imgUrls"
:key="index"
>
<el-image
class="img-60 comment-img"
:src="item"
:preview-src-list="[item]"
></el-image>
</span>
</div>
</el-form-item>
......@@ -62,7 +121,10 @@
</div>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
<el-button
@click="handleCancel"
size="medium"
>取消</el-button>
</GLFooter>
</div>
</template>
......@@ -72,7 +134,7 @@ import * as dayjs from 'dayjs'
import { orderManageStatusList, orderSourceList, deliveryTypeList } from '@/common/constant'
export default {
name: 'orderDetail',
data() {
data () {
return {
size: 'small',
title: '查看订单',
......@@ -137,14 +199,14 @@ export default {
}
},
created() {},
created () { },
mounted() {
mounted () {
this.getCrowdfundingOrderConfig()
},
methods: {
async getCrowdfundingOrderConfig() {
async getCrowdfundingOrderConfig () {
let detailFormData = [
{
label: '订单编号',
......@@ -162,6 +224,7 @@ export default {
label: '手机号码',
name: 'customerPhone'
},
// 2023.03.17屏蔽,广汇不屏蔽
// {
// label: '推荐人',
// name: 'shareStaffName'
......@@ -224,7 +287,8 @@ export default {
name: 'goodsName'
}
]
const res = await this.$apis.common.getCrowdfundingOrderConfig()
const res = await this.$apis.common.getCrowdfundingOrderConfig(),
{ channelType } = this.$globalState.session
let hideStatus = res == 1
if (hideStatus) {
const filterFormList = ['customerPhone', 'shareStaffTypeName', 'vin', 'shipAddress']
......@@ -235,6 +299,12 @@ export default {
}
}
}
if (channelType == 2) {
detailFormData.splice(4, 0, {
label: '推荐人',
name: 'shareStaffName'
})
}
this.hideStatus = hideStatus
this.detailFormData = detailFormData
this.setMinHeight('.edit-box')
......@@ -242,7 +312,7 @@ export default {
this.getInfo()
this.formToRow('afterInfoData')
},
formToRow(formName, numOfRow = 3) {
formToRow (formName, numOfRow = 3) {
var rowNum = Math.ceil(this[formName].length / numOfRow)
for (var i = 0; i < rowNum; i++) {
for (var j = 0; j < numOfRow; j++) {
......@@ -257,7 +327,7 @@ export default {
}
}
},
getInfo() {
getInfo () {
this.$apis.orderManage.getOrderDetailApi({ orderCode: this.routeInfo.orderCode }).then(res => {
this.detailForm = res
this.orderRefund = res.orderRefund || null
......@@ -312,7 +382,7 @@ export default {
this.formToRow('detailFormData')
})
},
handleCancel() {
handleCancel () {
this.$router.push({
path: '/orderManage/index'
})
......
......@@ -29,13 +29,14 @@
<div class="flex m-b-10 w-100-percent">
<span class="table-title"></span>
<!-- 2023.03.17屏蔽 -->
<!-- <el-button
<!-- 2023.03.17屏蔽,广汇不屏蔽 -->
<el-button
v-if="channelType == 2"
:size="size"
class="default-blue-btn"
type="default"
@click="handleExport"
>导出</el-button> -->
>导出</el-button>
</div>
<!-- 表格区域 开始 -->
......@@ -247,17 +248,21 @@ export default {
click: this.topping
}
},
//2023.03.17屏蔽
// {
// type: 'el-button',
// name: '分享',
// attrs: {
// type: 'text'
// },
// listeners: {
// click: this.handleShare
// }
// },
//2023.03.17屏蔽,广汇不屏蔽
{
type: 'el-button',
name: '分享',
attrs: {
type: 'text'
},
condition: row => {
const { channelType } = this.$globalState.session
return channelType == 2
},
listeners: {
click: this.handleShare
}
},
// {
// type: 'el-button',
// name: '复制',
......@@ -270,25 +275,29 @@ export default {
// }
// }
// },
// 2023.03.17屏蔽
// {
// type: 'GLButton',
// name: '数据看板',
// attrs: {
// type: 'text',
// fn: '数据看板'
// },
// listeners: {
// click: row => {
// this.$router.push({
// path: '/seckillActivity/dataBoard',
// query: {
// activityId: row.id
// }
// })
// }
// }
// }
// 2023.03.17屏蔽,广汇不屏蔽
{
type: 'GLButton',
name: '数据看板',
attrs: {
type: 'text',
fn: '数据看板'
},
condition: row => {
const { channelType } = this.$globalState.session
return channelType == 2
},
listeners: {
click: row => {
this.$router.push({
path: '/seckillActivity/dataBoard',
query: {
activityId: row.id
}
})
}
}
}
],
// 表格
getListApi: this.$apis.seckillActivity.getCrowdfundListApi,
......@@ -454,7 +463,8 @@ export default {
return this.baseData.statusList.find(item => item.confId == cellValue.activityStatus).confName
}
}
]
],
{ channelType } = this.$globalState.session
const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterTableList = ['paymentModel'],
hideStatus = res == 1
......@@ -467,6 +477,7 @@ export default {
}
}
this.hideStatus = hideStatus
this.channelType = channelType
this.tableParams.tableColumns = tableColumns
},
getParams () {
......
......@@ -114,13 +114,14 @@
<div class="p-20">
<div class="flex m-b-10 w-100-percent">
<span class="table-title">数据列表</span>
<!-- 2023.03.17屏蔽 -->
<!-- <el-button
<!-- 2023.03.17屏蔽,广汇不屏蔽 -->
<el-button
v-if="channelType == 2"
:size="size"
class="default-blue-btn"
type="default"
@click="handleExport('dailyOrders')"
>导出</el-button> -->
>导出</el-button>
</div>
<el-table
v-if="DailyOrderQuantityList.length"
......@@ -178,13 +179,14 @@
单
</span>
</span>
<!-- 2023.03.17屏蔽 -->
<!-- <el-button
<!-- 2023.03.17屏蔽,广汇不屏蔽 -->
<el-button
v-if="channelType == 2"
:size="size"
class="default-blue-btn"
type="default"
@click="handleExport('liveData')"
>导出</el-button> -->
>导出</el-button>
</div>
<!-- :searchForm="tableSearchForm" -->
<GLTable
......@@ -388,7 +390,8 @@ export default {
dataBoard: {},
activityId: '',
liveInfo: {},
showTable: false
showTable: false,
channelType: 1
}
},
computed: {
......@@ -415,7 +418,9 @@ export default {
methods: {
async getCrowdfundingOrderConfig () {
const res = await this.$apis.common.getCrowdfundingOrderConfig()
const res = await this.$apis.common.getCrowdfundingOrderConfig(),
{ channelType } = this.$globalState.session
this.channelType = channelType
this.showTable = res != 1
},
getLiveData () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!