纸通宝SAAS仓库
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.
 

134 lines
6.1 KiB

<!--pages/process/order-check/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">过磅定价</view>
</cu-custom>
<view wx:if="{{form && step == 1}}">
<van-cell>
<view slot="title" class="flex flex-justify">
<view class="text-black">客户姓名</view>
<view class="text-gray">{{form.factoryCustomerName}}</view>
</view>
</van-cell>
<van-cell>
<view slot="title" class="flex flex-justify">
<view class="text-black">过磅时间</view>
<view class="text-gray">{{form.createTime}}</view>
</view>
</van-cell>
<view class="flex flex-center flex-column">
<van-image wx:for="{{form.totalWeighingPicture}}" wx:key="index" use-loading-slot width="686rpx" height="400rpx"
custom-class="big-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" />
</view>
</van-image>
</view>
<view style="padding:48rpx 32rpx">
<van-button block type="danger" bind:click="cancelOrder">取消订单</van-button>
<view style="height:36rpx"></view>
<van-button block type="info" bind:click="nextStep">进行定价</van-button>
</view>
</view>
<view wx:elif="{{form && step == 2}}">
<van-index-anchor index="订单信息" />
<van-cell>
<view slot="title" class="flex flex-justify">
<view class="text-black">客户姓名</view>
<view class="text-gray">{{form.factoryCustomerName}}</view>
</view>
</van-cell>
<van-cell bind:click="showPlate">
<view slot="title" class="flex flex-justify">
<view class="text-black">车牌号码</view>
<view class="text-gray">{{form.plateNumber || '请输入车牌号码'}}</view>
</view>
</van-cell>
<van-cell bind:click="showCategory">
<view slot="title" class="flex flex-justify">
<view class="text-black">
<text>废纸品类</text>
<text class="text-red text-xl">*</text>
</view>
<view class="text-gray">{{form.productName || '请选择废纸品类'}}</view>
</view>
</van-cell>
<van-index-anchor index="定价信息" />
<van-cell>
<view slot="title" class="flex flex-justify">
<view class="text-black">
<text>单价(元/公斤)</text>
<text class="text-red text-xl">*</text>
</view>
<input id="unitPrice" type="digit" placeholder-style="color:#aaa" style="text-align: right" maxlength="8"
placeholder="请输单价" value="{{form.unitPrice || ''}}" bindinput="bindInput" />
</view>
</van-cell>
<van-cell>
<view slot="title" class="flex flex-justify">
<view class="flex flex-center text-black" data-type="1" bindtap="changeDeductType">
<van-checkbox value="{{ form.sign == 1 }}" icon-size="32rpx"></van-checkbox>
<text style="margin-left:8rpx">扣重(公斤)</text>
</view>
<input id="deductWeight" type="digit" disabled="{{form.sign == 2}}" focus="{{focus == 1}}"
placeholder-style="color:#aaa" style="text-align: right" maxlength="10" placeholder="请输入扣重重量"
value="{{form.deductWeight}}" bindinput="bindInput" data-type="1" bindtap="changeDeductType" />
</view>
</van-cell>
<van-cell>
<view slot="title" class="flex flex-justify">
<view class="flex flex-center text-black" data-type="2" bindtap="changeDeductType">
<van-checkbox value="{{ form.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="{{form.deductPercent}}" bindinput="bindInput" data-type="2" bindtap="changeDeductType" />
</view>
</van-cell>
<van-cell bind:click="paddingOrder">
<view slot="title" class="flex flex-justify">
<view class="text-black">无皮过磅</view>
<view class="flex flex-center">
<!-- <van-checkbox value="{{ form.isWithoutTare }}" icon-size="32rpx"></van-checkbox> -->
<van-switch checked="{{ form.isWithoutTare }}" size="22px" />
<view class="text-gray" style="margin-left:16rpx">{{ form.isWithoutTare ? '是' : '否'}}</view>
</view>
</view>
</van-cell>
<van-field label="备注" type="textarea" input-align="right" placeholder="请输入备注" autosize border="{{ false }}" />
<van-index-anchor index="过磅信息" />
<van-cell>
<view slot="title" class="flex flex-justify">
<view class="text-black">毛重(公斤)</view>
<view class="text-gray">{{form.totalWeight}}</view>
</view>
</van-cell>
<van-cell>
<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="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" />
</view>
</van-image>
</view>
</view>
</van-cell>
</view>
<view style="height:{{136 + safeBottom}}rpx;" wx:if="{{form && step == 2}}"></view>
<view class="cu-bar bg-white foot" style="height:{{120 + safeBottom}}rpx;padding:0rpx 32rpx {{safeBottom}}rpx 32rpx;"
wx:if="{{form && step == 2}}">
<van-button plain type="default" custom-style="height:88rpx;width:254rpx" bind:click="cancelOrder">取消</van-button>
<van-button type="info" custom-style="margin-left:32rpx;height:88rpx;width:400rpx" bind:click="priceOrder">提交
</van-button>
</view>
<van-dialog id="van-dialog" />
<vehicle-keyboard id="wux-keyboard" safeBottom="{{safeBottom}}" bind:change="onPlatenumber"></vehicle-keyboard>
<van-popup position="bottom" show="{{ visible }}" bind:close="onHide" z-index="29">
<van-picker show-toolbar title="选择纸品" columns="{{ columns }}" bind:cancel="onHide" bind:confirm="onConfirm" />
</van-popup>
<notification id="qn-notification"/>