12 changed files with 250 additions and 496 deletions
Unified View
Diff Options
-
2app.json
-
166pages/home/customer-list/index.js
-
92pages/home/customer-list/index.wxml
-
31pages/home/customer-list/index.wxss
-
139pages/process/check-list/index.js
-
14pages/process/check-list/index.json
-
79pages/process/check-list/index.wxml
-
6pages/process/check-list/index.wxss
-
123pages/process/payment-list/index.js
-
12pages/process/payment-list/index.json
-
76pages/process/payment-list/index.wxml
-
6pages/process/payment-list/index.wxss
@ -1,139 +0,0 @@ |
|||||
// pages/process/order-list/index.js
|
|
||||
import Scene from '../../index/scene' |
|
||||
import Dialog from '../../../components/dialog/dialog' |
|
||||
import { getFactoryOrderList, cancelOrder } from "../../../api/saas" |
|
||||
const event = require('../../../utils/event') |
|
||||
const util = require('../../../utils/util') |
|
||||
const app = getApp() |
|
||||
|
|
||||
Scene({ |
|
||||
// * 页面的初始数据
|
|
||||
data: { |
|
||||
height: app.globalData.fragmentHeight, |
|
||||
loading: true, |
|
||||
requesting: false, |
|
||||
finished: false, |
|
||||
top: 0, |
|
||||
orderList: [], |
|
||||
form: { |
|
||||
status: '', |
|
||||
pageNum: 1, |
|
||||
pageSize: 15 |
|
||||
}, |
|
||||
title: '全部', |
|
||||
lastTime: null |
|
||||
}, |
|
||||
// * 生命周期函数--1-定价 2-待过皮重 3-待过榜审核 4-待付款 41-代付中 42-待结算 5-已完成 6-已关闭
|
|
||||
onLoad: function (options) { |
|
||||
if(options.status){ |
|
||||
this.data.form.status = Number(options.status) |
|
||||
if(this.data.form.status == 1){ |
|
||||
this.data.title = '待定价订单' |
|
||||
} else if(this.data.form.status == 2){ |
|
||||
this.data.title = '待过皮重' |
|
||||
} else if(this.data.form.status == 3){ |
|
||||
this.data.title = '待付款订单' |
|
||||
} else if(this.data.form.status == 4){ |
|
||||
this.data.title = '已完成订单' |
|
||||
} else if(this.data.form.status == 5){ |
|
||||
this.data.title = '已关闭订单' |
|
||||
} |
|
||||
} |
|
||||
event.on('OrderMessage', this, this.onEvent) |
|
||||
this.setData({ height: app.globalData.fragmentHeight, title: this.data.title }) |
|
||||
this.fetchOrderList() |
|
||||
}, |
|
||||
onEvent: function(message){ |
|
||||
if (message.what == 12) { |
|
||||
this.onRefreshList() |
|
||||
} |
|
||||
}, |
|
||||
onRefreshList: function () { |
|
||||
if (this.data.requesting) { |
|
||||
return |
|
||||
} |
|
||||
this.setData({ orderList: [], ['form.pageNum']: 1, loading: true, finished: false }) |
|
||||
this.data.lastTime = null |
|
||||
this.fetchOrderList() |
|
||||
}, |
|
||||
//1:待定价,2:待过皮重,3:待过磅审核,4:待付款,5:已完成
|
|
||||
fetchOrderList: function () { |
|
||||
if (this.data.requesting || this.data.finished) { |
|
||||
return |
|
||||
} |
|
||||
this.data.requesting = true |
|
||||
getFactoryOrderList(this.data.form).then(result => { |
|
||||
this.handResult(result) |
|
||||
}).catch(err => { |
|
||||
this.setData({ requesting: false, loading: false }) |
|
||||
util.showToast(err) |
|
||||
}).then(() => { |
|
||||
this.refresh = this.refresh || this.selectComponent('#refresh') |
|
||||
this.refresh.setRefresh(false) |
|
||||
}) |
|
||||
}, |
|
||||
handResult: function(result){ |
|
||||
if (result.data && result.data.records && result.data.records.length) { |
|
||||
var respList = result.data.records |
|
||||
// 对返回的消息列表进行处理,将同一天的消息显示在一起
|
|
||||
for (let i = 0; i < respList.length; i++) { |
|
||||
if (util.isEmpty(this.data.lastTime)) { |
|
||||
this.data.lastTime = respList[i].createTime |
|
||||
if (this.data.lastTime.length > 10) { |
|
||||
this.data.lastTime = this.data.lastTime.substring(0, 10) |
|
||||
} |
|
||||
respList[i].tipsTime = this.data.lastTime |
|
||||
} else { |
|
||||
var itemTime = respList[i].createTime |
|
||||
if (itemTime.length > 10) { |
|
||||
itemTime = itemTime.substring(0, 10) |
|
||||
} |
|
||||
if (this.data.lastTime !== itemTime) { |
|
||||
respList[i].tipsTime = itemTime |
|
||||
} |
|
||||
this.data.lastTime = itemTime |
|
||||
} |
|
||||
} |
|
||||
let nowList = `orderList[${this.data.orderList.length}]` |
|
||||
var num = this.data.form.pageNum |
|
||||
var finished = ((num - 1) * this.data.form.pageSize + respList.length) >= result.data.total |
|
||||
this.setData({ [nowList]: respList, ['form.pageNum']: (num + 1), finished, requesting: false, loading: false }) |
|
||||
} else { |
|
||||
this.setData({ finished: true, requesting: false, loading: false }) |
|
||||
} |
|
||||
}, |
|
||||
cancelOrder: function(e){ |
|
||||
Dialog.confirm({ title: '温馨提示', message: '确定取消该订单?' }).then(() => { |
|
||||
wx.showLoading({ title: '正在获取', mask: true }) |
|
||||
cancelOrder(e.currentTarget.dataset.id).then(result => { |
|
||||
wx.hideLoading() |
|
||||
util.showToast('订单已经取消') |
|
||||
this.onRefreshList() |
|
||||
}).catch(err => { |
|
||||
wx.hideLoading() |
|
||||
util.showToast(err) |
|
||||
}) |
|
||||
}) |
|
||||
}, |
|
||||
lookItem: function (e) { |
|
||||
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index] |
|
||||
if(item.status == 2 || item.status == 3 || item.status == 4 || item.status == 5){ |
|
||||
wx.navigateTo({ url: '/pages/process/order-info/index?id=' + item.id }) |
|
||||
} else if(item.status == 1){ |
|
||||
wx.navigateTo({ url: `/pages/process/order-price/index?id=${item.id}` }) |
|
||||
} |
|
||||
}, |
|
||||
priceOrder: function(e){ |
|
||||
wx.navigateTo({ url: '/pages/process/order-price/index?id=' + e.currentTarget.dataset.id }) |
|
||||
}, |
|
||||
repriceOrder: function(e){ |
|
||||
wx.navigateTo({ url: `/pages/process/order-check/index?id=${e.currentTarget.dataset.id}` }) |
|
||||
}, |
|
||||
checkOrder: function(e){ |
|
||||
wx.navigateTo({ url: '/pages/process/order-info/index?id=' + e.currentTarget.dataset.id }) |
|
||||
}, |
|
||||
onUnload: function(){ |
|
||||
event.remove('OrderMessage', this) |
|
||||
} |
|
||||
|
|
||||
}) |
|
||||
@ -1,14 +0,0 @@ |
|||||
{ |
|
||||
"usingComponents": { |
|
||||
"refresh-view": "/components/refresh-view/index", |
|
||||
"van-button": "/components/button/index", |
|
||||
"van-icon": "/components/icon/index", |
|
||||
"van-index-bar": "/components/index-bar/index", |
|
||||
"van-index-anchor": "/components/index-anchor/index", |
|
||||
"van-cell": "/components/cell/index", |
|
||||
"van-divider": "/components/divider/index", |
|
||||
"van-loading": "/components/loading/index", |
|
||||
"van-dialog": "/components/dialog/index", |
|
||||
"notification": "/pages/message/notification/index" |
|
||||
} |
|
||||
} |
|
||||
@ -1,79 +0,0 @@ |
|||||
<!--pages/process/order-list/index.wxml--> |
|
||||
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
|
||||
<view slot="content">{{title}}</view> |
|
||||
</cu-custom> |
|
||||
|
|
||||
<refresh-view id="refresh" bind:refresh="onRefreshList" height="{{height}}" bind:loadmore="fetchOrderList"> |
|
||||
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}"> |
|
||||
<view style="margin-bottom:24px" wx:if="{{loading}}"> |
|
||||
<van-loading type="spinner" size="32" /> |
|
||||
</view> |
|
||||
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image> |
|
||||
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view> |
|
||||
</view> |
|
||||
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex"> |
|
||||
<view class="bg-white" wx:for="{{pageItem}}" wx:key="index"> |
|
||||
<view style="background-color:#f3f3f3;" wx:if="{{item.tipsTime}}"> |
|
||||
<text class="text-sg" style="line-height:64rpx;padding-left:32rpx">{{item.tipsTime}}</text> |
|
||||
</view> |
|
||||
<view style="background-color:#f3f3f3;height:16rpx" wx:else></view> |
|
||||
<view class="item-content" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem"> |
|
||||
<view class="flex flex-justify" style="border-bottom: 1rpx solid #f3f3f3;padding-bottom:16rpx"> |
|
||||
<view class="flex flex-center"> |
|
||||
<van-icon name="/assets/image/icon-logoc.png" size="56rpx"/> |
|
||||
<view class="flex flex-center text-sg text-black van-ellipsis text-bold" style="justify-content: flex-start;max-width: 500rpx;"> |
|
||||
<text style="margin-left:24rpx;text-align: center;line-height: 18px;">{{item.factoryCustomerName}}</text> |
|
||||
<text style="text-align: center;line-height: 18px;" wx:if="{{item.factoryCustomerMobile}}">-{{item.factoryCustomerMobile}}</text> |
|
||||
</view> |
|
||||
</view> |
|
||||
<view class="text-df" wx:if="{{item.status == 1}}">待定价</view> |
|
||||
<view class="text-df" wx:elif="{{item.status == 2}}">待过皮重</view> |
|
||||
<view class="text-df" style="color:#FF5368" wx:elif="{{item.status == 3}}">待审核</view> |
|
||||
<view class="text-df" style="color:#FA541C" wx:elif="{{item.status == 4}}">待付款</view> |
|
||||
<view class="text-df" style="color:#028A00" wx:elif="{{item.status == 41}}">代付中</view> |
|
||||
<view class="text-df" style="color:#028A00" wx:elif="{{item.status == 42}}">待结算</view> |
|
||||
<view class="text-df" style="color:#028A00" wx:elif="{{item.status == 5}}">已完成</view> |
|
||||
<view class="text-df text-gray" wx:elif="{{item.status == 6}}">已关闭</view> |
|
||||
</view> |
|
||||
<view class="flex flex-justify" style="margin-top:12rpx" wx:if="{{item.productName}}"> |
|
||||
<view class="text-sm text-black" style="margin-left:80rpx">品类:</view> |
|
||||
<view class="text-sm text-black">{{item.productName}}</view> |
|
||||
</view> |
|
||||
<view class="flex flex-justify" style="margin-top:12rpx"> |
|
||||
<view class="text-sm text-black" style="margin-left:80rpx">毛重(公斤):</view> |
|
||||
<view class="text-sm text-black">{{item.totalWeight || '- -'}}</view> |
|
||||
</view> |
|
||||
<view class="flex flex-justify" style="margin-top:12rpx"> |
|
||||
<view class="text-sm text-black" style="margin-left:80rpx">结算重量(公斤):</view> |
|
||||
<view class="text-sm text-black">{{item.settleWeight || '- -'}}</view> |
|
||||
</view> |
|
||||
<view class="flex flex-justify" style="margin-top:12rpx"> |
|
||||
<view class="text-sm text-black" style="margin-left:80rpx">单价(元/公斤):</view> |
|
||||
<view class="text-sm text-black">{{item.unitPrice || '- -'}}</view> |
|
||||
</view> |
|
||||
<view class="flex flex-justify" style="margin-top:12rpx"> |
|
||||
<view class="text-sm text-black" style="margin-left:80rpx">结算金额(元):</view> |
|
||||
<view class="text-sm text-black">{{item.settlePrice || '- -'}}</view> |
|
||||
</view> |
|
||||
<view class="flex" style="justify-content: flex-end;margin-top:16rpx"> |
|
||||
<van-button round plain type="default" custom-style="height:64rpx;width:200rpx" data-id="{{item.id}}" |
|
||||
bind:click="cancelOrder">取消订单</van-button> |
|
||||
<van-button round type="info" custom-style="margin-left:24rpx;height:64rpx;width:200rpx" data-id="{{item.id}}" |
|
||||
bind:click="priceOrder" wx:if="{{item.status == 1}}">定价</van-button> |
|
||||
<van-button round plain type="default" custom-style="height:64rpx;width:200rpx" data-id="{{item.id}}" |
|
||||
bind:click="repriceOrder" wx:if="{{item.status == 3}}">重新定价</van-button> |
|
||||
<van-button round type="info" custom-style="margin-left:24rpx;height:64rpx;width:200rpx" data-id="{{item.id}}" |
|
||||
bind:click="checkOrder" wx:if="{{item.status == 3}}">审核</van-button> |
|
||||
</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
<!--加载更多的UI--> |
|
||||
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx"> |
|
||||
<van-loading type="spinner" size="16" wx:if="{{!finished}}" /> |
|
||||
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text> |
|
||||
</van-divider> |
|
||||
</refresh-view> |
|
||||
|
|
||||
<van-dialog id="van-dialog" /> |
|
||||
<notification id="qn-notification"/> |
|
||||
@ -1,6 +0,0 @@ |
|||||
/* pages/process/order-list/index.wxss */ |
|
||||
.item-content{ |
|
||||
padding: 20rpx 32rpx 20rpx 0rpx; |
|
||||
margin-left:32rpx; |
|
||||
align-items: flex-start; |
|
||||
} |
|
||||
@ -1,123 +0,0 @@ |
|||||
// pages/process/order-list/index.js
|
|
||||
import Scene from '../../index/scene' |
|
||||
import Dialog from '../../../components/dialog/dialog' |
|
||||
import { getFactoryOrderList, cancelOrder } from "../../../api/saas" |
|
||||
const util = require('../../../utils/util') |
|
||||
const app = getApp() |
|
||||
|
|
||||
Scene({ |
|
||||
// * 页面的初始数据
|
|
||||
data: { |
|
||||
height: app.globalData.fragmentHeight, |
|
||||
loading: true, |
|
||||
requesting: false, |
|
||||
finished: false, |
|
||||
top: 0, |
|
||||
orderList: [], |
|
||||
form: { |
|
||||
status: 4, |
|
||||
funcType: 0, |
|
||||
isSameCustomer: 0, |
|
||||
pageNum: 1, |
|
||||
pageSize: 15 |
|
||||
}, |
|
||||
lastTime: null |
|
||||
}, |
|
||||
// * 生命周期函数--监听页面加载
|
|
||||
onLoad: function (options) { |
|
||||
this.setData({ height: app.globalData.fragmentHeight, admin: app.userInfo.type && app.userInfo.type.indexOf('ADMIN') >= 0 }) |
|
||||
this.fetchOrderList() |
|
||||
}, |
|
||||
checkSame: function(){ |
|
||||
this.onRefreshList(this.data.form.isSameCustomer ? 0 : 1) |
|
||||
}, |
|
||||
onRefreshList: function (isame) { |
|
||||
if (this.data.requesting) { |
|
||||
return |
|
||||
} |
|
||||
this.setData({ orderList: [], ['form.pageNum']: 1, ['form.isSameCustomer']: isame == 1 ? 1 : 0, loading: true, finished: false }) |
|
||||
this.data.lastTime = null |
|
||||
this.fetchOrderList() |
|
||||
}, |
|
||||
//1:待定价,2:待过皮重,3:待过磅审核,4:待付款,5:已完成
|
|
||||
fetchOrderList: function () { |
|
||||
if (this.data.requesting || this.data.finished) { |
|
||||
return |
|
||||
} |
|
||||
this.data.requesting = true |
|
||||
getFactoryOrderList(this.data.form).then(result => { |
|
||||
if (result.data && result.data.records && result.data.records.length) { |
|
||||
var respList = result.data.records |
|
||||
// 对返回的消息列表进行处理,将同一天的消息显示在一起
|
|
||||
for (let i = 0; i < respList.length; i++) { |
|
||||
if (util.isEmpty(this.data.lastTime)) { |
|
||||
this.data.lastTime = respList[i].createTime |
|
||||
if (this.data.lastTime.length > 10) { |
|
||||
this.data.lastTime = this.data.lastTime.substring(0, 10) |
|
||||
} |
|
||||
if(this.data.form.pageNum == 1 && i == 0){ |
|
||||
respList[i].vcheck = true |
|
||||
} |
|
||||
respList[i].tipsTime = this.data.lastTime |
|
||||
} else { |
|
||||
var itemTime = respList[i].createTime |
|
||||
if (itemTime.length > 10) { |
|
||||
itemTime = itemTime.substring(0, 10) |
|
||||
} |
|
||||
if (this.data.lastTime !== itemTime) { |
|
||||
respList[i].tipsTime = itemTime |
|
||||
} |
|
||||
this.data.lastTime = itemTime |
|
||||
} |
|
||||
} |
|
||||
let nowList = `orderList[${this.data.orderList.length}]` |
|
||||
var num = this.data.form.pageNum |
|
||||
var finished = ((num - 1) * this.data.form.pageSize + respList.length) >= result.data.total |
|
||||
this.setData({ [nowList]: respList, ['form.pageNum']: (num + 1), finished, requesting: false, loading: false }) |
|
||||
} else { |
|
||||
this.setData({ finished: true, requesting: false, loading: false }) |
|
||||
} |
|
||||
}).catch(err => { |
|
||||
this.setData({ requesting: false, loading: false }) |
|
||||
util.showToast(err) |
|
||||
}).then(() => { |
|
||||
this.refresh = this.refresh || this.selectComponent('#refresh') |
|
||||
this.refresh.setRefresh(false) |
|
||||
}) |
|
||||
}, |
|
||||
cancelOrder: function(e){ |
|
||||
Dialog.confirm({ title: '温馨提示', message: '确定取消该订单?' }).then(() => { |
|
||||
wx.showLoading({ title: '正在获取', mask: true }) |
|
||||
cancelOrder(e.currentTarget.dataset.id).then(result => { |
|
||||
wx.hideLoading() |
|
||||
util.showToast('订单已经取消') |
|
||||
this.onRefreshList() |
|
||||
}).catch(err => { |
|
||||
wx.hideLoading() |
|
||||
util.showToast(err) |
|
||||
}) |
|
||||
}) |
|
||||
}, |
|
||||
lookItem: function (e) { |
|
||||
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index] |
|
||||
if(!this.data.admin) { |
|
||||
wx.navigateTo({ url: `/pages/process/order-info/index?id=${item.id}` }) |
|
||||
return |
|
||||
} |
|
||||
const that = this |
|
||||
wx.navigateTo({ |
|
||||
url: `/pages/process/payment/index?channel=1`, |
|
||||
events: { |
|
||||
onOrderChange: (data) => { |
|
||||
if (data.what == 12) { |
|
||||
that.onRefreshList(that.data.form.isSameCustomer) |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
success: function(res) { |
|
||||
res.eventChannel.emit('onParam', item) |
|
||||
} |
|
||||
}) |
|
||||
} |
|
||||
|
|
||||
}) |
|
||||
@ -1,12 +0,0 @@ |
|||||
{ |
|
||||
"usingComponents": { |
|
||||
"refresh-view": "/components/refresh-view/index", |
|
||||
"van-cell": "/components/cell/index", |
|
||||
"van-button": "/components/button/index", |
|
||||
"van-icon": "/components/icon/index", |
|
||||
"van-divider": "/components/divider/index", |
|
||||
"van-loading": "/components/loading/index", |
|
||||
"van-dialog": "/components/dialog/index", |
|
||||
"notification": "/pages/message/notification/index" |
|
||||
} |
|
||||
} |
|
||||
@ -1,76 +0,0 @@ |
|||||
<!--pages/process/order-list/index.wxml--> |
|
||||
<wxs module="formate" src="../../formate.wxs"></wxs> |
|
||||
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
|
||||
<view slot="content">待付款订单</view> |
|
||||
</cu-custom> |
|
||||
|
|
||||
<refresh-view id="refresh" bind:refresh="onRefreshList" height="{{height}}" bind:loadmore="fetchOrderList"> |
|
||||
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}"> |
|
||||
<view style="margin-bottom:24px" wx:if="{{loading}}"> |
|
||||
<van-loading type="spinner" size="32" /> |
|
||||
</view> |
|
||||
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image> |
|
||||
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view> |
|
||||
</view> |
|
||||
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex"> |
|
||||
<view class="bg-white" wx:for="{{pageItem}}" wx:key="index"> |
|
||||
<view style="background-color:#f3f3f3;" wx:if="{{item.tipsTime}}"> |
|
||||
<text class="text-sg" style="line-height:64rpx;padding-left:32rpx">{{item.tipsTime}}</text> |
|
||||
</view> |
|
||||
<view style="background-color:#f3f3f3;height:16rpx" wx:else></view> |
|
||||
<view class="item-content" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem"> |
|
||||
<view class="flex flex-justify" style="border-bottom: 1rpx solid #f3f3f3;padding-bottom:16rpx"> |
|
||||
<view class="flex flex-center"> |
|
||||
<van-icon name="/assets/image/icon-logoc.png" size="56rpx"/> |
|
||||
<view class="flex flex-center text-sg text-black van-ellipsis text-bold" style="justify-content: flex-start;max-width: 500rpx;"> |
|
||||
<text style="margin-left:24rpx;text-align: center;line-height: 18px;">{{item.factoryCustomerName}}</text> |
|
||||
<text style="text-align: center;line-height: 18px;" wx:if="{{item.factoryCustomerMobile}}">-{{item.factoryCustomerMobile}}</text> |
|
||||
</view> |
|
||||
</view> |
|
||||
<view class="text-df" wx:if="{{item.status == 1}}">待定价</view> |
|
||||
<view class="text-df" wx:elif="{{item.status == 2}}">待过皮重</view> |
|
||||
<view class="text-df" wx:elif="{{item.status == 3}}">待审核</view> |
|
||||
<view class="text-df" style="color:#FA541C" wx:elif="{{item.status == 4}}">待付款</view> |
|
||||
<view class="text-df" style="color:#028A00" wx:elif="{{item.status == 41}}">代付中</view> |
|
||||
<view class="text-df" style="color:#028A00" wx:elif="{{item.status == 42}}">待结算</view> |
|
||||
<view class="text-df" style="color:#028A00" wx:elif="{{item.status == 5}}">已完成</view> |
|
||||
<view class="text-df text-gray" wx:elif="{{item.status == 6}}">已关闭</view> |
|
||||
</view> |
|
||||
<view class="flex flex-justify" style="margin-top:12rpx" wx:if="{{item.productName}}"> |
|
||||
<view class="text-sm text-black" style="margin-left:80rpx">品类:</view> |
|
||||
<view class="text-sm text-black">{{item.productName}}</view> |
|
||||
</view> |
|
||||
<!-- <view class="flex flex-justify" style="margin-top:12rpx"> |
|
||||
<view class="text-sm text-black" style="margin-left:80rpx">毛重(公斤):</view> |
|
||||
<view class="text-sm text-black">{{item.totalWeight || '- -'}}</view> |
|
||||
</view> --> |
|
||||
<view class="flex flex-justify" style="margin-top:12rpx"> |
|
||||
<view class="text-sm text-black" style="margin-left:80rpx">结算重量(公斤):</view> |
|
||||
<view class="text-sm text-black">{{item.settleWeight || '- -'}}</view> |
|
||||
</view> |
|
||||
<view class="flex flex-justify" style="margin-top:12rpx"> |
|
||||
<view class="text-sm text-black" style="margin-left:80rpx">单价(元/公斤):</view> |
|
||||
<view class="text-sm text-black">{{item.unitPrice || '- -'}}</view> |
|
||||
</view> |
|
||||
<view class="flex flex-justify" style="margin-top:12rpx"> |
|
||||
<view class="text-sm text-black" style="margin-left:80rpx">结算金额(元):</view> |
|
||||
<view class="text-sm text-black">{{item.settlePrice || '- -'}}</view> |
|
||||
</view> |
|
||||
<view class="flex" style="justify-content: flex-end;margin-top:16rpx"> |
|
||||
<van-button round plain type="default" custom-style="height:64rpx;width:200rpx" data-id="{{item.id}}" |
|
||||
bind:click="cancelOrder" wx:if="{{item.status != 6}}">取消订单</van-button> |
|
||||
<van-button round type="info" custom-style="margin-left:24rpx;height:64rpx;width:200rpx" data-page="{{pageIndex}}" data-index="{{index}}" |
|
||||
bind:click="lookItem" wx:if="{{(item.status == 4 || item.status == 42) && admin}}">去支付</van-button> |
|
||||
</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
<!--加载更多的UI--> |
|
||||
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx"> |
|
||||
<van-loading type="spinner" size="16" wx:if="{{!finished}}" /> |
|
||||
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text> |
|
||||
</van-divider> |
|
||||
</refresh-view> |
|
||||
|
|
||||
<van-dialog id="van-dialog" /> |
|
||||
<notification id="qn-notification"/> |
|
||||
@ -1,6 +0,0 @@ |
|||||
/* pages/process/order-list/index.wxss */ |
|
||||
.item-content{ |
|
||||
padding: 20rpx 32rpx 20rpx 0rpx; |
|
||||
margin-left:32rpx; |
|
||||
align-items: flex-start; |
|
||||
} |
|
||||
Write
Preview
Loading…
Cancel
Save