Commit dc81208e by 张立顺

fix 线上问题

1 parent 1ee55d44
......@@ -100,3 +100,9 @@ export function batchUpdateConfirmInput(data) {
data.method = `${path2}waitinputorder.batchUpdateConfirmInput`
return request(data, "post")
}
// 订单详情
export function goodsOrderDetail(data) {
data.method = `${path2}goodsOrder.detail`
return request(data, "post")
}
......@@ -4,9 +4,9 @@
<div class="d2-container-content">
<p class="edit-title">
订单详情&nbsp;&nbsp;&nbsp;<el-button size="mini"
v-if="signRefundFlag && [4, 6].includes(detail.status)"
class="signRefundBtn"
@click="refund">
v-if="signRefundFlag && [4, 6].includes(detail.status)"
class="signRefundBtn"
@click="refund">
<img class="signRefundIcon"
src="./images/sign.png"> 标记为退款
</el-button>
......@@ -111,20 +111,21 @@
show-summary
:summary-method="getSummaries"
style="width: 100%">
<el-table-column :prop="detail.upgradeFlag === 'Y' ? 'upgradeGoodsCommodityCode' : 'baseGoodsCommodityCode'"
<!-- <el-table-column :prop="detail.upgradeFlag === 'Y' ? 'upgradeGoodsCommodityCode' : 'baseGoodsCommodityCode'" -->
<el-table-column :prop="'upgradeGoodsCommodityCode'"
align="center"
label="商品ID"
width="180px" />
<el-table-column :prop="detail.upgradeFlag === 'Y' ? 'upgradeGoodsName' : 'baseGoodsName'"
<el-table-column :prop="'upgradeGoodsName'"
align="center"
label="商品名称" />
<el-table-column :prop="detail.upgradeFlag === 'Y' ? 'upgradeGoodsTypeName' : 'baseGoodsTypeName'"
<el-table-column :prop="'upgradeGoodsTypeName' "
align="center"
label="商品分类" />
<el-table-column :prop="detail.upgradeFlag === 'Y' ? 'upgradeBrandMerchantName' : 'baseBrandMerchantName'"
<el-table-column :prop="'upgradeBrandMerchantName'"
align="center"
label="品牌商" />
<el-table-column :prop="detail.upgradeFlag === 'Y' ? 'upgradePrice' : 'baseRetailPrice'"
<el-table-column :prop="'upgradePrice'"
align="center"
label="商品售价" />
<!-- <el-table-column
......@@ -140,7 +141,7 @@
align="center"
label="质保年限">
<span
slot-scope="scope">{{ scope.row.upgradeWarrantyPeriod ? (scope.row.upgradeWarrantyPeriod + '年') : '无' }}</span>
slot-scope="scope">{{ scope.row.upgradeWarrantyPeriod ? (scope.row.upgradeWarrantyPeriod + '年') : '无' }}</span>
</el-table-column>
<el-table-column prop="cardCode"
align="center"
......@@ -169,7 +170,7 @@
订单进度
</p>
<!-- header-cell-style="text-align:center; background-color:#fafafa" -->
<el-table :data="detail.logs"
<el-table :data="detail.accessLogs"
border
:header-cell-style="{'text-align':'center','background-color':'#fafafa'}"
style="width: 100%">
......@@ -218,7 +219,7 @@ import { deepClone } from '@/common/util'
import { payType } from '@/common/constants.js'
// import { getOrderDetail } from '@api/order'
import dayjs from 'dayjs'
import { getList } from '@api/order'
import { getList, goodsOrderDetail } from '@api/order'
export default {
name: 'OrderDetail',
components: {
......@@ -283,10 +284,10 @@ export default {
this.detail = this.$route.params.detail
this.signRefundFlag = this.$route.params.signRefundFlag
console.log(this.signRefundFlag)
if (this.detail.source == 7) {
this.detail.createdDate = dayjs(this.detail.createdDate).format('YYYY-MM-DD HH:mm:ss')
}
this.getGoodsOrderDetail()
console.log(this.detail)
},
......@@ -349,17 +350,20 @@ export default {
dialogClose(flag) {
this.signRefundVisible = !this.signRefundVisible
if (flag) {
this.getList()
this.getGoodsOrderDetail()
}
},
getList() {
var params = {
...this.page,
orderCode: this.detail.orderCode
}
getList(params).then(res => {
this.detail = res.list[0]
getGoodsOrderDetail() {
// var params = {
// ...this.page,
// orderCode: this.detail.orderCode
// }
goodsOrderDetail({ orderCode: this.detail.orderCode }).then(res => {
// console.log(res)
this.detail = res
// this.detail = Object.assign(this.detail, res)
// this.detail = res.list[0]
})
}
}
......
......@@ -72,7 +72,9 @@
<span> {{ scope.row.expenseCategoryValue }}</span>
<span v-if="scope.row.expenseCategoryValue">
{{ scope.row.expenseCategoryCalculateType==3?'' :'%' }}</span>
<span v-else-if="scope.row.targetType==4">收入-流量方分润-服务商分润-产品成本-安装成本</span>
<span
v-else-if="scope.row.targetType==4">收入-流量方分润-服务商分润-其他费用({{ rulesTestParams.goodsTypeGroupRule.goodsCostFlag=='Y'?'':'不' }}包含成本)</span>
<!-- <span v-else-if="scope.row.targetType==4">收入-流量方分润-服务商分润-产品成本-安装成本</span> -->
<span v-else>--</span>
</template>
</el-table-column>
......
......@@ -397,7 +397,7 @@ export default {
// goodsTypeGroupRules = goodsTypeGroupRules.sort(compare('groupType'))
goodsTypeGroupRules && goodsTypeGroupRules.forEach((item, index) => {
this.editableTabs[index] = {
title: index ? '特殊商品' + index : '全部品类',
title: index ? '特殊品类' + index : '全部品类',
name: (index + 1).toString(),
testFlag: item.testFlag == 'Y' ? 'Y' : 'N',
groupDivisionRuleId: item.testFlag == 'Y' ? '' : (item.groupDivisionRuleId || '')
......
......@@ -138,10 +138,10 @@ export default {
oParams.appId = 'wx06d1198e751435d1'
// oParams.appId = 'wx902f0b9c4b2c669d'
oParams.qrcodeType = 'QR_WXA_UNLIMIT'
// oParams.path = 'packagesPayment/pages/QRPayment/QRPayment'
// oParams.scene = `merchantId=${this.info.yqMerchantId}&merchantName=${this.info.yqMerchantName}`
oParams.path = 'pages/webpage/webpage'
oParams.scene = `jumpLink=https://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/`
oParams.path = 'packagesPayment/pages/QRPayment/QRPayment'
oParams.scene = `merchantId=${this.info.yqMerchantId}&merchantName=${this.info.yqMerchantName}`
// oParams.path = 'pages/webpage/webpage'
// oParams.scene = `jumpLink=https://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/`
createWeappQrcode(oParams).then(res => {
this.qrCodeURL = res
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!