2023-05-15 16:21:46 +08:00

1 line
28 KiB
JavaScript

"use strict";require("./sub-common/6514314e1ce505d797b0609892734104.js");require("./sub-common/5e998762672dd4d38c2d0ab24e18da5c.js");require("./sub-common/cfbe428c48e739cf450612d36b6a6a63.js");require("./sub-common/d8e7d5109977706b25e68314079fe81c.js");require("./sub-common/5b35d681b11a39f95f3e53e462197803.js");require("./sub-common/d6f5c6bd3174a27c03f064a8ed50faa7.js");require("./sub-common/75a15d6a6c0b8bd720af0a466869752c.js");require("./sub-common/29afedede945dc43bd223adfbd5cdbd2.js");require("./sub-common/15c771d59bd19e3ae3c8a6bd03613cce.js");require("./sub-common/ffb3ad7d6ef63669fc8495af371edbd9.js");require("./sub-common/68fbc2f6535d2d99c764860e0c69b864.js");require("./sub-common/8d19521dae28132143bb9a61390973fb.js");require("./sub-common/01b29866ff5ef3c8fc09e4687b7580d3.js");require("./sub-common/1b3a0f4f37f312e8629809083d71aa30.js");require("./sub-common/1da759392e78d572495498b53bc4e2a9.js");require("./sub-common/2c302fdf3f6499e5db104919c6460d1c.js");require("./sub-common/d5943168735ab288e7141d055641b357.js");require("./sub-common/487820b0271949219d8f34b2e3732f3c.js");require("./sub-common/e54dea7ef79f9f8285aef52494c3176a.js");require("./sub-common/b191abcf8c475e7e0ff476a79ddb6ced.js");require("./sub-common/aef549cf0fb9fbab2cdce62f57b809a2.js");require("./sub-common/1d860d0ecb9520ba81e22935ca89df4f.js");require("./sub-common/a5e13867b985fafe2296e6794725b681.js");require("./sub-common/42a1dbd556a302e1a0e3b3722e3cae83.js");require("./sub-common/655ab66616a061953bc5af7c7153419a.js");require("./sub-common/9a3c545dc4bc7304bf9fefb511a9f342.js");require("./sub-common/babc67477894166ff52dd0bce4a23df6.js");require("./sub-common/27fdb4bbf217894239b5ab83f859396f.js");require("./sub-common/4ac54989b70a123dafa79bf1d4aef04e.js");require("./sub-common/782ff8cb454572ac2605c154ae5327f3.js");require("./sub-common/7614c85e83834838502a2dfe921cd23c.js");require("./sub-common/5a7a6f5c17ec5e5a4acee54b705adb61.js");require("./sub-common/9b2fce27404e33e5616b5eb9de4b15e2.js");require("./sub-common/d3b6ae9bd302b0daec498d0be3dcb716.js");require("./sub-common/87ffac979ad8a0cb891238991252eff6.js");require("./sub-common/c93b8243e03f9acab7cda3ce5c8927a9.js");require("./sub-common/6ca3b2741f247dd658115fec981e9775.js");require("./sub-common/bdf7b06e0f03a2ada869e1beb811e25c.js");require("./sub-common/09d161b1fd966c5c2d09f95b9b8dfc87.js");require("./sub-common/9c52956567b25aa55149ece4f443289a.js");require("./sub-common/045e5c4746ecdb621700f3f4acc67685.js");require("./sub-common/7a240d0836f07c382ac7da586fed9b8a.js");require("./sub-common/8d14407d1178b72a15157aa08c9c9cfb.js");require("./sub-common/e0188655851c053bf25a686279ba7184.js");require("./sub-common/aa899c134758f580b376e9c18d320ff7.js");require("./sub-common/dc2429cc777e82ef106c042d80d4f7fc.js");require("./sub-common/ff69c759cfded383a0831893ebd8ab2f.js");require("./sub-common/bc6f951a4c7eb429b34b0f895b8f0723.js");require("./sub-common/d2882842c6ee817bc6dd6b3095eda9ef.js");require("./sub-common/ae50de35c1b93c02256fe381e043b61d.js");require("./sub-common/8b9ae1d05aa511fd0669b0dfa5218571.js");require("./sub-common/57a7d865939975d2acd3abb2fe750c81.js");require("./sub-common/ee5a4369f9976108a7e74b18b34be39b.js");require("./sub-common/a93d3c0710016e4e29407670b2b3d2fc.js");require("./sub-common/e7cb94ca08215b0edda7088cc758475e.js");require("./sub-common/a82bf40fafcc900e7511f176ec1eb21f.js");require("./sub-common/3aad28141dc7254129155c60fcff8cb7.js");require("./sub-common/9cea8fd800ae6f0ebf7d325ed88cf8af.js");require("./sub-common/3ca21953d22acb32acebc4f23614acce.js");require("./sub-common/410a8e1029bd8b56b7401e41eb1d6783.js");require("./sub-common/c4ef6189d846b4bb3baf149f5bae0582.js");require("./sub-common/e0308d658390c90b795c2cc118a26fd5.js");require("./sub-common/99832e0f277110cc03c2e69fcfc3981c.js");require("./sub-common/c2f6aefa41b6b699144790a8ead9ff85.js");require("./sub-common/cc3f6ce87d03bac36c2f59c70ebf064b.js");require("./sub-common/1b7362180518becfb9da3ade9d6270cc.js");require("./sub-common/aca11d6e968f8c2ed8044f772da75e41.js");require("./sub-common/ddbd51d7fd5d62f2fe863bf8e3cdeb6b.js");require("./sub-common/6f367aba8af8cb774ef70e63643c9cb3.js");require("./sub-common/8d28e0bb4c8e46a406bbb9524d52de9b.js");require("./sub-common/481f7ee37172527a98eed1dfbb595ee6.js");require("./sub-common/2d01f928a6d75f2b58d62df7e8a235ec.js");require("./sub-common/45900da26020b736b65e64b91c1d656d.js");require("./sub-common/d596be0131a8d586a7357e28d5ea4f2c.js");require("./sub-common/ca77c91df1f28798fc76d95e15111c2b.js");require("./sub-common/5373529cf940e6a657862dbd33b92d04.js");require("./sub-common/51fb71b3a72d7226f1d1ccbcd1b42322.js");require("./sub-common/445510f5d4845e2c86487fd7619fee61.js");require("./sub-common/0b1e8524d9aebaec86aca4f62ff693f4.js");require("./sub-common/d5a0f38762e28a8613081e7f79ae77ce.js");require("./sub-common/64b8cb22ad1786cd7e1197b242c6ef6b.js");(wx.webpackJsonp=wx.webpackJsonp||[]).push([[1703],{1490:function(e,t,n){var o=n(2180),l=n(1413),_=n(9439),r=n(1515),a=n(2954),i=n.n(a),s=n(7294),c=n(4184),d=n.n(c),u={common_safe_area_y:"index-module__common_safe_area_y___tf8U8","flex-col":"index-module__flex-col___Lxjir","flex-row":"index-module__flex-row___S5jQ6","justify-between":"index-module__justify-between___p54Qy","justify-center":"index-module__justify-center___e6pGe","items-center":"index-module__items-center___dgx7r","flex-item":"index-module__flex-item___yvkQ5","full-100":"index-module__full-100___HA8lr","color-blue":"index-module__color-blue___RgfWV","color-yellow":"index-module__color-yellow___wZefY","color-green":"index-module__color-green___J_Pgl","color-grey":"index-module__color-grey___hLCHO","color-white":"index-module__color-white___JAD5I","s-w":"index-module__s-w___h9njV","s-e":"index-module__s-e___GM453",filter:"index-module__filter___f9tsd",delivery:"index-module__delivery___dL18V",searchBox:"index-module__searchBox___AZUmG",swiperBox:"index-module__swiperBox___A0QiG",swiper:"index-module__swiper___eCJ9D",scanHandler:"index-module__scanHandler___JZ88s",icon__filter:"index-module__icon__filter___Jkz3P",active:"index-module__active___VsEp6"},m=n(4165),f=n(5861),x=n(7472),h=n(1263),p=n(5893),g=function DeliveryStatusList(e,t){var n=e.onChangeStatus,o=(0,h.bm)().fetchData,l=(0,s.useState)([]),r=(0,_.Z)(l,2),a=r[0],i=r[1],c=(0,s.useState)(0),d=(0,_.Z)(c,2),u=d[0],g=d[1],v=function(){var e=(0,f.Z)((0,m.Z)().mark((function _callee(){var e,t;return(0,m.Z)().wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o();case 2:e=n.sent,console.log(e.data.list),t=e.data.list.filter((function(e){return 0===e.id||1===e.id})),i(t),g(t[0].id);case 7:case"end":return n.stop()}}),_callee)})));return function getDeliveryStatusList(){return e.apply(this,arguments)}}();(0,s.useEffect)((function(){v()}),[]),(0,s.useImperativeHandle)(t,(function(){return{setDefaultId:g}}),[g]);var j=(0,s.useCallback)((function(e){n&&n(e.id)}),[n]);return(0,p.jsx)(x.Z,{list:a,onSelect:j,defaultId:u})},v=(0,s.memo)((0,s.forwardRef)(g)),j=n(7484),y=n.n(j),Z="index-module__filterItem___ZNtj3",w="index-module__filterItem--title___R7XHl",k="index-module__filterItem--wrapper___jhArG",D="index-module__filter--time___S08z5",S="index-module__filter--type___ghXww",N="index-module__filterTimeButton___LCSnJ",C="index-module__filterController___stqgD",b="index-module__btn___SE55U",G="index-module__rest_btn___B64AH",B="index-module__verify_btn___JEW3A",Y=n(9742),M=n(6028),z=n(5025),R={0:{name:"不限",date_min:void 0,date_max:void 0},1:{name:"今天",date_min:"".concat(y()(new Date).add(0,"day").format("YYYY-MM-DD")," 00:00:00"),date_max:"".concat(y()(new Date).add(1,"day").format("YYYY-MM-DD")," 00:00:00")},2:{name:"昨日",date_min:"".concat(y()(new Date).add(-1,"day").format("YYYY-MM-DD")," 00:00:00"),date_max:"".concat(y()(new Date).add(0,"day").format("YYYY-MM-DD")," 00:00:00")},3:{name:"近7日",date_min:"".concat(y()(new Date).add(-7,"day").format("YYYY-MM-DD")," 00:00:00"),date_max:"".concat(y()(new Date).add(0,"day").format("YYYY-MM-DD")," 00:00:00")},4:{name:"近30日",date_min:"".concat(y()(new Date).add(-30,"day").format("YYYY-MM-DD")," 00:00:00"),date_max:"".concat(y()(new Date).add(0,"day").format("YYYY-MM-DD")," 00:00:00")},5:{name:"近90日",date_min:"".concat(y()(new Date).add(-90,"day").format("YYYY-MM-DD")," 00:00:00"),date_max:"".concat(y()(new Date).add(0,"day").format("YYYY-MM-DD")," 00:00:00")}},T=function DeliveryFilter(e){var t=e.onSearchTime,n=e.onConfirm,o=(e.onCancal,e.onReset),a=(0,h.HI)(),i=a.fetchData,c=a.state,u=(0,s.useState)({take_goods_order_type:void 0,timeKey:"0"}),x=(0,_.Z)(u,2),g=x[0],v=x[1],j=function handleSelectedType(e){console.log("type==>",e),v("string"==typeof e&&"default"===e?function(e){return(0,l.Z)((0,l.Z)({},e),{},{take_goods_order_type:void 0})}:function(t){return(0,l.Z)((0,l.Z)({},t),{},{take_goods_order_type:e})})},y=(0,s.useMemo)((function(){return c.data.list}),[c]),T=function(){var e=(0,f.Z)((0,m.Z)().mark((function _callee(){return(0,m.Z)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i();case 2:case"end":return e.stop()}}),_callee)})));return function getEnumData(){return e.apply(this,arguments)}}();(0,s.useEffect)((function(){null!=y&&y.length||(T(),console.log("getEnumData"))}),[y]);var A=(0,s.useState)({date_min:void 0,date_max:void 0}),I=(0,_.Z)(A,2),F=I[0],E=I[1],L=function handleSelectedTime(e){v((function(t){return(0,l.Z)((0,l.Z)({},t),{},{timeKey:e})})),"6"===e?null==t||t():E({date_min:R[e].date_min,date_max:R[e].date_max})};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(r.G7,{className:Z,children:[(0,p.jsx)(r.G7,{className:w,children:"提货类型"}),(0,p.jsxs)(r.G7,{className:d()(k,S),children:[(0,p.jsx)(z.Z,{circle:!0,isActive:null==g.take_goods_order_type,onClick:function onClick(){return j("default")},children:"不限"}),!(null==y||!y.length)&&(null==y?void 0:y.map((function(e,t){return(0,p.jsx)(z.Z,{circle:!0,isActive:g.take_goods_order_type===(null==e?void 0:e.id),onClick:function onClick(){return j(null==e?void 0:e.id)},children:e.name},t)})))]})]}),(0,p.jsxs)(r.G7,{className:Z,children:[(0,p.jsx)(r.G7,{className:w,children:"查询日期"}),(0,p.jsxs)(r.G7,{className:d()(k,D),children:[Object.entries(R).map((function(e,t){var n=(0,_.Z)(e,2),o=n[0],l=n[1];return(0,p.jsx)(z.Z,{circle:!0,isActive:g.timeKey===o,onClick:function onClick(){return L(o)},children:l.name},t)})),(0,p.jsxs)(z.Z,{circle:!0,isActive:"6"===g.timeKey,customClassName:N,onClick:function onClick(){return L("6")},children:["自定义时间",(0,p.jsx)(M.Z,{name:"icon-chakanquanbukehu",size:40,color:"6"===g.timeKey?"#4581ff":"#909090"})]})]})]}),(0,p.jsxs)(r.G7,{className:C,children:[(0,p.jsx)(Y.Z,{type:"primary",plain:!0,round:!0,customClassName:d()(b,G),onClick:function handleReset(){v({take_goods_order_type:void 0,timeKey:"0"}),null==o||o()},children:"重置"}),(0,p.jsx)(Y.Z,{type:"primary",round:!0,customClassName:d()(b,B),onClick:function handleConfirm(){var e={take_goods_order_type:g.take_goods_order_type,date_min:F.date_min,date_max:F.date_max};console.log("changedField==>",e),null==n||n(e,g.timeKey)},children:"确认"})]})]})},A=(0,s.memo)(T),I={common_safe_area_y:"index-module__common_safe_area_y___xotOO","flex-col":"index-module__flex-col___qL1Tk","flex-row":"index-module__flex-row___Y4cuW","justify-between":"index-module__justify-between___ICLDE","justify-center":"index-module__justify-center___W0jK_","items-center":"index-module__items-center___XV19W","flex-item":"index-module__flex-item___f00r1","full-100":"index-module__full-100___CFohn","color-blue":"index-module__color-blue___hcCBa","color-yellow":"index-module__color-yellow___Jx9q2","color-green":"index-module__color-green___NirVr","color-grey":"index-module__color-grey___Dsy11","color-white":"index-module__color-white___wPd4x","s-w":"index-module__s-w___tIV8v","s-e":"index-module__s-e___Z8zWS",filter:"index-module__filter___CXumx",layoutBlock:"index-module__layoutBlock___IpJWX",topBar:"index-module__topBar___quqRd",topBar__orderNo:"index-module__topBar__orderNo___uCfKn",orderNo:"index-module__orderNo___lFKj9",topBar__orderType:"index-module__topBar__orderType___fEDvm",topBar__orderStatus:"index-module__topBar__orderStatus___uhI6x","topBar__orderStatus--finished":"index-module__topBar__orderStatus--finished___WCakL","topBar__orderStatus--takingGoods":"index-module__topBar__orderStatus--takingGoods___OGIjz",content__row:"index-module__content__row___yRQ6J",content__row__left:"index-module__content__row__left___Db3u4",content__row__right:"index-module__content__row__right___QdDvi",bottomBar:"index-module__bottomBar___t4XAA",bottomBar__button:"index-module__bottomBar__button___TrPmD",bord:"index-module__bord___HwtTj",tag:"index-module__tag___bS7cC"},F=n(8260),E=n(2128),L=n(4547),H=n(4812),O=n(1115),J=n(2213),K=function ItemList(e){var t=e.itemData,n=e.onSuccess;console.log("itemData",t);var o=function handleDetail(e){null==e||e.stopPropagation(),(0,O.jD)("/pages/takeDeliveryDetail/index",{id:t.id})},l=(0,h.Bp)().fetchData;return(0,p.jsxs)(F.Z,{circle:!0,customClassName:I.layoutBlock,onClick:o,children:[(0,p.jsxs)(r.G7,{className:I.topBar,children:[(0,p.jsxs)(r.G7,{className:I.topBar__orderNo,children:[(0,p.jsxs)(r.G7,{className:I.orderNo,children:["单号:",null==t?void 0:t.take_goods_order_no]}),0===(null==t?void 0:t.take_goods_status)&&(0,p.jsx)(r.G7,{className:d()(I.topBar__orderStatus,I["topBar__orderStatus--takingGoods"]),children:"提货中"}),1===(null==t?void 0:t.take_goods_status)&&(0,p.jsx)(r.G7,{className:d()(I.topBar__orderStatus,I["topBar__orderStatus--finished"]),children:"已收货"})]}),(0,p.jsx)(r.xv,{className:I.topBar__orderType,children:null==t?void 0:t.take_goods_order_type_name})]}),(0,p.jsx)(E.Z,{direction:"horizontal",customStyles:{margin:"20rpx 0 10rpx 0"}}),(0,p.jsxs)(r.G7,{className:I.content,children:[(0,p.jsxs)(r.G7,{className:d()(I.content__row,I.bord),children:[(0,p.jsx)(r.G7,{className:I.content__row__left,children:"货品信息:"}),(0,p.jsxs)(r.G7,{className:I.content__row__right,children:[(0,p.jsx)(J.Z,{saleMode:t.sale_mode,size:"small",customClassName:I.tag}),t.product_count,"种面料,",t.product_color_count,"种颜色,共",(null==t?void 0:t.sale_mode)===L.p.Bulk?"".concat(null==t?void 0:t.take_roll,"条"):"".concat((0,H.N6)(null==t?void 0:t.take_meters),"米")]})]}),(0,p.jsxs)(r.G7,{className:d()(I.content__row,I.bord),children:[(0,p.jsx)(r.G7,{className:I.content__row__left,children:"供应信息:"}),(0,p.jsx)(r.G7,{className:I.content__row__right,children:(null==t?void 0:t.supplier_name)||"空"})]}),(0,p.jsxs)(r.G7,{className:I.content__row,children:[(0,p.jsx)(r.G7,{className:I.content__row__left,children:"创建时间:"}),(0,p.jsx)(r.G7,{className:I.content__row__right,children:(0,H.o0)(null==t?void 0:t.take_goods_order_create_time)||"空"})]})]}),(0,p.jsxs)(r.G7,{className:I.bottomBar,children:[1!==(null==t?void 0:t.take_goods_status)?(0,p.jsx)(Y.Z,{customClassName:I.bottomBar__button,type:"info",plain:!0,customStyles:{color:"#636363",borderColor:"#c8c8c8"},round:!0,onClick:o,children:"查看详情"}):null,0===(null==t?void 0:t.take_goods_order_status)&&(0,p.jsx)(Y.Z,{plain:!0,customClassName:I.bottomBar__button,type:"primary",round:!0,onClick:function onClick(){return function handleAudit(e){var t;i().showModal({content:"确认要提货吗?",confirmColor:"#337FFF",success:(t=(0,f.Z)((0,m.Z)().mark((function _callee(t){return(0,m.Z)().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:if(!t.confirm){o.next=5;break}return o.next=3,l({take_goods_order_id:[e]});case 3:o.sent.success?(i().showToast({title:"提货成功",icon:"success"}),null==n||n()):i().showToast({title:"操作失败",icon:"error"});case 5:case"end":return o.stop()}}),_callee)}))),function success(e){return t.apply(this,arguments)})})}(null==t?void 0:t.id)},children:"确认审核"})]})]})},U="index-module__listBox___SamDH",V="index-module__listBox--total___Y5Mlj",P=n(9335),W=n(8939),q=n(2495),X=n(7227),$=function FinishDataList(e){var t=e.search,n=e.setSearch,o=(0,s.useState)({list:[],total:0}),a=(0,_.Z)(o,2),i=a[0],c=a[1],d=function handleAuditSuccess(){k()};(0,s.useEffect)((function(){console.log("useEffect ===> search",t),1===t.take_goods_status&&k()}),[t]);var u=(0,h.yd)(),x=u.fetchData,g=u.state,v=(0,s.useMemo)((function(){return(0,X.rA)({list:i.list,total:i.total,status:g.loading})}),[i,g]),j=(0,s.useState)(!1),y=(0,_.Z)(j,2),Z=y[0],w=y[1],k=function(){var e=(0,f.Z)((0,m.Z)().mark((function _callee(){var e,n;return(0,m.Z)().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:return delete(e=(0,X.mB)(t)).supplier_id,console.log("payload",e),o.next=5,x(e);case 5:n=o.sent,c((function(e){var t,o;return(0,l.Z)((0,l.Z)({},e),{},{list:null===(t=n.data)||void 0===t?void 0:t.list,total:null===(o=n.data)||void 0===o?void 0:o.total})})),w((function(){return!1}));case 8:case"end":return o.stop()}}),_callee)})));return function getData(){return e.apply(this,arguments)}}(),D=(0,s.useRef)({size:t.size,page:t.page}),S=(0,s.useCallback)((function(){if(i.list.length<i.total){D.current.page++;var e=D.current.size*D.current.page;n((function(t){return(0,l.Z)((0,l.Z)({},t),{},{size:e})}))}}),[i]),N=function(){var e=(0,f.Z)((0,m.Z)().mark((function _callee2(){return(0,m.Z)().wrap((function _callee2$(e){for(;;)switch(e.prev=e.next){case 0:D.current.page=1,w(!0),n((function(e){return(0,l.Z)((0,l.Z)({},e),{},{size:10})}));case 3:case"end":return e.stop()}}),_callee2)})));return function getRefresherRefresh(){return e.apply(this,arguments)}}();return(0,p.jsx)(r.G7,{className:U,children:(0,p.jsxs)(P.Z,{emptySlot:(0,p.jsx)(W.Z,{picUrl:q.Tb,text:"暂无数据"}),statusMore:v,selfonScrollToLower:S,refresherEnabled:!0,refresherTriggered:Z,selfOnRefresherRefresh:N,children:[(0,p.jsxs)(r.xv,{className:V,children:["已收货共 ",i.total," 单"]}),i.list.map((function(e){return(0,p.jsx)(K,{itemData:e,onSuccess:d},e.id)}))]})})},Q=n(3433),ee={common_safe_area_y:"index-module__common_safe_area_y___hzn9S","flex-col":"index-module__flex-col___ewKzT","flex-row":"index-module__flex-row___Meub1","justify-between":"index-module__justify-between___XiwmU","justify-center":"index-module__justify-center___BS2EN","items-center":"index-module__items-center___FtSg5","flex-item":"index-module__flex-item___fiUTH","full-100":"index-module__full-100___hUULZ","color-blue":"index-module__color-blue___zH_Up","color-yellow":"index-module__color-yellow___SvVlm","color-green":"index-module__color-green___l8haQ","color-grey":"index-module__color-grey___RIEa3","color-white":"index-module__color-white___u0FHz","s-w":"index-module__s-w____vlot","s-e":"index-module__s-e___WkUMx",filter:"index-module__filter___Fojru",layout:"index-module__layout___r92c7",title_bar:"index-module__title_bar___OqANa",title:"index-module__title___s2aEb",status:"index-module__status___BILDv",order_list:"index-module__order_list___NLiPt",showAll:"index-module__showAll___VVeZ5",more:"index-module__more___kNG5A",item:"index-module__item___YUe6G",item_left:"index-module__item_left___dZKrF",detail_row:"index-module__detail_row___buzh5",order_no:"index-module__order_no___AA1P6",item_right:"index-module__item_right___JrjFO",button:"index-module__button___Mj_XV",total:"index-module__total___eROH5"},te=function TakeGoodsItem(e){var t,n,o=e.itemData,l=e.onSuccess,a=(0,s.useState)(!1),c=(0,_.Z)(a,2),u=c[0],x=c[1],g=(0,h.Bp)().fetchData;return(0,p.jsxs)(F.Z,{customClassName:ee.layout,flexDirection:"col",circle:!0,children:[(0,p.jsxs)(r.G7,{className:ee.title_bar,children:[(0,p.jsx)(r.G7,{className:ee.title,children:null!=o&&o.supplier_name?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(M.Z,{name:"icon-a-bianzu21",customStyle:{marginRight:"10rpx"},size:40,color:"#337fff"}),null==o?void 0:o.supplier_name]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(M.Z,{name:"icon-a-bianzu3beifen",customStyle:{marginRight:"10rpx"},size:40,color:"#337fff"}),null==o?void 0:o.purchaser_name]})}),(0,p.jsx)(r.G7,{className:ee.status,children:null==o?void 0:o.take_goods_order_type_name})]}),(0,p.jsx)(r.G7,{className:d()(ee.order_list,u&&ee.showAll),children:null==o||null===(t=o.take_goods_order_detail_list)||void 0===t?void 0:t.map((function(e){return(0,p.jsxs)(r.G7,{className:ee.item,onClick:function onClick(){return function handleClickItem(e){(0,O.jD)("/pages/takeDeliveryDetail/index",{id:e})}(e.take_goods_order_id)},children:[(0,p.jsxs)(r.G7,{className:ee.item_left,children:[(0,p.jsxs)(r.G7,{className:ee.detail_row,children:[(0,p.jsx)(r.G7,{children:"单号编号:"}),(0,p.jsx)(r.G7,{className:ee.order_no,children:e.sale_order_no})]}),(0,p.jsxs)(r.G7,{className:ee.detail_row,children:[(0,p.jsx)(r.G7,{children:"货品信息:"}),(0,p.jsxs)(r.G7,{className:ee.order_no,children:[(0,p.jsx)(J.Z,{saleMode:null==e?void 0:e.sale_mode,size:"small",customStyle:{marginRight:"10rpx"}}),(0,p.jsxs)(r.xv,{children:[null==e?void 0:e.product_count,"种面料,",null==e?void 0:e.product_color_count,"种颜色,共",0===(null==e?void 0:e.sale_mode)?"".concat(null==e?void 0:e.take_roll,"条"):"".concat((0,H.N6)(null==e?void 0:e.take_meters),"米")]})]})]})]}),(0,p.jsx)(M.Z,{customClassName:ee.item_right,name:"icon-chakanquanbukehu",size:40,color:"#636465"})]},e.id)}))}),(null==o||null===(n=o.take_goods_order_detail_list)||void 0===n?void 0:n.length)>2&&(0,p.jsxs)(r.G7,{className:ee.more,onClick:function handleChangeMore(){x((function(e){return!e}))},children:[(0,p.jsx)(r.xv,{style:{marginRight:"10rpx"},children:u?"收起详情":"点击查看详情"}),u?(0,p.jsx)(M.Z,{name:"icon-gengduo",color:"#d2d2d2",size:20,customStyle:{transform:"rotate(180deg)"}}):(0,p.jsx)(M.Z,{color:"#d2d2d2",name:"icon-gengduo",size:20})]}),(0,p.jsxs)(r.G7,{className:ee.button,children:[(0,p.jsxs)(r.xv,{className:ee.total,children:[null==o?void 0:o.product_count,"种面料,",null==o?void 0:o.product_color_count,"种颜色,共",null!=o&&o.take_roll?"".concat(null==o?void 0:o.take_roll,"条"):null," ",null!=o&&o.take_meters?"".concat((0,H.N6)(null==o?void 0:o.take_meters),"米"):null]}),(0,p.jsx)(Y.Z,{round:!0,customClassName:ee.takeout,plain:!0,type:"primary",onClick:function handleClickAllTake(){i().showModal({confirmColor:"#337FFF",title:"确定要提货?",success:function success(e){return(0,f.Z)((0,m.Z)().mark((function _callee(){var t;return(0,m.Z)().wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:if(!e.confirm){n.next=5;break}return n.next=3,g({take_goods_order_id:null==o||null===(t=o.take_goods_order_detail_list)||void 0===t?void 0:t.map((function(e){return e.take_goods_order_id}))});case 3:n.sent.success?(O.Z9.success("提货成功"),l()):O.Z9.error("请求失败");case 5:case"end":return n.stop()}}),_callee)})))()}})},children:"确认提货"})]})]})},ne="index-module__listBox___fWxEi",oe=n(5459),le=n(3727),_e=function TakingDataList(e){var t=e.setSearch,n=e.search,o=function handleAuditSuccess(){M()},i=(0,s.useState)(!1),c=(0,_.Z)(i,2),d=c[0],u=c[1],x=(0,s.useRef)(!0),h=(0,s.useState)([{id:-1,name:"全部"}]),g=(0,_.Z)(h,2),v=g[0],j=g[1],y=(0,s.useState)({list:[],total:0}),Z=(0,_.Z)(y,2),w=Z[0],k=Z[1],D=(0,s.useState)(!1),S=(0,_.Z)(D,2),N=S[0],C=S[1],b=(0,le.iL)(),G=b.fetchData,B=b.state,Y=(0,s.useMemo)((function(){return(0,X.rA)({list:w.list,total:w.list.length,status:B.loading})}),[w,B]),M=function(){var e=(0,f.Z)((0,m.Z)().mark((function _callee(){var e,t,o,_,r;return(0,m.Z)().wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:return-1===(_=(0,X.mB)(n,["page","size"])).supplier_id&&delete _.supplier_id,console.log("payload",_),a.next=5,G(_);case 5:r=a.sent,j([{id:-1,name:"全部".concat(null===(e=r.data)||void 0===e||null===(t=e.summary)||void 0===t?void 0:t.total_count)}].concat((0,Q.Z)(null===(o=r.data)||void 0===o?void 0:o.summary.supplier_take_counts.map((function(e){return{id:e.supplier_id,name:e.supplier_name+e.count}}))))),k((function(e){var t,n;return(0,l.Z)((0,l.Z)({},e),{},{list:null===(t=r.data)||void 0===t?void 0:t.list,total:null===(n=r.data)||void 0===n?void 0:n.total})})),C((function(){return!1}));case 9:case"end":return a.stop()}}),_callee)})));return function getData(){return e.apply(this,arguments)}}();(0,s.useEffect)((function(){console.log("useEffect ===> search",n),x.current||0!==n.take_goods_status||M()}),[n]),(0,a.useDidShow)((function(){0===n.take_goods_status&&(M(),x.current=!1)}));var z=(0,s.useRef)({size:n.size,page:n.page}),R=function(){var e=(0,f.Z)((0,m.Z)().mark((function _callee2(){return(0,m.Z)().wrap((function _callee2$(e){for(;;)switch(e.prev=e.next){case 0:z.current.page=1,C(!0),t((function(e){return(0,l.Z)((0,l.Z)({},e),{},{size:10})}));case 3:case"end":return e.stop()}}),_callee2)})));return function getRefresherRefresh(){return e.apply(this,arguments)}}();return(0,p.jsxs)(r.G7,{className:ne,children:[(0,p.jsx)(oe.Z,{list:v,open:d,onOpenClick:function onOpenClick(e){return u(e)},onSelect:function getSelectClass(e){console.log("id",e),t((function(t){return(0,l.Z)((0,l.Z)({},t),{},{supplier_id:e})}))},defaultSelectId:n.supplier_id||0}),(0,p.jsx)(P.Z,{emptySlot:(0,p.jsx)(W.Z,{picUrl:q.Tb,text:"暂无数据"}),statusMore:Y,safeAreaInsetBottom:!0,refresherEnabled:!0,refresherTriggered:N,selfOnRefresherRefresh:R,children:w.list.map((function(e){return(0,p.jsx)(te,{itemData:e,onSuccess:o},e.id)}))})]})},re=n(4489),ae=n(3818),ie=n(5989),se=n(7901),ce={take_goods_status:0,supplier_id:-1,page:1,size:10},de=function Delivery(){var e=(0,s.useState)(ce),t=(0,_.Z)(e,2),n=t[0],o=t[1],a=(0,s.useCallback)((0,X.Ds)((function(e){o((function(t){return(0,l.Z)((0,l.Z)({},t),{},{take_goods_order_no:e})})),console.log("searchValue==>",e)}),300),[]),c=(0,s.useState)(!1),m=(0,_.Z)(c,2),f=m[0],x=m[1],h=function handlePopupClose(){x(!1)},g=(0,s.useState)(!1),j=(0,_.Z)(g,2),y=j[0],Z=j[1],w=(0,s.useState)((new Date).toLocaleDateString()),k=(0,_.Z)(w,2),D=k[0],S=k[1],N=(0,s.useState)(""),C=(0,_.Z)(N,2),b=C[0],G=C[1],B=(0,s.useMemo)((function(){return console.log("search",n),null!=n.take_goods_order_type||null!=n.date_max||null!=n.date_min}),[n]),Y=(0,s.useRef)(null),z=(0,s.useState)(0),R=(0,_.Z)(z,2),T=R[0],I=R[1];return(0,p.jsxs)(r.G7,{className:u.delivery,children:[(0,p.jsx)(r.G7,{className:u.searchBox,children:(0,p.jsx)(re.Z,{placeholder:"请输入或扫描条形码",showBtn:!1,changeOnSearch:a,customRightSlot:function scanIcon(){return(0,p.jsx)(r.G7,{onClick:function handleScan(){i().scanCode({success:function success(e){o((function(t){return(0,l.Z)((0,l.Z)({},t),{},{take_goods_order_no:e.result})}))},fail:function fail(e){console.log(e)}})},className:u.scanHandler,children:(0,p.jsx)(M.Z,{name:"icon-saomiao",size:40})})}(),children:(0,p.jsx)(r.G7,{onClick:function onShowFilter(){x(!0)},className:d()(u.icon__filter,B?u.active:""),children:(0,p.jsx)(ae.Z,{svg:!0,iconName:"icon-shaixuan",color:B?"#337fff":"#333",text:"筛选",customClass:u["icon--filter"]})})})}),(0,p.jsx)(v,{ref:Y,onChangeStatus:function handleChangeStatus(e){o((function(t){return(0,l.Z)((0,l.Z)({},t),{},{take_goods_status:e,size:10,page:1})})),I(e)}}),(0,p.jsx)(r.G7,{className:u.swiperBox,children:(0,p.jsxs)(r.tq,{className:u.swiper,current:T,onChange:function onChange(e){var t;console.log("onChange",e),I(e.detail.current),null===(t=Y.current)||void 0===t||t.setDefaultId(e.detail.current)},children:[(0,p.jsx)(r.t3,{itemId:"0",children:(0,p.jsx)(_e,{search:n,setSearch:o})}),(0,p.jsx)(r.t3,{itemId:"1",children:(0,p.jsx)($,{search:n,setSearch:o})})]})}),(0,p.jsx)(ie.Z,{show:f,title:"筛选列表",onClose:h,children:(0,p.jsx)(A,{onSearchTime:function handleSearchTime(){Z(!0)},onConfirm:function handleConfirm(e,t){console.log("changedFields==>changedFields",e),o("6"===t?function(t){return(0,l.Z)((0,l.Z)((0,l.Z)({},t),e),{},{date_min:D,date_max:b})}:function(t){return(0,l.Z)((0,l.Z)({},t),e)}),h()},onReset:function handleReset(){o(ce),h()}})}),(0,p.jsx)(se.Z,{start:D,end:b,showTime:y,closePopup:function handClose(){Z(!1)},onSelectDate:function onSelectDate(e){return function handTime(e){var t,o;console.log(null==e?void 0:e.value,"event?.value?.start"),S(null==e||null===(t=e.value)||void 0===t?void 0:t.start),G(null==e||null===(o=e.value)||void 0===o?void 0:o.end),Z(!1),console.log(n,8888)}(e)}})]})};Page((0,o.createPageConfig)(de,"pages/takeDelivery/index",{root:{cn:[]}},{navigationBarTitleText:"提货列表"}||{}))}},function(e){e.O(0,[5670,2e3,2344,4421,1158,6817,272,6770,1262,4023,8853,5060,6197,864,9661,3733,8257,3039,8415,8106,8268,8190,6347,5850,4340,7319,5758,1290,3329,8772,5102,9454,9777,307,7734,8169,4788,8613,4235,6300,178,6841,3600,9362,657,8124,2529,7905,9916,1484,7084,465,3246,8425,4095,5552,302,6055,7401,4715,1209,9754,1032,2633,1972,1865,5376,1625,2696,6765,2983,7845,6854,8317,1251,1004,113,9266,285,1093,2726,8530,6696,2244,2680,5636,2107,1216,8592],(function(){return t=1490,e(e.s=t);var t}));e.O()}]);