form.wxml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <wxs src="../../utils/filter.wxs" module="filter"></wxs>
  2. <view class="container">
  3. <form bindsubmit="formSubmit" bindreset="formReset">
  4. <tui-list-cell hover="{{false}}">
  5. <view class="tui-line-cell">
  6. <view class="tui-title"><text style="color:red;">*</text>方案名称:</view>
  7. <input placeholder-class="phcolor" class="tui-input" data-name="values.schemeName" placeholder="请输入方案名称" maxlength="50" name="schemeName" value="{{values.schemeName}}" catchinput="inputedit" bindblur="inputedit"/>
  8. </view>
  9. </tui-list-cell>
  10. <picker wx:if="{{userInfo.mgvmRole!=3}}" bindchange="bindAgentPickerChange" value="{{index}}" range="{{agentList}}" range-key="username">
  11. <tui-list-cell hover="{{false}}">
  12. <view class="tui-line-cell">
  13. <view class="tui-title"><text style="color:red;">*</text>代理商</view>
  14. <input placeholder-class="phcolor" class="tui-input" name="agentName" placeholder="请选择代理商" type="text" disabled="true"
  15. model:value="{{values.agentName}}" />
  16. </view>
  17. </tui-list-cell>
  18. </picker>
  19. <picker bindchange="bindStorePickerChange" value="{{index}}" range="{{storeList}}" range-key="storeName">
  20. <tui-list-cell hover="{{false}}">
  21. <view class="tui-line-cell">
  22. <view class="tui-title"><text style="color:red;">*</text>门店</view>
  23. <input placeholder-class="phcolor" class="tui-input" name="storeName" placeholder="请选择门店" type="text" disabled="true"
  24. model:value="{{values.storeName}}" />
  25. </view>
  26. </tui-list-cell>
  27. </picker>
  28. <button class="btn-primary margin-bottom-xs" hover-class="btn-hover" bindtap="addGrid" type="primary">添加</button>
  29. <view class="tui-goods-item" wx:for="{{values.schemeBillEntryList}}">
  30. <image wx:if="{{!item.productImg==''}}" src="{{item.productImg}}" class="tui-goods-img" data-index="{{index}}"></image>
  31. <view wx:else class="tui-goods-grid" bindtap="toSelect" data-index="{{index}}"><text>请选择商品</text></view>
  32. <view class="tui-goods-center">
  33. <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
  34. <view class="tui-line-cell" style="height:48rpx;">
  35. <view class="tui-title" style="width:90%">{{item.productName}}</view>
  36. </view>
  37. </tui-list-cell>
  38. <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
  39. <view class="tui-line-cell" style="height:48rpx;">
  40. <view class="tui-title">商品售价: </view>
  41. <view class="tui-title"> {{item.productSchemePrice?filter.toDecimal2Penny(item.productSchemePrice):0}}</view>
  42. </view>
  43. </tui-list-cell>
  44. <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
  45. <view class="tui-line-cell" style="height:48rpx;">
  46. <view class="tui-title">代理分成(%):</view>
  47. <input placeholder-class="phcolor" class="tui-input" placeholder="请填写代理分成比例" type="number" value="{{item.areaDivide}}" bindblur="inputeditRow" data-name="areaDivide" data-index="{{index}}" data-item="{{item}}"/>
  48. </view>
  49. </tui-list-cell>
  50. <tui-list-cell hover="{{false}}" padding="0rpx 20rpx">
  51. <view class="tui-line-cell" style="height:48rpx;">
  52. <view class="tui-title">门店分成(%):</view>
  53. <input placeholder-class="phcolor" class="tui-input" placeholder="请填写门店分成比例" type="number" value="{{item.storeDivide}}" bindblur="inputeditRow" data-name="storeDivide" data-index="{{index}}" data-item="{{item}}"/>
  54. </view>
  55. </tui-list-cell>
  56. </view>
  57. </view>
  58. <view class="tui-btn-box">
  59. <button class="btn-primary margin-bottom-xs" hover-class="btn-hover" formType="submit" type="primary">提交</button>
  60. <button class="btn-primary btn-gray" hover-class="btn-gray-hover" bindtap="deleteScheme" >删除</button>
  61. </view>
  62. </form>
  63. <!--弹出-->
  64. <time-picker pickerShow="{{isPickerShow}}" id="picker" wx:if="{{isPickerRender}}" bind:hidePicker="pickerHide"
  65. bind:setPickerTime="setPickerTime" config="{{pickerConfig}}"></time-picker>
  66. <!--弹出-->
  67. </view>