warehousing-processing.wxml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
  2. <van-sticky scroll-top="0">
  3. <view style="display:flex;">
  4. <view style="width:75%; padding-left: 23rpx;">
  5. <van-search bind:search="doSearch" custom-class="search-class" model:value="{{ searchText }}" placeholder="输入单号/商品名称/商品编码/唯一编码" use-right-icon-slot="{{true}}" placeholder-style="color:#95A8CB">
  6. </van-search>
  7. </view>
  8. <view style="width:25%; background:#F8F9FD;">
  9. <view class="scan-class">
  10. <image class="scan-image" fit="fill" src="/static/img/Group.png"></image>
  11. </view>
  12. </view>
  13. </view>
  14. <van-dropdown-menu active-color="#1B365D">
  15. <!-- 创建时间 -->
  16. <van-dropdown-item id="create-time-type" title="{{createTimeType.text}}">
  17. <dk-dropdown-date id="createtime" dateType="createtime" blankFlag="{{false}}" defaultValue='{{createTimeType.value}}' bind:dateCommit='dateCommit'></dk-dropdown-date>
  18. </van-dropdown-item>
  19. <!-- 筛选 -->
  20. <van-dropdown-item id='pick' title="{{'筛选'+ (searchFormNumber ? '['+searchFormNumber+']' : '')}}" bind:open='openSearchPop' bind:close='closeSearchPop' data-type="pick" />
  21. </van-dropdown-menu>
  22. <van-tabs color="#1989FD" nav-class="van-tabs-class" active="{{ active }}" bind:change="onChangeTabs" color="#DEC9A3;" title-active-color="#1B365D" title-inactive-color=" #96A7C5;">
  23. <van-tab title="待入库">
  24. </van-tab>
  25. <van-tab title="已入库">
  26. </van-tab>
  27. </van-tabs>
  28. </van-sticky>
  29. <!-- 筛选抽屉 -->
  30. <dk-side-pull-menu show_p="{{show}}" searchForm="{{searchForm}}" bind:clearSearchForm="clearSearchForm" bind:doSearchData="doSearchData" bind:onClose="onClose">
  31. <dk-label-multiple-select show="{{show}}" id="receiptType" typeName="receiptType" bind:onClickTag="onClickTag"></dk-label-multiple-select>
  32. <dk-label-multiple-select show="{{show}}" id="receiptReason" typeName="receiptReason" bind:onClickTag="onClickTag"></dk-label-multiple-select>
  33. <van-field title-width="150rpx" input-class="time-value-class" label-class="title-class" maxlength="100" data-key="customerName" value="{{ searchForm.customerName }}" input-align="right" label="收货人" placeholder="请输入收货人" autosize border="{{ false }}" readonly="{{false}}" bind:change="changField">
  34. </van-field>
  35. <van-field title-width="150rpx" input-class="time-value-class" label-class="title-class" maxlength="100" data-key="customerPhone" value="{{ searchForm.customerPhone }}" input-align="right" label="收货人电话" placeholder="请输入收货人电话" autosize border="{{ false }}" readonly="{{false}}" bind:change="changField">
  36. </van-field>
  37. <van-field title-width="150rpx" input-class="time-value-class" label-class="title-class" maxlength="100" data-key="addressFullReturn" value="{{ searchForm.addressFullReturn }}" input-align="right" label="收货地址" placeholder="请输入收货地址" autosize border="{{ false }}" readonly="{{false}}" bind:change="changField">
  38. </van-field>
  39. <van-field title-width="150rpx" input-align="right" label-class="title-class" input-class="time-value-class" value="{{searchForm.deliveryTime}}" is-link border="{{ false }}" label="发货日期" placeholder="请选择发货日期" data-key="deliveryTime" catchtap="onClickTime" color="#95A8CB" readonly="{{true}}"></van-field>
  40. <van-field title-width="150rpx" input-align="right" label-class="title-class" input-class="time-value-class" value="{{searchForm.warehousingTime}}" is-link border="{{ false }}" label="入库日期" placeholder="请选择入库日期" data-key="warehousingTime" catchtap="onClickTime" color="#95A8CB" readonly="{{true}}"></van-field>
  41. <van-field title-width="150rpx" input-class="time-value-class" label-class="title-class" maxlength="100" data-key="supplierName" value="{{ searchForm.supplierName }}" input-align="right" label="供应商" placeholder="请输入供应商" autosize border="{{ false }}" readonly="{{false}}" bind:change="changField">
  42. </van-field>
  43. <van-cell border="{{ false }}" title-width="410rpx">
  44. <view slot="title" style="font-size: 14px;color: #2E3853 !important;font-weight: 500;">
  45. 查看冲正数据
  46. </view>
  47. <view Cell Slot="value">
  48. <view style="display: flex; justify-content: center; align-items: center;">
  49. <van-checkbox style="background: white;border-radius: 100%;" shape="round" value="{{ searchForm.checked }}" bind:change="onCheckboxChange"></van-checkbox>
  50. </view>
  51. </view>
  52. </van-cell>
  53. </dk-side-pull-menu>
  54. <!-- 暂无数据 -->
  55. <van-empty wx:if="{{list.length<=0}}" description="暂无数据" />
  56. <!-- 列表 -->
  57. <view wx:for="{{list}}" data-item="{{item}}" wx:key="index" class="main-class">
  58. <!-- 上半部分 -->
  59. <view class="main-foot" style="position: relative;border-radius: 15rpx;">
  60. <view class="table-content" bind:tap="toDetail" data-item="{{item}}">
  61. <view class="table-content-row">
  62. <view class="order-and-status" style="align-items: center;">
  63. <view catchtap="toCustomer" style="width: 39rpx;height: 39rpx;background-color: #95A8CB;border-radius:50%;margin-top: 5rpx;">
  64. <view style="width: 39rpx; height: 39rpx;text-align: center;">
  65. <van-image round width="20rpx" height="24rpx" src="/static/img/Vector.png" />
  66. </view>
  67. </view>
  68. <!-- 其他入库类型。标题为客户 -->
  69. <view wx:if="{{item.entryKindName !='其他入库'}}" catchtap="toCustomer" data-item="{{item}}" style="width:calc(70% - 39rpx);display:flex;padding-left: 14rpx;font-size: 30rpx;align-items: center;">
  70. <dk-text bind:tap="toCustomer" data-item="{{item}}" fontSize="15px" value="{{item.customerName}}"></dk-text>
  71. </view>
  72. <!-- 其他入库类型。标题为责任人 -->
  73. <view wx:if="{{item.entryKindName =='其他入库'}}" catchtap="toCustomer" data-item="{{item}}" style="width:calc(70% - 39rpx);display:flex;padding-left: 14rpx;font-size: 30rpx;align-items: center;">
  74. <dk-text bind:tap="toCustomer" data-item="{{item}}" fontSize="15px" value="{{item.staffName}}"></dk-text>
  75. </view>
  76. <view style="width: calc(50%); height: 49rpx;padding-right:21rpx;" data-item="{{item}}" catchtap="onDesign">
  77. <view style="height: 49rpx; display: flex; align-items: center; justify-content: center; border-radius: 6rpx; background-color: #77C5D5; text-align: center;">
  78. <text style=" font-size: 13px;color: #FFFFFF;">{{item.entryKindName}}</text>
  79. </view>
  80. </view>
  81. <!-- 状态 -->
  82. <!-- <view style="width: calc(40%); height: 49rpx;padding-right:34rpx;" data-item="{{item}}" catchtap="toOrderStatusApvResult">
  83. <view style="height: 49rpx; display: flex; align-items: center; justify-content: center; border-radius: 6rpx; background-color: #77C5D5; text-align: center;">
  84. <text style="font-size: 13px; color: #FFFFFF;">{{item.entryKindName}}</text>
  85. </view>
  86. </view> -->
  87. <!-- 三个小点 -->
  88. <view class="oas-title-value" data-item="{{item}}" catchtap="onclik">
  89. <van-icon size="25" name="ellipsis" color="#1B365D" />
  90. </view>
  91. </view>
  92. </view>
  93. <!-- 日期 -->
  94. <view style="display: flex; width: 100%;text-align: right;height: 47rpx">
  95. <view style="width: calc(100% - 210rpx);text-align: left;padding-left: 30rpx;">
  96. <!-- {{item.erpPushStatus}} -->
  97. <view wx:if="{{item.erpPushStatus == 3}}">
  98. <dk-van-tag catchtap="toOrderStatusApvResult" data-item="{{item}}" color="red" roundFlag="{{true}}" size="medium" value="推送异常"></dk-van-tag>
  99. </view>
  100. </view>
  101. <view style="height: 47rpx;background-color: #EAF1FF;border-radius: 0px 0px 0px 30px;width: 210rpx;text-align: center;">
  102. <text style="font-size: 14px;color: #808080;">2024-01-01</text>
  103. </view>
  104. </view>
  105. <!-- 入库单号 -->
  106. <view class="table-content-row">
  107. <view style="display: flex;">
  108. <view class="table-content-row-font">
  109. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="入库单号" copyValue="{{item.entryNo}}"></dk-text>
  110. </view>
  111. <view class="table-content-class" style="display: flex; width: 100%;justify-content: space-between;">
  112. {{item.entryNo}}
  113. <view catchtap="toCopy" data-text="{{item.entryNo}}" style="border:1px solid #cecece;background-color:white;color:#cecece;border-radius:5rpx;padding:2px;">
  114. 复制
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <!--业务类型 -->
  120. <!-- <view class="table-content-row">
  121. <view style="display: flex;">
  122. <view class="table-content-row-font">
  123. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="业务类型" copyValue="{{item.entryKindName}}"></dk-text>
  124. </view>
  125. <view class="table-content-class">
  126. {{item.entryKindName?item.entryKindName:''}}
  127. </view>
  128. </view>
  129. </view> -->
  130. <!-- 客户电话 -->
  131. <view wx:if="{{item.entryKindName =='退货回库'}}" class="table-content-row">
  132. <view style="display: flex;">
  133. <view class="table-content-row-font">
  134. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="客户电话" copyValue="{{item.customerPhone}}"></dk-text>
  135. </view>
  136. <view class="table-content-class">
  137. {{item.customerPhone?item.customerPhone:''}}
  138. </view>
  139. </view>
  140. </view>
  141. <!-- 客户地址 -->
  142. <view wx:if="{{item.entryKindName =='退货回库'}}" class="table-content-row">
  143. <view style="display: flex;">
  144. <view class="table-content-row-font">
  145. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="客户地址" copyValue="{{item.addressFull ? item.addressFull : ''}}"></dk-text>
  146. </view>
  147. <view class="table-content-class">
  148. <!-- {{item.addressFull ? item.addressFull : ''}} -->
  149. {{ item.addressFull}}
  150. </view>
  151. </view>
  152. </view>
  153. <!-- 门店信息 -->
  154. <view wx:if="{{item.entryKindName =='退货回库'}}" class="table-content-row">
  155. <view style="display: flex;">
  156. <view class="table-content-row-font">
  157. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="门店信息" copyValue="{{item.orgName}} | 业务员 {{item.staffName}}"></dk-text>
  158. </view>
  159. <view class="table-content-class">
  160. {{item.orgName}} | 业务员 {{item.staffName}}
  161. </view>
  162. </view>
  163. </view>
  164. <!-- 收货信息 -->
  165. <view wx:if="{{item.entryKindName =='采购入库'}}" class="table-content-row">
  166. <view style="display: flex;">
  167. <view class="table-content-row-font">
  168. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="收货信息" copyValue="{{item.returnContactName}} | {{item.returnContactPhone}}"></dk-text>
  169. </view>
  170. <view class="table-content-class">
  171. {{item.customerName}} | {{item.customerPhone}}
  172. </view>
  173. </view>
  174. </view>
  175. <!-- 收货地址 -->
  176. <view wx:if="{{item.entryKindName =='采购入库'}}" class="table-content-row">
  177. <view style="display: flex;">
  178. <view class="table-content-row-font">
  179. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="收货地址"></dk-text>
  180. </view>
  181. <view class="table-content-class">
  182. {{item.addressFull?item.addressFull:''}}
  183. </view>
  184. </view>
  185. </view>
  186. <!-- 入库原因 -->
  187. <view wx:if="{{item.entryKindName =='其他入库'}}" class="table-content-row">
  188. <view style="display: flex;">
  189. <view class="table-content-row-font">
  190. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="入库原因"></dk-text>
  191. </view>
  192. <view class="table-content-class">
  193. {{item.entryReasonName?item.entryReasonName:''}}
  194. </view>
  195. </view>
  196. </view>
  197. <!-- 责任人 -->
  198. <view wx:if="{{item.entryKindName =='其他入库'}}" class="table-content-row">
  199. <view style="display: flex;">
  200. <view class="table-content-row-font">
  201. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="责任人" copyValue="{{item.orgName}} | {{item.staffName}}"></dk-text>
  202. </view>
  203. <view class="table-content-class">
  204. {{item.orgName}} | 业务员 {{item.staffName}}
  205. </view>
  206. </view>
  207. </view>
  208. <!-- 入库对象 -->
  209. <view wx:if="{{item.entryKindName =='其他入库'}}" class="table-content-row">
  210. <view style="display: flex;">
  211. <view class="table-content-row-font">
  212. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="入库对象"></dk-text>
  213. </view>
  214. <view class="table-content-class">
  215. {{item.entryObjectName?item.entryObjectName:''}}
  216. </view>
  217. </view>
  218. </view>
  219. <!-- 入库日期 -->
  220. <view class="table-content-row">
  221. <view style="display: flex;">
  222. <view class="table-content-row-font">
  223. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="入库日期"></dk-text>
  224. </view>
  225. <view class="table-content-class">
  226. {{item.entryDate?item.entryDate:''}}
  227. </view>
  228. </view>
  229. </view>
  230. <!--分割线-->
  231. <view style="padding-left:32rpx;padding-right:32rpx;">
  232. <view style="border: 1rpx solid #E9F0FE;height: 0px;"></view>
  233. </view>
  234. <view class="table-content-row" style="padding-top: 0rpx;">
  235. <view style="display:flex;place-items: center;">
  236. <view wx:if="{{item.entryKindName =='其他入库'}}" class="category-class">
  237. {{item.categoryQuantity+ '品类 共'+ item.sumEntryGoingQuantity+'件'}}
  238. </view>
  239. <view wx:else class="category-class">
  240. {{ item.sumEntryGoingQuantity+'件'}}
  241. </view>
  242. <view class="totalamount-class">
  243. <dk-cell fontSize="15" contentFontSize="17" contentColor="#CAA977" titleColor="#1B365D;" contentFontWeight="bold" title="合计金额:" content="{{item.sumEntryGoingAmount}}"></dk-cell>
  244. </view>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. </view>
  250. <view style="height: 25vw;"></view>
  251. <van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">到底了~</van-divider>
  252. <!-- 其他chu库按钮 -->
  253. <dk-save-bottom flagTypeName="other-warehousing" selectTotallength="{{selectTotallength}}" selectlength="{{selectlength}}" totallength="{{numberFormat.toThousandCents(totallength)}}" bind:submit="submit" submitFlag="{{true}}" />
  254. <!-- 日期选择控件 -->
  255. <dk-dropdown-date-day show="{{deliveryFlag}}" defaultValue="{{deliveryTimeDefaultSearch}}" bind:dateCommit="onConfirmChooseDate"></dk-dropdown-date-day>
  256. <!-- 日期选择控件 -->
  257. <dk-dropdown-date-day show="{{warehousingFlag}}" defaultValue="{{warehousingTimeDefaultSearch}}" bind:dateCommit="onConfirmChooseWarehousingDate"></dk-dropdown-date-day>
  258. <van-dialog id="van-dialog" />
  259. <!-- 卡片右上角 -->
  260. <van-popup show="{{showShare}}" position="bottom" bind:close="onCloseShare" custom-class="function-pop-class">
  261. <van-cell-group border="{{false}}" custom-class="function-cell-group">
  262. <van-grid square border="{{false}}" icon-size="42px">
  263. <!--回库办理-->
  264. <van-grid-item wx:if="{{active == 0}}" use-slot catchtap="toOutboundProcessing" data-item="{{bottomItem}}">
  265. <view>
  266. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/warehousing-processing-tag.png"></van-image>
  267. </view>
  268. <view style="margin-top: -18rpx;">
  269. <dk-text fontSize="12px" fontWeight="400" value="入库办理"></dk-text>
  270. </view>
  271. </van-grid-item>
  272. <!--扫码入库-->
  273. <van-grid-item wx:if="{{active == 0}}" use-slot catchtap="toScanProcessing" data-item="{{bottomItem}}">
  274. <view>
  275. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/scanbarcode.png"></van-image>
  276. </view>
  277. <view style="margin-top: -18rpx;">
  278. <dk-text fontSize="12px" fontWeight="400" value="扫码入库"></dk-text>
  279. </view>
  280. </van-grid-item>
  281. <!--回库撤回-->
  282. <van-grid-item wx:if="{{active == 1}}" use-slot catchtap="toRevokel" data-item="{{bottomItem}}">
  283. <view>
  284. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/warehousing-withdrawal.png"></van-image>
  285. </view>
  286. <view style="margin-top: -18rpx;">
  287. <dk-text fontSize="12px" fontWeight="400" value="入库撤回"></dk-text>
  288. </view>
  289. </van-grid-item>
  290. <!--冲正重开-->
  291. <van-grid-item wx:if="{{bottomItem.entryKindName =='其他入库'}}" use-slot catchtap="toReverse" data-item="{{bottomItem}}">
  292. <view>
  293. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/reverse.png"></van-image>
  294. </view>
  295. <view style="margin-top: -18rpx;">
  296. <dk-text fontSize="12px" fontWeight="400" value="冲正重开"></dk-text>
  297. </view>
  298. </van-grid-item>
  299. <!--打印票据-->
  300. <van-grid-item use-slot catchtap="toSaleReturn" data-item="{{bottomItem}}">
  301. <view>
  302. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/print-tickets.png"></van-image>
  303. </view>
  304. <view style="margin-top: -18rpx;">
  305. <dk-text fontSize="12px" fontWeight="400" value="打印票据"></dk-text>
  306. </view>
  307. </van-grid-item>
  308. </van-grid>
  309. </van-cell-group>
  310. <view class="popup-button">
  311. <van-button type="default" custom-class="pop-button-class" size="large" catchtap="onCloseShare">取消
  312. </van-button>
  313. </view>
  314. </van-popup>