Commit 1b0349c8 by 王志慧

hmd需求开发

1 parent e544cf0b
<!-- 订单管理 --> 订单管理
<template> <template>
<div class="marketing order-manage"> <div class="marketing order-manage">
<template v-if="showTable"> <template v-if="showTable">
...@@ -227,6 +227,7 @@ export default { ...@@ -227,6 +227,7 @@ export default {
name: 'orderManage', name: 'orderManage',
data() { data() {
return { return {
isHmd: true,
showGh: false, showGh: false,
size: 'small', size: 'small',
url: url, url: url,
...@@ -505,12 +506,15 @@ export default { ...@@ -505,12 +506,15 @@ export default {
created() { created() {
// this.checkMerchant() // this.checkMerchant()
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
this.merchantId = this.$globalState.session.merchantId
this.merchantModel = this.$globalState.session.merchantModel this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
if (this.merchantModel == 2 && this.accountLevel == 4) { if (this.merchantModel == 2 && this.accountLevel == 4) {
this.initParams() this.initParams()
} }
} }
// 判断是否是海马刀
this.isHmd = this.merchantId == this.$hmdMerchantId
let href = window.location.host let href = window.location.host
this.showGh = href.indexOf('cgacar') !== -1 this.showGh = href.indexOf('cgacar') !== -1
}, },
...@@ -940,8 +944,12 @@ export default { ...@@ -940,8 +944,12 @@ export default {
const res = await this.$apis.common.getCrowdfundingOrderConfig(), const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterTableList = ['shareStaffName', 'otherInformation', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'], filterTableList = ['shareStaffName', 'otherInformation', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'],
filterFormList = ['afterSaleStatuses', 'shareStaffName', 'vin', 'shareStaffSource', 'shareStaffPhone'] filterFormList = ['afterSaleStatuses', 'shareStaffName', 'vin', 'shareStaffSource', 'shareStaffPhone']
this.configShow = res != 1 if(!this.isHmd){
if (res == 1) { filterTableList.push('customerPhone')
filterFormList.push('customerPhone')
}
this.configShow = res != 1||this.isHmd
if (res == 1||this.isHmd) {
for (let i = 0; i < tableColumns.length; i++) { for (let i = 0; i < tableColumns.length; i++) {
if (filterTableList.includes(tableColumns[i].prop)) { if (filterTableList.includes(tableColumns[i].prop)) {
tableColumns.splice(i, 1) tableColumns.splice(i, 1)
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</template> </template>
</el-form> </el-form>
</div> </div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']"> <div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']" v-if="isHmd">
<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-row v-for="(item, index) in receiveInfoDataRow" :key="index"> <el-row v-for="(item, index) in receiveInfoDataRow" :key="index">
...@@ -88,6 +88,7 @@ export default { ...@@ -88,6 +88,7 @@ export default {
name: 'orderDetail', name: 'orderDetail',
data() { data() {
return { return {
isHmd:true,
size: 'small', size: 'small',
title: '查看订单', title: '查看订单',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
...@@ -166,7 +167,13 @@ export default { ...@@ -166,7 +167,13 @@ export default {
} }
}, },
created() { }, created() {
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId
}
this.isHmd = this.merchantId == this.$hmdMerchantId
},
mounted() { mounted() {
this.getCrowdfundingOrderConfig() this.getCrowdfundingOrderConfig()
...@@ -290,7 +297,6 @@ export default { ...@@ -290,7 +297,6 @@ 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
console.log(res, 888)
this.orderRefund = res.orderRefund || null this.orderRefund = res.orderRefund || null
this.detailForm.createdDateStr = dayjs(this.detailForm.createdDate).format('YYYY-MM-DD HH:mm:ss') this.detailForm.createdDateStr = dayjs(this.detailForm.createdDate).format('YYYY-MM-DD HH:mm:ss')
if (this.orderRefund) { if (this.orderRefund) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!