Commit 56c9cfa8 by 张立顺

fix bug

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