warehousing-processing.wxml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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 wx:if="{{item.entryKind =='其他入库'}}" style="display: flex; width: 100%;text-align: right;height: 47rpx">
  95. <view style="width: calc(100% - 210rpx);text-align: left;padding-left: 30rpx;">
  96. </view>
  97. <view style="height: 47rpx;background-color: #EAF1FF;border-radius: 0px 0px 0px 30px;width: 210rpx;text-align: center;">
  98. <text style="font-size: 14px;color: #808080;">{{item.makingDate?item.makingDate:''}}</text>
  99. </view>
  100. </view>
  101. <!-- 入库单号 -->
  102. <view class="table-content-row">
  103. <view style="display: flex;">
  104. <view class="table-content-row-font">
  105. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="入库单号" copyValue="{{item.entryNo}}"></dk-text>
  106. </view>
  107. <view class="table-content-class" style="display: flex; width: 100%;justify-content: space-between;">
  108. {{item.entryNo}}
  109. <view catchtap="toCopy" data-text="{{item.entryNo}}" style="border:1px solid #cecece;background-color:white;color:#cecece;border-radius:5rpx;padding:2px;">
  110. 复制
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. <!--业务类型 -->
  116. <!-- <view class="table-content-row">
  117. <view style="display: flex;">
  118. <view class="table-content-row-font">
  119. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="业务类型" copyValue="{{item.entryKindName}}"></dk-text>
  120. </view>
  121. <view class="table-content-class">
  122. {{item.entryKindName?item.entryKindName:''}}
  123. </view>
  124. </view>
  125. </view> -->
  126. <!-- 客户电话 -->
  127. <view wx:if="{{item.entryKindName =='销售回库'}}" class="table-content-row">
  128. <view style="display: flex;">
  129. <view class="table-content-row-font">
  130. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="客户电话" copyValue="{{item.customerPhone}}"></dk-text>
  131. </view>
  132. <view class="table-content-class">
  133. {{item.customerPhone?item.customerPhone:''}}
  134. </view>
  135. </view>
  136. </view>
  137. <!-- 客户地址 -->
  138. <view wx:if="{{item.entryKindName =='销售回库'}}" class="table-content-row">
  139. <view style="display: flex;">
  140. <view class="table-content-row-font">
  141. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="客户地址" copyValue="{{item.addressFull ? item.addressFull : ''}}"></dk-text>
  142. </view>
  143. <view class="table-content-class">
  144. <!-- {{item.addressFull ? item.addressFull : ''}} -->
  145. {{ wxmlUtil.addressFullIsUndefined(item.addressFull)}}
  146. </view>
  147. </view>
  148. </view>
  149. <!-- 门店信息 -->
  150. <view wx:if="{{item.entryKindName =='销售回库'}}" class="table-content-row">
  151. <view style="display: flex;">
  152. <view class="table-content-row-font">
  153. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="门店信息" copyValue="{{item.orgName}} | 业务员 {{item.staffName}}"></dk-text>
  154. </view>
  155. <view class="table-content-class">
  156. {{item.orgName}} | 业务员 {{item.staffName}}
  157. </view>
  158. </view>
  159. </view>
  160. <!-- 收货信息 -->
  161. <view wx:if="{{item.entryKindName =='采购入货'}}" class="table-content-row">
  162. <view style="display: flex;">
  163. <view class="table-content-row-font">
  164. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="收货信息" copyValue="{{item.returnContactName}} | {{item.returnContactPhone}}"></dk-text>
  165. </view>
  166. <view class="table-content-class">
  167. {{item.returnContactName}} | {{item.returnContactPhone}}
  168. </view>
  169. </view>
  170. </view>
  171. <!-- 收货地址 -->
  172. <view wx:if="{{item.entryKindName =='采购入货'}}" class="table-content-row">
  173. <view style="display: flex;">
  174. <view class="table-content-row-font">
  175. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="收货地址"></dk-text>
  176. </view>
  177. <view class="table-content-class">
  178. {{item.returnAddressFull?item.returnAddressFull:''}}
  179. </view>
  180. </view>
  181. </view>
  182. <!-- 入库原因 -->
  183. <view wx:if="{{item.entryKindName =='其他入库'}}" class="table-content-row">
  184. <view style="display: flex;">
  185. <view class="table-content-row-font">
  186. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="入库原因"></dk-text>
  187. </view>
  188. <view class="table-content-class">
  189. {{item.entryReasonName?item.entryReasonName:''}}
  190. </view>
  191. </view>
  192. </view>
  193. <!-- 责任人 -->
  194. <view wx:if="{{item.entryKindName =='其他入库'}}" class="table-content-row">
  195. <view style="display: flex;">
  196. <view class="table-content-row-font">
  197. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="责任人" copyValue="{{item.orgName}} | {{item.staffName}}"></dk-text>
  198. </view>
  199. <view class="table-content-class">
  200. {{item.orgName}} | 业务员 {{item.staffName}}
  201. </view>
  202. </view>
  203. </view>
  204. <!-- 入库对象 -->
  205. <view wx:if="{{item.entryKindName =='其他入库'}}" class="table-content-row">
  206. <view style="display: flex;">
  207. <view class="table-content-row-font">
  208. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="入库对象"></dk-text>
  209. </view>
  210. <view class="table-content-class">
  211. {{item.entryObjectName?item.entryObjectName:''}}
  212. </view>
  213. </view>
  214. </view>
  215. <!-- 入库日期 -->
  216. <view class="table-content-row">
  217. <view style="display: flex;">
  218. <view class="table-content-row-font">
  219. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="入库日期"></dk-text>
  220. </view>
  221. <view class="table-content-class">
  222. {{item.entryDate?item.entryDate:''}}
  223. </view>
  224. </view>
  225. </view>
  226. <!--分割线-->
  227. <view style="padding-left:32rpx;padding-right:32rpx;">
  228. <view style="border: 1rpx solid #E9F0FE;height: 0px;"></view>
  229. </view>
  230. <view class="table-content-row" style="padding-top: 0rpx;">
  231. <view style="display:flex;place-items: center;">
  232. <view wx:if="{{item.entryKindName =='其他入库'}}" class="category-class">
  233. {{item.categoryQuantity+ '品类 共'+ item.sumEntryGoingQuantity+'件'}}
  234. </view>
  235. <view wx:else class="category-class">
  236. {{ item.sumEntryGoingQuantity+'件'}}
  237. </view>
  238. <view class="totalamount-class">
  239. <dk-cell fontSize="15" contentFontSize="17" contentColor="#CAA977" titleColor="#1B365D;" contentFontWeight="bold" title="合计金额:" content="{{item.sumEntryGoingAmount}}"></dk-cell>
  240. </view>
  241. </view>
  242. </view>
  243. </view>
  244. </view>
  245. </view>
  246. <view style="height: 25vw;"></view>
  247. <van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">到底了~</van-divider>
  248. <!-- 其他chu库按钮 -->
  249. <dk-save-bottom flagTypeName="other-warehousing" selectTotallength="{{selectTotallength}}" selectlength="{{selectlength}}" totallength="{{numberFormat.toThousandCents(totallength)}}" bind:submit="submit" submitFlag="{{true}}" />
  250. <!-- 日期选择控件 -->
  251. <dk-dropdown-date-day show="{{deliveryFlag}}" defaultValue="{{deliveryTimeDefaultSearch}}" bind:dateCommit="onConfirmChooseDate"></dk-dropdown-date-day>
  252. <!-- 日期选择控件 -->
  253. <dk-dropdown-date-day show="{{warehousingFlag}}" defaultValue="{{warehousingTimeDefaultSearch}}" bind:dateCommit="onConfirmChooseWarehousingDate"></dk-dropdown-date-day>
  254. <van-dialog id="van-dialog" />
  255. <!-- 卡片右上角 -->
  256. <van-popup show="{{showShare}}" position="bottom" bind:close="onCloseShare" custom-class="function-pop-class">
  257. <van-cell-group border="{{false}}" custom-class="function-cell-group">
  258. <van-grid square border="{{false}}" icon-size="42px">
  259. <!--回库办理-->
  260. <van-grid-item wx:if="{{active == 0}}" use-slot catchtap="toOutboundProcessing" data-item="{{bottomItem}}">
  261. <view>
  262. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/warehousing-processing-tag.png"></van-image>
  263. </view>
  264. <view style="margin-top: -18rpx;">
  265. <dk-text fontSize="12px" fontWeight="400" value="入库办理"></dk-text>
  266. </view>
  267. </van-grid-item>
  268. <!--扫码入库-->
  269. <van-grid-item wx:if="{{active == 0}}" use-slot catchtap="toScanProcessing" data-item="{{bottomItem}}">
  270. <view>
  271. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/scanbarcode.png"></van-image>
  272. </view>
  273. <view style="margin-top: -18rpx;">
  274. <dk-text fontSize="12px" fontWeight="400" value="扫码入库"></dk-text>
  275. </view>
  276. </van-grid-item>
  277. <!--回库撤回-->
  278. <van-grid-item wx:if="{{active == 1}}" use-slot catchtap="toRevokel" data-item="{{bottomItem}}">
  279. <view>
  280. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/warehousing-withdrawal.png"></van-image>
  281. </view>
  282. <view style="margin-top: -18rpx;">
  283. <dk-text fontSize="12px" fontWeight="400" value="入库撤回"></dk-text>
  284. </view>
  285. </van-grid-item>
  286. <!--冲正重开-->
  287. <van-grid-item wx:if="{{bottomItem.entryKindName =='其他入库'}}" use-slot catchtap="toReverse" data-item="{{bottomItem}}">
  288. <view>
  289. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/reverse.png"></van-image>
  290. </view>
  291. <view style="margin-top: -18rpx;">
  292. <dk-text fontSize="12px" fontWeight="400" value="冲正重开"></dk-text>
  293. </view>
  294. </van-grid-item>
  295. <!--打印票据-->
  296. <van-grid-item use-slot catchtap="toSaleReturn" data-item="{{bottomItem}}">
  297. <view>
  298. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/print-tickets.png"></van-image>
  299. </view>
  300. <view style="margin-top: -18rpx;">
  301. <dk-text fontSize="12px" fontWeight="400" value="打印票据"></dk-text>
  302. </view>
  303. </van-grid-item>
  304. </van-grid>
  305. </van-cell-group>
  306. <view class="popup-button">
  307. <van-button type="default" custom-class="pop-button-class" size="large" catchtap="onCloseShare">取消
  308. </van-button>
  309. </view>
  310. </van-popup>