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