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({ ...@@ -743,9 +743,9 @@ Page({
// return this.showToast('商品无配置部位属性,请联系总部运营配置上架') // return this.showToast('商品无配置部位属性,请联系总部运营配置上架')
// } // }
// } // }
wx.showLoading({ // wx.showLoading({
title: '加载中' // title: '加载中'
}) // })
// 请求中就不给再重复提交了 // 请求中就不给再重复提交了
if (submitStatus) return; if (submitStatus) return;
...@@ -1202,7 +1202,7 @@ Page({ ...@@ -1202,7 +1202,7 @@ Page({
message message
} = result; } = result;
if (code == 0) { if (code == 0) {
data.forEach(val => { data.forEach(val => {
//单商品 //单商品
if (val.goodsFlag == 1) { if (val.goodsFlag == 1) {
...@@ -1283,7 +1283,7 @@ Page({ ...@@ -1283,7 +1283,7 @@ Page({
}); });
if (first) this.getChooseList(); if (first) this.getChooseList();
} else { } else {
wx.$util.showToast(message); wx.$util.showToast(message);
} }
}) })
......
...@@ -611,6 +611,14 @@ Page({ ...@@ -611,6 +611,14 @@ Page({
orderObj.oprBy = orderObj.staffUuid orderObj.oprBy = orderObj.staffUuid
orderObj.sceneType = 0 orderObj.sceneType = 0
orderObj.brandDataList = carBandList 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 // orderObj.reportType = reportType
// console.log(orderObj, 'orderObj') // console.log(orderObj, 'orderObj')
wx.$util.showLoading() wx.$util.showLoading()
...@@ -760,7 +768,7 @@ Page({ ...@@ -760,7 +768,7 @@ Page({
let { name } = e.currentTarget.dataset let { name } = e.currentTarget.dataset
// let { name } = e.detail // let { name } = e.detail
const min = 0 // 默认最小值 0 const min = 0 // 默认最小值 0
const max = 100 // 默认最大值 const max = name == 'cancelOrderMoney' ? 9999999 : 100 // 默认最大值
// console.log(currentConfig, 'currentConfig') // console.log(currentConfig, 'currentConfig')
this.setData({ this.setData({
...@@ -769,12 +777,18 @@ Page({ ...@@ -769,12 +777,18 @@ Page({
let numValue = value let numValue = value
if (name == 'cancelOrderMoney') { if (name == 'cancelOrderMoney') {
let [number, decimal] = value.toString().split('.') let [number, decimal] = value.toString().split('.')
let oldNumber = number
// console.log(value, '222') // console.log(value, '222')
// console.log(decimal == '', 'decimal') // console.log(decimal == '', 'decimal')
if (decimal != undefined) { if (decimal != undefined) {
decimal = decimal.substring(0, 2) decimal = decimal.substring(0, 2)
number += `.${decimal}` number += `.${decimal}`
value = number value = number
if (oldNumber < max) {
return this.setData({
[`orderObj.${name}`]: value.toString()
})
}
} }
if (decimal == '') { if (decimal == '') {
console.log(value) console.log(value)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!