Commit 6adc4d94 by 张立顺

fix bug

1 parent 009a9efe
<!--packageCrowdFunding/pages/paymentSuccess/paymentSuccess.wxml--> <!--packageCrowdFunding/pages/paymentSuccess/paymentSuccess.wxml-->
<view class="successPay"> <view class="successPay">
<view class="tips">支付成功</view> <view class="tips">支付成功</view>
<view class="sum">订单支付成功,实付{{orderDetail.totalPrice}}元</view> <view class="sum">订单支付成功,实付{{orderDetail.finalPrice}}元</view>
</view> </view>
<view class="orderInfo"> <view class="orderInfo">
<activity-info OderType="pay" orderInfo="{{orderDetail}}" /> <activity-info OderType="pay" orderInfo="{{orderDetail}}" />
......
...@@ -294,7 +294,7 @@ Page({ ...@@ -294,7 +294,7 @@ Page({
'确定', '确定',
false, false,
1, 1,
() => {} () => { }
) )
} }
resolve() resolve()
...@@ -638,9 +638,9 @@ Page({ ...@@ -638,9 +638,9 @@ Page({
this.checkStaffOrderStatus() this.checkStaffOrderStatus()
] ]
// 检查是否有异常订单锁单 // 检查是否有异常订单锁单
const today = dayjs().day() // const today = dayjs().day()
console.log(today, 'today') // console.log(today, 'today')
if (today >= 1 && today <= 3 && this.data.tabIndex == 0) { if (this.data.tabIndex == 0) {
eventRequest.push(this.checkAbnormalOrderLocal()) eventRequest.push(this.checkAbnormalOrderLocal())
} }
Promise.all(eventRequest).then(() => { Promise.all(eventRequest).then(() => {
...@@ -697,7 +697,7 @@ Page({ ...@@ -697,7 +697,7 @@ Page({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
} }
}, },
...@@ -740,7 +740,7 @@ Page({ ...@@ -740,7 +740,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() {}, onReady() { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -781,17 +781,17 @@ Page({ ...@@ -781,17 +781,17 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() {}, onPullDownRefresh() { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() {}, onReachBottom() { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {}, onShareAppMessage() { },
// closeScreen() { // closeScreen() {
// this.selectComponent("#page-1").back(); // this.selectComponent("#page-1").back();
// }, // },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="payInfo"> <view class="payInfo">
<view class="payCom"> <view class="payCom">
<view class="title">支付成功</view> <view class="title">支付成功</view>
<view class="payPrice">订单支付成功,实付 {{orderDetail.totalPrice}} 元</view> <view class="payPrice">订单支付成功,实付 {{orderDetail.finalPrice}} 元</view>
</view> </view>
<view class="tips"> <view class="tips">
<view class="title">温馨提示</view> <view class="title">温馨提示</view>
...@@ -27,4 +27,3 @@ ...@@ -27,4 +27,3 @@
</view> </view>
<!-- 上传合同协议 --> <!-- 上传合同协议 -->
<zy-pay-popup show="{{showZyPopup}}" wx:if="{{showZyPopup}}" onlinePaymentFlag="{{true}}" bindconfirm="zyPayConfirm"></zy-pay-popup> <zy-pay-popup show="{{showZyPopup}}" wx:if="{{showZyPopup}}" onlinePaymentFlag="{{true}}" bindconfirm="zyPayConfirm"></zy-pay-popup>
\ No newline at end of file \ No newline at end of file
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
class="item-disabled" class="item-disabled"
border border
valueAlign="right" valueAlign="right"
label="原错误订单编码" label="原错误订单编号"
labelWidth="var(--fontSize280)" labelWidth="var(--fontSize280)"
value="{{ orderInfo.orderId }}" value="{{ orderInfo.payId }}"
/> />
<gl-cell <gl-cell
class="item-disabled" class="item-disabled"
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
valueAlign="right" valueAlign="right"
label="原错误订单总价" label="原错误订单总价"
labelWidth="var(--fontSize280)" labelWidth="var(--fontSize280)"
value="¥{{ orderInfo.quotedPriceUpdate }}" value="¥{{ orderInfo.finalPrice }}"
/> />
<gl-cell <gl-cell
border border
......
...@@ -112,6 +112,7 @@ Page({ ...@@ -112,6 +112,7 @@ Page({
'payPrice', 'payPrice',
'insurancePrice', 'insurancePrice',
'quotedPriceUpdate', 'quotedPriceUpdate',
'finalPrice',
'minEquityPrice' 'minEquityPrice'
], ],
firstEnter: true, firstEnter: true,
...@@ -574,14 +575,12 @@ Page({ ...@@ -574,14 +575,12 @@ Page({
} }
// 错误订单提交校验 // 错误订单提交校验
if (orderInfo.resetOrder) { if (orderInfo.resetOrder) {
let originalPrice = Number(orderInfo.quotedPriceUpdate || 0) let originalPrice = Number(orderInfo.finalPrice || 0)
let transactionPrice = NP.divide(this.data.totalFee || 0, 100) let transactionPrice = NP.divide(this.data.totalFee || 0, 100)
let currentTotal = Number(orderInfo.total || 0) let currentTotal = Number(orderInfo.total || 0)
if (NP.plus(originalPrice, transactionPrice) != currentTotal) { if (NP.plus(originalPrice, transactionPrice) != currentTotal) {
return wx.$util.showToast( return wx.$util.showToast('原错误订单总价+关联交易流水必须等于商品总价')
'【原错误订单总价+关联交易流水】必须等于【商品总价】'
)
} }
} else { } else {
// 正常订单校验总价不能小于0.01 // 正常订单校验总价不能小于0.01
...@@ -729,6 +728,7 @@ Page({ ...@@ -729,6 +728,7 @@ Page({
orderInfo.quotedPriceUpdate = this.multipliedByHundred( orderInfo.quotedPriceUpdate = this.multipliedByHundred(
orderInfo.quotedPriceUpdate orderInfo.quotedPriceUpdate
) )
orderInfo.finalPrice = this.multipliedByHundred(orderInfo.finalPrice)
// console.log(orderInfo.quotedPriceUpdate ); // console.log(orderInfo.quotedPriceUpdate );
// debugger // debugger
orderInfo.minEquityPrice = this.multipliedByHundred( orderInfo.minEquityPrice = this.multipliedByHundred(
...@@ -963,6 +963,7 @@ Page({ ...@@ -963,6 +963,7 @@ Page({
tableInfo.quotedPriceUpdate = this.divideByHundred( tableInfo.quotedPriceUpdate = this.divideByHundred(
tableInfo.quotedPriceUpdate tableInfo.quotedPriceUpdate
) )
tableInfo.finalPrice = this.divideByHundred(tableInfo.finalPrice)
tableInfo.vdQuotationGoodsList = tableInfo.vdQuotationGoodsList.map( tableInfo.vdQuotationGoodsList = tableInfo.vdQuotationGoodsList.map(
item => { item => {
......
...@@ -314,7 +314,7 @@ Page({ ...@@ -314,7 +314,7 @@ Page({
}) })
getRecruitDetailAPI({ getRecruitDetailAPI({
id: '341' id
}) })
.then(res => { .then(res => {
let { let {
...@@ -386,7 +386,7 @@ Page({ ...@@ -386,7 +386,7 @@ Page({
recruitmentInfoConfig: filteredRecruitmentInfoConfig recruitmentInfoConfig: filteredRecruitmentInfoConfig
}) })
}) })
.catch(err => { }) .catch(err => {})
}, },
/** /**
* 处理按钮点击 * 处理按钮点击
...@@ -666,35 +666,35 @@ Page({ ...@@ -666,35 +666,35 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() { }, onReady() {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { }, onShow() {},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() { }, onHide() {},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() { }, onUnload() {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() { }, onPullDownRefresh() {},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() { }, onReachBottom() {},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { } onShareAppMessage() {}
}) })
...@@ -173,7 +173,7 @@ Page({ ...@@ -173,7 +173,7 @@ Page({
}) })
} }
}, },
error: () => {} error: () => { }
}, },
'#modal2' '#modal2'
) )
...@@ -607,7 +607,7 @@ Page({ ...@@ -607,7 +607,7 @@ Page({
return (360 * Math.atan(_Y / _X)) / (2 * Math.PI) return (360 * Math.atan(_Y / _X)) / (2 * Math.PI)
}, },
init(userInfo) {}, init(userInfo) { },
search() { search() {
wx.$orderListRefresh = false wx.$orderListRefresh = false
let { searchObj, userInfo } = this.data let { searchObj, userInfo } = this.data
...@@ -692,8 +692,8 @@ Page({ ...@@ -692,8 +692,8 @@ Page({
const goodsOrderApplyStatusMap = { const goodsOrderApplyStatusMap = {
1: '审批中', 1: '审批中',
2: '审批中', 2: '审批中',
3: '审核通过', 3: '审批通过',
4: '驳回' 4: '审批驳回'
} }
e.goodsOrderApplyStatusText = e.goodsOrderApplyStatusText =
goodsOrderApplyStatusMap[e.goodsOrderApplyStatus] || '' goodsOrderApplyStatusMap[e.goodsOrderApplyStatus] || ''
...@@ -941,7 +941,7 @@ Page({ ...@@ -941,7 +941,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () {}, onReady: function () { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -953,22 +953,22 @@ Page({ ...@@ -953,22 +953,22 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () {}, onUnload: function () { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
scrollonReachBottom() { scrollonReachBottom() {
let { total, pageNum } = this.data let { total, pageNum } = this.data
wx.$util.onReachBottom( wx.$util.onReachBottom(
...@@ -991,5 +991,5 @@ Page({ ...@@ -991,5 +991,5 @@ Page({
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {} onShareAppMessage: function () { }
}) })
...@@ -8,15 +8,7 @@ ...@@ -8,15 +8,7 @@
<view class="search-box"> <view class="search-box">
<view class="search-input"> <view class="search-input">
<image src="/images/search.png" class="search-icon" /> <image src="/images/search.png" class="search-icon" />
<input <input type="text" placeholder="客户姓名/商品名称/订单编号/手机号" class="input" value="{{ keyword }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
type="text"
placeholder="客户姓名/商品名称/订单编号/手机号"
class="input"
value="{{ keyword }}"
placeholder-class="input-placeholder"
bindinput="input"
bindconfirm="search"
/>
<block wx:if="{{ keyword }}"> <block wx:if="{{ keyword }}">
<image src="/images/clear.png" class="search-clear" bindtap="clear" /> <image src="/images/clear.png" class="search-clear" bindtap="clear" />
</block> </block>
...@@ -32,40 +24,14 @@ ...@@ -32,40 +24,14 @@
</view> </view>
<!-- 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销 --> <!-- 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销 -->
<block wx:if="{{ flag }}"> <block wx:if="{{ flag }}">
<scroll-view <scroll-view scroll-y enable-back-to-top refresher-enabled="{{ true }}" bindrefresherrefresh="search" bindscrolltolower="scrollonReachBottom" bindscroll="onPageScroll" class="list" style="height:calc(100vh - {{ navBarHeight }}px - var(--fontSize160));" refresher-threshold="104" refresher-triggered="{{ triggered }}">
scroll-y
enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="search"
bindscrolltolower="scrollonReachBottom"
bindscroll="onPageScroll"
class="list"
style="height:calc(100vh - {{ navBarHeight }}px - var(--fontSize160));"
refresher-threshold="104"
refresher-triggered="{{ triggered }}"
>
<block wx:if="{{ list.length > 0 }}"> <block wx:if="{{ list.length > 0 }}">
<block wx:for="{{ list }}" wx:key="index"> <block wx:for="{{ list }}" wx:key="index">
<block wx:for="{{ item }}" wx:for-item="li" wx:for-index="ind" wx:key="ind"> <block wx:for="{{ item }}" wx:for-item="li" wx:for-index="ind" wx:key="ind">
<view <view style="{{ li.txtStyle }}" class="touch-item {{ li.isTouchMove ? 'touch-move-active' : '' }}" data-ind="{{ ind }}" data-index="{{ index }}">
style="{{ li.txtStyle }}"
class="touch-item {{ li.isTouchMove ? 'touch-move-active' : '' }}"
data-ind="{{ ind }}"
data-index="{{ index }}"
>
<!-- 广汇订单出库成功 --> <!-- 广汇订单出库成功 -->
<image wx:if="{{ li.outboundStatus == 4 }}" class="stockIcon" src="../../images/stockIcon.png" /> <image wx:if="{{ li.outboundStatus == 4 }}" class="stockIcon" src="../../images/stockIcon.png" />
<view <view class="item content" catchtap="jump" data-ind="{{ ind }}" data-index="{{ index }}" bindtouchstart="touchstart" bindtouchmove="touchmove" bindtouchend="touchE" data-name="{{ li.status == 3 ? 'confirmOrder' : li.status == 1 ? 'createOrder' : 'orderDetail' }}" data-item="{{ li }}">
class="item content"
catchtap="jump"
data-ind="{{ ind }}"
data-index="{{ index }}"
bindtouchstart="touchstart"
bindtouchmove="touchmove"
bindtouchend="touchE"
data-name="{{ li.status == 3 ? 'confirmOrder' : li.status == 1 ? 'createOrder' : 'orderDetail' }}"
data-item="{{ li }}"
>
<view class="status text-center" style="color:{{ li.statuscolor }};background-color:{{li.statusbackground }};"> <view class="status text-center" style="color:{{ li.statuscolor }};background-color:{{li.statusbackground }};">
<block wx:if="{{ li.status == 1||li.status == 3 }}"> <block wx:if="{{ li.status == 1||li.status == 3 }}">
<block wx:if="{{ status[li.status].background }}"> <block wx:if="{{ status[li.status].background }}">
...@@ -82,23 +48,12 @@ ...@@ -82,23 +48,12 @@
<view class="name"> <view class="name">
<!-- <image src="/images/avatar.png" /> --> <!-- <image src="/images/avatar.png" /> -->
<view class="name-text text-hide">{{li.customer.customerName}}</view> <view class="name-text text-hide">{{li.customer.customerName}}</view>
<image <image class="name-sex-icon" src="{{ IMG_URL}}{{li.customer.customerSex == 1 ? 'miniProgram/icon-man.png' : 'miniProgram/icon-woman.png' }}" mode="" />
class="name-sex-icon"
src="{{ IMG_URL}}{{li.customer.customerSex == 1 ? 'miniProgram/icon-man.png' : 'miniProgram/icon-woman.png' }}"
mode=""
/>
</view> </view>
<view class="goods-list" style="padding-bottom:{{ li.subOrderList.length<1?0:'' }}"> <view class="goods-list" style="padding-bottom:{{ li.subOrderList.length<1?0:'' }}">
<block wx:if="{{ li.subOrderList.length }}"> <block wx:if="{{ li.subOrderList.length }}">
<block wx:for="{{ li.subOrderList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex"> <block wx:for="{{ li.subOrderList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<view <view catch:tap="foldUp" data-item="{{ i }}" data-index="{{ sindex }}" data-listindex="{{ ind }}" class="goods {{ filter.subStatus(i.constructionStatus) }} {{i.packageGoodsOrderList?'pullDownArrow':''}} {{i.foldUp?'showAllGoodsListFlag':'' }}" wx:if="{{ li.showAllGoodsListFlag ? true : sindex < 2 }}">
catch:tap="foldUp"
data-item="{{ i }}"
data-index="{{ sindex }}"
data-listindex="{{ ind }}"
class="goods {{ filter.subStatus(i.constructionStatus) }} {{i.packageGoodsOrderList?'pullDownArrow':''}} {{i.foldUp?'showAllGoodsListFlag':'' }}"
wx:if="{{ li.showAllGoodsListFlag ? true : sindex < 2 }}"
>
<view class="goods-name text-hide"> <view class="goods-name text-hide">
{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || i.packageName||''}} {{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || i.packageName||''}}
</view> </view>
...@@ -108,10 +63,7 @@ ...@@ -108,10 +63,7 @@
</view> </view>
</view> </view>
<!-- 显示套餐子商品 --> <!-- 显示套餐子商品 -->
<view <view class="packgoodsListCon" wx:if="{{ i.packageGoodsOrderList&&!i.foldUp&&( li.showAllGoodsListFlag ? true : sindex < 2) }}">
class="packgoodsListCon"
wx:if="{{ i.packageGoodsOrderList&&!i.foldUp&&( li.showAllGoodsListFlag ? true : sindex < 2) }}"
>
<block wx:for="{{ i.packageGoodsOrderList }}" wx:key="packindex" wx:for-item="packchild" wx:for-index="packindex"> <block wx:for="{{ i.packageGoodsOrderList }}" wx:key="packindex" wx:for-item="packchild" wx:for-index="packindex">
<view class="goods {{ filter.subStatus(packchild.constructionStatus) }}"> <view class="goods {{ filter.subStatus(packchild.constructionStatus) }}">
<view class="goods-name text-hide"> <view class="goods-name text-hide">
...@@ -134,10 +86,11 @@ ...@@ -134,10 +86,11 @@
</block> </block>
</view> </view>
<!-- 错误订单修复显示这个两个字段 --> <!-- 错误订单修复显示这个两个字段 -->
<view class="error-order-info" wx:if="{{ li.associateOrderCode != 11 && li.associateOrderCode }}"> <!-- <view>{{li.associatedOrderCode != 11}}{{li.associatedOrderCode}}</view> -->
<view class="error-order-info" wx:if="{{ li.associatedOrderCode && li.status!=11 }}">
<view class="info-row"> <view class="info-row">
<view class="info-label">原错误订单编号</view> <view class="info-label">原错误订单编号</view>
<view class="info-value">{{li.associateOrderCode}}</view> <view class="info-value">{{li.associatedOrderCode}}</view>
</view> </view>
<view class="info-row"> <view class="info-row">
<view class="info-label">原错误订单总价</view> <view class="info-label">原错误订单总价</view>
...@@ -213,14 +166,7 @@ ...@@ -213,14 +166,7 @@
<!-- footer --> <!-- footer -->
</view> </view>
<block wx:if="{{ isMake }}"> <block wx:if="{{ isMake }}">
<view <view wx:if="{{ !li['confirmIndex'] }}" class="del" catchtap="delBtn" data-ind="{{ ind }}" data-item="{{ li }}" data-index="{{ index }}">
wx:if="{{ !li['confirmIndex'] }}"
class="del"
catchtap="delBtn"
data-ind="{{ ind }}"
data-item="{{ li }}"
data-index="{{ index }}"
>
<view>撤销</view> <view>撤销</view>
<view>工单</view> <view>工单</view>
</view> </view>
...@@ -272,23 +218,12 @@ ...@@ -272,23 +218,12 @@
<gl-image class="icon" src="/miniProgram/order3.png"></gl-image> <gl-image class="icon" src="/miniProgram/order3.png"></gl-image>
战败下单 战败下单
</view> </view>
<view <view wx:if="{{ isSettingExpiredTraffic && !isScan }}" class="modalbox cancle {{ selectType == 3?'act': '' }}" bindtap="selectType" data-type="3">
wx:if="{{ isSettingExpiredTraffic && !isScan }}"
class="modalbox cancle {{ selectType == 3?'act': '' }}"
bindtap="selectType"
data-type="3"
>
<gl-image class="icon" src="/miniProgram/order4.png"></gl-image> <gl-image class="icon" src="/miniProgram/order4.png"></gl-image>
失效客户 失效客户
</view> </view>
</view> </view>
</modal> </modal>
<recording-order-popup wx:if="{{ showOrderpop }}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" /> <recording-order-popup wx:if="{{ showOrderpop }}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" />
<order-prompt-popup <order-prompt-popup wx:if="{{ showPromptDialog }}" show="{{ showPromptDialog }}" bindcancel="promptCancel" bindconfirm="promptHandleConfirm" sceneObj="{{ sceneObj }}"></order-prompt-popup>
wx:if="{{ showPromptDialog }}"
show="{{ showPromptDialog }}"
bindcancel="promptCancel"
bindconfirm="promptHandleConfirm"
sceneObj="{{ sceneObj }}"
></order-prompt-popup>
<study-permission-modal id="customModal" /> <study-permission-modal id="customModal" />
\ No newline at end of file \ No newline at end of file
...@@ -258,8 +258,8 @@ const clockedIntoWork = userInfo => { ...@@ -258,8 +258,8 @@ const clockedIntoWork = userInfo => {
// 学习中心 开单限制 // 学习中心 开单限制
const checkStudyTask = () => { const checkStudyTask = () => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// resolve(false) resolve(false)
// return return
wx.showLoading() wx.showLoading()
api.checkStudyTaskAPI().then(res => { api.checkStudyTaskAPI().then(res => {
wx.hideLoading() wx.hideLoading()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<wxs src="./index.wxs" module="filter" /> <wxs src="./index.wxs" module="filter" />
<view class="successPay"> <view class="successPay">
<view class="tips">支付成功</view> <view class="tips">支付成功</view>
<view class="sum">订单支付成功,实付{{orderDetail.totalPrice}}元</view> <view class="sum">订单支付成功,实付{{orderDetail.finalPrice}}元</view>
</view> </view>
<view class="orderInfo"> <view class="orderInfo">
<view class="orderInfoCom"> <view class="orderInfoCom">
......
...@@ -1213,11 +1213,11 @@ Page({ ...@@ -1213,11 +1213,11 @@ Page({
) )
eventRequest.push(this.checkAgreeClient(wx.$util.getUserInfo())) eventRequest.push(this.checkAgreeClient(wx.$util.getUserInfo()))
// 检查是否有异常订单锁单 // 检查是否有异常订单锁单
const today = dayjs().day() // const today = dayjs().day()
console.log(today, 'today = dayjs().day()'); // console.log(today, 'today = dayjs().day()');
if (today >= 1 && today <= 3) { // if (today >= 1 && today <= 3) {
// }
eventRequest.push(this.checkAbnormalOrderLocal()) eventRequest.push(this.checkAbnormalOrderLocal())
}
// 如果是员工 判读是否要填写日报 // 如果是员工 判读是否要填写日报
// isStaff && eventRequest.push(this.staffDailyReport(wx.$util.getUserInfo())); // isStaff && eventRequest.push(this.staffDailyReport(wx.$util.getUserInfo()));
......
...@@ -288,7 +288,7 @@ value="{{ orderObj.remark }}" ...@@ -288,7 +288,7 @@ value="{{ orderObj.remark }}"
class="item-disabled" class="item-disabled"
border border
valueAlign="right" valueAlign="right"
label="原错误订单编码" label="原错误订单编号"
labelWidth="var(--fontSize280)" labelWidth="var(--fontSize280)"
value="{{ orderObj.associateOrderCode }}" value="{{ orderObj.associateOrderCode }}"
/> />
......
...@@ -171,7 +171,7 @@ ErrorOrderPriceStrategy.prototype.validate = async function () { ...@@ -171,7 +171,7 @@ ErrorOrderPriceStrategy.prototype.validate = async function () {
if (NP.minus(NP.plus(originalPrice, associatedPrice), currentTotal) !== 0) { if (NP.minus(NP.plus(originalPrice, associatedPrice), currentTotal) !== 0) {
return ValidationResult.failure( return ValidationResult.failure(
'【原错误订单总价+关联交易流水】必须等于【商品总价】' '原错误订单总价+关联交易流水必须等于商品总价'
) )
} }
} }
......
...@@ -6,15 +6,7 @@ ...@@ -6,15 +6,7 @@
<view class="search-box"> <view class="search-box">
<view class="search-input"> <view class="search-input">
<image src="/images/search.png" class="search-icon" /> <image src="/images/search.png" class="search-icon" />
<input <input type="text" placeholder="客户姓名/商品名称/订单编号/手机号" class="input" value="{{ keyword }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
type="text"
placeholder="客户姓名/商品名称/订单编号/手机号"
class="input"
value="{{ keyword }}"
placeholder-class="input-placeholder"
bindinput="input"
bindconfirm="search"
/>
<block wx:if="{{ keyword }}"> <block wx:if="{{ keyword }}">
<image src="/images/clear.png" class="search-clear" bindtap="clear" /> <image src="/images/clear.png" class="search-clear" bindtap="clear" />
</block> </block>
...@@ -30,39 +22,14 @@ ...@@ -30,39 +22,14 @@
</view> </view>
<!-- 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销 --> <!-- 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销 -->
<block wx:if="{{ flag }}"> <block wx:if="{{ flag }}">
<scroll-view <scroll-view scroll-y enable-back-to-top refresher-enabled="{{ true }}" bindrefresherrefresh="search" bindscrolltolower="scrollonReachBottom" class="list" style="height:calc(100vh - {{ navBarHeight + 104 }}px);" refresher-threshold="104" refresher-triggered="{{ triggered }}">
scroll-y
enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="search"
bindscrolltolower="scrollonReachBottom"
class="list"
style="height:calc(100vh - {{ navBarHeight + 104 }}px);"
refresher-threshold="104"
refresher-triggered="{{ triggered }}"
>
<block wx:if="{{ list.length > 0 }}"> <block wx:if="{{ list.length > 0 }}">
<block wx:for="{{ list }}" wx:key="index"> <block wx:for="{{ list }}" wx:key="index">
<block wx:for="{{ item }}" wx:for-item="li" wx:for-index="ind" wx:key="ind"> <block wx:for="{{ item }}" wx:for-item="li" wx:for-index="ind" wx:key="ind">
<view <view style="{{ li.txtStyle }}" class="touch-item {{ li.isTouchMove ? 'touch-move-active' : '' }}" data-ind="{{ ind }}" data-index="{{ index }}">
style="{{ li.txtStyle }}"
class="touch-item {{ li.isTouchMove ? 'touch-move-active' : '' }}"
data-ind="{{ ind }}"
data-index="{{ index }}"
>
<!-- 广汇订单出库成功 --> <!-- 广汇订单出库成功 -->
<image wx:if="{{ li.outboundStatus == 4 }}" class="stockIcon" src="../../images/stockIcon.png" /> <image wx:if="{{ li.outboundStatus == 4 }}" class="stockIcon" src="../../images/stockIcon.png" />
<view <view class="item content {{ li.status == 9 ||li.status ==11?'gray':'' }}" catchtap="jump" data-ind="{{ ind }}" data-index="{{ index }}" bindtouchstart="touchstart" bindtouchmove="touchmove" bindtouchend="touchE" data-name="{{ li.status == 3 ? 'confirmOrder' : li.status == 1? 'createOrder' : 'orderDetail' }}" data-item="{{ li }}">
class="item content {{ li.status == 9 ||li.status ==11?'gray':'' }}"
catchtap="jump"
data-ind="{{ ind }}"
data-index="{{ index }}"
bindtouchstart="touchstart"
bindtouchmove="touchmove"
bindtouchend="touchE"
data-name="{{ li.status == 3 ? 'confirmOrder' : li.status == 1? 'createOrder' : 'orderDetail' }}"
data-item="{{ li }}"
>
<view class="status text-center" style="color:{{ li.statuscolor }};background-color:{{li.statusbackground }};"> <view class="status text-center" style="color:{{ li.statuscolor }};background-color:{{li.statusbackground }};">
<block wx:if="{{ li.status == 1||li.status == 3 }}"> <block wx:if="{{ li.status == 1||li.status == 3 }}">
<block wx:if="{{ status[li.status].background }}"> <block wx:if="{{ status[li.status].background }}">
...@@ -179,14 +146,7 @@ ...@@ -179,14 +146,7 @@
<!-- </block> --> <!-- </block> -->
<!-- </block> --> <!-- </block> -->
</view> </view>
<view <view wx:if="{{ !li['confirmIndex'] }}" class="del" catchtap="delBtn" data-ind="{{ ind }}" data-item="{{ li }}" data-index="{{ index }}">
wx:if="{{ !li['confirmIndex'] }}"
class="del"
catchtap="delBtn"
data-ind="{{ ind }}"
data-item="{{ li }}"
data-index="{{ index }}"
>
<view>撤销</view> <view>撤销</view>
<view>工单</view> <view>工单</view>
</view> </view>
...@@ -217,10 +177,4 @@ ...@@ -217,10 +177,4 @@
</view> </view>
</block> </block>
</block> </block>
<order-confirm
show="{{ show_confirm }}"
userInfo="{{ userInfo }}"
type="1"
navBarHeight="{{ navBarHeight }}"
orderStatus="{{ tabIndex }}"
/>
\ No newline at end of file \ No newline at end of file
<order-confirm show="{{ show_confirm }}" userInfo="{{ userInfo }}" type="1" navBarHeight="{{ navBarHeight }}" orderStatus="{{ tabIndex }}" />
\ No newline at end of file \ No newline at end of file
...@@ -61,8 +61,8 @@ const domain_items = { ...@@ -61,8 +61,8 @@ const domain_items = {
// dj: "http://192.168.1.86:8594", //蔡远明 // dj: "http://192.168.1.86:8594", //蔡远明
// dj: 'http://192.168.1.104:8292',//范富荣 // dj: 'http://192.168.1.104:8292',//范富荣
// dj: 'http://192.168.1.89:8292', //周杭 // dj: 'http://192.168.1.89:8292', //周杭
dj: 'http://192.168.1.76:8292', //璐琦 // dj: 'http://192.168.1.76:8292', //璐琦
// dj: 'http://192.168.1.122:8292', //庞善天 dj: 'http://192.168.1.122:8292', //庞善天
// dj: 'http://192.168.1.227:8292',//陈希 // dj: 'http://192.168.1.227:8292',//陈希
// dj: 'http://192.168.1.67:8292',//周立明 // dj: 'http://192.168.1.67:8292',//周立明
// dj: 'http://192.168.148.235:8292',// 熊正顺 // dj: 'http://192.168.148.235:8292',// 熊正顺
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!