Commit 1b0349c8 by 王志慧

hmd需求开发

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