Commit 56c9cfa8 by 张立顺

fix bug

1 parent 76fae8fa
...@@ -84,9 +84,9 @@ Page({ ...@@ -84,9 +84,9 @@ Page({
tabTitleShow: false, tabTitleShow: false,
success: (res) => { success: (res) => {
// 跳转新增订单页面 并带特定参数 // 跳转新增订单页面 并带特定参数
let { orderInfo, selectType } = this.data; let { orderInfo, selectTypeOrder } = this.data;
console.log(item, "showSelectType"); console.log(item, "showSelectType");
if (selectType == 1) { if (selectTypeOrder == 1) {
wx.$router.go("tabWorkOrder.createOrder", { wx.$router.go("tabWorkOrder.createOrder", {
scene, scene,
...orderInfo, ...orderInfo,
......
...@@ -553,7 +553,7 @@ Page({ ...@@ -553,7 +553,7 @@ Page({
let userInfo = wx.$util.getUserInfo(); let userInfo = wx.$util.getUserInfo();
// 校验是否填写昨日日报 // 校验是否填写昨日日报
let staffCheck = await this.staffDailyReportMerchantValid(userInfo); let staffCheck = await this.staffDailyReportMerchantValid(userInfo);
if (staffCheck) return false;; if (staffCheck) return false;
this.checkPhoneUseConfig(); this.checkPhoneUseConfig();
let { let {
orderObj, orderObj,
...@@ -619,6 +619,8 @@ Page({ ...@@ -619,6 +619,8 @@ Page({
delete orderObj.customer; delete orderObj.customer;
delete orderObj?.packageGoodsList; delete orderObj?.packageGoodsList;
delete orderObj?.subOrderList; delete orderObj?.subOrderList;
console.log(orderObj, "orderObj");
// return;
wx.$util.showLoading("提交中..."); wx.$util.showLoading("提交中...");
// this.showLoading() // this.showLoading()
api.notUpgradeOrder({ json: JSON.stringify(orderObj) }).then((res) => { api.notUpgradeOrder({ json: JSON.stringify(orderObj) }).then((res) => {
...@@ -824,7 +826,6 @@ Page({ ...@@ -824,7 +826,6 @@ Page({
this.showToast(message); this.showToast(message);
} }
}); });
} }
}, },
setOrderObj(options) { setOrderObj(options) {
...@@ -846,7 +847,7 @@ Page({ ...@@ -846,7 +847,7 @@ Page({
console.log(orderObj); console.log(orderObj);
// 去除优惠券 参数 // 去除优惠券 参数
delete orderObj.couponName; // delete orderObj.couponName;
// 使用优惠券的merchantId 避免优惠券和店区不一致的情况 // 使用优惠券的merchantId 避免优惠券和店区不一致的情况
if (!orderObj.merchantId) if (!orderObj.merchantId)
orderObj.merchantId = orderObj.merchantCoupon.merchantId; orderObj.merchantId = orderObj.merchantCoupon.merchantId;
...@@ -878,7 +879,7 @@ Page({ ...@@ -878,7 +879,7 @@ Page({
} else { } else {
orderObj.orderSource = orderObj.orderSource; orderObj.orderSource = orderObj.orderSource;
} }
console.log(orderObj.customer, 'orderObj.customer'); console.log(orderObj.customer, "orderObj.customer");
if (!orderObj?.customer.customerSex) orderObj.customer.customerSex = 1; if (!orderObj?.customer.customerSex) orderObj.customer.customerSex = 1;
if (!orderObj?.customer.experienceFlag) if (!orderObj?.customer.experienceFlag)
orderObj.customer.experienceFlag = "N"; orderObj.customer.experienceFlag = "N";
...@@ -954,7 +955,7 @@ Page({ ...@@ -954,7 +955,7 @@ Page({
*/ */
onShow: function (res) { }, onShow: function (res) { },
onRoute(res) { onRoute(res) {
console.log(res, 'onroute'); console.log(res, "onroute");
if (res.scene) { if (res.scene) {
let { isAlreadyExistOrder } = this.data; let { isAlreadyExistOrder } = this.data;
res.returnFun = true; res.returnFun = true;
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
bindclick="showPopup" bindclick="showPopup"
data-show-name="selesBox" data-show-name="selesBox"
placeholder="点击选择" placeholder="点击选择"
disabled="{{ orderObj.orderSource == 5 }}"
> >
<block wx:if="{{ orderObj.merchantName && orderObj.employeeName }}"> <block wx:if="{{ orderObj.merchantName && orderObj.employeeName }}">
<view class="between"> <view class="between">
...@@ -135,6 +136,7 @@ ...@@ -135,6 +136,7 @@
data-index="{{ ind }}" data-index="{{ ind }}"
data-name="customer.customerName" data-name="customer.customerName"
always-embed always-embed
disabled="{{ orderObj.orderSource == 5 }}"
></input> ></input>
</gl-cell> </gl-cell>
<gl-cell border label="性别" valueAlign="right" labelWidth="var(--fontSize140)"> <gl-cell border label="性别" valueAlign="right" labelWidth="var(--fontSize140)">
...@@ -166,6 +168,7 @@ ...@@ -166,6 +168,7 @@
data-index="{{ ind }}" data-index="{{ ind }}"
data-name="customer.customerPhone" data-name="customer.customerPhone"
always-embed always-embed
disabled="{{ orderObj.orderSource == 5 }}"
></input> ></input>
</gl-cell> </gl-cell>
<gl-cell <gl-cell
...@@ -422,8 +425,8 @@ ...@@ -422,8 +425,8 @@
</block> </block>
</block> </block>
</view> </view>
<!-- required="{{ experienceFlag }}" requiredAfter --> <!-- required="{{ experienceFlag }}" requiredAfter -->
<gl-cell wx:if="{{experienceFlag}}" border label="是否体验" valueAlign="right" labelWidth="var(--fontSize140)"> <gl-cell wx:if="{{ experienceFlag }}" border label="是否体验" valueAlign="right" labelWidth="var(--fontSize140)">
<view class="gender-box"> <view class="gender-box">
<view class="block text-center {{ li.customer.experienceFlag=='Y'?'':'right' }}" /> <view class="block text-center {{ li.customer.experienceFlag=='Y'?'':'right' }}" />
<view <view
...@@ -440,7 +443,7 @@ ...@@ -440,7 +443,7 @@
>否</view> >否</view>
</view> </view>
</gl-cell> </gl-cell>
<view class="remarkCon" wx:if="{{ refusalReason }}" > <view class="remarkCon" wx:if="{{ refusalReason }}">
<view class="title"> <view class="title">
车主拒升理由 车主拒升理由
<text class="requiredStar" wx:if="{{ refusalReason }}">*</text> <text class="requiredStar" wx:if="{{ refusalReason }}">*</text>
...@@ -475,10 +478,10 @@ ...@@ -475,10 +478,10 @@
</view> </view>
</view> </view>
</block> </block>
<!-- 待根据不显示 --> <!-- 待根据不显示 -->
<view class="addBtn" bindtap="addUserItem" id="addBtn" wx:if="{{ notUpgradeOrderList.length < 10 && !orderObj.orderCode}}"> <view class="addBtn" bindtap="addUserItem" id="addBtn" wx:if="{{ notUpgradeOrderList.length < 10 && !orderObj.orderCode }}">
<!-- <image class="addIcon" src="../../images/addIcon.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" /> --> <!-- <image class="addIcon" src="../../images/addIcon.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" /> -->
<image class="addIcon" src="{{IMG_URL}}/miniProgram/iconBoldPlus.png" /> <image class="addIcon" src="{{ IMG_URL }}/miniProgram/iconBoldPlus.png" />
<text class="text">新增客户<text class="customerNum">(已有{{notUpgradeOrderList.length?notUpgradeOrderList.length:''}}个)</text></text> <text class="text">新增客户<text class="customerNum">(已有{{notUpgradeOrderList.length?notUpgradeOrderList.length:''}}个)</text></text>
</view> </view>
</scroll-view> </scroll-view>
...@@ -512,8 +515,8 @@ ...@@ -512,8 +515,8 @@
bindconfirm="chooseGoods" bindconfirm="chooseGoods"
goodsData="{{ goodsData }}" goodsData="{{ goodsData }}"
chooseGoodsList="{{ notUpgradeOrderList[selectCustomIndex].subOrderList || [] }}" chooseGoodsList="{{ notUpgradeOrderList[selectCustomIndex].subOrderList || [] }}"
isSolarFilm="{{ true }}" isSolarFilm="{{ true }}"
baseConfigData="{{baseConfigData}}" baseConfigData="{{ baseConfigData }}"
/> />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" /> <customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" />
<sub-shop-merchant <sub-shop-merchant
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!