34 changed files with 740 additions and 97 deletions
Unified View
Diff Options
-
2app.json
-
2pages/home/customer-info/index.wxml
-
30pages/home/customer-list/index.wxml
-
37pages/home/factory-info/index.js
-
10pages/home/factory-info/index.json
-
51pages/home/factory-info/index.wxml
-
1pages/home/factory-info/index.wxss
-
8pages/home/index/index.wxml
-
1pages/home/qrcode-info/index.json
-
10pages/home/qrcode-info/index.wxml
-
6pages/home/user-info/index.wxml
-
215pages/process/order-add/index.js
-
19pages/process/order-add/index.json
-
107pages/process/order-add/index.wxml
-
57pages/process/order-add/index.wxss
-
14pages/process/order-info/index.wxml
-
5pages/process/order-list/index.js
-
9pages/process/order-list/index.wxml
-
28pages/process/outside-info/index.js
-
15pages/process/outside-info/index.wxml
-
12pages/process/outside-list/index.js
-
8pages/process/outside-list/index.wxml
-
6pages/process/payment/index.wxml
-
70pages/storage/order-create/index.js
-
1pages/storage/order-create/index.json
-
31pages/storage/order-create/index.wxml
-
24pages/storage/order-info/index.wxml
-
14pages/storage/order-list/index.js
-
4pages/storage/order-list/index.wxml
-
3pages/storage/order-settlement/index.js
-
9pages/storage/order-settlement/index.wxml
-
4pages/storage/pound-info/index.js
-
2pages/storage/pound-list/index.wxml
-
22utils/util.js
@ -0,0 +1,37 @@ |
|||||
|
// pages/home/qrcode/index.js
|
||||
|
import Scene from '../../index/scene' |
||||
|
import { getCustomerList } from "../../../api/saas" |
||||
|
const util = require('../../../utils/util') |
||||
|
const app = getApp() |
||||
|
|
||||
|
Scene({ |
||||
|
/** |
||||
|
* 页面的初始数据 |
||||
|
*/ |
||||
|
data: { |
||||
|
settleType: '1', |
||||
|
paymentType: '1', |
||||
|
userInfo: {} |
||||
|
}, |
||||
|
/** |
||||
|
* 生命周期函数--监听页面加载 |
||||
|
*/ |
||||
|
onLoad: function (options) { |
||||
|
this.setData({ userInfo: app.userInfo}) |
||||
|
}, |
||||
|
onTypeChange: function({detail}){ |
||||
|
this.setData({ settleType: detail }) |
||||
|
}, |
||||
|
onTypeClick(e) { |
||||
|
this.setData({ settleType: e.currentTarget.dataset.name }) |
||||
|
}, |
||||
|
onPaymentChange: function({detail}){ |
||||
|
this.setData({ paymentType: detail }) |
||||
|
}, |
||||
|
onPaymentClick(e) { |
||||
|
this.setData({ paymentType: e.currentTarget.dataset.name }) |
||||
|
}, |
||||
|
submitForm: function () { |
||||
|
|
||||
|
} |
||||
|
}) |
||||
@ -0,0 +1,10 @@ |
|||||
|
{ |
||||
|
"usingComponents": { |
||||
|
"van-cell": "/components/cell/index", |
||||
|
"van-button": "/components/button/index", |
||||
|
"van-checkbox": "/components/checkbox/index", |
||||
|
"van-radio": "/components/radio/index", |
||||
|
"van-radio-group": "/components/radio-group/index", |
||||
|
"notification": "/pages/message/notification/index" |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,51 @@ |
|||||
|
<!--pages/home/qrcode/index.wxml--> |
||||
|
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
||||
|
<view slot="content">工厂设置</view> |
||||
|
</cu-custom> |
||||
|
|
||||
|
<view class="flex flex-center" style="justify-content: flex-start;padding: 16rpx 32rpx"> |
||||
|
<view style="height:30rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></view> |
||||
|
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">收货结算金额设置</view> |
||||
|
</view> |
||||
|
<van-radio-group value="{{ settleType }}" bind:change="onTypeChange"> |
||||
|
<van-cell-group> |
||||
|
<van-cell title="正常保留两位小数(默认)" clickable data-name="1" bind:click="onTypeClick"> |
||||
|
<van-radio slot="right-icon" name="1" /> |
||||
|
</van-cell> |
||||
|
<van-cell title="抹零取整" clickable data-name="3" bind:click="onTypeClick"> |
||||
|
<van-radio slot="right-icon" name="3" /> |
||||
|
</van-cell> |
||||
|
<van-cell title="四舍五入取整" clickable data-name="4" bind:click="onTypeClick"> |
||||
|
<van-radio slot="right-icon" name="4" /> |
||||
|
</van-cell> |
||||
|
</van-cell-group> |
||||
|
</van-radio-group> |
||||
|
<view class="flex flex-center" style="justify-content: flex-start;padding: 16rpx 32rpx"> |
||||
|
<view style="height:30rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></view> |
||||
|
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">客户支付方式</view> |
||||
|
</view> |
||||
|
<van-radio-group value="{{ paymentType }}" bind:change="onPaymentChange"> |
||||
|
<van-cell-group> |
||||
|
<van-cell title="现金支付(默认)" clickable data-name="1" bind:click="onPaymentClick"> |
||||
|
<van-radio slot="right-icon" name="1" /> |
||||
|
</van-cell> |
||||
|
<van-cell title="银行卡转账" clickable data-name="2" bind:click="onPaymentClick"> |
||||
|
<van-radio slot="right-icon" name="2" /> |
||||
|
</van-cell> |
||||
|
<van-cell title="微信支付" clickable data-name="4" bind:click="onPaymentClick"> |
||||
|
<van-radio slot="right-icon" name="4" /> |
||||
|
</van-cell> |
||||
|
<van-cell title="支付宝支付" clickable data-name="5" bind:click="onPaymentClick"> |
||||
|
<van-radio slot="right-icon" name="5" /> |
||||
|
</van-cell> |
||||
|
<van-cell title="千鸟代付" clickable data-name="3" bind:click="onPaymentClick"> |
||||
|
<van-radio slot="right-icon" name="3" /> |
||||
|
</van-cell> |
||||
|
</van-cell-group> |
||||
|
</van-radio-group> |
||||
|
|
||||
|
<view style="margin-top:48rpx;padding:40rpx 80rpx"> |
||||
|
<van-button block type="info" bind:click="submitForm">保存</van-button> |
||||
|
</view> |
||||
|
|
||||
|
<notification id="qn-notification"/> |
||||
@ -0,0 +1 @@ |
|||||
|
/* pages/home/qrcode/index.wxss */ |
||||
@ -0,0 +1,215 @@ |
|||||
|
import Scene from '../../index/scene' |
||||
|
import { checkingOrder, getFactoryOrderInfo, getPaperList} from "../../../api/saas" |
||||
|
const event = require('../../../utils/event') |
||||
|
const util = require('../../../utils/util') |
||||
|
const math = require('../../../utils/math') |
||||
|
const app = getApp() |
||||
|
|
||||
|
Scene({ |
||||
|
/** |
||||
|
* 页面的初始数据 |
||||
|
*/ |
||||
|
data: { |
||||
|
safeBottom: app.globalData.safeBottom, |
||||
|
paperList: null, |
||||
|
form: { deductType: 1 }, |
||||
|
paperList: [], |
||||
|
imageList: [], |
||||
|
focus: 0, |
||||
|
visible: false, |
||||
|
amout: 0, |
||||
|
nowItem: null |
||||
|
}, |
||||
|
/** |
||||
|
* 生命周期函数--监听页面加载 |
||||
|
*/ |
||||
|
onLoad: function (options) { |
||||
|
wx.showLoading({ title: '正在获取', mask: true }) |
||||
|
getPaperList({pageNum: 1, pageSize: 100}).then(result => { |
||||
|
this.setData({ safeBottom: app.globalData.safeBottom, paperList: result.data.records }) |
||||
|
wx.hideLoading() |
||||
|
}).catch(err => { |
||||
|
wx.hideLoading() |
||||
|
this.setData({ safeBottom: app.globalData.safeBottom }) |
||||
|
util.showToast(err) |
||||
|
}) |
||||
|
}, |
||||
|
selectCustomer: function(){ |
||||
|
var that = this |
||||
|
wx.navigateTo({ |
||||
|
url: `/pages/home/customer-list/index?type=1`, |
||||
|
events: { |
||||
|
onCallback: (data) => { |
||||
|
if (data.what == 130) { |
||||
|
that.data.form.factoryCustomerId = data.detail.id |
||||
|
that.setData({ ['form.factoryCustomerName']: data.detail.name }) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
showPlate: function (e) { |
||||
|
this.keyboard = this.keyboard || this.selectComponent('#wux-keyboard') |
||||
|
this.keyboard.show(this.data.form.plateNumber, 0) |
||||
|
}, |
||||
|
onPlatenumber: function({detail}){ |
||||
|
if(detail && detail.plateNumber){ |
||||
|
this.setData({ ['form.plateNumber']: detail.plateNumber }) |
||||
|
} |
||||
|
}, |
||||
|
showCategory: function(){ |
||||
|
this.setData({ visible: true }) |
||||
|
}, |
||||
|
onConfirm: function(e){ |
||||
|
this.data.cIndex = e.currentTarget.dataset.index |
||||
|
this.data.nowItem = this.data.paperList[this.data.cIndex] |
||||
|
if(this.data.form.productId == this.data.nowItem.id){ |
||||
|
this.onHide() |
||||
|
return |
||||
|
} |
||||
|
this.data.form.productId = this.data.nowItem.id |
||||
|
// this.data.form.unitPrice = this.data.nowItem.defaultUnitPrice
|
||||
|
this.data.form.konePrice = '指导价格:' + this.data.nowItem.defaultUnitPrice |
||||
|
this.data.form.unitPrice = '' |
||||
|
this.data.form.productName = this.data.nowItem.name |
||||
|
if(util.isEmpty(this.data.form.netWeight) || Number(this.data.form.netWeight) <= 0){ |
||||
|
this.setData({ visible: false, form: this.data.form, amout: null }) |
||||
|
return |
||||
|
} |
||||
|
this.statAmount() |
||||
|
}, |
||||
|
onHide: function(){ |
||||
|
this.setData({ visible: false }) |
||||
|
}, |
||||
|
changeDeductType: function(e){ |
||||
|
var type = Number(e.currentTarget.dataset.type) |
||||
|
this.setData({ ['form.deductType']: type, focus: type }) |
||||
|
}, |
||||
|
bindInput: function (e) { |
||||
|
this.data.form[e.target.id] = e.detail |
||||
|
if(e.target.id == 'totalWeight' || e.target.id == 'emptyWeight'){ |
||||
|
if(!util.isEmpty(this.data.form.totalWeight) && !util.isEmpty(this.data.form.emptyWeight)){ |
||||
|
this.setData({ ['form.netWeight']: math.minus(this.data.form.totalWeight, this.data.form.emptyWeight) }) |
||||
|
} |
||||
|
} else if(e.target.id == 'deductPercent'){ |
||||
|
if(util.isEmpty(e.detail)){ |
||||
|
this.data.form.deductWeight = null |
||||
|
this.data.form.deductPercent = null |
||||
|
} else { |
||||
|
this.data.form.deductWeight = math.divide(math.times(this.data.form.netWeight, Number(e.detail)), 100).toFixed(2) |
||||
|
} |
||||
|
} else if(e.target.id == 'deductWeight'){ |
||||
|
if(util.isEmpty(e.detail)){ |
||||
|
this.data.form.deductWeight = null |
||||
|
this.data.form.deductPercent = null |
||||
|
} else { |
||||
|
this.data.form.deductPercent = math.times(math.divide(Number(e.detail), this.data.form.netWeight), 100).toFixed(2) |
||||
|
} |
||||
|
} |
||||
|
this.statAmount() |
||||
|
}, |
||||
|
statAmount: function(){ |
||||
|
if(util.isEmpty(this.data.form.netWeight)){ |
||||
|
return |
||||
|
} |
||||
|
this.data.form.settleWeight = this.data.form.netWeight |
||||
|
if(!util.isEmpty(this.data.form.deductWeight)){ |
||||
|
this.data.form.settleWeight = math.minus(this.data.form.netWeight, this.data.form.deductWeight) |
||||
|
} |
||||
|
if(!util.isEmpty(this.data.form.unitPrice) && Number(this.data.form.unitPrice) > 0){ |
||||
|
this.data.amout = math.times(this.data.form.settleWeight, this.data.form.unitPrice) |
||||
|
} else { |
||||
|
this.data.amout = null |
||||
|
} |
||||
|
this.setData({ visible: false, form: this.data.form, amout: this.data.amout, cIndex: this.data.cIndex }) |
||||
|
}, |
||||
|
fileChange: function({detail}){ |
||||
|
this.data.imageList = detail.fileList |
||||
|
var imageUrls = [] |
||||
|
for (let index = 0; index < this.data.imageList.length; index++) { |
||||
|
imageUrls.push(this.data.imageList[index].url) |
||||
|
} |
||||
|
this.data.form.orderImageList = imageUrls |
||||
|
}, |
||||
|
checkOrder: function(){ |
||||
|
if(util.isEmpty(this.data.form.factoryCustomerId)){ |
||||
|
util.showToast('请选择客户') |
||||
|
return |
||||
|
} |
||||
|
if(util.isEmpty(this.data.form.netWeight)){ |
||||
|
util.showToast('请输入净重') |
||||
|
return |
||||
|
} |
||||
|
if(Number(this.data.form.netWeight) <= 0){ |
||||
|
util.showToast('净重不能小于零') |
||||
|
return |
||||
|
} |
||||
|
if(util.isEmpty(this.data.form.productId) || Number(this.data.form.productId) <= 0){ |
||||
|
util.showToast('请选择纸品品类') |
||||
|
return |
||||
|
} |
||||
|
if(util.isEmpty(this.data.form.unitPrice) || Number(this.data.form.unitPrice) <= 0){ |
||||
|
util.showToast('请输入单价') |
||||
|
return |
||||
|
} |
||||
|
if(this.data.nowItem){ |
||||
|
if(this.data.nowItem.highestUnitPrice && Number(this.data.form.unitPrice) > Number(this.data.nowItem.highestUnitPrice)){ |
||||
|
util.showToast('输入单价过高,价格范围:' + this.data.nowItem.lowestUnitPrice + '元/公斤-'+ this.data.nowItem.highestUnitPrice + '元/公斤') |
||||
|
return |
||||
|
} |
||||
|
// if(this.data.nowItem.lowestUnitPrice && Number(this.data.form.unitPrice) < Number(this.data.nowItem.lowestUnitPrice)){
|
||||
|
// util.showToast('输入单价过低,价格范围:' + this.data.nowItem.lowestUnitPrice + '元/公斤-'+ this.data.nowItem.highestUnitPrice + '元/公斤')
|
||||
|
// return
|
||||
|
// }
|
||||
|
} |
||||
|
if(!util.isEmpty(this.data.form.deductWeight) && Number(this.data.form.deductWeight) >= Number(this.data.form.totalWeight)){ |
||||
|
util.showToast('扣重不得超过皮重') |
||||
|
return |
||||
|
} |
||||
|
if(!util.isEmpty(this.data.form.deductPercent) && Number(this.data.form.deductPecent) >= 100){ |
||||
|
util.showToast('扣点范围:0-100') |
||||
|
return |
||||
|
} |
||||
|
|
||||
|
var data = {id: this.data.form.id} |
||||
|
if(Number(this.data.form.deductWeight) > 0){ |
||||
|
data.deductWeight = Number(this.data.form.deductWeight) |
||||
|
} |
||||
|
if(Number(this.data.form.deductPercent) > 0){ |
||||
|
data.deductPercent = Number(this.data.form.deductPercent) |
||||
|
} |
||||
|
data.plateNumber = this.data.form.plateNumber |
||||
|
data.productId = this.data.form.productId |
||||
|
data.deductType = this.data.form.deductType |
||||
|
data.unitPrice = Number(this.data.form.unitPrice) |
||||
|
var factoryCustomerId = this.data.form.factoryCustomerId |
||||
|
|
||||
|
var that = this |
||||
|
wx.requestSubscribeMessage({ |
||||
|
tmplIds: ['DJaSy0a5TNp9v_ICQ0ZY5-hkZ91dEXZuKq_hQVBTnOA', '4IWtlcg1HhLN7AFepB3VeZF-4D0b9gbjwWBruKMhAJM'], |
||||
|
complete(res) { |
||||
|
wx.showLoading({ title: '处理中', mask: true }) |
||||
|
checkingOrder({ id: that.data.form.id, factoryCustomerId, editOrderPriceDto: data }).then(result => { |
||||
|
wx.hideLoading() |
||||
|
event.emit('OrderMessage', { what: 12, desc: 'checkingOrder' }) |
||||
|
util.showBackToast('订单审核已通过') |
||||
|
}).catch(err => { |
||||
|
wx.hideLoading() |
||||
|
util.showToast(err) |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
viewImage: function (e) { |
||||
|
var imgList = [] |
||||
|
for (let index = 0; index < this.data.form.totalWeighingPicture.length; index++) { |
||||
|
var url = this.data.form.totalWeighingPicture[index].url |
||||
|
if(!util.isEmpty(url) && 'error' != url){ |
||||
|
imgList.push(url) |
||||
|
} |
||||
|
} |
||||
|
if(imgList.length){ |
||||
|
wx.previewImage({ urls: imgList, current: e.currentTarget.dataset.url }) |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
@ -0,0 +1,19 @@ |
|||||
|
{ |
||||
|
"usingComponents": { |
||||
|
"van-field": "/components/field/index", |
||||
|
"van-cell": "/components/cell/index", |
||||
|
"van-button": "/components/button/index", |
||||
|
"van-checkbox": "/components/checkbox/index", |
||||
|
"van-loading": "/components/loading/index", |
||||
|
"van-image": "/components/image/index", |
||||
|
"van-grid": "/components/grid/index", |
||||
|
"van-grid-item": "/components/grid-item/index", |
||||
|
"van-icon": "/components/icon/index", |
||||
|
"van-popup": "/components/popup/index", |
||||
|
"vehicle-keyboard": "/components/vehicle-keyboard/index", |
||||
|
"submit-layout": "/components/submit-layout/index", |
||||
|
"vip-dialog": "/pages/message/vip-dialog/index", |
||||
|
"van-uploader": "/components/uploader/index", |
||||
|
"notification": "/pages/message/notification/index" |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,107 @@ |
|||||
|
<!--pages/process/order-check/index.wxml--> |
||||
|
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
||||
|
<view slot="content">新增厂内收货订单</view> |
||||
|
</cu-custom> |
||||
|
|
||||
|
<view class="flex flex-center bg-white margin-top" style="justify-content: flex-start;padding: 24rpx 32rpx;border-bottom:1rpx solid #f3f3f3"> |
||||
|
<view style="height:30rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></view> |
||||
|
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">磅单信息</view> |
||||
|
</view> |
||||
|
<van-cell clickable center is-link bind:click="selectCustomer"> |
||||
|
<view slot="title" class="flex flex-justify"> |
||||
|
<view class="flex"> |
||||
|
<view class="text-red text-xl" style="line-height: 10px; padding-top: 12px">*</view> |
||||
|
<text>客户姓名</text> |
||||
|
</view> |
||||
|
<view class="{{form.factoryCustomerName ? 'text-black' : 'text-gray'}}">{{form.factoryCustomerName || '请输选择客户'}}</view> |
||||
|
</view> |
||||
|
</van-cell> |
||||
|
<van-cell clickable center is-link arrow-direction="down" bind:click="showPlate"> |
||||
|
<view slot="title" class="flex flex-justify"> |
||||
|
<view class="text-black">车牌号码</view> |
||||
|
<view class="{{form.plateNumber ? 'text-black' : 'text-gray'}}">{{form.plateNumber || '请输入车牌号码'}}</view> |
||||
|
</view> |
||||
|
</van-cell> |
||||
|
<van-field id="totalWeight" label="毛重(公斤)" value="{{ form.totalWeight || '' }}" type="digit" placeholder="请输入毛重" clearable input-align="right" bind:change="bindInput"> |
||||
|
</van-field> |
||||
|
<van-field id="emptyWeight" label="皮重(公斤)" value="{{ form.emptyWeight || '' }}" type="digit" placeholder="请输入皮重" clearable input-align="right" bind:change="bindInput"> |
||||
|
</van-field> |
||||
|
<van-field id="netWeight" value="{{ form.netWeight || '' }}" type="digit" placeholder="请输入净重" clearable input-align="right" bind:change="bindInput"> |
||||
|
<view slot="label" class="flex text-black" style="width:200rpx"> |
||||
|
<view class="text-red text-xl" style="line-height: 10px; padding-top: 12px">*</view> |
||||
|
<text>净重(公斤)</text> |
||||
|
</view> |
||||
|
</van-field> |
||||
|
<view class="flex flex-center bg-white margin-top" style="justify-content: flex-start;padding: 24rpx 32rpx;border-bottom:1rpx solid #f3f3f3"> |
||||
|
<view style="height:30rpx;width:6rpx;background-image: linear-gradient(180deg, #007AFF 0%, #027BFF 15%, #5AABFF 45%, #CAF4FE 100%);"></view> |
||||
|
<view class="text-black text-sg text-bold" style="margin-left: 12rpx">定价信息</view> |
||||
|
</view> |
||||
|
<van-cell clickable center is-link arrow-direction="down" bind:click="showCategory"> |
||||
|
<view slot="title" class="flex flex-justify"> |
||||
|
<view class="flex flex-center text-black"> |
||||
|
<view class="text-red text-xl" style="line-height: 10px; padding-top: 8px">*</view> |
||||
|
<text>废纸品类</text> |
||||
|
</view> |
||||
|
<view class="{{form.productName ? 'text-black' : 'text-gray'}}">{{form.productName || '请选择废纸品类'}}</view> |
||||
|
</view> |
||||
|
</van-cell> |
||||
|
<van-field id="unitPrice" value="{{ form.unitPrice || '' }}" type="digit" placeholder="{{form.konePrice || '请输入单价'}}" clearable input-align="right" bind:change="bindInput"> |
||||
|
<view slot="label" class="flex text-black" style="width:200rpx"> |
||||
|
<view class="text-red text-xl" style="line-height: 10px; padding-top: 12px">*</view> |
||||
|
<text>单价(元/公斤)</text> |
||||
|
</view> |
||||
|
</van-field> |
||||
|
<van-field id="deductWeight" value="{{ form.deductWeight || '' }}" data-type="1" type="digit" placeholder="请输入扣重重量(选填)" clearable disabled="{{form.deductType == 2}}" input-align="right" focus="{{focus == 1}}" bind:change="bindInput" bind:click-input="changeDeductType"> |
||||
|
<view slot="label" class="flex flex-center text-black" style="justify-content: flex-start" data-type="1" bindtap="changeDeductType"> |
||||
|
<van-checkbox value="{{ form.deductType == 1 }}" icon-size="32rpx"></van-checkbox> |
||||
|
<text style="margin-left:8rpx">扣重(公斤)</text> |
||||
|
</view> |
||||
|
</van-field> |
||||
|
<van-field id="deductPercent" value="{{ form.deductPercent || '' }}" type="digit" placeholder="请输入扣点比例(选填)" clearable disabled="{{form.deductType == 1}}" input-align="right" focus="{{focus == 2}}" bind:change="bindInput" data-type="2" maxlength="10" bind:click-input="changeDeductType"> |
||||
|
<view slot="label" class="flex flex-center text-black" style="justify-content: flex-start" data-type="2" bindtap="changeDeductType"> |
||||
|
<van-checkbox value="{{ form.deductType == 2 }}" icon-size="32rpx"></van-checkbox> |
||||
|
<text style="margin-left:8rpx">扣点(%)</text> |
||||
|
</view> |
||||
|
</van-field> |
||||
|
<van-cell> |
||||
|
<view slot="title" class="flex flex-justify"> |
||||
|
<view class="text-black">结算重量(公斤)</view> |
||||
|
<view class="text-gray">{{form.settleWeight || '- -'}}</view> |
||||
|
</view> |
||||
|
</van-cell> |
||||
|
<view id="orderImage" class="bg-white" style="padding: 24rpx 32rpx 20rpx 32rpx"> |
||||
|
<view class="flex flex-justify" style="padding-bottom: 24rpx"> |
||||
|
<view class="flex flex-center text-black">订单凭证</view> |
||||
|
<text class="text-gray">2张以内,每张图片大小限制5M</text> |
||||
|
</view> |
||||
|
<van-uploader file-list="{{ imageList }}" multiple max-count="2" max-size="{{1024 * 1024 * 5}}" bind:file-change="fileChange" /> |
||||
|
</view> |
||||
|
|
||||
|
<submit-layout> |
||||
|
<view class="flex flex-center" style="flex:1;justify-content: flex-start"> |
||||
|
<text class="text-lg">结算金额:</text> |
||||
|
<text class="text-xxl text-price text-red">{{amout || '- -'}}</text> |
||||
|
</view> |
||||
|
<van-button type="info" custom-style="height:88rpx;width:300rpx" bind:click="checkOrder">提交订单</van-button> |
||||
|
</submit-layout> |
||||
|
|
||||
|
<vehicle-keyboard id="wux-keyboard" safeBottom="{{safeBottom}}" triplet="{{1}}" bind:change="onPlatenumber"></vehicle-keyboard> |
||||
|
<van-popup position="bottom" show="{{ visible }}" bind:close="onHide" z-index="29"> |
||||
|
<view class="van-picker__toolbar van-hairline--top-bottom toolbar-class"> |
||||
|
<view class="van-picker__cancel" hover-stay-time="70"></view> |
||||
|
<view class="van-picker__title van-ellipsis">选择纸品</view> |
||||
|
<view class="van-picker__confirm flex flex-cener" hover-class="van-picker__confirm--hover" hover-stay-time="70" bindtap="onHide"> |
||||
|
<van-icon name="cross" size="24" color="#999999" /> |
||||
|
</view> |
||||
|
</view> |
||||
|
<scroll-view scroll-y="true" style="height:480rpx;padding: 12rpx 0rpx"> |
||||
|
<van-grid column-num="3" border="{{fasle}}"> |
||||
|
<van-grid-item use-slot wx:for="{{ paperList }}" wx:key="index" content-style="padding:12rpx"> |
||||
|
<van-button plain type="{{index == cIndex ? 'info' : 'default'}}" custom-style="height:88rpx;width:208rpx;padding: 0rpx" data-index="{{index}}" bind:click="onConfirm">{{item.name}}</van-button> |
||||
|
</van-grid-item> |
||||
|
</van-grid> |
||||
|
</scroll-view> |
||||
|
</van-popup> |
||||
|
|
||||
|
<vip-dialog id="vip-dialog"/> |
||||
|
<notification id="qn-notification"/> |
||||
@ -0,0 +1,57 @@ |
|||||
|
/* pages/process/order-check/index.wxss */ |
||||
|
.page-icon { |
||||
|
margin-right: 24rpx; |
||||
|
} |
||||
|
|
||||
|
.margin-top{ |
||||
|
margin-top: 16rpx; |
||||
|
} |
||||
|
|
||||
|
.big-icon{ |
||||
|
margin-top: 24rpx; |
||||
|
} |
||||
|
|
||||
|
.van-picker__toolbar { |
||||
|
display: -webkit-flex; |
||||
|
display: flex; |
||||
|
-webkit-justify-content: space-between; |
||||
|
justify-content: space-between; |
||||
|
height: 44px; |
||||
|
height: var(--picker-toolbar-height, 44px); |
||||
|
line-height: 44px; |
||||
|
line-height: var(--picker-toolbar-height, 44px) |
||||
|
} |
||||
|
|
||||
|
.van-picker__cancel { |
||||
|
padding: 0 16px; |
||||
|
width: 96rpx; |
||||
|
padding: var(--picker-action-padding, 0 16px); |
||||
|
font-size: 14px; |
||||
|
font-size: var(--picker-action-font-size, 14px); |
||||
|
color: #666666; |
||||
|
color: var(--picker-action-text-color, #666666) |
||||
|
} |
||||
|
|
||||
|
.van-picker__confirm { |
||||
|
padding: 0 24rpx; |
||||
|
padding: var(--picker-action-padding, 0 24rpx); |
||||
|
font-size: 14px; |
||||
|
font-size: var(--picker-action-font-size, 14px); |
||||
|
color: #1989fa; |
||||
|
color: var(--picker-action-text-color, #1989fa) |
||||
|
} |
||||
|
|
||||
|
.van-picker__cancel--hover, |
||||
|
.van-picker__confirm--hover { |
||||
|
background-color: #f2f3f5; |
||||
|
background-color: var(--picker-action-active-color, #f2f3f5) |
||||
|
} |
||||
|
|
||||
|
.van-picker__title { |
||||
|
max-width: 50%; |
||||
|
text-align: center; |
||||
|
font-weight: 500; |
||||
|
font-weight: var(--font-weight-bold, 500); |
||||
|
font-size: 16px; |
||||
|
font-size: var(--picker-option-font-size, 16px) |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save