Commit 7aa2b9e1 by 前端

Merge branch 'SAAS+V4.41.1' into 'develop'

上线合并

See merge request !304
2 parents 836aa566 d1aebb35
......@@ -59,7 +59,7 @@ Component({
filmOrder: String // 下单类型
},
lifetimes: {
attached() {}
attached() { }
},
/**
* 组件的初始数据
......@@ -260,7 +260,9 @@ Component({
c.disabled = true
if (c.active) {
delete orderObj.merchantCouponId
orderObj.customerCouponId = e.merchantCoupon.id
if (orderObj.customerCouponId == null) {
orderObj.customerCouponId = e.merchantCoupon.id
}
thisPage.setData({
orderObj
})
......
......@@ -201,7 +201,7 @@ export default {
* 获取客户角色
*/
sparringRole(data) {
return api.post("dj.api.carboutique.ai.sparring.role.info.page", data,[],"/rop-dj-pairexc/router");
return api.post("dj.api.carboutique.ai.sparring.role.info.page", data,[],"/rop-dj-car-boutique/router");
},
/**
* 对练次数
......
......@@ -307,6 +307,7 @@ Page({
main_point,
roleInspiration,
round,
person_type,
} = this.data;
this.data.isSend = false;
let history_message = this.getHistory();
......@@ -320,6 +321,7 @@ Page({
const { uuid } = wx.$util.getUserInfo();
aiApi
.sparring({
person_type,
user_message,
history_message,
step,
......@@ -380,18 +382,18 @@ Page({
wx.$util.showToast("AI还未回复");
return;
}
// const audioBox = this.selectComponent("#audioBox");
// const list = audioBox.data.list;
// let isCan = true
// list.forEach((i) => {
// if(i.role == 2 && !i.suggestions_for_improvement) {
// isCan = false;
// }
// });
// if (!isCan) {
// wx.$util.showToast("回答分析生产中...");
// return;
// }
const audioBox = this.selectComponent("#audioBox");
const list = audioBox.data.list;
let isCan = true
list.forEach((i) => {
if(i.role == 2 && !i.suggestions_for_improvement) {
isCan = false;
}
});
if (!isCan) {
wx.$util.showToast("回答分析生产中...");
return;
}
const { speakLoading } = this.data;
if (speakLoading) return;
this.setData({
......@@ -476,10 +478,11 @@ Page({
timer = setInterval(() => {
duration++;
}, 1000);
const { sex, avatar, roleName, roleType, attackScript } = options;
const { sex, avatar, roleName, roleType, attackScript,person_type} = options;
this.getScriptList(attackScript);
this.setData({
avatar,
person_type,
sex,
roleName,
roleType,
......
<!--packageEquity/pages/aiCheck/chat/chat.wxml-->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="chat-bar" showBack="{{false}}" navStyle="{{navStyle}}">
<view class="navigation-title">
<view class="navigation-title-text text-hide">驻店延保</view>
......
......@@ -285,6 +285,9 @@ Component({
this.toBottom()
this.stopAudio()
},
/**
* @param index 1代表结束了,不播放音频
*/
setList(val, index) {
const {
list
......
......@@ -25,10 +25,10 @@ Page({
},
jump() {
const {selectedIndex,customeTypeList} = this.data
const {avatar,roleName,roleType,attackScript,roleDetail} = customeTypeList[selectedIndex]
const {avatar,roleName,roleType,attackScript,roleDetail,languageStyle} = customeTypeList[selectedIndex]
const sex = /性别:男/.test(roleDetail)?1:0
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/chat/chat?avatar=${avatar}&sex=${sex}&roleName=${roleName}&roleType=${roleType}&attackScript=${attackScript}`
url: `/packageEquity/pages/aiCheck/chat/chat?avatar=${avatar}&sex=${sex}&roleName=${roleName}&roleType=${roleType}&attackScript=${attackScript}&person_type=${languageStyle}`
})
this.setData({show:false})
},
......
......@@ -139,7 +139,10 @@ Component({
userInfo: {},
sufferReason: "",
// mode: 0,
showRendering: false
showRendering: false,
repealVisible: false,
repealReason: '',
repealId: ''
},
observers: {
mode: function (value) {
......@@ -331,9 +334,11 @@ Component({
);
}
item.isTouchMove = false;
// onlyRepeal 战败且为超管,或者是待报价、待支付的非融合都可撤销
item.onlyRepeal = ((item.orderStatus == 2 || item.orderStatus == 0) || (item.orderStatus == -1 && this.data.userInfo.isSuper)) && item.mode != 0;
item.repeal =
(item.orderStatus == 3 || item.orderStatus == 5) &&
item.mode != 0;
((item.orderStatus == 3 || item.orderStatus == 5) &&
item.mode != 0) || item.onlyRepeal;
return item;
});
this.setData({
......@@ -696,22 +701,51 @@ Component({
//返回角度 /Math.atan()返回数字的反正切值
return (360 * Math.atan(_Y / _X)) / (2 * Math.PI);
},
cancelRepeal() {
this.clearData()
},
textareaInput(e) {
let { value } = e.detail
this.setData({
repealReason: value
})
},
confirmRepeal() {
const {repealReason, repealId} = this.data
if(!repealReason){
wx.showToast({
title: '请填写撤销原因',
duration: 2000,
icon: 'none'
})
return
}
this.repeal(repealId, repealReason);
},
toConfirmReturanOrder(e) {
const { id } = e.currentTarget.dataset;
console.log(e.currentTarget.dataset, 'e.currentTarget.dataset')
const { id, repeal, status } = e.currentTarget.dataset;
let _this = this;
wx.showModal({
title: "",
content: "是否取撤销该工单?",
confirmText: "是",
confirmColor: "#347BFF",
cancelText: "否",
success(res) {
if (res.confirm) {
// _this.showLoading('取消中...')
_this.repeal(id);
}
},
});
if(repeal && status==-1) {
this.setData({
repealVisible: true,
repealId: id
})
}else{
wx.showModal({
title: "",
content: "是否取撤销该工单?",
confirmText: "是",
confirmColor: "#347BFF",
cancelText: "否",
success(res) {
if (res.confirm) {
// _this.showLoading('取消中...')
_this.repeal(id);
}
},
});
}
},
toCopyNumber(e) {
let { ordernum } = e.currentTarget.dataset;
......@@ -723,13 +757,16 @@ Component({
},
});
},
repeal(id) {
repeal(id , revokeReason) {
let _this = this;
cancelOrderById({
id,
}).then((_res_) => {
let params = {id}
if(revokeReason) {
params.revokeReason = revokeReason
}
cancelOrderById(params).then((_res_) => {
let { code, message } = _res_;
if (code == 0) {
_this.clearData()
wx.showToast({
title: "操作成功",
icon: "success",
......@@ -742,6 +779,13 @@ Component({
}
});
},
clearData() {
this.setData({
repealVisible: false,
repealId: '',
repealReason: ''
})
},
toshowErrorOrder(e) {
const { item } = e.currentTarget.dataset;
this.setData(
......
......@@ -225,11 +225,11 @@
</view>
</block>
</view>
<view wx:if="{{ item.payType==2 }}" data-id="{{ item.id }}" bind:tap="toConfirmReturanOrder" class="del">
<view wx:if="{{ item.payType==2 || item.onlyRepeal }}" data-id="{{ item.id }}" data-repeal="{{item.onlyRepeal}}" data-status="{{item.orderStatus}}" bind:tap="toConfirmReturanOrder" class="del">
<view>撤销</view>
<view>工单</view>
</view>
<view wx:if="{{ item.payType==1 }}" data-item="{{ item }}" bind:tap="toshowErrorOrder" class="del">
<view wx:if="{{ item.payType==1 && !item.onlyRepeal}}" data-item="{{ item }}" bind:tap="toshowErrorOrder" class="del">
<view>错误</view>
<view>工单</view>
</view>
......@@ -287,4 +287,24 @@
<view wx:if="{{ showRendering }}">
<order-screen show="{{ show_confirm }}" userInfo="{{ userInfo }}" navBarHeight="{{ navBarHeight }}" status="{{ orderStatus }}" bindconfirm="searchScreen" />
</view>
</page-container>
\ No newline at end of file
</page-container>
<view class="repeal-modal" wx:if="{{repealVisible}}">
<view class="repeal-wrap">
<view class="title">
撤销原因
</view>
<view class='textarea-wrap'>
<textarea class='textarea' maxlength="{{30}}" value='{{repealReason}}' focus="{{true}}"
placeholder="请填写撤销工单原因,最多30个字" bindinput='textareaInput' ></textarea>
</view>
<view class="footer">
<view class="btn" bindtap="cancelRepeal">
取消
</view>
<view class="btn" bindtap="confirmRepeal">
确定
</view>
</view>
</view>
</view>
\ No newline at end of file
......@@ -813,4 +813,67 @@
.text-hideWidth {
width: calc(100% - 36rpx);
}
\ No newline at end of file
}
.repeal-modal{
background: rgba(0, 0, 0, 0.6);
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: 999;
}
.repeal-wrap{
width: 622rpx;
height: 496rpx;
background: #FFFFFF;
border-radius: 20rpx;
transform: translate(-50%, -50%);
position: absolute;
top: 50%;
left: 50%;
padding: 40rpx 0 0;
box-sizing: border-box;
}
.repeal-wrap .title{
font-weight: 600;
font-size: 32rpx;
color: #222222;
text-align: center;
line-height: 48rpx;
}
.repeal-wrap .textarea-wrap{
margin: 40rpx 0;
padding: 0 40rpx ;
width: 100%;
box-sizing: border-box;
}
.repeal-wrap .textarea{
background: #F4F5F7;
width: 100%;
height: 224rpx;
padding: 24rpx;
box-sizing: border-box;
border-radius: 12rpx;
}
.repeal-wrap .footer{
position: absolute;
bottom: 0;
border-top: 2rpx solid #EBEDF0;
display: flex;
width: 100%;
}
.repeal-wrap .footer .btn{
height: 96rpx;
line-height: 96rpx;
flex: 1;
font-weight: 400;
font-size: 32rpx;
color: #333333;
text-align: center;
}
.repeal-wrap .footer .btn:last-child{
color: #3582EE;
border-left: 2rpx solid #EBEDF0;
}
<view class="main">
<view class="createData">
<view class="label">战败时间</view>
<calendar id="calender" class="calendar" allowSameDay shortcut bindselect="rangeSelect" rangeAll dateType="single" calenderColor="#347BFF" vertical minDate="2020-10-01" maxDate="{{ dateObj.maxDate }}" isComponents>
<view class="calendarItem text-center dateNum">
{{dateObj.todayShow}}
<image class="solidArrow" src="/tabIndex/images/arrSolid.png" />
</view>
</calendar>
</view>
<view class="wrapper">
<view class="cell">
<gl-cell border valueAlign="right" label="推荐人员" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" data-show-name="selesBox" placeholder="点击选择">
<view class="between">
<view class="start text-hide {{orderObj.employeeName?'':'placeholder-class'}}">{{orderObj.employeeName || '请选择'}}</view>
</view>
</gl-cell>
</view>
<view class="cell two-cell">
<gl-cell border valueAlign="right" label="车主姓名" titleBtn="客户档案" bindtitleClick="showCustomPop" data-index="{{ ind }}" requiredAfter labelWidth="var(--fontSize390)" required>
<input placeholder="点击输入" class="input" placeholder-class="placeholder-class" maxlength="16" value="{{ customer.customerName }}" bindinput="input" data-index="{{ ind }}" data-name="customer.customerName" always-embed></input>
</gl-cell>
<gl-cell border valueAlign="right" label="手机号" requiredAfter labelWidth="var(--fontSize140)" required>
<input placeholder="点击输入" class="input" type="number" maxlength="11" placeholder-class="placeholder-class" value="{{ customer.customerPhone }}" bindinput="input" data-index="{{ ind }}" data-name="customer.customerPhone" always-embed></input>
</gl-cell>
<gl-cell border valueAlign="right" label="客户来源" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" data-show-name="salesTypeShow" placeholder="点击选择">
<view class="between">
<view class="start text-hide">{{customer.salesType?'售后':'售前'}}</view>
</view>
</gl-cell>
</view>
<view class="cell cell-textarea">
<view class="label">战败原因</view>
<view class="inner">
<textarea class="cus-textarea" bindinput="intReason" value="{{deafeatReason}}" placeholder="请输入" placeholder-class="textarea-placeholder" maxlength="30"></textarea>
<text class="maxCount">{{deafeatReason.length || 0}}/30</text>
</view>
<view class="select-content">
<block wx:for="{{reasonList}}" wx:key="index">
<view bind:tap="toSelectReason" data-item="{{item}}" data-index="{{index}}" class="reason">
{{item.name}}
</view>
</block>
</view>
</view>
<view class="btn-group">
<view bind:tap="toSumbit" class="btn-class primary">立即提交</view>
<view bind:tap="toContinueSumbit" class="btn-class">提交后继续添加</view>
</view>
</view>
<view class="createData">
<view class="label">战败时间</view>
<calendar
id="calender"
class="calendar"
allowSameDay
shortcut
bindselect="rangeSelect"
rangeAll
dateType="single"
calenderColor="#347BFF"
vertical
minDate="2020-10-01"
maxDate="{{ dateObj.maxDate }}"
isComponents
>
<view class="calendarItem text-center dateNum">
{{dateObj.todayShow}}
<image class="solidArrow" src="/tabIndex/images/arrSolid.png" />
</view>
</calendar>
</view>
<view class="wrapper">
<view class="cell">
<gl-cell
border
valueAlign="right"
label="推荐人员"
requiredAfter
labelWidth="var(--fontSize140)"
required
haveArrow
bindclick="showPopup"
data-show-name="selesBox"
placeholder="点击选择"
>
<view class="between">
<view class="start text-hide {{ orderObj.employeeName?'':'placeholder-class' }}">{{orderObj.employeeName || '请选择'}}</view>
</view>
</gl-cell>
</view>
<view class="cell two-cell">
<gl-cell
border
valueAlign="right"
label="车主姓名"
titleBtn="客户档案"
bindtitleClick="showCustomPop"
data-index="{{ ind }}"
requiredAfter
labelWidth="var(--fontSize390)"
required
>
<input
placeholder="点击输入"
class="input"
placeholder-class="placeholder-class"
maxlength="16"
value="{{ customer.customerName }}"
bindinput="input"
data-index="{{ ind }}"
data-name="customer.customerName"
always-embed
></input>
</gl-cell>
<gl-cell border valueAlign="right" label="手机号" requiredAfter labelWidth="var(--fontSize140)" required>
<input
placeholder="点击输入"
class="input"
type="number"
maxlength="11"
placeholder-class="placeholder-class"
value="{{ customer.customerPhone }}"
bindinput="input"
data-index="{{ ind }}"
data-name="customer.customerPhone"
always-embed
></input>
</gl-cell>
<gl-cell
border
valueAlign="right"
label="客户来源"
requiredAfter
labelWidth="var(--fontSize140)"
required
haveArrow
bindclick="showPopup"
data-show-name="salesTypeShow"
placeholder="点击选择"
>
<view class="between">
<view class="start text-hide">{{customer.salesType?'售后':'售前'}}</view>
</view>
</gl-cell>
</view>
<view class="cell cell-textarea">
<view class="label">战败原因</view>
<view class="inner">
<textarea
class="cus-textarea"
bindinput="intReason"
value="{{ deafeatReason }}"
placeholder="请输入"
placeholder-class="textarea-placeholder"
maxlength="30"
></textarea>
<text class="maxCount">{{deafeatReason.length || 0}}/30</text>
</view>
<view class="select-content">
<block wx:for="{{ reasonList }}" wx:key="index">
<view bind:tap="toSelectReason" data-item="{{ item }}" data-index="{{ index }}" class="reason">{{item.name}}</view>
</block>
</view>
</view>
<view class="btn-group">
<view bind:tap="toSumbit" class="btn-class primary">立即提交</view>
<view bind:tap="toContinueSumbit" class="btn-class">提交后继续添加</view>
</view>
</view>
</view>
<merchant-seles show="{{ selesBox }}" title="选择合作门店" sub-title="选择销售顾问" orderObj="{{ orderObj }}" userInfo="{{ userInfo }}" singleSeller="{{ true }}" type="1" />
<merchant-seles
show="{{ selesBox }}"
title="选择合作门店"
sub-title="选择销售顾问"
orderObj="{{ orderObj }}"
userInfo="{{ userInfo }}"
singleSeller="{{ true }}"
scene="0"
type="1"
/>
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" />
<van-popup show="{{ salesTypeShow }}" position="bottom" bind:close="onCloseSaleType">
<van-picker show-toolbar columns="{{ saleTypesList }}" value-key="name" bind:cancel="onCloseSaleType" bind:confirm="onChangeSaleType" />
<van-picker
show-toolbar
columns="{{ saleTypesList }}"
value-key="name"
bind:cancel="onCloseSaleType"
bind:confirm="onChangeSaleType"
/>
</van-popup>
\ No newline at end of file
......@@ -2,7 +2,7 @@
var dateContrast = function (params) {
var oneDay = 24 * 60 * 60 * 1000 // 一天的毫秒数
var currentDate = getDate().getTime() // 当前日期
var targetDate = getDate(params + ' 00:00:00').getTime() // 给定的日期 零点的时间戳
var targetDate = getDate(params).getTime() - (8 * 60 * 60 * 1000) // 给定的日期 零点的时间戳
return targetDate < currentDate + oneDay
}
......@@ -10,9 +10,9 @@ var dateContrast = function (params) {
var isShowBtns = function (date) {
var oneDay = 24 * 60 * 60 * 1000 // 一天的毫秒数
var currentDate = getDate() // 当前日期
var targetDate = getDate(date + ' 00:00:00') // 给定的日期
var targetDate = getDate(date) // 给定的日期
// 计算给定日期与当前日期的时间差(以毫秒为单位)
var diffMilliseconds = targetDate - currentDate
var diffMilliseconds = (targetDate - 8 * 60 * 60 * 1000) - currentDate // targetDate是当天8点 减去8小时
// 计算时间差对应的天数
var diffDays = Math.floor(diffMilliseconds / oneDay)
return diffDays >= -1
......
......@@ -84,6 +84,7 @@ Page({
info = data
info.yqMerchantEnableFlag = data.yqMerchantEnableFlag == 'Y' ? true : false
info.shopMerchantEnableFlag = data.shopMerchantEnableFlag == 'Y' ? true : false
info.vinFlag = data.vinFlag == 1 ? true : false
console.log('data', data);
} else {
this.showToast(message)
......@@ -94,6 +95,23 @@ Page({
})
},
// 设置领券 车架号是否必填
changeCouponSwitch(e) {
let {
userInfo
} = this.data
if (userInfo.userType == 2) return
let {
value
} = e.detail
let {
target
} = e.currentTarget.dataset
this.setData({
[target]: value
})
},
//设置园区店集中接待电话
changeYQSwitch(e) {
console.log('e', e);
......@@ -256,6 +274,7 @@ Page({
}
config.yqMerchantEnableFlag = config.yqMerchantEnableFlag ? 'Y' : 'N'
config.shopMerchantEnableFlag = config.shopMerchantEnableFlag ? 'Y' : 'N'
config.vinFlag = config.vinFlag ? 1 : 0
let {
id,
createdBy,
......
......@@ -7,44 +7,61 @@ page {
}
.main {
padding: 0 var(--fontSize20) var(--fontSize136);
height: calc(100vh - env(safe-area-inset-bottom));
}
.isFullSucreen {
padding-bottom: var(--fontSize185) !important;
.content{
box-sizing: border-box;
height: calc(100% - var(--fontSize200));
}
.isFullSucreen-btn {
padding-bottom: 34px !important;
padding-bottom: constant(safe-area-inset-bottom) !important;
padding-bottom: env(safe-area-inset-bottom) !important;
}
.switch-v {
margin: var(--fontSize20);
padding: var(--fontSize20) var(--fontSize56) var(--fontSize20) var(--fontSize20);
background: #FFFFFF;
// box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a;
border-radius: var(--fontSize16);
box-sizing: border-box;
width: calc(710 / 750 * 100%);
width: calc(100% - var(--fontSize76));
height: var(--fontSize88);
background-color: #F7F8FA;
display: flex;
align-items: center;
justify-content: space-between;
// padding: 0 var(--fontSize40);
&.bg-white{
border-top: var(--fontSize2) solid #F5F5F5;
height: var(--fontSize128);
box-sizing: border-box;
width: 100%;
background-color: #FFFFFF;
padding: var(--fontSize24) var(--fontSize52) var(--fontSize24) var(--fontSize32);
}
}
.switch-v .label {
width: var(--fontSize308);
height: var(--fontSize40);
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: var(--fontSize28);
color: #292D33;
letter-spacing: 0;
.label-title{
display: inline-block;
width: var(--fontSize140);
text-align: left;
font-weight: 500;
}
.tips-text{
margin-left: var(--fontSize140);
font-size: var(--fontSize24);
color: #8F959E;
}
}
.switch-v switch {
padding-right: var(--fontSize52);
zoom: .8;
}
......@@ -86,16 +103,16 @@ page {
// border-radius: var(--fontSize16);
// padding: var(--fontSize32) 0 0 var(--fontSize12);
box-sizing: border-box;
width: calc(670 / 750 * 100%);
width: calc(100% - var(--fontSize40));
height: var(--fontSize124);
background: #F7F8FA;
border-radius: var(--fontSize16);
margin: var(--fontSize32) auto var(--fontSize20);
margin: var(--fontSize20);
}
.techicianInfoEdit {
box-sizing: border-box;
padding: 0 var(--fontSize24) 0 var(--fontSize32);
padding: 0 var(--fontSize12) 0 var(--fontSize32);
display: flex;
align-items: center;
justify-content: space-between;
......
<!--tabMine/pages/collectCoupons/collectCoupons.wxml-->
<view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="switch-v">
<view class="label">设置园区店集中接待电话</view>
<switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.yqMerchantEnableFlag}}" bindchange="changeYQSwitch" data-target="info.yqMerchantEnableFlag" />
</view>
<view class="setItem {{info.yqMerchantEnableFlag?'':'itemOP'}}">
<view class="item-label">{{info.yqMerchantName}}</view>
<view class="input-item techicianInfoEdit" wx:if="{{info.isEdit}}">
<input placeholder="接待联系人" class="input name" placeholder-class="placeholder-class" maxlength="16" value="{{ info.contactName }}" bindinput="input" data-name="info.contactName" always-embed></input>
<input placeholder="联系人手机号" class="input phone" type="number" maxlength="11" placeholder-class="placeholder-class" value="{{ info.contactPhoneNumber }}" bindinput="input" data-name="info.contactPhoneNumber" always-embed></input>
<view class="btn" bind:tap="submitContactInfo">确认</view>
</view>
<view class="input-item techicianInfo" wx:else>
<view class="left">
<view class="label">
<view class="name">{{info.contactName}}</view>
<scroll-view class="content" scroll-y enhanced="{{true}}" show-scrollbar="{{false}}">
<view class="switch-v bg-white">
<view class="label">
<view>
<text class="label-title">领券必填</text>
<text class="label-text">车架号是否必填</text>
</view>
<view class="phone">手机号 {{info.contactPhoneNumber}}</view>
<view class="tips-text">车主需要输入车架号后六位</view>
</view>
<image class="icon-edit" bind:tap="editYQInfo" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
<switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.vinFlag}}" bindchange="changeCouponSwitch" data-target="info.vinFlag" />
</view>
</view>
<view class="switch-v">
<view class="label">设置单店驻店接待电话</view>
<switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.shopMerchantEnableFlag}}" bindchange="change4sSwitch" data-target="info.shopMerchantEnableFlag" />
</view>
<block wx:for="{{info.shopMerchantConfigList}}" wx:key="index">
<view class="setItem {{info.shopMerchantEnableFlag?'':'itemOP'}}">
<view class="item-label">{{item.shopMerchantName}}</view>
<view class="input-item techicianInfoEdit" wx:if="{{item.isEdit}}">
<input placeholder="接待联系人" class="input name" placeholder-class="placeholder-class" maxlength="16" data-index="{{index}}" value="{{ item.contactName }}" bindinput="shopInput" data-name="contactName" always-embed></input>
<input placeholder="联系人手机号" class="input phone" type="number" maxlength="11" placeholder-class="placeholder-class" data-index="{{index}}" value="{{ item.contactPhoneNumber }}" bindinput="shopInput" data-name="contactPhoneNumber" always-embed></input>
<view class="btn" bind:tap="submitShopInfo" data-index="{{index}}">确认</view>
<view>
<view class="switch-v">
<view class="label">设置园区店集中接待电话</view>
<switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.yqMerchantEnableFlag}}" bindchange="changeYQSwitch" data-target="info.yqMerchantEnableFlag" />
</view>
<view class="setItem {{info.yqMerchantEnableFlag?'':'itemOP'}}">
<view class="item-label">{{info.yqMerchantName}}</view>
<view class="input-item techicianInfoEdit" wx:if="{{info.isEdit}}">
<input placeholder="接待联系人" class="input name" placeholder-class="placeholder-class" maxlength="16" value="{{ info.contactName }}" bindinput="input" data-name="info.contactName" always-embed></input>
<input placeholder="联系人手机号" class="input phone" type="number" maxlength="11" placeholder-class="placeholder-class" value="{{ info.contactPhoneNumber }}" bindinput="input" data-name="info.contactPhoneNumber" always-embed></input>
<view class="btn" bind:tap="submitContactInfo">确认</view>
</view>
<view class="input-item techicianInfo" wx:else>
<view class="left">
<view class="label">
<view class="name">{{item.contactName}}</view>
<view class="name">{{info.contactName}}</view>
</view>
<view class="phone">手机号 {{item.contactPhoneNumber}}</view>
<view class="phone">手机号 {{info.contactPhoneNumber}}</view>
</view>
<image class="icon-edit" bind:tap="editShopInfo" data-index="{{index}}" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
<image class="icon-edit" bind:tap="editYQInfo" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
</view>
</view>
</block>
<view class="switch-v">
<view class="label">设置单店驻店接待电话</view>
<switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.shopMerchantEnableFlag}}" bindchange="change4sSwitch" data-target="info.shopMerchantEnableFlag" />
</view>
<block wx:for="{{info.shopMerchantConfigList}}" wx:key="index">
<view class="setItem {{info.shopMerchantEnableFlag?'':'itemOP'}}">
<view class="item-label">{{item.shopMerchantName}}</view>
<view class="input-item techicianInfoEdit" wx:if="{{item.isEdit}}">
<input placeholder="接待联系人" class="input name" placeholder-class="placeholder-class" maxlength="16" data-index="{{index}}" value="{{ item.contactName }}" bindinput="shopInput" data-name="contactName" always-embed></input>
<input placeholder="联系人手机号" class="input phone" type="number" maxlength="11" placeholder-class="placeholder-class" data-index="{{index}}" value="{{ item.contactPhoneNumber }}" bindinput="shopInput" data-name="contactPhoneNumber" always-embed></input>
<view class="btn" bind:tap="submitShopInfo" data-index="{{index}}">确认</view>
</view>
<view class="input-item techicianInfo" wx:else>
<view class="left">
<view class="label">
<view class="name">{{item.contactName}}</view>
</view>
<view class="phone">手机号 {{item.contactPhoneNumber}}</view>
</view>
<image class="icon-edit" bind:tap="editShopInfo" data-index="{{index}}" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
</view>
</view>
</block>
</view>
</scroll-view>
</view>
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<tips-bottom custom-class="tips" style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
......
......@@ -515,7 +515,8 @@ Page({
outTradeNo,
totalFee,
total,
disabled
disabled,
baseConfigData
} = this.data
orderObj = wx.$util.deepClone(orderObj)
goodsList = wx.$util.deepClone(goodsList)
......@@ -559,7 +560,8 @@ Page({
number: e.count,
// merchantGoodsId: e.id
// merchantGoodsId: e.merchantGoodsId
merchantGoodsId: e.id || e.merchantGoodsId
merchantGoodsId: e.id || e.merchantGoodsId,
upgradeGoodsType: e.upgradeGoodsType // 商品分类
}
if (e.price < e.shopMinPrice) priceDisabled = false
subOrderList.push(obj)
......@@ -613,7 +615,11 @@ Page({
}
console.log(orderObj)
// return
// 校验商品类型 精品补录 出现太阳膜商品
if (this.data.filmOrder == 1) {
let obj = orderObj?.subOrderList?.find(v => v.upgradeGoodsType == 1 || v.upgradeGoodsType == baseConfigData?.selfBuildFilmType) || {}
if (Object.keys(obj).length) return this.showToast('客户档案不匹配补单产品类型')
}
this.showLoading('提交中...')
this.setData({
disabled: true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!