select-source-purchase-order.wxml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 wx:if="{{formType == 'add'}}" flgSearchText="{{false}}" flgSearchFlag="{{true}}" flgSearchTextSearchText="{{searchText}}" >
  6. </dk-dropdown-menu>
  7. <dk-dropdown-menu wx:else model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['rpNo','skuName'])}}">
  8. </dk-dropdown-menu>
  9. </van-sticky>
  10. <view style="height: 40rpx;"></view>
  11. <view wx:for="{{tableData}}" data-item="{{item}}" wx:key="index" class="main-class">
  12. <view class="main-foot" style="border-radius: 15rpx;">
  13. <view class="table-content" data-item="{{item}}">
  14. <view style="padding:16rpx;">
  15. <view style="display:flex;justify-content: left;align-items: center;">
  16. <view style="width: 8%;">
  17. <van-checkbox checked-color="#E4002B" value="{{ item.checked }}" data-index="{{index}}" data-index_="{{index_}}" bind:change="onListItemChange"></van-checkbox>
  18. </view>
  19. <view style="width: 72%;">
  20. <view style="font-size: 26rpx;color:#1B365D;">{{item.intoNo}}</view>
  21. <view style="font-size: 24rpx;color:#95A8CB;padding-top:10rpx"> {{item.makeTime ? wxmlUtil.format(item.makeTime) : ''}}</view>
  22. </view>
  23. <view style="width: 20%;text-align: right;font-size: 26rpx;color:#1B365D">采购入库单</view>
  24. </view>
  25. </view>
  26. <view wx:for="{{item.inboundItemList}}" wx:for-item="item_" wx:for-index="index_">
  27. <view style="display: flex;height: 100%;" data-index="{{index}}" data-index_="{{index_}}">
  28. <view style="place-self: center;padding-left: 15rpx;padding-right: 15rpx;">
  29. <view style="display: flex;padding-left: 10rpx;">
  30. <van-checkbox checked-color="#E4002B" value="{{ item_.checked }}" data-index="{{index}}" data-index_="{{index_}}" bind:change="onChangeItemCheckbox" checked-color="#E4002B"></van-checkbox>
  31. <view class="red-checkbox" style="{{item_.checked ? 'color:#E4002B;' : ''}}">退</view>
  32. </view>
  33. </view>
  34. <view class="border-solid" style="{{index_ === 0 ? (item.inboundItemList.length == 1 ? 'margin-top:30rpx;margin-bottom:30rpx;' : 'margin-top:30rpx;') : index_ ===(item.inboundItemList.length -1) ? 'margin-bottom:30rpx;': ''}}"></view>
  35. <view style="display: flex;width: 100%;">
  36. <view style="padding:20rpx;">
  37. <van-image radius="5px" width="80" height="80" src="{{item_.imagesUrl? item_.imagesUrl : ''}}" />
  38. </view>
  39. <view style="width: 100%;padding:20rpx;padding-left: 10rpx;">
  40. <view >
  41. <dk-title titleTag="{{item_.shortName}}" title="{{item_.skuModel}}"></dk-title>
  42. </view>
  43. <view>
  44. <view style="width: 100%;margin-top: 10rpx;" class="font">{{item_.skuName ? item_.skuName : ''}}</view>
  45. </view>
  46. <view style="display: flex;width: 100%;padding-top: 20rpx;">
  47. <view style="width: 40%;">
  48. <dk-cell contentFontSize="15" height="25rpx" fontWeight="bold" left="0rpx" contentColor="#FF7B1A" title="" content="{{ item_.priceInto ? item_.priceInto : 0}}"></dk-cell>
  49. </view>
  50. <view style="width: 60%;font-size:24rpx;color: #95A8CB;line-height: 34rpx;text-align: right;">{{ ' x ' + (item_.canReturnQty ? item_.canReturnQty : 0)}}</view>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <view wx:if="{{index_ !== (item.inboundItemList.length -1) && item.inboundItemList.length > 1}}" style="text-align: center;margin-left: 30rpx;margin-right: 30rpx;">
  56. <view style="border: solid 1rpx #D3D3D3;"></view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <van-empty wx:if="{{!tableData[0].inboundItemList || tableData[0].inboundItemList.length ==0}}" description="暂无出库单" />
  63. <view style="height: 200rpx;"></view>
  64. <!-- 底部工具栏-保存 -->
  65. <!-- <dk-save-bottom checked="{{allChecked}}" totallength="{{returnTotalAmount}}" flagTypeName="select-source-purchase-order" bottomClass="{{true}}" bind:onCheckboxChange="onCheckboxChange" bind:allClean="toAdd" /> -->
  66. <dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonSaveList}}" contentList="{{contentSaveList}}" bind:open="toAdd"></dk-save-button>