Commit c9ceac10 by zhangxw

修改

1 parent ea4bf583
......@@ -147,7 +147,7 @@
.order-box {
background-color: #fdfdfd;
height: calc(100% - 104rpx - 104rpx - 52rpx - 20rpx);
height: calc(100% - 104rpx - 104rpx - 52rpx - 30rpx);
}
.list {
......
var priceFilter = function (num) {
// 处理金额分转元并补零
var pow = Math.pow(10, 2)
console.log((Math.round(num / 100 * pow) / pow).toFixed(2), '-------')
return (Math.round(num / 100 * pow) / pow).toFixed(2)
}
module.exports = {
......
......@@ -224,20 +224,19 @@ Page({
// 多商品切换商品 重新生成支付订单
changeGoods(e) {
if (time) clearInterval(time)
let { orderCode, orderPaySource, selectPayType, textAreaValue } = this.data
let { orderCode, orderPaySource, selectPayType, orderDetail } = this.data
let value = e?.detail || {}
let {accountName} = wx.$util.getUserInfo()
this.setData({
shopmallGoodsId: value.specialGoodsId
})
if (selectPayType == 2) return // 门店收款 切换商品无需创建订单
let params = {
subOrderCode: orderCode,
orderPaySource: orderPaySource, // 订单支付源 (1.正常付尾款,2关联尾款单,3未收款新增,4已收款补录)
shopmallGoodsId: value.specialGoodsId,
selectPayType: selectPayType, // 支付方式(1:线上微信支付,2:线下收款,3:POS机收款, 4:支付宝支付)
updatedBy: accountName,
remark: textAreaValue // 备注
subOrderCode: orderCode,
orderPaySource: orderPaySource, // 订单支付源 (1.正常付尾款,2关联尾款单,3未收款新增,4已收款补录)
shopmallGoodsId: value.specialGoodsId,
selectPayType: selectPayType == 2 ? 1 : selectPayType, // 支付方式(1:线上微信支付,2:线下收款,3:POS机收款, 4:支付宝支付) 选择门店收款时切换商品 以微信支付方式创建子订单(无交易流水号)
updatedBy: accountName,
remark: orderDetail?.remark // 备注
}
wx.$util.showLoading()
createPayOrderAPI(params).then(async res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!