Commit ee2e73f1 by wangzhihui

Merge branch 'SAAS+V4.53.0-0528' of http://192.168.3.233:8090/saas_plus/dj-car-b…

…outique-work-wechat into SAAS+V4.53.0-0528
2 parents f3c6150c 6ef90907
......@@ -743,9 +743,9 @@ Page({
// return this.showToast('商品无配置部位属性,请联系总部运营配置上架')
// }
// }
wx.showLoading({
title: '加载中'
})
// wx.showLoading({
// title: '加载中'
// })
// 请求中就不给再重复提交了
if (submitStatus) return;
......@@ -1202,7 +1202,7 @@ Page({
message
} = result;
if (code == 0) {
data.forEach(val => {
//单商品
if (val.goodsFlag == 1) {
......@@ -1283,7 +1283,7 @@ Page({
});
if (first) this.getChooseList();
} else {
wx.$util.showToast(message);
}
})
......
......@@ -611,6 +611,14 @@ Page({
orderObj.oprBy = orderObj.staffUuid
orderObj.sceneType = 0
orderObj.brandDataList = carBandList
// 如果是调休,店端总未触客数&实际售前触客数默认值为空默认赋值为0
if (orderObj.onBreak == 'Y') {
orderObj.brandDataList.forEach(item => {
item.notDeliveryCount = item.notDeliveryCount || 0
item.equityToShopCount = item.equityToShopCount || 0
})
}
// orderObj.reportType = reportType
// console.log(orderObj, 'orderObj')
wx.$util.showLoading()
......@@ -760,7 +768,7 @@ Page({
let { name } = e.currentTarget.dataset
// let { name } = e.detail
const min = 0 // 默认最小值 0
const max = 100 // 默认最大值
const max = name == 'cancelOrderMoney' ? 9999999 : 100 // 默认最大值
// console.log(currentConfig, 'currentConfig')
this.setData({
......@@ -769,12 +777,18 @@ Page({
let numValue = value
if (name == 'cancelOrderMoney') {
let [number, decimal] = value.toString().split('.')
let oldNumber = number
// console.log(value, '222')
// console.log(decimal == '', 'decimal')
if (decimal != undefined) {
decimal = decimal.substring(0, 2)
number += `.${decimal}`
value = number
if (oldNumber < max) {
return this.setData({
[`orderObj.${name}`]: value.toString()
})
}
}
if (decimal == '') {
console.log(value)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!