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>
......
...@@ -22,17 +22,17 @@ Component({ ...@@ -22,17 +22,17 @@ Component({
*/ */
data: { data: {
itemObject: [{ itemObject: [{
label: '联系方式', label: '联系方式',
key: 'phoneNumber' key: 'phoneNumber'
}, },
{ {
label: '销售姓名', label: '销售姓名',
key: 'salesName' key: 'salesName'
}, },
{ {
label: '开始接待', label: '开始接待',
key: 'startTime' key: 'startTime'
}, },
], ],
}, },
...@@ -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
...@@ -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,12 +49,12 @@ Page({ ...@@ -49,12 +49,12 @@ 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!