detail.wxml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <wxs src="../../utils/filter.wxs" module="filter"></wxs>
  2. <view class="container">
  3. <block wx:for="{{deviceInfo.deviceDetail}}" wx:for-index="idx">
  4. <view wx:if="{{idx==0}}">
  5. <tui-list-cell hover="{{false}}">
  6. <view class="tui-line-cell">
  7. <view class="text-lg text-bold">设备详情信息</view>
  8. </view>
  9. </tui-list-cell>
  10. <tui-list-cell hover="{{false}}">
  11. <view class="tui-line-cell">
  12. <view class="tui-title">设备号:</view>
  13. <label class="tui-label">{{item.mgVmDevice.deviceSn}}</label>
  14. </view>
  15. </tui-list-cell>
  16. <tui-list-cell hover="{{false}}">
  17. <view class="tui-line-cell">
  18. <view class="tui-title">门店名称:</view>
  19. <label class="tui-label">{{item.mgVmDevice.storeName}}</label>
  20. </view>
  21. </tui-list-cell>
  22. <tui-list-cell hover="{{false}}">
  23. <view class="tui-line-cell">
  24. <view class="tui-title">摆放房间:</view>
  25. <label class="tui-label">{{item.mgVmDevice.deviceLocation}}</label>
  26. </view>
  27. </tui-list-cell>
  28. <tui-list-cell hover="{{false}}">
  29. <view class="tui-line-cell">
  30. <view class="tui-title">商品方案:</view>
  31. <label class="tui-label">{{item.mgVmDevice.schemeName}}</label>
  32. </view>
  33. </tui-list-cell>
  34. <!-- <tui-list-cell hover="{{false}}">
  35. <view class="tui-line-cell">
  36. <view class="tui-title">缺货格子:</view>
  37. <label class="tui-label" style="display:flex;">
  38. <tui-tag size="small" tui-tag-class="tui-mrbtm" wx:for="{{filter.gridList(item.stockGrid)}}">{{item}}</tui-tag>
  39. </label>
  40. </view>
  41. </tui-list-cell> -->
  42. </view>
  43. </block>
  44. <tui-list-cell padding="0" hover="{{false}}" wx:for="{{deviceInfo.gridList}}">
  45. <view class="tui-goods-item">
  46. <image src="{{item.productImg}}" class="tui-goods-img"></image>
  47. <view class="tui-goods-center">
  48. <view class="tui-goods-name">{{item.productName}}</view>
  49. <view class="tui-goods-attr">
  50. 对应格子:
  51. <tui-tag size="small" tui-tag-class="tui-mrbtm">{{item.productGrid}}</tui-tag>
  52. </view>
  53. <view class="tui-goods-attr">
  54. <view >可放置数量:{{item.gridCount?item.gridCount:0}}</view>
  55. </view>
  56. <view class="tui-goods-attr">
  57. <view >当前数量:{{item.stockCount?item.stockCount:0}}</view>
  58. </view>
  59. <view class="tui-goods-attr">
  60. <view >补货数量:</view>
  61. <input placeholder-class="phcolor" class="tui-input" placeholder="请填写补货数量" type="number" value="{{item.repairNum}}"
  62. bindinput="number" data-name="repairNum" data-index="{{index}}" data-item="{{item}}"/>
  63. </view>
  64. </view>
  65. <view class="tui-price-right">
  66. <!-- <tui-button data-id="{{item.gridId}}" data-as="{{item.isStock}}" type="primary" size="mini" tui-button-class="tui-mbtm" wx:if="{{item.isStock == 1}}" bindtap="updateIsStock">有货</tui-button>
  67. <tui-button data-id="{{item.gridId}}" type="danger" data-as="{{item.isStock}}" size="mini" tui-button-class="tui-mbtm" bindtap="updateIsStock" wx:else>缺货</tui-button> -->
  68. <tui-button data-id="{{item.gridId}}" data-index="{{index}}" data-repairnum="{{item.repairNum}}" type="primary" size="mini" tui-button-class="tui-mbtm" bindtap="updateSkuStock">补货</tui-button>
  69. </view>
  70. </view>
  71. </tui-list-cell>
  72. </view>