Commit bb5eefb3 by 张立顺

Merge branch 'SAAS+V4.40.0-0624' into 'SAAS+V4.41'

上线合并

See merge request !299
2 parents 19158f21 cd4b7a9f
Showing 32 changed files with 1211 additions and 86 deletions
...@@ -130,6 +130,7 @@ ...@@ -130,6 +130,7 @@
"pages/trainingMaterials/trainingMaterials", "pages/trainingMaterials/trainingMaterials",
"pages/trainingMaterials/pages/playVideo/index", "pages/trainingMaterials/pages/playVideo/index",
"pages/createDeafeatOrder/createDeafeatOrder", "pages/createDeafeatOrder/createDeafeatOrder",
"pages/createDeafeatOrderAi/createDeafeatOrderAi",
"pages/aiExcercise/ai/ai", "pages/aiExcercise/ai/ai",
"pages/aiExcercise/detail/detail", "pages/aiExcercise/detail/detail",
"pages/aiExcercise/list/list", "pages/aiExcercise/list/list",
...@@ -142,7 +143,8 @@ ...@@ -142,7 +143,8 @@
"pages/aiCheck/scene/scene", "pages/aiCheck/scene/scene",
"pages/aiCheck/start/start", "pages/aiCheck/start/start",
"pages/orderList/orderList", "pages/orderList/orderList",
"pages/equityQualityOrderList/equityQualityOrderList" "pages/equityQualityOrderList/equityQualityOrderList",
"pages/createDeafeatOrderBefore/createDeafeatOrderBefore"
] ]
}, },
{ {
...@@ -209,15 +211,11 @@ ...@@ -209,15 +211,11 @@
"preloadRule": { "preloadRule": {
"pages/tabWorkOrder/pages/index/index": { "pages/tabWorkOrder/pages/index/index": {
"network": "all", "network": "all",
"packages": [ "packages": ["tabWorkOrder"]
"tabWorkOrder"
]
}, },
"tabIndex/pages/index/index": { "tabIndex/pages/index/index": {
"network": "all", "network": "all",
"packages": [ "packages": ["tabWorkOrder"]
"tabWorkOrder"
]
} }
}, },
"resolveAlias": { "resolveAlias": {
......
...@@ -17,7 +17,7 @@ Component({ ...@@ -17,7 +17,7 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
noScroll() {}, noScroll() { },
/** 日期手动改 */ /** 日期手动改 */
resetData(date) { resetData(date) {
// let _this = this[_CalendarObject_] // let _this = this[_CalendarObject_]
...@@ -56,6 +56,8 @@ Component({ ...@@ -56,6 +56,8 @@ Component({
}, },
showCalendar(e) { showCalendar(e) {
console.log(e) console.log(e)
let { disabled } = this.data
if (disabled) return false;
let type = (e && e.currentTarget && e.currentTarget.dataset.type) || '' let type = (e && e.currentTarget && e.currentTarget.dataset.type) || ''
let result = type === 'show' let result = type === 'show'
if (!result) { if (!result) {
......
...@@ -7,6 +7,10 @@ export default { ...@@ -7,6 +7,10 @@ export default {
// optionalTypes: [String] // optionalTypes: [String]
}, },
title: String, // 标题名称 title: String, // 标题名称
disabled: {
type: Boolean,
value: false
}, //是否能选中
hasRadius: { hasRadius: {
type: Boolean, type: Boolean,
value: true value: true
......
...@@ -24,7 +24,7 @@ Component({ ...@@ -24,7 +24,7 @@ Component({
type: Number, //1.销售顾问,2.转化人员 type: Number, //1.销售顾问,2.转化人员
// order:Object, // order:Object,
isDefault: Boolean, // isDefault: Boolean, //
singleSeller:{ singleSeller: {
type: Boolean, type: Boolean,
value: false value: false
}, },
...@@ -110,7 +110,7 @@ Component({ ...@@ -110,7 +110,7 @@ Component({
if (code == 0) { if (code == 0) {
// 是下单就只筛选当前4s店的 // 是下单就只筛选当前4s店的
if (type == 1 && singleSeller) { if (type == 1 && singleSeller) {
data = data.filter(item=>item.merchantId == userInfo.shopMerchantId) || [] data = data.filter(item => item.merchantId == userInfo.shopMerchantId) || []
} }
// console.log('data', data) // console.log('data', data)
// 解决为空报错问题 // 解决为空报错问题
...@@ -124,6 +124,7 @@ Component({ ...@@ -124,6 +124,7 @@ Component({
// 增加默认勾选逻辑 // 增加默认勾选逻辑
if (type == 1) { if (type == 1) {
// const {merchantId,merchantName} = orderObj // const {merchantId,merchantName} = orderObj
// debugger
if (orderObj.merchantId && orderObj.merchantName) { if (orderObj.merchantId && orderObj.merchantName) {
// 优先回显订单的数据 // 优先回显订单的数据
compareId = orderObj.merchantId compareId = orderObj.merchantId
...@@ -162,7 +163,7 @@ Component({ ...@@ -162,7 +163,7 @@ Component({
let targetName = type == 1 ? 'orderObj.merchantName' : 'orderObj.sellerMerchantName' let targetName = type == 1 ? 'orderObj.merchantName' : 'orderObj.sellerMerchantName'
let targetId = type == 1 ? 'orderObj.merchantId' : 'orderObj.sellerMerchantId' let targetId = type == 1 ? 'orderObj.merchantId' : 'orderObj.sellerMerchantId'
// let isShowSelesBox = type == 3 ? true : false // let isShowSelesBox = type == 3 ? true : false
console.log(merchantId,merchantName,targetName,targetId,'merchant-seles'); console.log(merchantId, merchantName, targetName, targetId, 'merchant-seles');
this.setData( this.setData(
{ {
[targetId]: merchantId, [targetId]: merchantId,
......
...@@ -10,27 +10,13 @@ ...@@ -10,27 +10,13 @@
<block wx:if="{{orderType == 2}}"> <block wx:if="{{orderType == 2}}">
<view class="input-item"> <view class="input-item">
<view class="input-box"> <view class="input-box">
<input <input type="text" class="input" bindinput="input" value="{{outTradeNo}}" placeholder="输入交易流水号" placeholder-class="outTradeNo_placeholder" maxlength="150" />
type="text"
class="input"
bindinput="input"
value="{{outTradeNo}}"
placeholder="输入交易流水号"
placeholder-class="outTradeNo_placeholder"
maxlength="150" />
</view> </view>
</view> </view>
<view class="upload-content"> <view class="upload-content">
<view class="title-text">上传图片</view> <view class="title-text">上传图片</view>
<view class="upload-box"> <view class="upload-box">
<van-uploader <van-uploader file-list="{{ payVoucherList }}" max-count="9" deletable preview-size="var(--fontSize160)" bind:after-read="upLoad" bind:delete="deletePayVoucher">
file-list="{{ payVoucherList }}"
max-count="9"
deletable
preview-size="var(--fontSize160)"
bind:after-read="upLoad"
bind:delete="deletePayVoucher"
>
</van-uploader> </van-uploader>
</view> </view>
</view> </view>
...@@ -86,21 +72,11 @@ ...@@ -86,21 +72,11 @@
<block wx:else> <block wx:else>
<view class="title">车主拒升理由</view> <view class="title">车主拒升理由</view>
<view class="textarea"> <view class="textarea">
<gl-textarea <gl-textarea focus="{{focus}}" value="{{textareaValue}}" bindinput="blur" bindblur="blur" maxlength="100" placeholder="请输入内容" />
focus="{{focus}}"
value="{{textareaValue}}"
bindinput="blur"
bindblur="blur"
maxlength="100"
placeholder="请输入内容" />
</view> </view>
<view class="shortcut-list"> <view class="shortcut-list">
<block wx:for="{{shortcutList}}" wx:key="index"> <block wx:for="{{shortcutList}}" wx:key="index">
<view <view class="shortcut" bindtap="chooseShortcut" data-item="{{item}}" data-index="{{index}}">
class="shortcut"
bindtap="chooseShortcut"
data-item="{{item}}"
data-index="{{index}}">
{{item.confValue}} {{item.confValue}}
</view> </view>
</block> </block>
...@@ -110,4 +86,3 @@ ...@@ -110,4 +86,3 @@
<!-- 不升级 end --> <!-- 不升级 end -->
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 1; let index = 2;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
...@@ -142,7 +142,8 @@ ...@@ -142,7 +142,8 @@
关联尾款单 关联尾款单
</view> </view>
<!-- 待支付/已支付/退定金 --> <!-- 待支付/已支付/退定金 -->
<view wx:if="{{item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}"> <!-- || item.tailOrderStatus == '1' || item.tailOrderStatus == '4' 去除退款功能 -->
<view wx:if="{{item.tailOrderStatus == '0' }}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.tailOrderStatus]}} {{btnTxt[item.tailOrderStatus]}}
</view> </view>
</view> </view>
......
...@@ -212,4 +212,8 @@ module.exports = { ...@@ -212,4 +212,8 @@ module.exports = {
orderSettingList(data) { orderSettingList(data) {
return api.post('dj.api.smartcarlife.order.field.setting.list', data) return api.post('dj.api.smartcarlife.order.field.setting.list', data)
}, },
// 攻防明细
defencedetail(data) {
return api.post("dj.api.smartcarlife.app.inspection.defence.detail", data);
}
} }
...@@ -249,5 +249,6 @@ selectrecmerchantList(data) { ...@@ -249,5 +249,6 @@ selectrecmerchantList(data) {
pageSize: 10, pageSize: 10,
...params ...params
}) })
} },
}; };
...@@ -380,6 +380,18 @@ Page({ ...@@ -380,6 +380,18 @@ Page({
wx.$util.showToast("AI还未回复"); wx.$util.showToast("AI还未回复");
return; 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; const { speakLoading } = this.data;
if (speakLoading) return; if (speakLoading) return;
this.setData({ this.setData({
......
...@@ -62,7 +62,7 @@ Component({ ...@@ -62,7 +62,7 @@ Component({
}) })
this.setData({ this.setData({
list, list,
flag:true flag: true
}) })
}, },
hidePopup() { hidePopup() {
...@@ -80,7 +80,7 @@ Component({ ...@@ -80,7 +80,7 @@ Component({
item.salesUuid = item.salesUuid item.salesUuid = item.salesUuid
item.salesName = item.salesName item.salesName = item.salesName
item.customerPhone = item.phoneNumber item.customerPhone = item.phoneNumber
if(item.orderFlag) return wx.$util.showToast('您已为当前客户提单,请进入订单列表查看。') if (item.orderFlag) return wx.$util.showToast('您已为当前客户提单,请进入订单列表查看。')
this.hidePopup() this.hidePopup()
wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation', { wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation', {
customerInfo: item customerInfo: item
......
...@@ -183,7 +183,7 @@ Page({ ...@@ -183,7 +183,7 @@ Page({
icon: "success", icon: "success",
}); });
setTimeout(() => { setTimeout(() => {
wx.$router.redirectTo("packageEquity.equityPage", { wx.$router.reLaunch("packageEquity.equityPage", {
tabIndex: 1, tabIndex: 1,
}); });
}, 1000); }, 1000);
...@@ -327,7 +327,7 @@ Page({ ...@@ -327,7 +327,7 @@ Page({
if (id) { if (id) {
// 门店付款就直接返回列表 // 门店付款就直接返回列表
if (orderInfo.payType == 2) if (orderInfo.payType == 2)
return wx.$router.redirectTo("packageEquity.equityPage", { return wx.$router.reLaunch("packageEquity.equityPage", {
tabIndex: 1, tabIndex: 1,
}); });
let status = await this.createWithPay(id); let status = await this.createWithPay(id);
...@@ -569,6 +569,8 @@ Page({ ...@@ -569,6 +569,8 @@ Page({
} }
tableInfo.owner.salesType = tableInfo.owner.salesType =
tableInfo.owner.salesType == 1 ? "售后" : "售前"; tableInfo.owner.salesType == 1 ? "售后" : "售前";
tableInfo.owner.ownerGender =
tableInfo.owner.ownerGender || '男'
this.setData({ this.setData({
orderInfo: Object.assign(orderInfo, tableInfo, { orderInfo: Object.assign(orderInfo, tableInfo, {
insureList: [], insureList: [],
...@@ -657,7 +659,7 @@ Page({ ...@@ -657,7 +659,7 @@ Page({
let { owner, orderInfo, saveStatus } = this.data; let { owner, orderInfo, saveStatus } = this.data;
// 补单点放弃 // 补单点放弃
if (orderInfo.outTradeNo || orderInfo.resetOrder) { if (orderInfo.outTradeNo || orderInfo.resetOrder) {
return wx.$router.redirectTo("packageEquity.equityPage", { return wx.$router.reLaunch("packageEquity.equityPage", {
tabIndex: 1, tabIndex: 1,
}); });
} }
...@@ -683,7 +685,7 @@ Page({ ...@@ -683,7 +685,7 @@ Page({
console.log("id", res); console.log("id", res);
let { code, data, message } = res; let { code, data, message } = res;
if (code == 0) { if (code == 0) {
wx.$router.redirectTo("packageEquity.equityPage", { wx.$router.reLaunch("packageEquity.equityPage", {
tabIndex: 1, tabIndex: 1,
}); });
} else { } else {
...@@ -834,7 +836,7 @@ Page({ ...@@ -834,7 +836,7 @@ Page({
// return wx.$router.go('packageEquity.equityPage', { tabIndex: 1 }) // return wx.$router.go('packageEquity.equityPage', { tabIndex: 1 })
if (isClue) return wx.$router.back(); if (isClue) return wx.$router.back();
if (step == "first") { if (step == "first") {
wx.$router.redirectTo("packageEquity.equityPage"); wx.$router.reLaunch("packageEquity.equityPage");
} else { } else {
this.setData({ this.setData({
step: "first", step: "first",
......
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
</view> </view>
<!-- <view class="tipsCon"> --> <!-- <view class="tipsCon"> -->
<block wx:if="{{ !staffUuid }}"> <block wx:if="{{ !staffUuid }}">
<view wx:if="{{ (item.orderStatus == '3' && item.equityOrderStatus == '0') || (item.orderStatus == '5' && item.equityOrderStatus == '0') }}" class="orange-txt tipsCon"> <view wx:if="{{ (item.orderStatus == '3' && item.equityOrderStatus == '0' && item.equityGoodsFlag == '1' ) || (item.orderStatus == '5' && item.equityOrderStatus == '0') }}" class="orange-txt tipsCon">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image> <image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,未录入权益合同 订单已支付,未录入权益合同
</view> </view>
......
...@@ -121,7 +121,8 @@ ...@@ -121,7 +121,8 @@
display: flex; display: flex;
align-items: center; align-items: center;
} }
.search-box .filter{
.search-box .filter {
margin-left: auto; margin-left: auto;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -272,7 +273,7 @@ ...@@ -272,7 +273,7 @@
align-items: center; align-items: center;
font-size: var(--fontSize32); font-size: var(--fontSize32);
font-weight: 600; font-weight: 600;
max-width: 60%; max-width: 59%;
color: #333333; color: #333333;
word-break: break-all; word-break: break-all;
} }
...@@ -280,6 +281,7 @@ ...@@ -280,6 +281,7 @@
.list .icon-sex { .list .icon-sex {
width: var(--fontSize24); width: var(--fontSize24);
height: var(--fontSize24); height: var(--fontSize24);
min-width: var(--fontSize24);
margin-left: var(--fontSize12); margin-left: var(--fontSize12);
} }
...@@ -653,7 +655,7 @@ ...@@ -653,7 +655,7 @@
text-align: center; text-align: center;
} }
.list-nothing{ .list-nothing {
padding: var(--fontSize40) 0; padding: var(--fontSize40) 0;
} }
......
...@@ -89,6 +89,7 @@ Page({ ...@@ -89,6 +89,7 @@ Page({
this.setTimeList() this.setTimeList()
this.handlerUserInfo() this.handlerUserInfo()
this.getGoodsProduct() this.getGoodsProduct()
}, },
onShow: function () { }, onShow: function () { },
...@@ -401,11 +402,10 @@ Page({ ...@@ -401,11 +402,10 @@ Page({
wx.$util.showToast('提交成功') wx.$util.showToast('提交成功')
this.resetData() this.resetData()
} else { } else {
wx.$router.redirectTo('packageEquity.equityPage', { wx.$router.reLaunch('packageEquity.equityPage', {
tabIndex: 1 tabIndex: 1
}) })
} }
} else { } else {
wx.$util.showToast(res.message) wx.$util.showToast(res.message)
} }
......
{
"usingComponents": {
"merchant-seles": "/components/Merchant-Seles/Merchant-Seles",
"customerInfo": "/components/CustomerInfo/CustomerInfo",
"van-popup": "@vant/weapp/popup/index",
"van-picker": "@vant/weapp/picker/index"
},
"navigationStyle": "custom"
}
\ No newline at end of file \ No newline at end of file
/* tabWorkOrder/pages/defeatOrder/defeatOrder.wxss */
page {
background-color: #F7F8FA;
transition: none !important;
// height: 100vh;
}
// @media screen and (min-device-width: 600px) and (-webkit-min-device-pixel-ratio: 1) {
// .layout {
// height: calc(100vh - var(--fontSize70) - var(--constantSafeAreaInsetBottom));
// height: calc(100vh - var(--fontSize70) - var(--envSafeAreaInsetBottom));
// }
// .tipsHeigh {
// height: calc(100vh - var(--fontSize70) - var(--fontSize72) var(--constantSafeAreaInsetBottom));
// height: calc(100vh - var(--fontSize70) - var(--fontSize72) - var(--envSafeAreaInsetBottom));
// }
// }
.layout {
height: 100vh;
}
.main {
box-sizing: border-box;
position: relative;
padding: 0 0 var(--fontSize136);
}
.createData {
margin: var(--fontSize20);
background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a;
border-radius: var(--fontSize16);
box-sizing: border-box;
width: calc(100% - var(--fontSize40));
height: var(--fontSize120);
background-color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 var(--fontSize40);
}
.label {
font-size: var(--fontSize28);
font-weight: 500;
color: #292D33;
}
.calendarItem {
/* width: var(--fontSize300); */
background: #F2F3F5;
border: none !important;
}
.solidArrow {
width: var(--fontSize40);
height: var(--fontSize40);
margin-left: var(--fontSize10);
margin-top: var(--fontSize5);
}
.dateNum {
color: #292D33;
padding: var(--fontSize12) var(--fontSize24);
border-radius: var(--fontSize8);
border: 1px solid #DEE0E3;
font-size: var(--fontSize26);
font-weight: 500;
}
.wrapper {
padding: 0 var(--fontSize20);
}
.cell {
overflow: hidden;
box-shadow: 0 var(--fontSize6) var(--fontSize16) 0 #cdcdd159;
border-radius: var(--fontSize16);
}
.between {
display: flex;
align-items: center;
justify-content: flex-end;
}
.between .start {
max-width: 70%;
}
.two-cell {
margin-top: var(--fontSize20);
}
.input {
text-align: right;
font-size: var(--fontSize28);
height: 100%;
}
.placeholder-class {
color: #666;
}
.placeholder-class {
color: #BEC1C7;
}
.cell-textarea {
margin-top: var(--fontSize20);
background: #fff;
padding: var(--fontSize40);
/* height: var(--fontSize476); */
}
.inner {
width: 100%;
height: var(--fontSize172);
border: var(--fontSize2) solid #EFF0F2;
border-radius: var(--fontSize12);
margin-top: var(--fontSize24);
box-sizing: border-box;
padding: var(--fontSize20) var(--fontSize24);
position: relative;
}
.cus-textarea {
height: 100%;
width: 100%;
font-size: var(--fontSize28);
}
.textarea-placeholder {
font-weight: 400;
font-size: var(--fontSize28);
color: #BEC1C7;
}
.select-content {
position: relative;
margin-top: var(--fontSize24);
.tips {
position: relative;
text-align: center;
margin-bottom: var(--fontSize20);
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: var(--fontSize24);
color: #BEC1C7;
&::before {
position: absolute;
content: '';
display: inline-block;
width: var(--fontSize80);
height: var(--fontSize2);
background-color: #EFF0F2;
// left: var(--fontSize6);
left: 15%;
top: 50%;
transform: translateY(-50%);
}
&::after {
position: absolute;
content: '';
display: inline-block;
width: var(--fontSize80);
height: var(--fontSize2);
background-color: #EFF0F2;
// right: var(--fontSize6);
right: 15%;
top: 50%;
transform: translateY(-50%);
}
}
}
// .select-content
.select-content .reason {
display: inline-block;
width: fit-content;
padding: var(--fontSize12) var(--fontSize24);
background: #F7F7F7;
border-radius: var(--fontSize4);
font-weight: 400;
font-size: var(--fontSize24);
margin-right: var(--fontSize16);
margin-bottom: var(--fontSize16);
color: #5A5E66;
border: var(--fontSize2) solid #fff;
}
.select-content .active {
background: #347bff1a;
border: var(--fontSize2) solid #347BFF;
color: #347BFF;
}
.maxCount {
position: absolute;
right: var(--fontSize40);
bottom: var(--fontSize20);
font-weight: 400;
font-size: var(--fontSize24);
color: #BEC1C7;
}
.btn-group {
margin-top: var(--fontSize40);
box-sizing: border-box;
padding: 0 var(--fontSize44)
}
.btn-group .btn-class {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
height: var(--fontSize88);
background: #FFFFFF;
border-radius: var(--fontSize12);
font-weight: 400;
font-size: var(--fontSize32);
color: #347BFF;
}
.btn-group .primary {
background: #347BFF;
color: #fff;
margin-bottom: var(--fontSize20);
}
.sucesssubmit {
width: var(--fontSize224);
height: var(--fontSize224);
margin: auto;
}
.AImusic {
width: var(--fontSize80);
height: var(--fontSize80);
margin-right: var(--fontSize16);
margin-left: var(--fontSize12);
}
.userAvatar {
width: var(--fontSize40);
height: var(--fontSize40);
margin-right: var(--fontSize20);
}
.polish {
width: var(--fontSize32);
height: var(--fontSize32);
margin-right: var(--fontSize12);
}
.centericon {
margin: auto;
}
.centericon {
position: fixed;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
}
.successBtn {
width: var(--fontSize662);
position: absolute;
bottom: var(--fontSize100);
left: 50%;
transform: translateX(-50%);
}
.submiticonOnly {
text-align: center;
margin: var(--fontSize62) auto var(--fontSize48);
}
.tipsIcon {
box-sizing: border-box;
// width: 100%;
margin: auto var(--fontSize20);
background: #FFFFFF;
box-shadow: 0 var(--fontSize6) var(--fontSize16) 0 #cdcdd159;
border-radius: var(--fontSize16);
padding-bottom: var(--fontSize32);
.header {
// width: 95%;
display: flex;
align-items: center;
wwidth: 100%;
height: var(--fontSize72);
background-color: #f0f7ff;
color: #347BFF;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: var(--fontSize24);
// line-height: 72prx;
}
.body {
box-sizing: border-box;
padding: var(--fontSize32) var(--fontSize88) var(--fontSize32) var(--fontSize32);
.bodyTips {
display: flex;
align-items: center;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: var(--fontSize24);
color: #6C6C70;
margin-bottom: var(--fontSize8);
}
.contentText {
box-sizing: border-box;
padding: var(--fontSize24) var(--fontSize20);
width: var(--fontSize534);
background: #F7F8FA;
border-radius: 0 var(--fontSize16) var(--fontSize16) var(--fontSize16);
margin-left: auto;
font-weight: 400;
font-size: var(--fontSize28);
color: #333333;
}
}
.footer {
box-sizing: border-box;
width: var(--fontSize662);
background: #F0F7FF;
border-radius: var(--fontSize16);
padding: var(--fontSize24);
margin: 0 auto;
.tips {
display: flex;
align-items: center;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: var(--fontSize28);
color: #333333;
margin-bottom: var(--fontSize20);
}
.recommendedScript {
background-color: #fff;
padding: var(--fontSize24) var(--fontSize28);
font-weight: 400;
font-size: var(--fontSize28);
color: #333333;
}
}
.landscape {
.btn-group .btn-class {
width: 60%;
margin: 0 auto var(--fontSize20);
}
}
}
.isPad {
.body {
.contentText {
margin-left: var(--fontSize40);
}
}
.footer {
margin: 0 var(--fontSize64);
width: var(--fontSize1528);
}
.sucesssubmit {
width: var(--fontSize112);
height: var(--fontSize112);
}
}
.phonenumber {
color: #999;
}
.required {
color: #f00;
}
\ No newline at end of file \ No newline at end of file
<navigation-bar showBack class="navigation-header" showWhiteMenu bindnavbarReady="navbarReady" showWhiteMenu bindback="closeScreen" navStyle="background-color:#fff;box-shadow:none;">战败下单</navigation-bar>
<block wx:if="{{navBarHeight > 0}}">
<view class="main layout" style="padding-top:{{ navBarHeight }}px;position: relative;">
<block wx:if="{{ showSubmitPage }}">
<view class="createData">
<view class="label">战败时间</view>
<!-- <calendar id="calender" class="calendar" disabled="{{true}}" 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">
<!-- titleBtn="客户档案" bindtitleClick="showCustomPop" -->
<gl-cell border valueAlign="right" label="车主姓名" 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 disabled="{{true}}" valueAlign="right" label="手机号" requiredAfter labelWidth="var(--fontSize140)" required>
<input disabled="{{true}}" placeholder="点击输入" class="input phonenumber" 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">战败原因<text class="required">*</text></view>
<view class="inner">
<textarea class="cus-textarea" bindinput="intReason" value="{{ deafeatReason }}" placeholder="请输入" placeholder-class="textarea-placeholder" maxlength="50"></textarea>
<text class="maxCount">{{deafeatReason.length || 0}}/50</text>
</view>
<view class="select-content">
<view class="tips" wx:if="{{reasonList.length}}">基于大模型的战败分析</view>
<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>
</view>
</block>
<block wx:else>
<block wx:if="{{ showAiStatus }}">
<!-- <view class="submiticon submiticonOnly {{ deviceOrientation == 'landscape' ? 'landscape':'' }}"> -->
<view class="submiticon submiticonOnly {{deviceOrientation == 'landscape' && isPad ? 'isPad':''}}">
<gl-image class="sucesssubmit" webp src="/miniProgram/sucesssubmit.png"></gl-image>
</view>
<view class="tipsIcon {{deviceOrientation == 'landscape' && isPad ? 'isPad':''}}">
<view class="header">
<gl-image class="AImusic" webp src="/miniProgram/AImusic.png"></gl-image>
再遇到类似的场景,可以试试这么说~
</view>
<block wx:for="{{ defencedetail.detailList }}">
<view class="body">
<view class="bodyTips">
<gl-image class="userAvatar" webp src="/miniProgram/userAvatar.png"></gl-image>
[客户类型] {{defencedetail.customerType}}
</view>
<view class="contentText">{{item.standardQuestion}}</view>
</view>
<view class="footer">
<view class="tips">
<gl-image class="polish" webp src="/miniProgram/polish.png"></gl-image>
推荐话术
</view>
<view class="recommendedScript">{{item.standardAnswer}}</view>
</view>
</block>
</view>
<view class="btn-group">
<view bind:tap="goEquityPage" class="btn-class primary">返回列表</view>
</view>
</block>
<block wx:else>
<view class="submiticon">
<gl-image class="sucesssubmit centericon" webp src="/miniProgram/sucesssubmit.png"></gl-image>
</view>
<view class="btn-group successBtn">
<view bind:tap="goEquityPage" class="btn-class primary">返回列表</view>
</view>
</block>
</block>
</view>
</block>
<merchant-seles show="{{ selesBox }}" title="选择合作门店" sub-title="选择销售顾问" orderObj="{{ orderObj }}" userInfo="{{ userInfo }}" singleSeller="{{ true }}" 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-popup>
\ No newline at end of file \ No newline at end of file
// packageEquity/pages/beforeCreate/components/recordList/recordList.js
import carLifeApi from "../../../../carEquityApi";
Component({
/**
* 组件的属性列表
*/
properties: {
showPopup: {
type: Boolean,
value: false,
observer(n) {
if (n) this.getReceptionList();
},
},
deviceOrientation: String,
mode: Number,
},
/**
* 组件的初始数据
*/
data: {
itemObject: [
{
label: "联系方式",
key: "phoneNumber",
},
{
label: "销售姓名",
key: "salesName",
},
{
label: "开始接待",
key: "startTime",
},
],
},
/**
* 组件的方法列表
*/
methods: {
async getReceptionList() {
// const { bussinessType } = this.data
const today = new Date().format("yyyy-MM-dd"),
userInfo = wx.$util.getUserInfo(),
{ shopMerchantId } = userInfo,
{ data } = await carLifeApi.getReceptionList({
merchantId: shopMerchantId,
pageNum: 1,
// startTime: `2024-06-19 00:00:00`,
// endTime: `2024-06-19 23:59:59`
startTime: `${today} 00:00:00`,
endTime: `${today} 23:59:59`,
bussinessType: 1, //"业务类型 1.延保 2.轻改"
});
let list = data?.list || [];
list?.length &&
list.map((e) => {
e.startTime = new Date(e.receptionStartTime).format(
"yyyy-MM-dd hh:mm:ss"
);
});
this.setData({
list,
flag: true,
});
},
hidePopup() {
this.setData({
showPopup: false,
});
},
jump(e) {
console.log(e);
const { item } = e.currentTarget.dataset
// { mode } = this.data;
// item.salesUuid = item.salesUuid;
// item.salesName = item.salesName;
// item.customerPhone = item.phoneNumber;
if (item.orderFlag) {
return wx.$util.showToast("您已为当前客户提单,请进入订单列表查看。");
}
this.hidePopup();
wx.$router.redirectTo("createDeafeatOrderAi", { detailInfo: item });
},
},
});
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/beforeCreate/components/recordList/recordList.wxss */
/* tabWorkOrder/pages/createOrder/createOrderComponents/Popup/Popup.wxss */
.popup {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 998;
.popup-bg {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: rgba(0, 0, 0, .6);
}
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
.popup-content {
position: absolute;
left: 0;
width: 100%;
background: #FFFFFF;
border-radius: var(--fontSize20) var(--fontSize20) 0 0;
animation: show-popup .5s forwards;
box-sizing: border-box;
height: 80%;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
.popup-title {
height: var(--fontSize96);
font-size: var(--fontSize32);
border-bottom: var(--fontSize2) solid #EBEDF0;
font-weight: 500;
color: #1A1A1A;
box-sizing: border-box;
position: relative;
.close {
position: absolute;
right: 0;
top: 0;
height: 100%;
width: var(--fontSize100);
&-image {
width: var(--fontSize24);
height: var(--fontSize24);
}
}
}
.popup-sub-title {
padding: var(--fontSize24) 0;
text-align: center;
font-size: var(--fontSize24);
color: #999EA8;
}
.popup-slot {
height: calc(100% - var(--fontSize180));
padding: 0 var(--fontSize40) var(--fontSize32);
display: flex;
flex-wrap: wrap;
gap: var(--fontSize24);
overflow-y: scroll;
box-sizing: border-box;
.item {
width: 100%;
// width: calc(50% - var(--fontSize24));
height: var(--fontSize332);
background: #F7F8FA;
border-radius: var(--fontSize8);
box-sizing: border-box;
padding: var(--fontSize24);
position: relative;
border: var(--fontSize2) solid #F7F8FA;
.status {
position: absolute;
right: var(--fontSize24);
top: var(--fontSize22);
width: var(--fontSize88);
height: var(--fontSize44);
background: #FDECE9;
border-radius: var(--fontSize4);
font-weight: 500;
font-size: var(--fontSize24);
color: #F24724;
}
.true {
background: #EAF9F1;
color: #35C376;
}
.name {
font-weight: 500;
font-size: var(--fontSize28);
color: #292D33;
margin-bottom: var(--fontSize40);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 70%;
}
.goods-name {
font-size: var(--fontSize28);
color: #347BFF;
margin-bottom: var(--fontSize24);
}
.info {
font-size: var(--fontSize24);
color: #999EA8;
display: flex;
align-items: center;
margin-bottom: var(--fontSize16);
.value {
color: #292D33;
margin-left: var(--fontSize24);
}
}
}
.hover-class {
background: #2c66f71a;
border: var(--fontSize2) solid #2C66F7;
}
}
.nothing {
width: 100%;
margin-top: var(--fontSize112);
font-size: var(--fontSize28);
color: #999999;
display: flex;
flex-direction: column;
align-items: center;
.icon {
width: var(--fontSize676);
height: var(--fontSize284);
margin-bottom: var(--fontSize24);
}
}
}
.landscape {
.popup-title {
height: var(--fontSize62);
font-size: var(--fontSize18);
.close {
width: var(--fontSize65);
&-image {
width: var(--fontSize16);
height: var(--fontSize16);
}
}
}
.popup-sub-title {
padding: var(--fontSize16) 0;
text-align: center;
font-size: var(--fontSize16);
color: #999EA8;
}
.popup-slot {
height: calc(100% - var(--fontSize117));
padding: 0 var(--fontSize26) var(--fontSize20);
gap: var(--fontSize16);
align-content: flex-start;
.item {
width: calc(25% - var(--fontSize12));
height: var(--fontSize215);
border-radius: var(--fontSize10);
padding: var(--fontSize16);
.status {
right: var(--fontSize16);
top: var(--fontSize14);
width: var(--fontSize57);
height: var(--fontSize29);
border-radius: var(--fontSize3);
font-size: var(--fontSize16);
}
.name {
font-size: var(--fontSize18);
margin-bottom: var(--fontSize26);
}
.goods-name {
font-size: var(--fontSize18);
margin-bottom: var(--fontSize12);
}
.info {
font-size: var(--fontSize16);
margin-bottom: var(--fontSize10);
.value {
margin-left: var(--fontSize16);
}
}
}
}
.nothing {
margin-top: var(--fontSize73);
font-size: var(--fontSize18);
.icon {
width: var(--fontSize338);
height: var(--fontSize142);
margin-bottom: var(--fontSize12);
}
}
}
@keyframes show-popup {
0% {
bottom: -100%;
}
100% {
bottom: 0;
}
}
\ No newline at end of file \ No newline at end of file
<block wx:if="{{showPopup}}">
<view class="popup {{deviceOrientation == 'landscape'?'landscape':''}}" >
<view class="popup-bg" bindtap="hidePopup"></view>
<view class="popup-content">
<view class="popup-title text-center">
接待客户列表
<view class="close text-center" bindtap="hidePopup">
<image src="/components/images/close.png" class='close-image' />
</view>
</view>
<view class="popup-sub-title">选中对应接待记录,可实现便捷提单</view>
<view class="popup-slot">
<block wx:if="{{flag}}">
<block wx:if="{{list.length}}">
<block wx:for="{{list}}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{item}}" hover-class="hover-class">
<view class="status text-center {{item.orderFlag}}">{{item.orderFlag?'已提单':'未提单'}}</view>
<view class="name">
{{item.customerName}}
</view>
<view class="goods-name">{{item.carModel}}</view>
<block wx:for="{{itemObject}}" wx:key="ind" wx-for-index="ind" wx:for-item="k">
<view class="info flex">
<view class="label">{{k.label}}</view>
<view class="value">{{item[k.key] || '-'}}</view>
</view>
</block>
</view>
</block>
</block>
<block wx:else>
<view class="nothing">
<view class="icon">
<gl-image src="/equity/nothing.webp" webp></gl-image>
</view>
暂无接待记录
</view>
</block>
</block>
</view>
</view>
</view>
</block>
\ No newline at end of file \ No newline at end of file
// packageEquity/pages/beforeCreate/beforeCreate.js
Page({
/**
* 页面的初始数据
*/
data: {},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.$router.getData((res) => {
this.setData(res);
});
this.getSystemInfo();
},
getSystemInfo() {
let _this = this;
wx.getRendererUserAgent({
success(res) {
console.log(res);
let isPad = /iPad|Android.*Tablet|Kindle|Silk/i.test(res.userAgent);
_this.setData({
isPad,
});
},
});
wx.getSystemInfo({
success(res) {
console.log(res);
const deviceOrientation = res.deviceOrientation;
_this.setData({
deviceOrientation,
});
},
});
},
onResize(e) {
console.log(e);
this.setData({
deviceOrientation: e.deviceOrientation,
});
},
jump() {
const { mode } = this.data;
wx.$router.go(
"packageEquity.createDeafeatOrder"
// mode ? "createOrderCarQuotationSimple" : "createOrderCarQuotation"
);
},
open() {
// const { isPad } = this.data;
// if (!isPad)
// return wx.$util.showToast("为保证使用体验,快来工作平板上使用该功能吧");
this.setData({
showPopup: true,
});
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() { },
/**
* 生命周期函数--监听页面显示
*/
onShow() { },
/**
* 生命周期函数--监听页面隐藏
*/
onHide() { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload() { },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() { },
/**
* 用户点击右上角分享
*/
onShareAppMessage() { },
});
{
"usingComponents": {
"record-list": "./components/recordList/recordList"
},
"navigationBarTitleText": "新建工单",
"enablePullDownRefresh": false,
"disableScroll": true
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/beforeCreate/beforeCreate.wxss */
.layout {
padding-top: var(--fontSize24);
.item {
width: calc(670 / 750 * 100%);
height: var(--fontSize292);
margin: 0 auto var(--fontSize24);
border-radius: var(--fontSize16);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/default-bg.png');
background-size: 100%;
display: flex;
flex-direction: column;
justify-content: center;
box-sizing: border-box;
padding-left: var(--fontSize64);
position: relative;
.title {
margin-bottom: var(--fontSize20);
font-weight: 600;
font-size: var(--fontSize36);
color: #292D33;
display: flex;
align-items: center;
.recommend {
width: var(--fontSize96);
height: var(--fontSize48);
margin-left: var(--fontSize12);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/recommend.png');
background-size: 100%;
background-repeat: no-repeat;
}
}
.text {
font-size: var(--fontSize32);
color: #757980;
}
.icon {
width: var(--fontSize220);
height: var(--fontSize220);
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/default-icon.png');
background-size: 100%;
}
}
.quick {
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/quick-bg.png');
.icon {
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/quick-icon.png');
}
}
}
.isPad {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
padding-top: 0;
.item {
width: var(--fontSize546);
height: var(--fontSize260);
margin: 0 var(--fontSize8);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/default-bg-hd.png');
padding-left: var(--fontSize42);
transform: translateY(-20%);
.title {
font-size: var(--fontSize32);
margin-bottom: var(--fontSize16);
.recommend {
width: var(--fontSize62);
height: var(--fontSize32);
margin-left: var(--fontSize8);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/recommend-hd.png');
}
}
.text {
font-size: var(--fontSize20);
}
.icon {
width: var(--fontSize143);
height: var(--fontSize143);
right: var(--fontSize42);
}
}
.quick {
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/quick-bg-hd.png');
}
}
\ No newline at end of file \ No newline at end of file
<view class="layout {{ deviceOrientation == 'landscape' && isPad ? 'isPad':'' }}">
<view class="item quick" bindtap="open">
<view class="title">
快速录入战败工单
<view class="recommend"></view>
</view>
<view class="text">基于今日APP的接待记录</view>
<view class="icon"></view>
</view>
<view class="item" bindtap="jump">
<view class="title">创建战败工单</view>
<view class="text">空白工单</view>
<view class="icon"></view>
</view>
</view>
<record-list model:showPopup="{{ showPopup }}" deviceOrientation="{{ deviceOrientation }}" mode="{{ mode }}"></record-list>
\ No newline at end of file \ No newline at end of file
...@@ -446,6 +446,10 @@ swiper{ ...@@ -446,6 +446,10 @@ swiper{
} }
.todo-item{ .todo-item{
width:49%!important; width:49%!important;
.todo-item-info{
overflow:hidden;
width:65%;
}
} }
.menu_box { .menu_box {
grid-template-columns: repeat(7, var(--fontSize100))!important; grid-template-columns: repeat(7, var(--fontSize100))!important;
......
...@@ -113,7 +113,8 @@ ...@@ -113,7 +113,8 @@
关联尾款单 关联尾款单
</view> </view>
<!-- 待支付/已支付/退定金 --> <!-- 待支付/已支付/退定金 -->
<view wx:if="{{item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}"> <!-- || item.tailOrderStatus == '1' || item.tailOrderStatus == '4' 去除退款功能 -->
<view wx:if="{{item.tailOrderStatus == '0' }}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.tailOrderStatus]}} {{btnTxt[item.tailOrderStatus]}}
</view> </view>
</view> </view>
......
...@@ -25,6 +25,7 @@ Page({ ...@@ -25,6 +25,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
returnFun: true,
scanIcon: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/ocr_icon.png', scanIcon: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/ocr_icon.png',
selectIcon: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/selectIncon.webp', selectIcon: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/selectIncon.webp',
name: 'createdOrder', name: 'createdOrder',
...@@ -58,7 +59,7 @@ Page({ ...@@ -58,7 +59,7 @@ Page({
plateNumber: '', plateNumber: '',
customerSex: 1, customerSex: 1,
experienceFlag: 'Y', experienceFlag: 'Y',
salesType:0 salesType: 0
}, },
selectPayType: 2, selectPayType: 2,
remark: '', remark: '',
...@@ -81,13 +82,13 @@ Page({ ...@@ -81,13 +82,13 @@ Page({
sideRearGearArr: [], sideRearGearArr: [],
skylightArr: [], skylightArr: [],
baseConfigData: {}, baseConfigData: {},
showSource:false, showSource: false,
Sourcecolumns:[{ Sourcecolumns: [{
type:0, type: 0,
name:'售前' name: '售前'
},{ }, {
type:1, type: 1,
name:'售后' name: '售后'
}], }],
}, },
showCustomPop() { showCustomPop() {
...@@ -411,11 +412,11 @@ Page({ ...@@ -411,11 +412,11 @@ Page({
try { try {
m += s1.split('.')[1].length m += s1.split('.')[1].length
} catch (e) {} } catch (e) { }
try { try {
m += s2.split('.')[1].length m += s2.split('.')[1].length
} catch (e) {} } catch (e) { }
return (Number(s1.replace('.', '')) * Number(s2.replace('.', ''))) / Math.pow(10, m) return (Number(s1.replace('.', '')) * Number(s2.replace('.', ''))) / Math.pow(10, m)
}, },
...@@ -745,7 +746,7 @@ Page({ ...@@ -745,7 +746,7 @@ Page({
} }
if (!orderObj.customer.customerSex) orderObj.customer.customerSex = 1 if (!orderObj.customer.customerSex) orderObj.customer.customerSex = 1
if (!orderObj.customer.experienceFlag) orderObj.customer.experienceFlag = 'N' if (!orderObj.customer.experienceFlag) orderObj.customer.experienceFlag = 'N'
if(!orderObj.customer.salesType) orderObj.customer.salesType = 0 if (!orderObj.customer.salesType) orderObj.customer.salesType = 0
this.setData({ this.setData({
orderObj, orderObj,
first: true, first: true,
...@@ -964,7 +965,8 @@ Page({ ...@@ -964,7 +965,8 @@ Page({
goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName
} }
e.count = e.number e.count = e.number
e.id = e.upgradeGoodsId // e.id = e.upgradeGoodsId
e.merchantGoodsId = e.merchantGoodsId || e.id
chooseList.push(e) chooseList.push(e)
}) })
} }
...@@ -1067,7 +1069,7 @@ Page({ ...@@ -1067,7 +1069,7 @@ Page({
accountDate accountDate
}) })
}) })
.catch(err => {}) .catch(err => { })
} }
}, },
onRoute(options) { onRoute(options) {
...@@ -1093,48 +1095,48 @@ Page({ ...@@ -1093,48 +1095,48 @@ Page({
}) })
} }
}, },
toSelectCustomerSource(){ toSelectCustomerSource() {
this.setData({ this.setData({
showSource:true showSource: true
}) })
}, },
onChangeSource(e){ onChangeSource(e) {
console.log(e); console.log(e);
const {type} = e.detail.value const { type } = e.detail.value
this.setData({ this.setData({
showSource:false, showSource: false,
'orderObj.customer.salesType':type 'orderObj.customer.salesType': type
}) })
}, },
onCloseSource(){ onCloseSource() {
this.setData({ this.setData({
showSource:false showSource: false
}) })
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
onUnload: () => {}, onUnload: () => { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () {}, onUnload: function () { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {} onShareAppMessage: function () { }
// 获取园区店支付配置 // 获取园区店支付配置
// getConfig() { // getConfig() {
......
...@@ -58,11 +58,12 @@ const domain_items = { ...@@ -58,11 +58,12 @@ const domain_items = {
ip: { ip: {
// dj: 'http://192.168.1.165:8292', // dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.104:8292', //叶立庆 // dj: 'http://192.168.1.104:8292', //叶立庆
dj: "http://192.168.1.169:8292", //蔡远明 // dj: "http://192.168.1.169:8292", //蔡远明
// dj: 'http://192.168.1.174:8292',//范富荣 // dj: 'http://192.168.1.174:8292',//范富荣
// dj: 'http://192.168.1.88:8292', //周杭 // dj: 'http://192.168.1.88:8292', //周杭
// dj: 'http://192.168.1.116:8292',//陈希 // dj: 'http://192.168.1.116:8292',//陈希
dj: 'http://192.168.1.60:8292',//周立明 // dj: 'http://192.168.1.60:8292',//周立明
dj: 'http://192.168.148.235:8292',// 熊正顺
// scrm: 'http://192.168.1.165:8292' // scrm: 'http://192.168.1.165:8292'
scrm: "https://scrm.dev.glsx.com.cn", scrm: "https://scrm.dev.glsx.com.cn",
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!