Commit 60fb2a61 by zhangxw

精品升级补录订单 从客户档案选择客户带有太阳膜商品 提交工单时添加校验

1 parent 125e5ca3
...@@ -559,7 +559,8 @@ Page({ ...@@ -559,7 +559,8 @@ Page({
number: e.count, number: e.count,
// merchantGoodsId: e.id // merchantGoodsId: e.id
// merchantGoodsId: e.merchantGoodsId // merchantGoodsId: e.merchantGoodsId
merchantGoodsId: e.id || e.merchantGoodsId merchantGoodsId: e.id || e.merchantGoodsId,
upgradeGoodsType: e.upgradeGoodsType // 商品分类
} }
if (e.price < e.shopMinPrice) priceDisabled = false if (e.price < e.shopMinPrice) priceDisabled = false
subOrderList.push(obj) subOrderList.push(obj)
...@@ -613,7 +614,11 @@ Page({ ...@@ -613,7 +614,11 @@ Page({
} }
console.log(orderObj) console.log(orderObj)
// return // return
// 校验商品类型 精品补录 出现太阳膜商品
if (this.data.filmOrder == 1) {
let obj = orderObj?.subOrderList?.find(v => v.upgradeGoodsType == 1) || {}
if (Object.keys(obj).length) return this.showToast('客户档案不匹配补单产品类型')
}
this.showLoading('提交中...') this.showLoading('提交中...')
this.setData({ this.setData({
disabled: true disabled: true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!