123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <wxs src="../../utils/filter.wxs" module="filter"></wxs>
- <view class="container">
- <form bindsubmit="formSubmit" bindreset="formReset">
- <tui-list-cell hover="{{false}}">
- <view class="tui-line-cell">
- <view class="tui-title"><text style="color:red;">*</text>方案名称:</view>
- <input placeholder-class="phcolor" class="tui-input" data-name="values.schemeName" placeholder="请输入方案名称" maxlength="50" name="schemeName" value="{{values.schemeName}}" catchinput="inputedit" bindblur="inputedit"/>
- </view>
- </tui-list-cell>
- <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"><text style="color:red;">*</text>代理商</view>
- <input placeholder-class="phcolor" class="tui-input" name="agentName" placeholder="请选择代理商" type="text" disabled="true"
- model:value="{{values.agentName}}" />
- </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"><text style="color:red;">*</text>门店</view>
- <input placeholder-class="phcolor" class="tui-input" name="storeName" placeholder="请选择门店" type="text" disabled="true"
- model:value="{{values.storeName}}" />
- </view>
- </tui-list-cell>
- </picker>
- <button class="btn-primary margin-bottom-xs" hover-class="btn-hover" bindtap="addGrid" type="primary">添加</button>
-
-
- <view class="tui-goods-item" wx:for="{{values.schemeBillEntryList}}">
- <image wx:if="{{!item.productImg==''}}" src="{{item.productImg}}" class="tui-goods-img" data-index="{{index}}"></image>
- <view wx:else class="tui-goods-grid" bindtap="toSelect" data-index="{{index}}"><text>请选择商品</text></view>
- <view class="tui-goods-center">
- <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
- <view class="tui-line-cell" style="height:48rpx;">
- <view class="tui-title" style="width:90%">{{item.productName}}</view>
- </view>
- </tui-list-cell>
- <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
- <view class="tui-line-cell" style="height:48rpx;">
- <view class="tui-title">商品售价: </view>
- <view class="tui-title"> {{item.productSchemePrice?filter.toDecimal2Penny(item.productSchemePrice):0}}</view>
- </view>
- </tui-list-cell>
- <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
- <view class="tui-line-cell" style="height:48rpx;">
- <view class="tui-title">代理分成(%):</view>
- <input placeholder-class="phcolor" class="tui-input" placeholder="请填写代理分成比例" type="number" value="{{item.areaDivide}}" bindblur="inputeditRow" data-name="areaDivide" data-index="{{index}}" data-item="{{item}}"/>
- </view>
- </tui-list-cell>
- <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
- <view class="tui-line-cell" style="height:48rpx;">
- <view class="tui-title">门店分成(%):</view>
- <input placeholder-class="phcolor" class="tui-input" placeholder="请填写门店分成比例" type="number" value="{{item.storeDivide}}" bindblur="inputeditRow" data-name="storeDivide" data-index="{{index}}" data-item="{{item}}"/>
- </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" bindtap="deleteScheme" >删除</button>
- </view>
- </form>
- <!--弹出-->
- <time-picker pickerShow="{{isPickerShow}}" id="picker" wx:if="{{isPickerRender}}" bind:hidePicker="pickerHide"
- bind:setPickerTime="setPickerTime" config="{{pickerConfig}}"></time-picker>
- <!--弹出-->
-
- </view>
|