Commit 2aee262b by 张立顺

Merge branch 'saas+v5.8.0' of http://192.168.3.233:8090/saas_plus/dj-car-boutiqu…

…e-work-wechat into saas+v5.8.0
2 parents c970ee23 df07e2dc
...@@ -100,6 +100,13 @@ Component({ ...@@ -100,6 +100,13 @@ Component({
lifetimes: { lifetimes: {
async attached() { 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.getEmployee()
this.getShopMerchantPointConfig() this.getShopMerchantPointConfig()
await this.prefillRecentScene() await this.prefillRecentScene()
......
...@@ -64,6 +64,8 @@ Page({ ...@@ -64,6 +64,8 @@ Page({
carSeriesId: "", carSeriesId: "",
carSeriesName: "", carSeriesName: "",
salesType: 0, salesType: 0,
// GLForm 客户来源展示用 labelName;仅有 salesType 无 label 时会显示「请选择」
salesTypeLabel: constantList.salesTypeList[0].optionLabel,
}, },
mode: 1, mode: 1,
quotationGoodsList: [], //权益商品列表 quotationGoodsList: [], //权益商品列表
...@@ -1963,9 +1965,10 @@ Page({ ...@@ -1963,9 +1965,10 @@ Page({
owner.hobby = customerInfo.customerHobby; owner.hobby = customerInfo.customerHobby;
owner.companion = customerInfo.customerCompanion; owner.companion = customerInfo.customerCompanion;
owner.certificateNo = customerInfo.customerCertificateNo || ""; owner.certificateNo = customerInfo.customerCertificateNo || "";
const { id: _customerInfoId, ...customerInfoRest } = customerInfo;
owner = { owner = {
...owner, ...owner,
...customerInfo, ...customerInfoRest,
}; };
if (customerInfo.salesUuid) { if (customerInfo.salesUuid) {
orderInfo.referrerId = customerInfo.salesUuid; orderInfo.referrerId = customerInfo.salesUuid;
...@@ -1976,6 +1979,15 @@ Page({ ...@@ -1976,6 +1979,15 @@ Page({
if ([0, 1, 2].includes(salesTypeNum)) { if ([0, 1, 2].includes(salesTypeNum)) {
owner.salesType = 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({ this.setData({
owner, owner,
orderInfo, orderInfo,
......
import { ImgUrl } from '~/config' import { ImgUrl } from '~/config'
import { getSelectOrderGoodsList, defeatOrderCreate } from '../../api' import { getSelectOrderGoodsList,quotationGoodsList, defeatOrderCreate } from '../../api'
import commonApi from '~/api/api' import commonApi from '~/api/api'
import NP from 'number-precision' import NP from 'number-precision'
import { checkStudyTask, checkAbnormalOrder } from '~/store/ModalToQueueControl' import { checkStudyTask, checkAbnormalOrder } from '~/store/ModalToQueueControl'
...@@ -297,13 +297,11 @@ Page({ ...@@ -297,13 +297,11 @@ Page({
return return
} }
wx.showLoading({ title: '加载中...' }) wx.showLoading({ title: '加载中...' })
getSelectOrderGoodsList({ quotationGoodsList({
merchantId: default4SStoreInfo.merchantId, merchantId: default4SStoreInfo.merchantId,
suitCarPrice: '', suitCarPrice: '',
seriesId: '', baseSceneCode
sceneType: 0, })
baseSceneCode
})
.then(result => { .then(result => {
wx.hideLoading() wx.hideLoading()
let { code, data, message } = result 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!