Commit 6406137a by 王志慧

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

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