Browse Source

no message

feature/v1.0
xpz2018 5 years ago
parent
commit
7522313f50
4 changed files with 18 additions and 7 deletions
  1. 4
      pages/process/order-info/index.wxml
  2. 2
      pages/process/order-list/index.wxml
  3. 17
      pages/process/order-price/index.js
  4. 2
      pages/process/order-price/index.wxml

4
pages/process/order-info/index.wxml

@ -84,7 +84,7 @@
<view slot="title" class="text-black">
<view>过毛重照片</view>
<view class="flex" style="margin-top:18rpx">
<van-image wx:for="{{form.totalWeighingPicture}}" wx:key="index" use-loading-slot width="100" height="100"
<van-image wx:for="{{form.totalWeighingPicture}}" wx:key="index" use-loading-slot width="150" height="100"
custom-class="page-icon" data-url="{{item.url}}" fit="cover" data-type="0" src="{{item.url}}" bind:click="viewImage">
<view class="image-load" slot="loading">
<van-loading type="spinner" size="32" />
@ -97,7 +97,7 @@
<view slot="title" class="text-black">
<view>过皮重照片</view>
<view class="flex" style="margin-top:18rpx">
<van-image wx:for="{{form.emptyWeighingPicture}}" wx:key="index" use-loading-slot width="100" height="100"
<van-image wx:for="{{form.emptyWeighingPicture}}" wx:key="index" use-loading-slot width="150" height="100"
custom-class="page-icon" data-url="{{item.url}}" fit="cover" data-type="1" src="{{item.url}}" bind:click="viewImage">
<view class="image-load" slot="loading">
<van-loading type="spinner" size="32" />

2
pages/process/order-list/index.wxml

@ -19,7 +19,7 @@
<view style="height: 100rpx">
<view class="flex" class="text-sg text-black">
<text>客户名称:{{item.factoryCustomerName}}</text>
<text wx:if="{{item.status != 1}}">({{item.factoryCustomerMobile}})</text>
<text wx:if="{{item.status != 1 && item.factoryCustomerMobile}}">({{item.factoryCustomerMobile}})</text>
</view>
<view class="text-sm text-gray">毛重:{{item.totalWeight}}KG</view>
</view>

17
pages/process/order-price/index.js

@ -15,7 +15,8 @@ Page({
form: null,
deductType: 1,
columns: [],
visible: false
visible: false,
nowItem: null
},
/**
* 生命周期函数--监听页面加载
@ -57,8 +58,10 @@ Page({
this.setData({ visible: true })
},
onConfirm: function({detail}){
this.data.form.productId = this.data.paperList[detail.index].categoryId
this.setData({ visible: false, ['form.productCategoryName']: detail.value })
this.data.nowItem = this.data.paperList[detail.index]
this.data.form.productId = this.data.nowItem.id
var unitPrice = this.data.nowItem.defaultUnitPrice
this.setData({ visible: false, ['form.productCategoryName']: detail.value, ['form.unitPrice']: unitPrice })
},
onHide: function(){
this.setData({ visible: false })
@ -98,6 +101,14 @@ Page({
util.showToast('请输入单价')
return
}
if(this.data.nowItem.highestUnitPrice && Number(this.data.form.unitPrice) > Number(this.data.nowItem.highestUnitPrice)){
util.showToast('输入单价过高,价格范围:' + this.data.nowItem.lowestUnitPrice + '元/KG-'+ this.data.nowItem.highestUnitPrice + '元/KG')
return
}
if(this.data.nowItem.lowestUnitPrice && Number(this.data.form.unitPrice) < Number(this.data.nowItem.lowestUnitPrice)){
util.showToast('输入单价过低,价格范围:' + this.data.nowItem.lowestUnitPrice + '元/KG-'+ this.data.nowItem.highestUnitPrice + '元/KG')
return
}
// if(this.data.deductType == 1 && (util.isEmpty(this.data.form.deductWeight) || Number(this.data.form.deductWeight) <= 0)){
// util.showToast('请输入扣重')
// return

2
pages/process/order-price/index.wxml

@ -77,7 +77,7 @@
<view slot="title">
<view class="text-black">过毛重照片</view>
<view class="flex" style="margin-top:18rpx">
<van-image wx:for="{{form.totalWeighingPicture}}" wx:key="index" use-loading-slot width="100" height="100"
<van-image wx:for="{{form.totalWeighingPicture}}" wx:key="index" use-loading-slot width="120" height="100"
custom-class="page-icon" data-url="{{item.url}}" fit="cover" src="{{item.url}}" bind:click="viewImage">
<view class="image-load" slot="loading">
<van-loading type="spinner" size="32" />

Loading…
Cancel
Save