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}}" />
......
...@@ -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>
...@@ -20,11 +20,10 @@ ...@@ -20,11 +20,10 @@
</view> </view>
</view> </view>
<view class="order-info"> <view class="order-info">
<order-info OderType="detail" orderInfo="{{orderDetail}}" /> <order-info OderType="detail" orderInfo="{{orderDetail}}" />
</view> </view>
<view class="btn_box"> <view class="btn_box">
<Gl-Button-Group bindbtnTap="btnTap" wx:if="{{showBtnFlag}}" textNameObj="{{textNameObj}}" /> <Gl-Button-Group bindbtnTap="btnTap" wx:if="{{showBtnFlag}}" textNameObj="{{textNameObj}}" />
</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() {}
}) })
...@@ -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
module.exports = { module.exports = {
data: { data: {
orderObj: [ orderObj: [
{ {
label: '工单编号:', label: '工单编号:',
key: 'orderCode', key: 'orderCode',
copy: true copy: true
}, },
{ {
label: '工单时间:', label: '工单时间:',
key: 'time', key: 'time',
dateChange: true dateChange: true
}, },
{ {
label: '工单状态:', label: '工单状态:',
key: 'status', key: 'status',
color: '#14CC68', color: '#14CC68',
status: true status: true
}, },
{ {
label: '支付方式:', label: '支付方式:',
key: 'payType', key: 'payType',
payType: true payType: true
} }
], ],
customerObj: [ customerObj: [
{ {
label: '客户姓名:', label: '客户姓名:',
key: 'customerName' key: 'customerName'
}, },
{ {
label: '性别:', label: '性别:',
key: 'customerSex', key: 'customerSex',
enum: { enum: {
1: '男', 1: '男',
2: '女' 2: '女'
} }
}, },
{ {
label: '手机号:', label: '手机号:',
key: 'customerPhone', key: 'customerPhone',
color: '#347BFF', color: '#347BFF',
callBack: 'makePhoneCall', callBack: 'makePhoneCall',
copy: true copy: true
}, },
{ {
label: '车型:', label: '车型:',
key: 'carType' key: 'carType'
}, },
{ {
label: '车架号:', label: '车架号:',
key: 'standNo' key: 'standNo'
}, },
{ {
label: '车牌号:', label: '车牌号:',
key: 'plateNumber' key: 'plateNumber'
}, },
{ {
label: '是否体验:', label: '是否体验:',
key: 'experienceFlag', key: 'experienceFlag',
enum: { enum: {
Y: '是', Y: '是',
N: '否' N: '否'
} }
}, },
{ {
label: '销售顾问:', label: '销售顾问:',
arr: ['merchantName', 'employeeName'] arr: ['merchantName', 'employeeName']
}, },
{ {
label: '转化专员:', label: '转化专员:',
arr: ['sellerMerchantName', 'sellerName'] arr: ['sellerMerchantName', 'sellerName']
}, },
{ {
label: '备注:', label: '备注:',
key: 'remark' key: 'remark'
} }
], ],
payType: { payType: {
0: '战败', 0: '战败',
1: '微信支付', 1: '微信支付',
2: '门店收款', 2: '门店收款',
3: 'pos机支付', 3: 'pos机支付',
4: '支付宝支付', 4: '支付宝支付',
5: '嘀加收款', 5: '嘀加收款',
6: '对公转账', 6: '对公转账',
7: '其它收款' 7: '其它收款'
}, },
orderType: [ orderType: [
{ {
name: '全部', name: '全部',
active: true, active: true,
value: [] value: []
}, },
{ {
name: '升级下单', name: '升级下单',
value: [1, 2, 3, 4, 6] value: [1, 2, 3, 4, 6]
}, },
{ {
name: '核销抵扣', name: '核销抵扣',
value: [5] value: [5]
} }
], ],
status: { status: {
12: { 12: {
text: '已退款', text: '已退款',
color: '#8F959E' color: '#8F959E'
}, },
11: { 11: {
text: '错误订单', text: '错误订单',
color: '#EB4E4E', color: '#EB4E4E',
background: '#fdeded' background: '#fdeded'
}, },
14: { 14: {
text: '审批中', text: '审批中',
color: '#FF9D0A', color: '#FF9D0A',
background: '#fff5e6' background: '#fff5e6'
}, },
10: { 10: {
text: '已关闭', text: '已关闭',
color: '#8F959E' color: '#8F959E'
}, },
9: { 9: {
text: '已撤销', text: '已撤销',
color: '#8F959E' color: '#8F959E'
}, },
1: { 1: {
text: '待跟进', text: '待跟进',
color: '#FF9D0A', color: '#FF9D0A',
background: '#FFF5E6' background: '#FFF5E6'
}, },
2: { 2: {
text: '战败', text: '战败',
color: '#F24724', color: '#F24724',
background: '#FDECE9' background: '#FDECE9'
}, },
3: { 3: {
text: '待支付', text: '待支付',
color: '#FF9D0A', color: '#FF9D0A',
background: '#FFF5E6' background: '#FFF5E6'
}, },
4: { 4: {
text: '已支付', text: '已支付',
color: '#35C376', color: '#35C376',
background: '#EAF9F1' background: '#EAF9F1'
}, },
6: { 6: {
text: '已评价', text: '已评价',
color: '#347BFF', color: '#347BFF',
background: '#EAF1FF' background: '#EAF1FF'
} }
}, },
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销 // 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销
statusList: [ statusList: [
{ {
name: '待跟进', name: '待跟进',
value: [1] value: [1]
}, },
{ {
name: '已支付', name: '已支付',
value: [4] value: [4]
}, },
{ {
name: '待支付', name: '待支付',
value: [3] value: [3]
}, },
{ {
name: '已撤销', name: '已撤销',
value: [9] value: [9]
}, },
{ {
name: '战败', name: '战败',
value: [2] value: [2]
}, },
{ {
name: '已评价', name: '已评价',
value: [6] value: [6]
}, },
{ {
name: '已关闭', name: '已关闭',
value: [10] value: [10]
}, },
{ {
name: '审批中', name: '审批中',
value: [14] value: [14]
}, },
{ {
name: '错误订单', name: '错误订单',
value: [11] value: [11]
} }
], ],
grassInfo: {}, grassInfo: {},
orderCode: '', orderCode: '',
userInfo: {} userInfo: {}
} }
} }
<!--subvehicleConversion/pages/paySuccess/paySuccess.wxml--> <!--subvehicleConversion/pages/paySuccess/paySuccess.wxml-->
<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">
<view class="title">订单信息</view> <view class="title">订单信息</view>
<view class="info"> <view class="info">
<block wx:for="{{orderForm}}" wx:key="index"> <block wx:for="{{orderForm}}" wx:key="index">
<view class="item"> <view class="item">
<view class="label">{{item.labelName}}</view> <view class="label">{{item.labelName}}</view>
<view class="text"> <view class="text">
{{ item.key==goodsName?filter.replaceItemText(orderDetail[item.key]):orderDetail[item.key] ||''}} {{ item.key==goodsName?filter.replaceItemText(orderDetail[item.key]):orderDetail[item.key] ||''}}
</view> </view>
</view> </view>
</block> </block>
</view> </view>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -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!