Commit dc81208e by 张立顺

fix 线上问题

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