Commit 45f5e37f by 张立顺

Merge branch 'dev_v4.31.0_1031' of http://192.168.3.233:8090/saas_plus/dj-car-bo…

…utique-work-wechat into dev_v4.31.0_1031
2 parents a1592499 4304e368
......@@ -355,7 +355,7 @@ Component({
if (e.id == orderObj.customerCouponId) {
e.active = true
couponName = e.couponName
id = e.couponInfo.id
id = e.id
key = 'customerCouponId'
}
})
......
......@@ -67,10 +67,10 @@ Component({
},
async getMerchantList() {
let {
userInfo,
type,
singleSeller
} = this.data
let userInfo = wx.$util.getUserInfo()
// console.log('type', type)
let thisPage = wx.$router.getPageInstance()
// console.log(thisPage.data)
......
......@@ -110,6 +110,7 @@ page ::-webkit-scrollbar {
.conTitle_tips {
color: #5A5E66;
font-size: 22rpx;
font-weight: 400;
}
.content {
......
......@@ -499,7 +499,7 @@ Page({
if (apiName == 'createPrerecordedOrder') {
// 预录建档跳转到预约列表
wx.$refresh = true
wx.$router.redirectTo('tabDate.index')
wx.$router.go('pages.tabDateIndex')
wx.$util.pointRecord(30)
} else {
wx.$router.back(page => {
......@@ -1053,6 +1053,9 @@ Page({
if (res.associateOrderCode) {
tipsProps.showTips = true
tipsProps.tipsText = '原订单录入信息有误,请重新提交正确的订单信息。'
} else if (res.orderCode || res.againOrder) {
// 以建档(预约列表)/待跟进工单不可建档
isAlreadyExistOrder = true
}
this.setData({
tipsProps,
......
......@@ -506,7 +506,7 @@
</view> -->
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
<view class="btns-con">
<view class="save text-center {{ isErrorOrder || isAlreadyExistOrder ?'disabled':'' }}" bindtap="submit" data-save>保存</view>
<view class="save text-center {{ isErrorOrder || isAlreadyExistOrder ?'disabled':'' }}" bindtap="submit" data-save>建档</view>
<view class="confirm text-center" bindtap="submit">直接下单</view>
</view>
</view>
......
......@@ -110,6 +110,7 @@ Page({
},
addUserItem() {
let { notUpgradeOrderList, copyGoodsData } = this.data
if (notUpgradeOrderList.length >= 10) return
notUpgradeOrderList.push({
customer: {
customerName: '',
......
......@@ -406,7 +406,7 @@ Page({
if (apiName == 'createPrerecordedOrder') {
// 预录建档跳转到预约列表
wx.$refresh = true
wx.$router.redirectTo('tabDate.index')
wx.$router.go('pages.tabDateIndex')
wx.$util.pointRecord(30)
} else {
wx.$router.back(page => {
......@@ -896,6 +896,9 @@ Page({
if (res.associateOrderCode) {
tipsProps.showTips = true
tipsProps.tipsText = '原订单录入信息有误,请重新提交正确的订单信息。'
} else if (res.orderCode || res.againOrder) {
// 以建档(预约列表)/待跟进工单不可建档
isAlreadyExistOrder = true
}
this.setData({
tipsProps,
......
......@@ -323,7 +323,7 @@
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
<view class="btns-con">
<view class="save text-center {{ isErrorOrder || isAlreadyExistOrder ?'disabled':'' }}" bindtap="submit" data-save>保存</view>
<view class="save text-center {{ isErrorOrder || isAlreadyExistOrder ?'disabled':'' }}" bindtap="submit" data-save>建档</view>
<view class="confirm text-center" bindtap="submit">直接下单</view>
</view>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!