|
|
@@ -1,140 +1,130 @@
|
|
|
<view class="container">
|
|
|
|
|
|
-<form bindsubmit="formSubmit" bindreset="formReset">
|
|
|
- <tui-list-cell hover="{{false}}">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="text-lg text-bold">入驻基本信息</view>
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
- <tui-list-cell hover="{{false}}">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">设备编号</view>
|
|
|
- <input placeholder-class="phcolor" class="tui-input" placeholder="请输入设备编号" name="deviceSn" type="text"
|
|
|
- value="{{values.deviceSn}}" data-name="values.deviceSn" catchinput="inputedit" bindblur="inputedit" />
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
- <tui-list-cell hover="{{false}}">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">设备名称</view>
|
|
|
- <input placeholder-class="phcolor" class="tui-input" placeholder="请输入设备名称" name="deviceName" type="text"
|
|
|
- value="{{values.deviceName}}" data-name="values.deviceName" catchinput="inputedit" bindblur="inputedit" />
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
- <tui-list-cell hover="{{false}}">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">设备号</view>
|
|
|
- <input placeholder-class="phcolor" class="tui-input" placeholder="请输入设备号" name="deviceLocation" type="text"
|
|
|
- value="{{values.deviceLocation}}" data-name="values.deviceLocation" catchinput="inputedit" bindblur="inputedit" />
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
- <picker bindchange="bindSchemePickerChange" value="{{index}}" range="{{schemeList}}" range-key="schemeName">
|
|
|
- <tui-list-cell hover="{{false}}">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">方案</view>
|
|
|
- <input placeholder-class="phcolor" class="tui-input" placeholder="请选择方案" name="schemeName" type="text" disabled="true"
|
|
|
- value="{{values.schemeName}}" />
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
- </picker>
|
|
|
-
|
|
|
- <picker bindchange="bindStorePickerChange" value="{{index}}" range="{{storeList}}" range-key="storeName">
|
|
|
- <tui-list-cell hover="{{false}}">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">门店</view>
|
|
|
- <input placeholder-class="phcolor" class="tui-input" placeholder="请选择门店" name="storeName" type="text" disabled="true"
|
|
|
- value="{{values.storeName}}" />
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
- </picker>
|
|
|
-
|
|
|
- <picker bindchange="bindDeviceTypePickerChange" value="{{index}}" range="{{deviceTypeList}}" range-key="deviceName">
|
|
|
- <tui-list-cell hover="{{false}}">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">设备类型</view>
|
|
|
- <input placeholder-class="phcolor" class="tui-input" name="deviceTypeName" placeholder="请选择设备类型" type="text" disabled="true"
|
|
|
- value="{{values.deviceTypeName}}" />
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
- </picker>
|
|
|
-
|
|
|
- <picker bindchange="bindDictPickerChange" value="{{index}}" range="{{dictList}}" range-key="text">
|
|
|
- <tui-list-cell hover="{{false}}">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">设备品牌</view>
|
|
|
- <input placeholder-class="phcolor" class="tui-input" name="deviceBrandName" placeholder="请选择设备品牌" type="text" disabled="true"
|
|
|
- value="{{values.deviceBrandName}}" />
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
- </picker>
|
|
|
-
|
|
|
- <picker wx:if="{{userInfo.mgvmRole!=3}}" bindchange="bindAgentPickerChange" value="{{index}}" range="{{agentList}}" range-key="username">
|
|
|
- <tui-list-cell hover="{{false}}">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">代理商</view>
|
|
|
- <input placeholder-class="phcolor" class="tui-input" name="agentName" placeholder="请选择代理商" type="text" disabled="true"
|
|
|
- value="{{values.agentName}}" />
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
- </picker>
|
|
|
-
|
|
|
- <tui-list-cell hover="{{false}}">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">支付方式</view>
|
|
|
- <checkbox-group style="line-height:40rpx" bindchange="checkboxChange" >
|
|
|
- <view wx:for="{{payTypeList}}" style=" display: inline-block;height:50rpx;margin:0rpx 20rpx;" wx:key="key" wx:for-item="item">
|
|
|
- <checkbox value="{{item.value}}" checked="{{item.value}}"></checkbox>
|
|
|
- <label >{{item.name}} </label>
|
|
|
- </view>
|
|
|
- </checkbox-group>
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
- <view style="width:100%">
|
|
|
- <tui-tabs tabs="{{tabs}}" currentTab="{{currentTab}}" wx:if="{{isTabs}}" bind:change="selectDevice" itemWidth="{{tabsWidth}}"></tui-tabs>
|
|
|
- </view>
|
|
|
-
|
|
|
-
|
|
|
- <view wx:if="{{isTabs}}" class="tui-goods-item" wx:for="{{selectGridProductList}}">
|
|
|
- <image wx:if="{{!item.productImg==''}}" bindtap="toSelect" src="{{item.productImg}}" class="tui-goods-img" data-index="{{index}}"></image>
|
|
|
- <view wx:else class="tui-goods-grid" bindtap="toSelect" data-index="{{index}}"><text>{{index+1}}号柜</text></view>
|
|
|
- <view class="tui-goods-center">
|
|
|
-
|
|
|
- <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title" style="width:90%">{{item.productName?item.productName:'请选择商品'}}</view>
|
|
|
+ <form bindsubmit="formSubmit" bindreset="formReset">
|
|
|
+ <tui-list-cell hover="{{false}}">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="text-lg text-bold">入驻基本信息</view>
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell hover="{{false}}">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">设备编号</view>
|
|
|
+ <input placeholder-class="phcolor" class="tui-input" placeholder="请输入设备编号" name="deviceSn" type="text" value="{{values.deviceSn}}" data-name="values.deviceSn" catchinput="inputedit" bindblur="inputedit" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell hover="{{false}}">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">设备名称</view>
|
|
|
+ <input placeholder-class="phcolor" class="tui-input" placeholder="请输入设备名称" name="deviceName" type="text" value="{{values.deviceName}}" data-name="values.deviceName" catchinput="inputedit" bindblur="inputedit" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell hover="{{false}}">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">设备号</view>
|
|
|
+ <input placeholder-class="phcolor" class="tui-input" placeholder="请输入设备号" name="deviceLocation" type="text" value="{{values.deviceLocation}}" data-name="values.deviceLocation" catchinput="inputedit" bindblur="inputedit" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <picker bindchange="bindSchemePickerChange" value="{{index}}" range="{{schemeList}}" range-key="schemeName">
|
|
|
+ <tui-list-cell hover="{{false}}">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">方案</view>
|
|
|
+ <input placeholder-class="phcolor" class="tui-input" placeholder="请选择方案" name="schemeName" type="text" disabled="true" value="{{values.schemeName}}" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ </picker>
|
|
|
+
|
|
|
+ <picker bindchange="bindStorePickerChange" value="{{index}}" range="{{storeList}}" range-key="storeName">
|
|
|
+ <tui-list-cell hover="{{false}}">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">门店</view>
|
|
|
+ <input placeholder-class="phcolor" class="tui-input" placeholder="请选择门店" name="storeName" type="text" disabled="true" value="{{values.storeName}}" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ </picker>
|
|
|
+
|
|
|
+ <picker bindchange="bindDeviceTypePickerChange" value="{{index}}" range="{{deviceTypeList}}" range-key="deviceName">
|
|
|
+ <tui-list-cell hover="{{false}}">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">设备类型</view>
|
|
|
+ <input placeholder-class="phcolor" class="tui-input" name="deviceTypeName" placeholder="请选择设备类型" type="text" disabled="true" value="{{values.deviceTypeName}}" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ </picker>
|
|
|
+
|
|
|
+ <picker bindchange="bindDictPickerChange" value="{{index}}" range="{{dictList}}" range-key="text">
|
|
|
+ <tui-list-cell hover="{{false}}">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">设备品牌</view>
|
|
|
+ <input placeholder-class="phcolor" class="tui-input" name="deviceBrandName" placeholder="请选择设备品牌" type="text" disabled="true" value="{{values.deviceBrandName}}" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ </picker>
|
|
|
+
|
|
|
+ <picker wx:if="{{userInfo.mgvmRole!=3}}" bindchange="bindAgentPickerChange" value="{{index}}" range="{{agentList}}" range-key="username">
|
|
|
+ <tui-list-cell hover="{{false}}">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">代理商</view>
|
|
|
+ <input placeholder-class="phcolor" class="tui-input" name="agentName" placeholder="请选择代理商" type="text" disabled="true" value="{{values.agentName}}" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ </picker>
|
|
|
+
|
|
|
+ <tui-list-cell hover="{{false}}">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">支付方式</view>
|
|
|
+ <checkbox-group style="line-height:40rpx" bindchange="checkboxChange">
|
|
|
+ <view wx:for="{{payTypeList}}" style=" display: inline-block;height:50rpx;margin:0rpx 20rpx;" wx:key="key" wx:for-item="item">
|
|
|
+ <checkbox value="{{item.value}}" checked="{{item.value}}"></checkbox>
|
|
|
+ <label>{{item.name}} </label>
|
|
|
+ </view>
|
|
|
+ </checkbox-group>
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ <view style="width:100%">
|
|
|
+ <tui-tabs tabs="{{tabs}}" currentTab="{{currentTab}}" wx:if="{{isTabs}}" bind:change="selectDevice" itemWidth="{{tabsWidth}}"></tui-tabs>
|
|
|
</view>
|
|
|
- </tui-list-cell>
|
|
|
|
|
|
-
|
|
|
- <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">格子数量</view>
|
|
|
- <input placeholder-class="phcolor" class="tui-input" type="number" placeholder="请输入格子数量"
|
|
|
- data-name="gridCount" maxlength="50" type="digit" value="{{item.gridCount}}" bindinput="number" data-index="{{index}}" data-item="{{item}}"/>
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
- <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">库存数量:</view>
|
|
|
- <input placeholder-class="phcolor" class="tui-input" placeholder="请填写库存数量" type="number" value="{{item.stockCount}}" bindinput="number" data-name="stockCount" data-index="{{index}}" data-item="{{item}}"/>
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
|
|
|
- <view class="tui-line-cell">
|
|
|
- <view class="tui-title">货道:</view>
|
|
|
- <view style="margin-left:20rpx;color:red">{{item.productGrid?item.productGrid:index+1}}</view>
|
|
|
+ <view wx:if="{{isTabs}}" class="tui-goods-item" wx:for="{{selectGridProductList}}">
|
|
|
+ <image wx:if="{{!item.productImg==''}}" bindtap="toSelect" src="{{item.productImg}}" class="tui-goods-img" data-index="{{index}}"></image>
|
|
|
+ <view wx:else class="tui-goods-grid" bindtap="toSelect" data-index="{{index}}"><text>{{index+1}}号柜</text></view>
|
|
|
+ <view class="tui-goods-center">
|
|
|
+
|
|
|
+ <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title" style="width:90%">{{item.productName?item.productName:'请选择商品'}}</view>
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+
|
|
|
+ <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">格子数量</view>
|
|
|
+ <input placeholder-class="phcolor" class="tui-input" type="number" placeholder="请输入格子数量" data-name="gridCount" maxlength="50" type="digit" value="{{item.gridCount}}" bindinput="number" data-index="{{index}}" data-item="{{item}}" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">库存数量:</view>
|
|
|
+ <input placeholder-class="phcolor" class="tui-input" placeholder="请填写库存数量" type="number" value="{{item.stockCount}}" bindinput="number" data-name="stockCount" data-index="{{index}}" data-item="{{item}}" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
|
|
|
+ <view class="tui-line-cell">
|
|
|
+ <view class="tui-title">货道:</view>
|
|
|
+ <view style="margin-left:20rpx;color:red">{{item.productGrid?item.productGrid:index+1}}</view>
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </tui-list-cell>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- <view class="tui-btn-box">
|
|
|
- <button class="btn-primary margin-bottom-xs" hover-class="btn-hover" formType="submit" type="primary">提交</button>
|
|
|
- <button class="btn-primary btn-gray" hover-class="btn-gray-hover" formType="reset">重置</button>
|
|
|
- </view>
|
|
|
-</form>
|
|
|
+ <view style="height:160rpx"></view>
|
|
|
+ <view class="tui-btn-box" style="z-index:999999;bottom: 0;position: fixed;width:100%;background-color: #ffffff;">
|
|
|
+ <button class="btn-primary margin-bottom-xs" style="opacity:1" hover-class="btn-hover" formType="submit" type="primary">提交</button>
|
|
|
+ <!-- <button class="btn-primary btn-gray" style="width:45%" hover-class="btn-gray-hover" formType="reset">重置</button> -->
|
|
|
+ </view>
|
|
|
+ </form>
|
|
|
</view>
|