Commit e873dc4b by 张立顺

fix bug修复

1 parent 15d90b48
...@@ -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;
......
...@@ -71,46 +71,45 @@ Page({ ...@@ -71,46 +71,45 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) {}, onLoad(options) { },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() {}, onReady() { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
// this.onPageShow() this.onPageShow()
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() {}, onHide() { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() { onUnload() {
// console.log(22222); this.onHide()
// this.onHide() this.onPageHide()
// this.onPageHide()
}, },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() {}, onPullDownRefresh() { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() {}, onReachBottom() { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {} onShareAppMessage() { }
}) })
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- <view class="headerBar"> <!-- 权益提单列表 -->
<view class="totalCount">
<view class="item">
<image src="/packageEquity/images/order-dbd.png" class="total-icon" />
<view>待补单</view>
<view class="num">{{statisticsObj.ladingOder || 0}}</view>
</view>
<view class="item">
<image src="/packageEquity/images/order-fail.png" class="total-icon" />
<view>失败提单</view>
<view class="num">{{statisticsObj.failed || 0}}</view>
</view>
<view class="item">
<image src="/packageEquity/images/order-success.png" class="total-icon" />
<view>成功提单</view>
<view class="num">{{statisticsObj.success || 0}}</view>
</view>
</view>
</view> -->
<!-- style="margin-top:{{navBarHeight}}px" -->
<view class="main"> <view class="main">
<view class="to-box"> <view class="to-box">
<view class="search-box"> <view class="search-box">
......
...@@ -848,7 +848,7 @@ Page({ ...@@ -848,7 +848,7 @@ Page({
goodsNameAlias: item.upgradeGoodsAlias, goodsNameAlias: item.upgradeGoodsAlias,
appreciation: item?.appreciation, appreciation: item?.appreciation,
goodsName: item?.upgradeGoodsName, goodsName: item?.upgradeGoodsName,
specificationNameSequence: item.specificationTypeSequence && item.specificationNameSequence ? item.specificationNameSequence.replace(/;~;/g, '/') : '', specificationNameSequence: item.specificationTypeSequence && item.specificationNameSequence ? item.specificationNameSequence.replace(/;~;/g, '/') : '',
specificationData: item.specificationTypeSequence && item.specificationData ? item.specificationData.replace(/;~;/g, '/') : '', specificationData: item.specificationTypeSequence && item.specificationData ? item.specificationData.replace(/;~;/g, '/') : '',
quotationGoodsServiceItemsRelationDTOList: quotationGoodsServiceItemsRelationDTOList:
item?.upgradeGoodsServiceItemsList, item?.upgradeGoodsServiceItemsList,
...@@ -951,7 +951,7 @@ Page({ ...@@ -951,7 +951,7 @@ Page({
init() { }, init() { },
onRoute(options) { onRoute(options) {
// console.log(options, "options"); // console.log(options, "options");
// options.id = 258 options.id = 9047
let { firstEnter } = this.data let { firstEnter } = this.data
// 判断是编辑还是新增 // 判断是编辑还是新增
let { let {
......
...@@ -477,7 +477,7 @@ Component({ ...@@ -477,7 +477,7 @@ Component({
// 校验是否填写昨日日报 // 校验是否填写昨日日报
let staffCheck = await checkDailyReport(true); let staffCheck = await checkDailyReport(true);
if (staffCheck) return false; if (staffCheck) return false;
return this.setData({showZyPayPopup: true, showZyTarget: target}) return this.setData({ showZyPayPopup: true, showZyTarget: target })
} }
// wx.$router.go('createOrderCarQuotation', { // wx.$router.go('createOrderCarQuotation', {
// id: target.id // id: target.id
...@@ -591,7 +591,7 @@ Component({ ...@@ -591,7 +591,7 @@ Component({
if (code == 0) { if (code == 0) {
let orderInfo = this.getInsurance(data) let orderInfo = this.getInsurance(data)
// 更新客户信息 // 更新客户信息
updateCustomerInfo({...orderInfo, zyPayUrl: e.detail?.zyPayUrl?.join(',')}).then(result => { updateCustomerInfo({ ...orderInfo, zyPayUrl: e.detail?.zyPayUrl?.join(',') }).then(result => {
this.setData({ this.setData({
showZyPayPopup: false showZyPayPopup: false
}, () => { }, () => {
...@@ -925,7 +925,7 @@ Component({ ...@@ -925,7 +925,7 @@ Component({
selectType: type, selectType: type,
}); });
}, },
// 确定是否要显示 // 确定是否要显示
showErrorType(item) { showErrorType(item) {
wx.$modal( wx.$modal(
this, this,
...@@ -948,7 +948,7 @@ Component({ ...@@ -948,7 +948,7 @@ Component({
); );
} else { } else {
// 无需补录 // 无需补录
errorOrderById({oldQuotationId: item.id, needCreateNewOrder: false}).then(res => { errorOrderById({ oldQuotationId: item.id, needCreateNewOrder: false }).then(res => {
let { code, message } = res let { code, message } = res
if (code == 0) { if (code == 0) {
this.search() this.search()
......
<!-- packageEquity/pages/carQuotation/index/index.wxml --> <!-- packageEquity/pages/carQuotation/index/index.wxml -->
<!-- <view class="headerBar"> <!-- 数字报价列表 -->
<view class="totalCount">
<view class="left box">
<view class="label">今日营业额</view>
<view class="num item">
<view class="labelStr">¥</view>
<view class="company">{{statisticsObj.todayTurnover || 0}}</view>
<view class="decimal">.{{statisticsObj.todayTurDecimal}}</view>
</view>
<view class="count num">
今日成交量
<view class="countNum">{{statisticsObj.todayOrderNumber || 0}}</view>
</view>
</view>
<view class="line" />
<view class="right left box">
<view class="label">本月营业额</view>
<view class="num item">
<view class="labelStr">¥</view>
<view class="company">{{statisticsObj.monthTurnover || 0}}</view>
</view>
<view class="count num">
本月成交量
<view class="countNum">{{statisticsObj.monthOrderNumber || 0}}</view>
</view>
</view>
<view class="line" />
<view class="right box">
<view class="label">累计营业额</view>
<view class="num item">
<view class="labelStr">¥</view>
<view class="company">{{statisticsObj.totalTurnover || 0}}</view>
</view>
<view class="count num">
累计成交量
<view class="countNum">{{statisticsObj.totalOrderNumber || 0}}</view>
</view>
</view>
</view>
</view> -->
<!-- style="margin-top:{{navBarHeight}}px" -->
<view class="main"> <view class="main">
<view class="to-box"> <view class="to-box">
<view class="search-box"> <view class="search-box">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!