edit.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <wxs src="../../utils/filter.wxs" module="filter"></wxs>
  2. <view class="container">
  3. <form bindsubmit="formSubmit" bindreset="formReset">
  4. <view class="tui-goods-item">
  5. <image src="{{productInfo.productImg}}" class="tui-goods-img"></image>
  6. <view class="tui-goods-center">
  7. <tui-list-cell hover="{{false}}" padding="20rpx 20rpx">
  8. <view class="tui-line-cell">
  9. <view class="tui-title">{{productInfo.productName}}</view>
  10. </view>
  11. </tui-list-cell>
  12. <tui-list-cell hover="{{false}}" padding="20rpx 20rpx">
  13. <view class="tui-line-cell">
  14. <view class="tui-title">商品进货价</view>
  15. <input placeholder-class="phcolor" class="tui-input" name="productPrice" placeholder="请输入金额,保留两位小数"
  16. maxlength="10" type="digit" value="{{filter.toDecimal2Penny(productInfo.productPrice)}}" data-name="productInfo.productPrice" data-type="float" bindblur="inputedit"/>
  17. </view>
  18. </tui-list-cell>
  19. <tui-list-cell hover="{{false}}" padding="20rpx 20rpx">
  20. <view class="tui-line-cell">
  21. <view class="tui-title">商品售价</view>
  22. <input placeholder-class="phcolor" class="tui-input" name="productSellPrice" placeholder="请输入金额,保留两位小数" maxlength="10" type="digit" value="{{filter.toDecimal2Penny(productInfo.productSellPrice)}}" data-name="productInfo.productSellPrice" data-type="float" bindblur="inputedit"/>
  23. </view>
  24. </tui-list-cell>
  25. <tui-list-cell hover="{{false}}" padding="20rpx 20rpx">
  26. <view class="tui-line-cell">
  27. <view class="tui-title">商品名区分:</view>
  28. <input placeholder-class="phcolor" class="tui-input" name="remark" placeholder="请填写备注" maxlength="50" data-name="productInfo.productRemark" value="{{productInfo.productRemark}}"/>
  29. </view>
  30. </tui-list-cell>
  31. </view>
  32. </view>
  33. <view class="tui-btn-box">
  34. <button class="btn-primary margin-bottom-xs" hover-class="btn-hover" formType="submit" type="primary">提交</button>
  35. <button class="btn-primary btn-gray" hover-class="btn-gray-hover" formType="reset">重置</button>
  36. </view>
  37. </form>
  38. </view>