This commit is contained in:
2023-05-16 13:02:46 +08:00
parent d19b1ed2aa
commit c8e4e47569
719 changed files with 505 additions and 466 deletions
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[1812],{1875:function(t,r,e){e.d(r,{Ez:function(){return i},Js:function(){return n},gh:function(){return m},no:function(){return c},sm:function(){return a},v7:function(){return l}});var u=e(749),n=function GetCutSampleOrderListApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/list",method:"get"})},l=function GetCutSampleOrderStatusApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/audit_status",method:"get"})},a=function CutSampleOrderCancelApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/cancel",method:"put"})},c=function GetSampleOrderProductApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/products",method:"get"})},i=function GetCutSampleOrderDetailApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/detail",method:"get"})},m=function submitCutSampleOrderApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/submit",method:"post"})}}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[7196],{1875:function(t,r,e){e.d(r,{Ez:function(){return i},Js:function(){return n},gh:function(){return m},no:function(){return c},sm:function(){return a},v7:function(){return l}});var u=e(749),n=function GetCutSampleOrderListApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/list",method:"get"})},l=function GetCutSampleOrderStatusApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/audit_status",method:"get"})},a=function CutSampleOrderCancelApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/cancel",method:"put"})},c=function GetSampleOrderProductApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/products",method:"get"})},i=function GetCutSampleOrderDetailApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/detail",method:"get"})},m=function submitCutSampleOrderApi(){return(0,u.Q)({url:"/v1/mall/cutSampleOrder/submit",method:"post"})}}}]);
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[985],{6911:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___OHaXZ",hoverClass:"index-module__hoverClass___KrOyU","full-100":"index-module__full-100___igu2F",main:"index-module__main___yAH6K",header:"index-module__header___t9Rv6",color_list:"index-module__color_list___vMc4c",scroll_view:"index-module__scroll_view___GPL6Z",color_list_con:"index-module__color_list_con___PM7bF",item:"index-module__item____72YW",item_color:"index-module__item_color___cAsxC",icon:"index-module__icon___JOKhm",select_color:"index-module__select_color___R2Rct",item_name:"index-module__item_name___HD6KV",btns:"index-module__btns___IwvLo",cancel:"index-module__cancel___DzfaG",submit:"index-module__submit___tEGCz",selected:"index-module__selected___dOB6M"}}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[823],{6911:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___OHaXZ",hoverClass:"index-module__hoverClass___KrOyU","full-100":"index-module__full-100___igu2F",main:"index-module__main___yAH6K",header:"index-module__header___t9Rv6",color_list:"index-module__color_list___vMc4c",scroll_view:"index-module__scroll_view___GPL6Z",color_list_con:"index-module__color_list_con___PM7bF",item:"index-module__item____72YW",item_color:"index-module__item_color___cAsxC",icon:"index-module__icon___JOKhm",select_color:"index-module__select_color___R2Rct",item_name:"index-module__item_name___HD6KV",btns:"index-module__btns___IwvLo",cancel:"index-module__cancel___DzfaG",submit:"index-module__submit___tEGCz",selected:"index-module__selected___dOB6M"}}}]);
@@ -1 +0,0 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[3560],{1805:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___qVHLM",hoverClass:"index-module__hoverClass___xmc2X","full-100":"index-module__full-100___f4rUs",mainBox:"index-module__mainBox___oYq7z",pic:"index-module__pic___jqHuf",text:"index-module__text___cFKLZ"}}}]);
@@ -1 +0,0 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[14],{8186:function(n,e,s){var t=s(3433),c=s(1413),l=s(4165),r=s(5861),a=s(9439),u=s(1515),i=s(4184),o=s.n(i),d=s(7294),m=s(6911),f=s(5679),Z=s(6599),h=s(6028),x=s(9988),v=s(4158),p=s(1115),j=s(5893);e.Z=(0,d.memo)((function(n){var e=n.show,s=void 0!==e&&e,i=n.onClose,Z=n.product_id,h=n.onSelected,v=n.defaultValueIds,N=void 0===v?[]:v,G=(0,d.useState)([]),b=(0,a.Z)(G,2),w=b[0],k=b[1],C=(0,x.Z5)().fetchData,g=function(){var n=(0,r.Z)((0,l.Z)().mark((function _callee(){var n;return(0,l.Z)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C({id:Z});case 2:n=e.sent,k(D(n.data.product_color_list)||[]);case 4:case"end":return e.stop()}}),_callee)})));return function getProductDetail(){return n.apply(this,arguments)}}();(0,d.useEffect)((function(){s&&Z&&g(),!s&&k([])}),[s,Z]);var S=(0,d.useRef)([]);(0,d.useEffect)((function(){S.current=w}),[w]);var D=function initData(n){return N.length>0?null==n?void 0:n.map((function(e,s){return N.includes(e.id)?n[s]=(0,c.Z)((0,c.Z)({},e),{},{status:!0}):e})):n},E=(0,d.useCallback)((function(n){S.current.map((function(e,s){e.id===n.id&&(S.current[s]=(0,c.Z)((0,c.Z)({},e),{},{status:!e.status}))})),k((function(){return(0,t.Z)(S.current)}))}),[]),y=(0,d.useMemo)((function(){var n=0;return w.map((function(e){return e.status&&(n+=1)})),n}),[w]),z=function onCloseEven(){var n=0;null==w||w.map((function(e){e.status&&n++})),null==i||i(n)};return(0,j.jsx)(u.G7,{className:m.Z.main,children:(0,j.jsxs)(f.Z,{show:s,showTitle:!1,onClose:z,children:[(0,j.jsxs)(u.G7,{className:m.Z.header,children:[(0,j.jsxs)(u.xv,{children:["请选择色号剪样( ",w.length," )"]}),(0,j.jsx)(u.xv,{children:"剪样大小为A4,大约22cm*30cm"})]}),(0,j.jsx)(u.G7,{className:m.Z.color_list,children:(0,j.jsx)(u.pf,{scrollY:!0,className:m.Z.scroll_view,children:(0,j.jsx)(u.G7,{className:m.Z.color_list_con,children:null==w?void 0:w.map((function(n){return(0,j.jsx)(_,{item:n,onSelect:E},n.id)}))})})}),(0,j.jsxs)(u.G7,{className:m.Z.btns,children:[(0,j.jsx)(u.G7,{className:m.Z.cancel,onClick:z,children:"取消"}),(0,j.jsxs)(u.G7,{className:o()(m.Z.submit,y&&m.Z.selected),onClick:function onSubmit(){if(y<=0)return p.Z9.none("请选择色号");var n=[];null==w||w.map((function(e){e.status&&n.push((0,c.Z)((0,c.Z)({},e),{},{count:1}))})),null==h||h(n)},children:["领取剪样(",y,")"]})]})]})})}));var _=(0,d.memo)((function(n){var e=n.item,s=n.onSelect;return(0,j.jsxs)(u.G7,{className:m.Z.item,onClick:function onClick(){return null==s?void 0:s(e)},children:[(0,j.jsxs)(u.G7,{className:o()(m.Z.item_color,e.status&&m.Z.select_color),children:[(0,j.jsx)(Z.Z,{value:{lab:e.lab,rgb:e.rgb,texture_url:e.texture_url},round:!0,name:(0,v.W7)(e.code)}),e.status&&(0,j.jsx)(u.G7,{className:m.Z.icon,children:(0,j.jsx)(h.Z,{name:"icon-xuanzhongyanse",size:35})})]}),(0,j.jsx)(u.G7,{className:m.Z.item_name,children:e.name})]},e.id)}))}}]);
@@ -0,0 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[33],{1805:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___qVHLM",hoverClass:"index-module__hoverClass___xmc2X","full-100":"index-module__full-100___f4rUs",mainBox:"index-module__mainBox___oYq7z",pic:"index-module__pic___jqHuf",text:"index-module__text___cFKLZ"}}}]);
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[9315],{2711:function(e,r,o){var n=o(1515),l=o(7294),s=o(4508),t=o(9218),c=o(6541),i=o(1027),f=o(2495),u=o(5893),a=function InfiniteScroll(e){var r=e.styleObj,o=e.selfonScrollToLower,a=e.selfOnScrollToUpper,h=e.selfOnScroll,d=e.selfOnRefresherPulling,p=e.selfOnRefresherRefresh,m=e.selfOnRefresherRestore,R=e.selfOnRefresherAbort,x=e.safeAreaInsetBottom,T=void 0===x||x,g=e.enableLoadMoreStatus,S=void 0===g||g,j=e.children,v=e.lowerThresholdNum,b=void 0===v?30:v,w=e.paddingBottom,Z=void 0===w?0:w,N=e.refresherTriggered,B=void 0!==N&&N,O=e.refresherEnabled,y=void 0!==O&&O,G=e.moreStatus,U=void 0===G||G,_=e.statusMore,k=void 0===_?0:_,A=e.enableBackToTop,F=void 0===A||A,L=e.emptySlot,M=e.defaultUrl,P=void 0===M?"":M,C=e.defaultText,E=void 0===C?"":C,I=(0,l.useMemo)((function(){if(0==k)return.1}),[k]);return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(n.pf,{id:"infiniteScroll",style:r,className:t.Z.scroll_main,scrollY:!0,onScrollToLower:function onScrollToLower(){return function scrollToLower(){null==o||o()}()},onScrollToUpper:function onScrollToUpper(){return function scrollToUpper(){null==a||a()}()},onScroll:function onScroll(e){return function scroll(e){null==h||h(e)}(e)},lowerThreshold:b,refresherEnabled:y,refresherTriggered:B,onRefresherPulling:function onRefresherPulling(){return function refresherPulling(){null==d||d()}()},onRefresherRefresh:function onRefresherRefresh(){return function refresherRefresh(){null==p||p()}()},onRefresherRestore:function onRefresherRestore(){return function refresherRestore(){null==m||m()}()},onRefresherAbort:function onRefresherAbort(){return function refresherAbort(){null==R||R()}()},refresherBackground:"#F8F8F8",enableBackToTop:F,scrollTop:I,children:[function component(){return S&&U?(0,u.jsxs)(u.Fragment,{children:[(2==k||3==k)&&(0,u.jsxs)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:[j,(0,u.jsx)(n.G7,{className:t.Z.infinite_scroll,children:2==k?(0,u.jsxs)(n.G7,{className:t.Z.loading_more,children:["加载中",(0,u.jsx)(c.Z,{})]}):(0,u.jsx)(n.G7,{className:t.Z.noMore,children:"没有更多数据了"})})]}),0==k&&(0,u.jsx)(s.Z,{}),1==k&&(L||(0,u.jsx)(i.Z,{picUrl:P?"".concat(f.KC).concat(P):f.up,text:E||"暂无数据"}))]}):(0,u.jsx)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:j})}(),T&&(0,u.jsx)(n.G7,{className:"common_safe_area_y"})]})})};r.Z=(0,l.memo)(a)}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[1157],{2711:function(e,r,o){var n=o(1515),l=o(7294),s=o(4508),t=o(9218),c=o(6541),i=o(1027),f=o(2495),u=o(5893),a=function InfiniteScroll(e){var r=e.styleObj,o=e.selfonScrollToLower,a=e.selfOnScrollToUpper,h=e.selfOnScroll,d=e.selfOnRefresherPulling,p=e.selfOnRefresherRefresh,m=e.selfOnRefresherRestore,R=e.selfOnRefresherAbort,x=e.safeAreaInsetBottom,T=void 0===x||x,g=e.enableLoadMoreStatus,S=void 0===g||g,j=e.children,v=e.lowerThresholdNum,b=void 0===v?30:v,w=e.paddingBottom,Z=void 0===w?0:w,N=e.refresherTriggered,B=void 0!==N&&N,O=e.refresherEnabled,y=void 0!==O&&O,G=e.moreStatus,U=void 0===G||G,_=e.statusMore,k=void 0===_?0:_,A=e.enableBackToTop,F=void 0===A||A,L=e.emptySlot,M=e.defaultUrl,P=void 0===M?"":M,C=e.defaultText,E=void 0===C?"":C,I=(0,l.useMemo)((function(){if(0==k)return.1}),[k]);return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(n.pf,{id:"infiniteScroll",style:r,className:t.Z.scroll_main,scrollY:!0,onScrollToLower:function onScrollToLower(){return function scrollToLower(){null==o||o()}()},onScrollToUpper:function onScrollToUpper(){return function scrollToUpper(){null==a||a()}()},onScroll:function onScroll(e){return function scroll(e){null==h||h(e)}(e)},lowerThreshold:b,refresherEnabled:y,refresherTriggered:B,onRefresherPulling:function onRefresherPulling(){return function refresherPulling(){null==d||d()}()},onRefresherRefresh:function onRefresherRefresh(){return function refresherRefresh(){null==p||p()}()},onRefresherRestore:function onRefresherRestore(){return function refresherRestore(){null==m||m()}()},onRefresherAbort:function onRefresherAbort(){return function refresherAbort(){null==R||R()}()},refresherBackground:"#F8F8F8",enableBackToTop:F,scrollTop:I,children:[function component(){return S&&U?(0,u.jsxs)(u.Fragment,{children:[(2==k||3==k)&&(0,u.jsxs)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:[j,(0,u.jsx)(n.G7,{className:t.Z.infinite_scroll,children:2==k?(0,u.jsxs)(n.G7,{className:t.Z.loading_more,children:["加载中",(0,u.jsx)(c.Z,{})]}):(0,u.jsx)(n.G7,{className:t.Z.noMore,children:"没有更多数据了"})})]}),0==k&&(0,u.jsx)(s.Z,{}),1==k&&(L||(0,u.jsx)(i.Z,{picUrl:P?"".concat(f.KC).concat(P):f.up,text:E||"暂无数据"}))]}):(0,u.jsx)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:j})}(),T&&(0,u.jsx)(n.G7,{className:"common_safe_area_y"})]})})};r.Z=(0,l.memo)(a)}}]);
@@ -0,0 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[8044],{9218:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___TfGaJ",hoverClass:"index-module__hoverClass___IvFjO","full-100":"index-module__full-100___Zf65j",scroll_main:"index-module__scroll_main___rWSFU",infinite_scroll:"index-module__infinite_scroll___GY4by",loading_more:"index-module__loading_more___Iljay",noMore:"index-module__noMore___kPVsd"}}}]);
@@ -1 +0,0 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[635],{9218:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___TfGaJ",hoverClass:"index-module__hoverClass___IvFjO","full-100":"index-module__full-100___Zf65j",scroll_main:"index-module__scroll_main___rWSFU",infinite_scroll:"index-module__infinite_scroll___GY4by",loading_more:"index-module__loading_more___Iljay",noMore:"index-module__noMore___kPVsd"}}}]);
@@ -0,0 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[8014],{8186:function(n,e,s){var t=s(3433),c=s(1413),l=s(4165),r=s(5861),a=s(9439),u=s(1515),i=s(4184),o=s.n(i),d=s(7294),m=s(6911),f=s(5679),Z=s(6599),h=s(6028),x=s(9988),v=s(4158),p=s(1115),j=s(5893);e.Z=(0,d.memo)((function(n){var e=n.show,s=void 0!==e&&e,i=n.onClose,Z=n.product_id,h=n.onSelected,v=n.defaultValueIds,N=void 0===v?[]:v,G=(0,d.useState)([]),b=(0,a.Z)(G,2),w=b[0],k=b[1],C=(0,x.Z5)().fetchData,g=function(){var n=(0,r.Z)((0,l.Z)().mark((function _callee(){var n;return(0,l.Z)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C({id:Z});case 2:n=e.sent,k(D(n.data.product_color_list)||[]);case 4:case"end":return e.stop()}}),_callee)})));return function getProductDetail(){return n.apply(this,arguments)}}();(0,d.useEffect)((function(){s&&Z&&g(),!s&&k([])}),[s,Z]);var S=(0,d.useRef)([]);(0,d.useEffect)((function(){S.current=w}),[w]);var D=function initData(n){return N.length>0?null==n?void 0:n.map((function(e,s){return N.includes(e.id)?n[s]=(0,c.Z)((0,c.Z)({},e),{},{status:!0}):e})):n},E=(0,d.useCallback)((function(n){S.current.map((function(e,s){e.id===n.id&&(S.current[s]=(0,c.Z)((0,c.Z)({},e),{},{status:!e.status}))})),k((function(){return(0,t.Z)(S.current)}))}),[]),y=(0,d.useMemo)((function(){var n=0;return w.map((function(e){return e.status&&(n+=1)})),n}),[w]),z=function onCloseEven(){var n=0;null==w||w.map((function(e){e.status&&n++})),null==i||i(n)};return(0,j.jsx)(u.G7,{className:m.Z.main,children:(0,j.jsxs)(f.Z,{show:s,showTitle:!1,onClose:z,children:[(0,j.jsxs)(u.G7,{className:m.Z.header,children:[(0,j.jsxs)(u.xv,{children:["请选择色号剪样( ",w.length," )"]}),(0,j.jsx)(u.xv,{children:"剪样大小为A4,大约22cm*30cm"})]}),(0,j.jsx)(u.G7,{className:m.Z.color_list,children:(0,j.jsx)(u.pf,{scrollY:!0,className:m.Z.scroll_view,children:(0,j.jsx)(u.G7,{className:m.Z.color_list_con,children:null==w?void 0:w.map((function(n){return(0,j.jsx)(_,{item:n,onSelect:E},n.id)}))})})}),(0,j.jsxs)(u.G7,{className:m.Z.btns,children:[(0,j.jsx)(u.G7,{className:m.Z.cancel,onClick:z,children:"取消"}),(0,j.jsxs)(u.G7,{className:o()(m.Z.submit,y&&m.Z.selected),onClick:function onSubmit(){if(y<=0)return p.Z9.none("请选择色号");var n=[];null==w||w.map((function(e){e.status&&n.push((0,c.Z)((0,c.Z)({},e),{},{count:1}))})),null==h||h(n)},children:["领取剪样(",y,")"]})]})]})})}));var _=(0,d.memo)((function(n){var e=n.item,s=n.onSelect;return(0,j.jsxs)(u.G7,{className:m.Z.item,onClick:function onClick(){return null==s?void 0:s(e)},children:[(0,j.jsxs)(u.G7,{className:o()(m.Z.item_color,e.status&&m.Z.select_color),children:[(0,j.jsx)(Z.Z,{value:{lab:e.lab,rgb:e.rgb,texture_url:e.texture_url},round:!0,name:(0,v.W7)(e.code)}),e.status&&(0,j.jsx)(u.G7,{className:m.Z.icon,children:(0,j.jsx)(h.Z,{name:"icon-xuanzhongyanse",size:35})})]}),(0,j.jsx)(u.G7,{className:m.Z.item_name,children:e.name})]},e.id)}))}}]);
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[6878],{1027:function(s,e,a){var c=a(1515),i=a(7294),t=a(1805),n=a(5893),o=function Empty(s){var e=s.picUrl,a=void 0===e?"":e,i=s.text,o=void 0===i?"无搜索历史":i;return(0,n.jsxs)(c.G7,{className:t.Z.mainBox,children:[(0,n.jsx)(c.Ee,{className:t.Z.pic,mode:"aspectFill",lazyLoad:!0,src:a}),(0,n.jsx)(c.G7,{className:t.Z.text,children:o})]})};e.Z=(0,i.memo)(o)}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4763],{1027:function(s,e,a){var c=a(1515),i=a(7294),t=a(1805),n=a(5893),o=function Empty(s){var e=s.picUrl,a=void 0===e?"":e,i=s.text,o=void 0===i?"无搜索历史":i;return(0,n.jsxs)(c.G7,{className:t.Z.mainBox,children:[(0,n.jsx)(c.Ee,{className:t.Z.pic,mode:"aspectFill",lazyLoad:!0,src:a}),(0,n.jsx)(c.G7,{className:t.Z.text,children:o})]})};e.Z=(0,i.memo)(o)}}]);