You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
4.9 KiB
101 lines
4.9 KiB
<!--pages/message/index.wxml-->
|
|
<view style="height:16rpx" wx:if="{{index != 0 }}"></view>
|
|
<van-cell clickable center>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">废纸品类{{index + 1}}</view>
|
|
<view class="{{item.productCategoryName ? 'text-black' : 'text-gray'}}">{{item.productCategoryName || '请选择废纸品类'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">预估单价(元/公斤)</view>
|
|
<view class="{{item.unitPrice ? 'text-black' : 'text-gray'}}">{{item.unitPrice || '请输入单价'}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<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" wx:if="{{status == 0}}">*</view>
|
|
<text>毛重(公斤)</text>
|
|
</view>
|
|
<input id="grossWeight" type="digit" placeholder-style="color:#aaa" style="text-align: right"
|
|
maxlength="8" placeholder="请输入毛重" disabled="{{status != 0}}" value="{{item.grossWeight || ''}}" bindinput="bindInput" />
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<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" wx:if="{{status == 0}}">*</view>
|
|
<text>皮重(公斤)</text>
|
|
</view>
|
|
<input id="tareWeight" type="digit" placeholder-style="color:#aaa" style="text-align: right"
|
|
maxlength="8" placeholder="请输入皮重" disabled="{{status != 0}}" value="{{item.tareWeight || ''}}" bindinput="bindInput" />
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">净重(公斤)</view>
|
|
<view class="{{item.netWeight ? 'text-black' : 'text-gray'}}">{{item.netWeight || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell>
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">预估金额(元)</view>
|
|
<view class="{{item.estimatedAmount ? 'text-black' : 'text-gray'}}">{{item.estimatedAmount || ''}}</view>
|
|
</view>
|
|
</van-cell>
|
|
<view 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 class="text-red text-xl" style="line-height: 10px; padding-top: 8px" wx:if="{{status == 0}}">*</view>
|
|
<text>过磅凭证</text>
|
|
</view>
|
|
<text class="text-gray">3-6张,每图片大小限制5M</text>
|
|
</view>
|
|
<van-uploader file-list="{{ fileList }}" multiple max-count="6" deletable="{{status == 0}}" show-upload="{{status == 0}}"
|
|
max-size="{{1024 * 1024 * 5}}" bind:file-change="fileChange" />
|
|
</view>
|
|
<van-cell wx:if="{{status == 1}}">
|
|
<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>
|
|
<input id="settleUnitPrice" data-index="{{index}}" type="digit" placeholder-style="color:#aaa" style="text-align: right"
|
|
maxlength="8" placeholder="请输入结算单价" value="{{item.settleUnitPrice || ''}}" bindinput="bindInput" />
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{status == 1}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black" data-type="1" bindtap="changeDeductType">
|
|
<van-checkbox value="{{ !item.sign || item.sign == 1 }}" icon-size="32rpx"></van-checkbox>
|
|
<text style="margin-left:8rpx">扣重(公斤)</text>
|
|
</view>
|
|
<input id="deductWeight" type="digit" disabled="{{item.sign == 2}}" focus="{{focus == 1}}"
|
|
placeholder-style="color:#aaa" style="text-align: right" maxlength="10" placeholder="请输入扣重重量"
|
|
value="{{item.deductWeight || ''}}" bindinput="bindInput" data-type="1" bindtap="changeDeductType" />
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{status == 1}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="flex flex-center text-black" data-type="2" bindtap="changeDeductType">
|
|
<van-checkbox value="{{ item.sign == 2 }}" icon-size="32rpx"></van-checkbox>
|
|
<text style="margin-left:8rpx">扣点(%)</text>
|
|
</view>
|
|
<input id="deductPercent" type="digit" disabled="{{form.sign == 1}}" focus="{{focus == 2}}"
|
|
placeholder-style="color:#aaa" style="text-align: right" maxlength="10" placeholder="请输入扣点比例"
|
|
value="{{item.deductPercent}}" bindinput="bindInput" data-type="2" bindtap="changeDeductType" />
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{status == 1}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算重量(公斤)</view>
|
|
<view class="{{item.settleWeight ? 'text-black' : 'text-gray'}}">{{ item.settleWeight || item.netWeight }}</view>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{status == 1}}">
|
|
<view slot="title" class="flex flex-justify">
|
|
<view class="text-black">结算金额(元)</view>
|
|
<view class="{{item.settlePrice ? 'text-black' : 'text-gray'}}">{{ item.settlePrice || '- -' }}</view>
|
|
</view>
|
|
</van-cell>
|