Commit d724a9a7 by 李伟康

fix 修复BUG

1 parent fa4c4855
...@@ -123,6 +123,7 @@ Page({ ...@@ -123,6 +123,7 @@ Page({
}) })
if (code == 0) { if (code == 0) {
wx.hideLoading() wx.hideLoading()
if (data.customerInfo && data.customerInfo.carPrice) data.customerInfo.carPrice = this.truncateDecimal(NP.times(data.customerInfo.carPrice, 0.01))
if (data.records && data.records.length) { if (data.records && data.records.length) {
data.records.map(e => { data.records.map(e => {
let createdDate = new Date(e.createdDate) let createdDate = new Date(e.createdDate)
...@@ -135,15 +136,16 @@ Page({ ...@@ -135,15 +136,16 @@ Page({
e.orderTime = new Date(e.orderTime).format(TimeFormat) e.orderTime = new Date(e.orderTime).format(TimeFormat)
e.totalPrice = this.truncateDecimal(e.totalPrice || 0) e.totalPrice = this.truncateDecimal(e.totalPrice || 0)
if (e.payOrder && e.payOrder.successDate) e.successDate = new Date(e.payOrder.successDate).format(TimeFormat) if (e.payOrder && e.payOrder.successDate) e.successDate = new Date(e.payOrder.successDate).format(TimeFormat)
e.subOrderList?.map(x =>{ e.subOrderList?.map(x => {
x.totalPrice = this.truncateDecimal(x.totalPrice || 0) x.totalPrice = this.truncateDecimal(x.totalPrice || 0)
}) })
}) })
data.vqOrders?.map(e => { data.vqOrders?.map(e => {
if (e.payTime) e.payTime = new Date(e.payTime).format(TimeFormat) if (e.payTime) e.payTime = new Date(e.payTime).format(TimeFormat)
if (e.createdTime) e.createdTime = new Date(e.createdTime).format(TimeFormat)
e.quotedPriceUpdate = this.truncateDecimal(NP.times(e.quotedPriceUpdate || 0, 0.01)) e.quotedPriceUpdate = this.truncateDecimal(NP.times(e.quotedPriceUpdate || 0, 0.01))
e.vdQuotationGoodsList?.map(x => { e.vdQuotationGoodsList?.map(x => {
if(x.goodsPrice) x.goodsPrice = this.truncateDecimal(NP.times(x.goodsPrice, 0.01)) if (x.goodsPrice) x.goodsPrice = this.truncateDecimal(NP.times(x.goodsPrice, 0.01))
}) })
}) })
this.setData({ this.setData({
......
...@@ -28,6 +28,10 @@ Component({ ...@@ -28,6 +28,10 @@ Component({
}, },
{ {
label: '工单时间', label: '工单时间',
key: 'createdTime'
},
{
label: '支付时间',
key: 'payTime' key: 'payTime'
}, },
], ],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!