Commit c40cffda by 张立顺

fix bug修复

1 parent a08e4685
...@@ -516,7 +516,7 @@ Page({ ...@@ -516,7 +516,7 @@ Page({
let total = item.price * item.count; let total = item.price * item.count;
item.totalPrice = wx.$util.decimal(total, 2); item.totalPrice = wx.$util.decimal(total, 2);
}); });
e.subOrderList=e.subOrderList.concat(e.packageGoodsList) e.subOrderList = e.subOrderList.concat(e.packageGoodsList)
// e.subOrderList = e.subOrderList.filter(item => item.id) // e.subOrderList = e.subOrderList.filter(item => item.id)
// 处理显示订单右上角文字 // 处理显示订单右上角文字
......
...@@ -25,7 +25,8 @@ Component({ ...@@ -25,7 +25,8 @@ Component({
itemFormObj: [ itemFormObj: [
{ {
label: '交易参考号', label: '交易参考号',
prop: 'outTradeNo', // prop: 'outTradeNo',
prop: 'tradeNo',
type: 'copy' type: 'copy'
}, { }, {
label: '支付时间', label: '支付时间',
...@@ -141,8 +142,8 @@ Component({ ...@@ -141,8 +142,8 @@ Component({
thisPage.setData({ thisPage.setData({
showOrderpop: false showOrderpop: false
}) })
let { accountDate, outTradeNo, totalFee, filmOrder } = arr[0] let { accountDate, outTradeNo, totalFee, filmOrder,tradeNo } = arr[0]
arr?.length && this.triggerEvent('success', { accountDate, outTradeNo, totalFee, filmOrder }) arr?.length && this.triggerEvent('success', { accountDate, outTradeNo, totalFee,tradeNo, filmOrder })
}, },
cancel() { cancel() {
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
......
...@@ -133,8 +133,8 @@ Page({ ...@@ -133,8 +133,8 @@ Page({
this.setData({ this.setData({
["orderObj.employeeName"]: "", ["orderObj.employeeName"]: "",
["orderObj.userId"]: "", ["orderObj.userId"]: "",
["orderObj.merchantId"]: "", // ["orderObj.merchantId"]: "",
["orderObj.merchantName"]: "", // ["orderObj.merchantName"]: "",
}); });
// wx.$router.go("tabWorkOrder.additionRecordOrder", { // wx.$router.go("tabWorkOrder.additionRecordOrder", {
// wx.$router.go("tabWorkOrder.createOrder",); // wx.$router.go("tabWorkOrder.createOrder",);
...@@ -1267,7 +1267,7 @@ Page({ ...@@ -1267,7 +1267,7 @@ Page({
// console.log() // console.log()
// 是订单补录跳转进来的 // 是订单补录跳转进来的
if (res?.orderCreateType == "additionRecordOrder") { if (res?.orderCreateType == "additionRecordOrder") {
let { outTradeNo, totalFee, accountDate, supplementId } = res; let { outTradeNo, totalFee, accountDate, supplementId, tradeNo } = res;
// console.log(options); // console.log(options);
// 如果是扫码进来的 // 如果是扫码进来的
if (supplementId) { if (supplementId) {
...@@ -1275,6 +1275,7 @@ Page({ ...@@ -1275,6 +1275,7 @@ Page({
} else { } else {
this.setData({ this.setData({
outTradeNo, outTradeNo,
tradeNo,
["orderObj.outTradeNo"]: outTradeNo, ["orderObj.outTradeNo"]: outTradeNo,
totalFee: totalFee, totalFee: totalFee,
accountDate, accountDate,
......
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
</view> </view>
</gl-cell> </gl-cell>
<!-- 错误订单补录 --> <!-- 错误订单补录 -->
<gl-cell border label="支付方式" valueAlign="right" labelStyle="margin-top:-40px" wx:if="{{ isErrorOrder || orderCreateType == 'additionRecordOrder'}}" cellHeight="{{ false }}" labelWidth="var(--fontSize152)"> <gl-cell border label="支付方式" valueAlign="right" labelStyle="margin-top:-40px" wx:if="{{ isErrorOrder }}" cellHeight="{{ false }}" labelWidth="var(--fontSize152)">
<view class="payType-box"> <view class="payType-box">
<block wx:for="{{ payTypeList }}" wx:key="index"> <block wx:for="{{ payTypeList }}" wx:key="index">
<!-- bindtap="changePayType" --> <!-- bindtap="changePayType" -->
...@@ -336,7 +336,7 @@ ...@@ -336,7 +336,7 @@
<view class="tipsadd" wx:if="{{showTips}}"> <view class="tipsadd" wx:if="{{showTips}}">
<image class=" tipsIcon" src="../../../images/tips.png" /> <image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText"> <view class="contentText">
<view>交易参考号:{{outTradeNo}}</view> <view>交易参考号:{{tradeNo}}</view>
<view>支付时间:{{accountDate}}</view> <view>支付时间:{{accountDate}}</view>
<view>支付金额:{{totalFee/100}}</view> <view>支付金额:{{totalFee/100}}</view>
</view> </view>
......
...@@ -903,11 +903,11 @@ Page({ ...@@ -903,11 +903,11 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function (res) {}, onReady: function (res) { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function (res) {}, onShow: function (res) { },
onRoute(res) { onRoute(res) {
if (res.scene) { if (res.scene) {
let { isAlreadyExistOrder } = this.data; let { isAlreadyExistOrder } = this.data;
...@@ -936,25 +936,25 @@ Page({ ...@@ -936,25 +936,25 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
onUnload: () => {}, onUnload: () => { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () {}, onUnload: function () { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {}, onShareAppMessage: function () { },
}); });
...@@ -994,24 +994,24 @@ Page({ ...@@ -994,24 +994,24 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () {}, onUnload: function () { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {}, onShareAppMessage: function () { },
}); });
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!