Commit 50adf434 by cen

fix: 补录

1 parent 354ef210
......@@ -194,7 +194,7 @@
</view>
</template>
<template #content>
<view class="pos-popup">
<view class="pos-popup" v-if="orderInfo">
<view class="price">¥{{ orderInfo.total_price }}</view>
<image class="qrcode" :src="orderInfo.selectPayType == 1 ? wxqrcode : posQrCode"></image>
<view class="level-1-tips">{{ orderInfo.selectPayType == 1 ? '请让客户打开微信扫描上方付款码进行支付' : '请使用POS机扫描此码,再向客户收款' }}</view>
......@@ -230,7 +230,7 @@ export default {
console.log('接收到的交易数据:', newVal)
console.log(this.transmissionOfData, 'this.transmissionOfData')
this.getPositionList()
// 250819144103724
// "this.transmissionOfData.orderCode"
this.getDetail(this.transmissionOfData.orderCode)
this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
}
......@@ -258,7 +258,7 @@ export default {
return item ? item.replace(reg, ' ') : ''
},
async getDetail(orderCode) {
// console.log(orderCode)
console.log(orderCode)
let _this = this
uni.$api.boutiqueApi
.getPackageGoodsDetail({
......@@ -320,6 +320,7 @@ export default {
data.carType = `${data.customer.carBrand || ''}-${data.customer.carChildsBrandName || ''}-${data.customer.carSeriesName || ''}`
}
_this.orderInfo = data
console.log('data', _this.orderInfo)
_this.flag = true
_this.warrantyCardList = warrantyCardList
// 校验是否显示二级流量方
......
......@@ -398,7 +398,7 @@ export default {
title: '保存成功',
icon: 'success'
})
this.$emit('jump', 'ConfirmOrder', res)
this.$emit('jump', orderCreateType == 'supplementOrder' ? 'OrderDetail' : 'ConfirmOrder', res)
}
},
// 计算所有产品的总价
......
......@@ -243,6 +243,23 @@ export 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() {
return {
...order_mixins.data,
......@@ -257,15 +274,7 @@ export default {
selectDate: null
}
},
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)
},
async mounted() {},
methods: {
replaceItemText(item) {
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!