select-source-sale-order.wxml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  2. <loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
  3. <van-sticky scroll-top="0">
  4. <!-- 查询条件 -->
  5. <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['rpNo','skuName'])}}">
  6. </dk-dropdown-menu>
  7. </van-sticky>
  8. <view wx:for="{{tableData}}" data-item="{{item}}" wx:key="index" class="main-class-source">
  9. <view class="main-foot-source" style="border-radius: 15rpx;">
  10. <view class="table-content" data-item="{{item}}">
  11. <view style="padding:16rpx;">
  12. <view style="display:flex;justify-content: left;align-items: center;">
  13. <view style="width: 20%;display: flex;">
  14. <van-checkbox checked-color="#E4002B" value="{{ item.checked }}" data-index="{{index}}" data-index_="{{index_}}" bind:change="onListItemChange"></van-checkbox> <view style="color:#95A8CB;font-size:13px;padding-left: 6px;">全出</view>
  15. </view>
  16. <view style="width: 60%;">
  17. <view style="font-size: 26rpx;color:#1B365D">{{item.orderNo}}</view>
  18. <view style="font-size: 24rpx;color:#95A8CB;padding-top:10rpx"> {{item.makeTime ? wxmlUtil.format(item.makeTime) : ''}}</view>
  19. </view>
  20. <view style="width: 20%;text-align: right;font-size: 26rpx;color:#1B365D">销售订单</view>
  21. </view>
  22. </view>
  23. <view wx:for="{{item.orderItemResponseList}}" wx:for-item="item_" wx:for-index="index_">
  24. <view style="display: flex;" data-index="{{index}}" data-index_="{{index_}}">
  25. <view style="place-self: center;padding-left: 15rpx;padding-right: 15rpx;">
  26. <view style="display: flex;padding-left: 10rpx;">
  27. <van-checkbox checked-color="#E4002B" value="{{ item_.checked }}" data-index="{{index}}" data-index_="{{index_}}" bind:change="onChangeItemCheckbox" checked-color="#E4002B"></van-checkbox>
  28. <view class="red-checkbox" style="{{item_.checked ? 'color:#E4002B;' : ''}}">出</view>
  29. </view>
  30. </view>
  31. <view class="border-solid" style="{{index_ === 0 ? (item.orderItemResponseList.length == 1 ? 'margin-top:30rpx;margin-bottom:30rpx;' : 'margin-top:30rpx;') : index_ ===(item.orderItemResponseList.length -1) ? 'margin-bottom:30rpx;': ''}}"></view>
  32. <view style="display: flex;width: 100%;">
  33. <view style="padding:20rpx;">
  34. <van-image radius="5px" width="80" height="80" src="{{item_.skuImages? item_.skuImages.path : ''}}" />
  35. </view>
  36. <view style="width: 100%;padding:20rpx;padding-left: 10rpx;">
  37. <view>
  38. <dk-title titleTag="{{'HEGII'}}" title="{{item_.skuCode}}"></dk-title>
  39. </view>
  40. <view>
  41. <view style="width: 100%;margin-top: 10rpx;" class="font">{{item_.skuName}}</view>
  42. </view>
  43. <view style="display: flex;width: 100%;margin-top: 20rpx;">
  44. <view style="width: 50%;">
  45. <dk-cell contentFontSize="15" height="25rpx" fontWeight="bold" left="0rpx" contentColor="#FF7B1A" title="" content="{{ item_.priceSale ? item_.priceSale : 0}}"></dk-cell>
  46. </view>
  47. <view style="width: 50%;font-size:24rpx;color: #1B365D;line-height: 34rpx;font-weight: bold;text-align: right;">{{ ' x ' + (item_.itemQty ? item_.itemQty : 0)}}</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view wx:if="{{index_ !== (item.orderItemResponseList.length -1) && item.orderItemResponseList.length > 1}}" style="text-align: center;margin-left: 30rpx;margin-right: 30rpx;">
  53. <view style="border: solid 1rpx #A0A2A7;"></view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <van-empty wx:if="{{!tableData[0].orderItemResponseList || tableData[0].orderItemResponseList.length ==0}}" description="暂无出库单" />
  60. <view style="height: 200rpx;"></view>
  61. <dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonSaveList}}" contentList="{{contentSaveList}}" bind:open="toAdd"></dk-save-button>