Commit df07e2dc by 岑成威

fix:战败

1 parent 78038adb
......@@ -100,6 +100,13 @@ Component({
lifetimes: {
async attached() {
// 会员权益简版 mode=1:observer 只在 mode!=1 时注入 first/formRule,这里补上否则校验规则为空、客户来源等不生效
if (this.properties.mode == 1) {
this.setData({
first: data.firstObjSimple,
formRule: data.formRuleSimple
})
}
this.getEmployee()
this.getShopMerchantPointConfig()
await this.prefillRecentScene()
......
......@@ -64,6 +64,8 @@ Page({
carSeriesId: "",
carSeriesName: "",
salesType: 0,
// GLForm 客户来源展示用 labelName;仅有 salesType 无 label 时会显示「请选择」
salesTypeLabel: constantList.salesTypeList[0].optionLabel,
},
mode: 1,
quotationGoodsList: [], //权益商品列表
......@@ -1977,6 +1979,15 @@ Page({
if ([0, 1, 2].includes(salesTypeNum)) {
owner.salesType = salesTypeNum;
}
const st = Number(owner.salesType);
const sid = [0, 1, 2].includes(st) ? st : 0;
const salesMatch = constantList.salesTypeList.find(
(item) => item.optionId === sid
);
owner.salesType = sid;
owner.salesTypeLabel =
(salesMatch && salesMatch.optionLabel) ||
constantList.salesTypeList[0].optionLabel;
this.setData({
owner,
orderInfo,
......
import { ImgUrl } from '~/config'
import { getSelectOrderGoodsList, defeatOrderCreate } from '../../api'
import { getSelectOrderGoodsList,quotationGoodsList, defeatOrderCreate } from '../../api'
import commonApi from '~/api/api'
import NP from 'number-precision'
import { checkStudyTask, checkAbnormalOrder } from '~/store/ModalToQueueControl'
......@@ -297,13 +297,11 @@ Page({
return
}
wx.showLoading({ title: '加载中...' })
getSelectOrderGoodsList({
merchantId: default4SStoreInfo.merchantId,
suitCarPrice: '',
seriesId: '',
sceneType: 0,
baseSceneCode
})
quotationGoodsList({
merchantId: default4SStoreInfo.merchantId,
suitCarPrice: '',
baseSceneCode
})
.then(result => {
wx.hideLoading()
let { code, data, message } = result
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!