Browse Source

no message

feature/v2.1
xpz2018 4 years ago
parent
commit
41be39482d
4 changed files with 5 additions and 3 deletions
  1. 1
      pages/process/outside-check-item/index.js
  2. 1
      pages/process/outside-check-item/index.json
  3. 4
      pages/process/outside-check-item/index.wxml
  4. 2
      pages/process/outside-item/index.wxml

1
pages/process/outside-check-item/index.js

@ -83,6 +83,7 @@ Component({
this.setData({ item: this.data.item, visible: false, cIndex: this.data.cIndex }) this.setData({ item: this.data.item, visible: false, cIndex: this.data.cIndex })
}, },
changeDeductType: function(e){ changeDeductType: function(e){
console.log('changeDeductType')
this.setData({ ['item.sign']: e.currentTarget.dataset.type, focus: e.currentTarget.dataset.type }) this.setData({ ['item.sign']: e.currentTarget.dataset.type, focus: e.currentTarget.dataset.type })
} }
} }

1
pages/process/outside-check-item/index.json

@ -3,6 +3,7 @@
"usingComponents": { "usingComponents": {
"van-cell": "/components/cell/index", "van-cell": "/components/cell/index",
"van-field": "/components/field/index", "van-field": "/components/field/index",
"van-button": "/components/button/index",
"van-checkbox": "/components/checkbox/index", "van-checkbox": "/components/checkbox/index",
"van-grid": "/components/grid/index", "van-grid": "/components/grid/index",
"van-grid-item": "/components/grid-item/index", "van-grid-item": "/components/grid-item/index",

4
pages/process/outside-check-item/index.wxml

@ -42,7 +42,7 @@
value="{{item.deductWeight || ''}}" bindinput="bindInput" data-type="1" bindtap="changeDeductType" /> value="{{item.deductWeight || ''}}" bindinput="bindInput" data-type="1" bindtap="changeDeductType" />
</view> </view>
</van-cell> --> </van-cell> -->
<van-field id="deductWeight" value="{{ item.deductWeight || '' }}" data-type="1" type="digit" placeholder="请输入扣重重量" clearable disabled="{{item.sign == 2}}" input-align="right" bind:change="bindInput" bind:click-input="changeDeductType">
<van-field id="deductWeight" value="{{ item.deductWeight || '' }}" data-type="1" type="digit" placeholder="请输入扣重重量(选填)" clearable disabled="{{form.sign == 1}}" input-align="right" bind:change="bindInput" bind:focus="changeDeductType">
<view slot="label" class="flex flex-center text-black" style="justify-content: flex-start" data-type="1" bindtap="changeDeductType"> <view slot="label" class="flex flex-center text-black" style="justify-content: flex-start" data-type="1" bindtap="changeDeductType">
<van-checkbox value="{{ !item.sign || item.sign == 1 }}" icon-size="32rpx"></van-checkbox> <van-checkbox value="{{ !item.sign || item.sign == 1 }}" icon-size="32rpx"></van-checkbox>
<text style="margin-left:8rpx">扣重(公斤)</text> <text style="margin-left:8rpx">扣重(公斤)</text>
@ -59,7 +59,7 @@
value="{{item.deductPercent}}" bindinput="bindInput" data-type="2" bindtap="changeDeductType" /> value="{{item.deductPercent}}" bindinput="bindInput" data-type="2" bindtap="changeDeductType" />
</view> </view>
</van-cell> --> </van-cell> -->
<van-field id="deductPercent" value="{{ item.deductPercent || '' }}" type="digit" placeholder="请输入扣点比例" clearable disabled="{{item.sign == 2}}" input-align="right" bind:change="bindInput" data-type="2" maxlength="10" bind:click-input="changeDeductType" wx:if="{{status == 1}}">
<van-field id="deductPercent" value="{{ item.deductPercent || '' }}" type="digit" placeholder="请输入扣点比例(选填)" clearable disabled="{{form.sign == 1}}" input-align="right" bind:change="bindInput" data-type="2" maxlength="10" bind:focus="changeDeductType">
<view slot="label" class="flex flex-center text-black" style="justify-content: flex-start" data-type="2" bindtap="changeDeductType"> <view slot="label" class="flex flex-center text-black" style="justify-content: flex-start" data-type="2" bindtap="changeDeductType">
<van-checkbox value="{{ item.sign == 2 }}" icon-size="32rpx"></van-checkbox> <van-checkbox value="{{ item.sign == 2 }}" icon-size="32rpx"></van-checkbox>
<text style="margin-left:8rpx">扣点(%)</text> <text style="margin-left:8rpx">扣点(%)</text>

2
pages/process/outside-item/index.wxml

@ -36,7 +36,7 @@
<view class="{{item.estimatedAmount ? 'text-black' : 'text-gray'}}">{{item.estimatedAmount || ''}}</view> <view class="{{item.estimatedAmount ? 'text-black' : 'text-gray'}}">{{item.estimatedAmount || ''}}</view>
</view> </view>
</van-cell> </van-cell>
<view class="bg-white" style="padding: 24rpx 32rpx 20rpx 32rpx" wx:if="{{status != 0 && fileList.length}}">
<view class="bg-white" style="padding: 24rpx 32rpx 20rpx 32rpx" wx:if="{{status == 0 || (status != 0 && fileList.length)}}">
<view class="flex flex-justify" style="padding-bottom: 24rpx"> <view class="flex flex-justify" style="padding-bottom: 24rpx">
<view class="flex flex-center text-black"> <view class="flex flex-center text-black">
<text>过磅凭证</text> <text>过磅凭证</text>

Loading…
Cancel
Save