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.
62 lines
3.7 KiB
62 lines
3.7 KiB
<!--pages/purchase/create/index.wxml-->
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">发布采购</view>
|
|
</cu-custom>
|
|
|
|
<scroll-view scroll-y="true" style="height: {{height}}rpx;">
|
|
|
|
<view class="cu-list menu no-card sm-border margin-top">
|
|
<view id="operation" class="cu-item" bindtap="showPaperPicker">
|
|
<view class="flex flex-justify content cu-item arrow">
|
|
<view class="text-sg" style="min-width:170rpx">废纸品类</view>
|
|
<view class="flex" style="text-align:left">
|
|
<view class="text-sg {{cateName?'text-blue':'input-grey'}}">{{cateName||'请选择废纸品类'}}</view>
|
|
</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
|
|
</view>
|
|
<view class="cu-bar bg-white flex flex-justify">
|
|
<view class="action" style="color:#333333">采购描述</view>
|
|
</view>
|
|
<view class="bg-white">
|
|
<view class="textarea" wx:if="{{picking || !focus}}" bindtap="textareaFocus" style="color:{{form.description?'#333':'#aaa'}};margin-top: -4rpx;height: 164rpx">{{form.description?form.description:'点击输入采购描述,最多100字'}}</view>
|
|
<textarea wx:else id="description" maxlength="100" value="{{form.description}}" class="textarea" cursor-spacing="40" show-confirm-bar="{{false}}" adjust-position="{{true}}" focus="{{focus}}" bindinput="bindInput" bindfocus="InputFocus" bindblur="InputBlur" placeholder="点击输入采购描述,最多100字" placeholder-style="color:#aaa"></textarea>
|
|
</view>
|
|
|
|
<view class="cu-item margin-top ">
|
|
<view class="flex flex-justify content cu-item arrow">
|
|
<view class="text-sg" style="min-width:170rpx">采购价格(元/{{kg?'KG':'吨'}})</view>
|
|
<input id="unitPrice" maxlength="8" type="number" class="cate-input" placeholder-style="color:#aaa;" value="{{form.unitPrice||''}}" placeholder="点击输入采购价格,默认面议" bindinput="bindInput" style="text-align: right;width:60%"/>
|
|
</view>
|
|
</view>
|
|
<view id="weight" class="cu-item">
|
|
<view class="flex flex-justify content cu-item arrow">
|
|
<view class="text-sg" style="min-width:170rpx">采购重量({{kg?'KG':'吨'}})</view>
|
|
<input id="purchaseQuantity" maxlength="8" type="digit" class="cate-input" placeholder-style="color:#aaa;" value="{{form.purchaseQuantity||''}}" placeholder="点击输入采购重量" bindinput="bindInput" style="text-align: right"/>
|
|
</view>
|
|
</view>
|
|
<view class="cu-item" bindtap="showRegion">
|
|
<view class="flex flex-justify content cu-item arrow">
|
|
<view class="text-sg" style="min-width:170rpx">采购区域</view>
|
|
<view class="flex" style="text-align:left">
|
|
<view class="text-sg {{form.areaStr?'text-blue':'input-grey'}}">{{form.areaStr||'请选择所采购区域'}}</view>
|
|
</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" wx:if="{{!flag}}" style="font-size:32rpx;padding-top:2rpx"></text>
|
|
</view>
|
|
<view class="cu-bar bg-white">
|
|
<view class="action" style="color:#333333">纸品图片</view>
|
|
<view class="action text-sg">{{imgLength}}{{!disabled? '/5':'张'}}</view>
|
|
</view>
|
|
<wux-uploader count="5" column="4" fileList="{{fileList}}" bindcustomevent="onImageChange"></wux-uploader>
|
|
</view>
|
|
</scroll-view>
|
|
|
|
<view class="cu-bar bg-white foot" style="height:{{120 + safeBottom}}rpx;padding: 32rpx 32rpx {{safeBottom + 32}}rpx 32rpx;">
|
|
<view style="width:100%">
|
|
<wux-button block type="positive" bind:click="submitForm" disabled="{{requesting}}">确认</wux-button>
|
|
</view>
|
|
</view>
|
|
|
|
<wux-cascader id="wux-cascader" value="{{region}}" options="{{ options }}" bind:close="onRegionChange" />
|
|
<wux-cascader visible="{{ visible }}" controlled value="{{ cateValue }}" options="{{ cateList }}" bind:close="onCategory" bind:load="onLoadOptions" />
|