Commit 7a27d46c by 张立顺

fix 6月版本bug修复

1 parent f4e26982
...@@ -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
......
...@@ -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>
......
...@@ -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
......
...@@ -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;
} }
......
...@@ -42,6 +42,23 @@ Page({ ...@@ -42,6 +42,23 @@ Page({
name: "售后", name: "售后",
}, },
], ],
navBarHeight: 0,
},
closeScreen() {
let { showSubmitPage } = this.data
if (!showSubmitPage) {
this.goEquityPage()
} else {
wx.$router.redirectTo("packageEquity.equityPage", {
tabIndex: 0,
});
}
},
navbarReady(e) {
let navBarHeight = e.detail.height;
this.setData({
navBarHeight,
});
}, },
getSystemInfo() { getSystemInfo() {
let _this = this; let _this = this;
...@@ -118,7 +135,7 @@ Page({ ...@@ -118,7 +135,7 @@ Page({
}); });
this.getDefencedetail(id); this.getDefencedetail(id);
} }
this.getDefencedetail(45); // this.getDefencedetail(858);
}, },
onShow: function () { }, onShow: function () { },
getDefencedetail(id) { getDefencedetail(id) {
...@@ -161,6 +178,7 @@ Page({ ...@@ -161,6 +178,7 @@ Page({
let { deafeatReason } = this.data; let { deafeatReason } = this.data;
const { item, index } = e.currentTarget.dataset; const { item, index } = e.currentTarget.dataset;
let str = deafeatReason; let str = deafeatReason;
if (deafeatReason) deafeatReason = deafeatReason + ','
str = deafeatReason + item.name; str = deafeatReason + item.name;
if (str.length > 50) { if (str.length > 50) {
str = deafeatReason; str = deafeatReason;
...@@ -454,15 +472,15 @@ Page({ ...@@ -454,15 +472,15 @@ Page({
wx.hideLoading(); wx.hideLoading();
console.log(res); console.log(res);
if (res && res.code == 0) { if (res && res.code == 0) {
if (type == 1) { // if (type == 1) {
wx.$util.showToast("提交成功"); // wx.$util.showToast("提交成功");
this.resetData(); // this.resetData();
} else { // } else {
wx.$util.showToast("提交成功"); // wx.$util.showToast("提交成功");
this.setData({ this.setData({
showSubmitPage: false, showSubmitPage: false,
}); });
} // }
} else { } else {
wx.$util.showToast(res.message); wx.$util.showToast(res.message);
} }
......
...@@ -5,5 +5,5 @@ ...@@ -5,5 +5,5 @@
"van-popup": "@vant/weapp/popup/index", "van-popup": "@vant/weapp/popup/index",
"van-picker": "@vant/weapp/picker/index" "van-picker": "@vant/weapp/picker/index"
}, },
"navigationBarTitleText":"战败下单" "navigationStyle": "custom"
} }
\ No newline at end of file \ No newline at end of file
...@@ -3,9 +3,28 @@ ...@@ -3,9 +3,28 @@
page { page {
background-color: #F7F8FA; background-color: #F7F8FA;
transition: none !important; 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 { .main {
box-sizing: border-box;
position: relative;
padding: 0 0 var(--fontSize136); padding: 0 0 var(--fontSize136);
} }
...@@ -84,6 +103,10 @@ page { ...@@ -84,6 +103,10 @@ page {
} }
.placeholder-class { .placeholder-class {
color: #666;
}
.placeholder-class {
color: #BEC1C7; color: #BEC1C7;
} }
...@@ -229,7 +252,7 @@ page { ...@@ -229,7 +252,7 @@ page {
.userAvatar { .userAvatar {
width: var(--fontSize40); width: var(--fontSize40);
height: var(--fontSize40); height: var(--fontSize40);
// margin-right: var(--fontSize16); margin-right: var(--fontSize20);
} }
.polish { .polish {
...@@ -347,7 +370,28 @@ page { ...@@ -347,7 +370,28 @@ page {
margin: 0 auto var(--fontSize20); margin: 0 auto var(--fontSize20);
} }
} }
.required {
color: #f00;
}
.isPad {
.body {
.contentText {
margin-left: var(--fontSize40);
}
}
.footer {
margin: 0 var(--fontSize64);
width: var(--fontSize1528);
}
}
.phonenumber {
color: #999;
} }
.required {
color: #f00;
} }
\ No newline at end of file \ No newline at end of file
<view class="main "> <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 }}"> <block wx:if="{{ showSubmitPage }}">
<view class="createData"> <view class="createData">
<view class="label">战败时间</view> <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> <!-- <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"> <view class="calendarItem text-center dateNum">
{{dateObj.todayShow}} {{dateObj.todayShow}}
<image class="solidArrow" src="/tabIndex/images/arrSolid.png" /> <image class="solidArrow" src="/tabIndex/images/arrSolid.png" />
</view> </view>
</calendar> <!-- </calendar> -->
</view> </view>
<view class="wrapper"> <view class="wrapper">
<view class="cell"> <view class="cell">
...@@ -18,11 +20,12 @@ ...@@ -18,11 +20,12 @@
</gl-cell> </gl-cell>
</view> </view>
<view class="cell two-cell"> <view class="cell two-cell">
<gl-cell border valueAlign="right" label="车主姓名" titleBtn="客户档案" bindtitleClick="showCustomPop" data-index="{{ ind }}" requiredAfter labelWidth="var(--fontSize390)" required> <!-- 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> <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>
<gl-cell border valueAlign="right" label="手机号" requiredAfter labelWidth="var(--fontSize140)" required> <gl-cell border disabled="{{true}}" 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> <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>
<gl-cell border valueAlign="right" label="客户来源" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" data-show-name="salesTypeShow" placeholder="点击选择"> <gl-cell border valueAlign="right" label="客户来源" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" data-show-name="salesTypeShow" placeholder="点击选择">
<view class="between"> <view class="between">
...@@ -34,10 +37,10 @@ ...@@ -34,10 +37,10 @@
<view class="label">战败原因<text class="required">*</text></view> <view class="label">战败原因<text class="required">*</text></view>
<view class="inner"> <view class="inner">
<textarea class="cus-textarea" bindinput="intReason" value="{{ deafeatReason }}" placeholder="请输入" placeholder-class="textarea-placeholder" maxlength="50"></textarea> <textarea class="cus-textarea" bindinput="intReason" value="{{ deafeatReason }}" placeholder="请输入" placeholder-class="textarea-placeholder" maxlength="50"></textarea>
<text class="maxCount">{{deafeatReason.length || 0}}/30</text> <text class="maxCount">{{deafeatReason.length || 0}}/50</text>
</view> </view>
<view class="select-content"> <view class="select-content">
<view class="tips">基于大模型的战败分析</view> <view class="tips" wx:if="{{reasonList.length}}">基于大模型的战败分析</view>
<block wx:for="{{ reasonList }}" wx:key="index"> <block wx:for="{{ reasonList }}" wx:key="index">
<view bind:tap="toSelectReason" data-item="{{ item }}" data-index="{{ index }}" class="reason">{{item.name}}</view> <view bind:tap="toSelectReason" data-item="{{ item }}" data-index="{{ index }}" class="reason">{{item.name}}</view>
</block> </block>
...@@ -50,10 +53,11 @@ ...@@ -50,10 +53,11 @@
</block> </block>
<block wx:else> <block wx:else>
<block wx:if="{{ showAiStatus }}"> <block wx:if="{{ showAiStatus }}">
<view class="submiticon submiticonOnly {{ deviceOrientation == 'landscape' ? 'landscape':'' }}"> <!-- <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> <gl-image class="sucesssubmit" webp src="/miniProgram/sucesssubmit.png"></gl-image>
</view> </view>
<view class="tipsIcon"> <view class="tipsIcon {{deviceOrientation == 'landscape' && isPad ? 'isPad':''}}">
<view class="header"> <view class="header">
<gl-image class="AImusic" webp src="/miniProgram/AImusic.png"></gl-image> <gl-image class="AImusic" webp src="/miniProgram/AImusic.png"></gl-image>
再遇到类似的场景,可以试试这么说~ 再遇到类似的场景,可以试试这么说~
...@@ -76,7 +80,7 @@ ...@@ -76,7 +80,7 @@
</block> </block>
</view> </view>
<view class="btn-group"> <view class="btn-group">
<view bind:tap="goEquityPage" class="btn-class primary">返回首页</view> <view bind:tap="goEquityPage" class="btn-class primary">返回列表</view>
</view> </view>
</block> </block>
<block wx:else> <block wx:else>
...@@ -84,11 +88,12 @@ ...@@ -84,11 +88,12 @@
<gl-image class="sucesssubmit centericon" webp src="/miniProgram/sucesssubmit.png"></gl-image> <gl-image class="sucesssubmit centericon" webp src="/miniProgram/sucesssubmit.png"></gl-image>
</view> </view>
<view class="btn-group successBtn"> <view class="btn-group successBtn">
<view bind:tap="goEquityPage" class="btn-class primary">返回首页</view> <view bind:tap="goEquityPage" class="btn-class primary">返回列表</view>
</view> </view>
</block> </block>
</block> </block>
</view> </view>
</block>
<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 }}" type="1" />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" /> <customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" />
<van-popup show="{{ salesTypeShow }}" position="bottom" bind:close="onCloseSaleType"> <van-popup show="{{ salesTypeShow }}" position="bottom" bind:close="onCloseSaleType">
......
...@@ -48,8 +48,8 @@ Component({ ...@@ -48,8 +48,8 @@ Component({
{ data } = await carLifeApi.getReceptionList({ { data } = await carLifeApi.getReceptionList({
merchantId: shopMerchantId, merchantId: shopMerchantId,
pageNum: 1, pageNum: 1,
// startTime: `2024-01-23 00:00:00`, // startTime: `2024-06-19 00:00:00`,
// endTime: `2024-04-23 23:59:59` // endTime: `2024-06-19 23:59:59`
startTime: `${today} 00:00:00`, startTime: `${today} 00:00:00`,
endTime: `${today} 23:59:59`, endTime: `${today} 23:59:59`,
bussinessType: 1, //"业务类型 1.延保 2.轻改" bussinessType: 1, //"业务类型 1.延保 2.轻改"
...@@ -73,15 +73,16 @@ Component({ ...@@ -73,15 +73,16 @@ Component({
}, },
jump(e) { jump(e) {
console.log(e); console.log(e);
const { item } = e.currentTarget.dataset, const { item } = e.currentTarget.dataset
{ mode } = this.data; // { mode } = this.data;
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) if (item.orderFlag) {
return wx.$util.showToast("您已为当前客户提单,请进入订单列表查看。"); return wx.$util.showToast("您已为当前客户提单,请进入订单列表查看。");
}
this.hidePopup(); this.hidePopup();
wx.$router.go("createDeafeatOrderAi", { detailInfo: item }); wx.$router.redirectTo("createDeafeatOrderAi", { detailInfo: item });
}, },
}, },
}); });
...@@ -49,8 +49,8 @@ Page({ ...@@ -49,8 +49,8 @@ Page({
); );
}, },
open() { open() {
const { isPad } = this.data; // const { isPad } = this.data;
if (!isPad) // if (!isPad)
// return wx.$util.showToast("为保证使用体验,快来工作平板上使用该功能吧"); // return wx.$util.showToast("为保证使用体验,快来工作平板上使用该功能吧");
this.setData({ this.setData({
showPopup: true, showPopup: true,
......
{ {
"usingComponents": { "usingComponents": {
"record-list":"./components/recordList/recordList" "record-list": "./components/recordList/recordList"
}, },
"navigationBarTitleText": "新建工单" "navigationBarTitleText": "新建工单",
"enablePullDownRefresh": false,
"disableScroll": true
} }
\ No newline at end of file \ No newline at end of file
...@@ -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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!