Commit 50adf434 by cen

fix: 补录

1 parent 354ef210
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
</view> </view>
</template> </template>
<template #content> <template #content>
<view class="pos-popup"> <view class="pos-popup" v-if="orderInfo">
<view class="price">¥{{ orderInfo.total_price }}</view> <view class="price">¥{{ orderInfo.total_price }}</view>
<image class="qrcode" :src="orderInfo.selectPayType == 1 ? wxqrcode : posQrCode"></image> <image class="qrcode" :src="orderInfo.selectPayType == 1 ? wxqrcode : posQrCode"></image>
<view class="level-1-tips">{{ orderInfo.selectPayType == 1 ? '请让客户打开微信扫描上方付款码进行支付' : '请使用POS机扫描此码,再向客户收款' }}</view> <view class="level-1-tips">{{ orderInfo.selectPayType == 1 ? '请让客户打开微信扫描上方付款码进行支付' : '请使用POS机扫描此码,再向客户收款' }}</view>
...@@ -230,7 +230,7 @@ export default { ...@@ -230,7 +230,7 @@ export default {
console.log('接收到的交易数据:', newVal) console.log('接收到的交易数据:', newVal)
console.log(this.transmissionOfData, 'this.transmissionOfData') console.log(this.transmissionOfData, 'this.transmissionOfData')
this.getPositionList() this.getPositionList()
// 250819144103724 // "this.transmissionOfData.orderCode"
this.getDetail(this.transmissionOfData.orderCode) this.getDetail(this.transmissionOfData.orderCode)
this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss') this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
} }
...@@ -258,7 +258,7 @@ export default { ...@@ -258,7 +258,7 @@ export default {
return item ? item.replace(reg, ' ') : '' return item ? item.replace(reg, ' ') : ''
}, },
async getDetail(orderCode) { async getDetail(orderCode) {
// console.log(orderCode) console.log(orderCode)
let _this = this let _this = this
uni.$api.boutiqueApi uni.$api.boutiqueApi
.getPackageGoodsDetail({ .getPackageGoodsDetail({
...@@ -320,6 +320,7 @@ export default { ...@@ -320,6 +320,7 @@ export default {
data.carType = `${data.customer.carBrand || ''}-${data.customer.carChildsBrandName || ''}-${data.customer.carSeriesName || ''}` data.carType = `${data.customer.carBrand || ''}-${data.customer.carChildsBrandName || ''}-${data.customer.carSeriesName || ''}`
} }
_this.orderInfo = data _this.orderInfo = data
console.log('data', _this.orderInfo)
_this.flag = true _this.flag = true
_this.warrantyCardList = warrantyCardList _this.warrantyCardList = warrantyCardList
// 校验是否显示二级流量方 // 校验是否显示二级流量方
......
...@@ -398,7 +398,7 @@ export default { ...@@ -398,7 +398,7 @@ export default {
title: '保存成功', title: '保存成功',
icon: 'success' icon: 'success'
}) })
this.$emit('jump', 'ConfirmOrder', res) this.$emit('jump', orderCreateType == 'supplementOrder' ? 'OrderDetail' : 'ConfirmOrder', res)
} }
}, },
// 计算所有产品的总价 // 计算所有产品的总价
......
...@@ -243,6 +243,23 @@ export default { ...@@ -243,6 +243,23 @@ export default {
default: () => ({}) default: () => ({})
} }
}, },
watch: {
transmissionOfData: {
async handler(newVal) {
if (newVal) {
console.log('接收到的交易数据:', newVal)
console.log('this.orderObjData', this.transmissionOfData)
let baseConfigData = await this.setConfigInfo(getApp().globalData)
this.baseConfigData = baseConfigData
this.getDetail(this.transmissionOfData.orderCode)
const userInfo = uni.$storage.get('userInfo')
console.log(userInfo)
this.isMake = !(userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6 || userInfo?.loginRole == 7)
}
},
immediate: true
}
},
data() { data() {
return { return {
...order_mixins.data, ...order_mixins.data,
...@@ -257,15 +274,7 @@ export default { ...@@ -257,15 +274,7 @@ export default {
selectDate: null selectDate: null
} }
}, },
async mounted() { async mounted() {},
console.log('this.orderObjData', this.transmissionOfData)
let baseConfigData = await this.setConfigInfo(getApp().globalData)
this.baseConfigData = baseConfigData
this.getDetail(this.transmissionOfData.orderCode)
const userInfo = uni.$storage.get('userInfo')
console.log(userInfo)
this.isMake = !(userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6 || userInfo?.loginRole == 7)
},
methods: { methods: {
replaceItemText(item) { replaceItemText(item) {
var reg = getRegExp(';~;', 'g') var reg = getRegExp(';~;', 'g')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!