select-source-purchase-order.wxml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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,['roleName','roleCode'])}}">
  6. </dk-dropdown-menu>
  7. <view class="top-class">
  8. <view class="top-class-2">
  9. <view style="padding-right: 32rpx;padding-bottom: 15rpx;">
  10. <view style="display: flex;padding-right: 32rpx;">
  11. <view style="padding-left: 32rpx;padding-top: 19rpx;width: 39rpx;">
  12. <view catchtap="toCustomer" style="width: 39rpx;height: 39rpx;background-color: #95A8CB;border-radius:50%;">
  13. <view style="width: 39rpx; height: 39rpx;text-align: center;">
  14. <van-image round width="28rpx" height="28rpx" src="/static/img/purchase-order-icon.png" />
  15. </view>
  16. </view>
  17. </view>
  18. <view style="padding-left: 14rpx;padding-top: 19rpx;font-size: 26rpx;line-height: 36rpx;color: #FFFFFF;">
  19. {{item.supplierName}}
  20. </view>
  21. </view>
  22. <view style="display: flex;padding-right: 32rpx;">
  23. <view style="padding-left: 32rpx;padding-top: 19rpx;width: 39rpx;">
  24. <view catchtap="toCustomer" style="width: 39rpx;height: 39rpx;background-color: #95A8CB;border-radius:50%;">
  25. <view style="width: 39rpx; height: 39rpx;text-align: center;">
  26. <van-image round width="20rpx" height="24rpx" src="/static/img/Vector.png" />
  27. </view>
  28. </view>
  29. </view>
  30. <view style="padding-left: 14rpx;padding-top: 19rpx;font-size: 26rpx;line-height: 36rpx;color: #FFFFFF;">
  31. {{item.contactName}}
  32. </view>
  33. <view style="padding-left: 22rpx;padding-top: 19rpx;font-size: 26rpx;line-height: 36rpx;color: #FFFFFF;">
  34. {{item.contactPhone}}
  35. </view>
  36. </view>
  37. <view style="display: flex;padding-right: 32rpx;">
  38. <view style="padding-left: 32rpx;padding-top: 15rpx;font-size: 26rpx;line-height: 36rpx;color: #FFFFFF;">
  39. {{ item.returnAddress}}
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </van-sticky>
  46. <view style="height: 40rpx;"></view>
  47. <view wx:for="{{tableData}}" data-item="{{item}}" wx:key="index" class="main-class">
  48. <view class="main-foot" style="border-radius: 15rpx;">
  49. <view class="table-content" data-item="{{item}}">
  50. <view style="padding:16rpx;">
  51. <view style="display:flex;justify-content: left;align-items: center;">
  52. <view style="width: 8%;">
  53. <van-checkbox checked-color="#E4002B" value="{{ item.checked }}" data-index="{{index}}" data-index_="{{index_}}" bind:change="onListItemChange"></van-checkbox>
  54. </view>
  55. <view style="width: 72%;">
  56. <view style="font-size: 26rpx;color:#1B365D">{{item.intoNo}}</view>
  57. <view style="font-size: 24rpx;color:#95A8CB;padding-top:10rpx"> {{item.makeTime ? wxmlUtil.format(item.makeTime) : ''}}</view>
  58. </view>
  59. <view style="width: 20%;text-align: right;font-size: 26rpx;color:#1B365D">采购入库单</view>
  60. </view>
  61. </view>
  62. <view wx:for="{{item.inboundItemList}}" wx:for-item="item_" wx:for-index="index_">
  63. <view style="display: flex;" data-index="{{index}}" data-index_="{{index_}}">
  64. <view style="place-self: center;padding-left: 15rpx;padding-right: 15rpx;">
  65. <view style="display: flex;padding-left: 10rpx;">
  66. <van-checkbox checked-color="#E4002B" value="{{ item_.checked }}" data-index="{{index}}" data-index_="{{index_}}" bind:change="onChangeItemCheckbox" checked-color="#E4002B"></van-checkbox>
  67. <view class="red-checkbox" style="{{item_.checked ? 'color:#E4002B;' : ''}}">退</view>
  68. </view>
  69. </view>
  70. <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>
  71. <view style="display: flex;width: 100%;">
  72. <view style="padding:20rpx;">
  73. <van-image radius="5px" width="80" height="80" src="{{item_.skuImages? item_.skuImages.path : ''}}" />
  74. </view>
  75. <view style="width: 100%;padding:20rpx;padding-left: 10rpx;">
  76. <view>
  77. <dk-title titleTag="{{'HEGII'}}" title="{{item_.skuCode}}"></dk-title>
  78. </view>
  79. <view>
  80. <view style="width: 100%;margin-top: 10rpx;" class="font">{{item_.skuName}}</view>
  81. </view>
  82. <view style="display: flex;width: 100%;margin-top: 40rpx;position: absolute;">
  83. <view style="width: 40%;">
  84. <dk-cell contentFontSize="15" height="25rpx" fontWeight="bold" left="0rpx" contentColor="#CAA977" title="" content="{{ item_.priceInto ? item_.priceInto : 0}}"></dk-cell>
  85. </view>
  86. <view style="width: 60%;font-size:24rpx;color: #95A8CB;line-height: 34rpx;">{{ ' x ' + (item_.rejectQty ? item_.rejectQty : 0)}}</view>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. <view wx:if="{{index_ !== (item.inboundItemList.length -1) && item.inboundItemList.length > 1}}" style="text-align: center;margin-left: 30rpx;margin-right: 30rpx;">
  92. <view style="border: solid 1rpx #D3D3D3;"></view>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <van-empty wx:if="{{!tableData[0].inboundItemList || tableData[0].inboundItemList.length ==0}}" description="暂无出库单" />
  99. <view style="height: 200rpx;"></view>
  100. <!-- 底部工具栏-保存 -->
  101. <!-- <dk-save-bottom checked="{{allChecked}}" totallength="{{returnTotalAmount}}" flagTypeName="select-source-purchase-order" bottomClass="{{true}}" bind:onCheckboxChange="onCheckboxChange" bind:allClean="toAdd" /> -->
  102. <dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonSaveList}}" contentList="{{contentSaveList}}" bind:open="toAdd"></dk-save-button>