diff --git a/dist/pages/customerManagement/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js b/dist/pages/customerManagement/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js index 6c2bbfd..569ecce 100644 --- a/dist/pages/customerManagement/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js +++ b/dist/pages/customerManagement/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js @@ -1 +1 @@ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(e,s,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),r=c(1814),u=c(5893);s.Z=function Cell(e){var s=e.title,c=e.desc,l=e.isLink,o=void 0!==l&&l,m=e.customClassName,d=e.customTitleClassName,x=e.customStyle,h=e.onClick,j=e.iconName,k=e.customDescClassName,N=(0,i.useRef)(h);N.current=h;var v=(0,i.useCallback)((function(){var e;return o&&(null===(e=N.current)||void 0===e?void 0:e.call(N))}),[o]),C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(r.Z.cell,m),style:x,onClick:v,children:[(0,u.jsxs)(n.G7,{className:a()(r.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:s})]}),(0,u.jsxs)(n.G7,{className:r.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(r.Z.descText,k),children:c}),o&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[s,c,v,x]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(s,e,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),o=c(1814),u=c(5893);e.Z=function Cell(s){var e=s.title,c=s.desc,l=s.isLink,m=void 0!==l&&l,r=s.customClassName,d=s.customTitleClassName,h=s.customStyle,x=s.onClick,j=s.iconName,k=s.customDescClassName,N=function handleClick(){null==x||x()},C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(o.Z.cell,r),style:h,onClick:N,children:[(0,u.jsxs)(n.G7,{className:a()(o.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:e})]}),(0,u.jsxs)(n.G7,{className:o.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(o.Z.descText,k),children:c}),m&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[e,c,N,h]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file diff --git a/dist/pages/deliveryDetail/index.js b/dist/pages/deliveryDetail/index.js index 30a50ec..b813730 100644 --- a/dist/pages/deliveryDetail/index.js +++ b/dist/pages/deliveryDetail/index.js @@ -1 +1 @@ -"use strict";require("./sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js");require("./sub-common/cec1d189f23439aac313e907e3419e4b.js");require("./sub-common/77c6c00ee9ac4bfa87e3885cb3a9f4ce.js");require("./sub-common/13c349ec6fe97c02f07716d358f66d11.js");require("./sub-common/b14021f24a99c16a41f3ddce1a2c0358.js");require("./sub-common/a2adaa4f70b80326c7400ed443cd7103.js");require("./sub-common/1da759392e78d572495498b53bc4e2a9.js");(wx.webpackJsonp=wx.webpackJsonp||[]).push([[1183],{2916:function(e,t,n){var l=n(2180),o=n(3433),a=n(4165),i=n(5861),r=n(9439),s=n(1515),d=n(2954),c=n.n(d),_=n(7294),u={common_safe_area_y:"index-module__common_safe_area_y___htZtu","flex-col":"index-module__flex-col___cXJA0","flex-row":"index-module__flex-row___u5tTg","justify-between":"index-module__justify-between___T_iHW","justify-center":"index-module__justify-center___mts4D","items-center":"index-module__items-center___VWJP5","flex-item":"index-module__flex-item___gBznn","full-100":"index-module__full-100___JLSam","color-blue":"index-module__color-blue___ig07T","color-yellow":"index-module__color-yellow___rKNiE","color-green":"index-module__color-green___jSjSZ","color-grey":"index-module__color-grey___sF5FU","color-white":"index-module__color-white___K6CSc","s-w":"index-module__s-w___pfEow","s-e":"index-module__s-e___RUgpU",filter:"index-module__filter___ygxOu",deliveryDetail:"index-module__deliveryDetail___LgWBB",content:"index-module__content___fEVXG",detailTop:"index-module__detailTop___JntJA",bottomBar:"index-module__bottomBar___YsZ49",detailInfo:"index-module__detailInfo___O6yWD","detailInfoItem--title":"index-module__detailInfoItem--title___OTBUW","detailInfoItem--detail":"index-module__detailInfoItem--detail___IRtTl","detailInfoItem--detail--row":"index-module__detailInfoItem--detail--row___LvOM6","detailInfoItem--detail--name":"index-module__detailInfoItem--detail--name___QICav","detailInfoItem--detail--count":"index-module__detailInfoItem--detail--count___NJNEP","detailInfoItem--detail--weight":"index-module__detailInfoItem--detail--weight___JnoWg",orderInfoTop:"index-module__orderInfoTop____gPsf",orderNo:"index-module__orderNo___F8j3w",status:"index-module__status___z8NIx","status--toBeAudit":"index-module__status--toBeAudit___eelMQ","status--audited":"index-module__status--audited___EzW0k",divider:"index-module__divider___qffav",total:"index-module__total___lfAzN",totalContent:"index-module__totalContent___ks6S_"},m=n(1263),x=n(4812),f=n(4356),p=n(2128),h=n(8260),v=n(9742),j=n(2213),g=n(3416),I=n(1115),w=n(935),y=n(4547),N=n(5893),Z=function DeliveryDetail(){(0,d.usePullDownRefresh)((function(){G()}));var e=(0,d.useRouter)(),t=(0,m.GH)().fetchData,n=(0,w.lo)().fetchData,l=(0,_.useState)({}),Z=(0,r.Z)(l,2),b=Z[0],k=Z[1],G=function(){var n=(0,i.Z)((0,a.Z)().mark((function _callee(){var n,l;return(0,a.Z)().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:return n=e.params.id,o.next=3,t({id:n});case 3:l=o.sent,console.log("res==>",l.data),k(l.data),c().stopPullDownRefresh();case 7:case"end":return o.stop()}}),_callee)})));return function getData(){return n.apply(this,arguments)}}();(0,_.useLayoutEffect)((function(){G()}),[]);var C=(0,m.Xt)().fetchData,T=(0,m.pu)().fetchData,D=(0,_.useState)([]),S=(0,r.Z)(D,2),B=S[0],P=S[1],O=(0,_.useCallback)((0,i.Z)((0,a.Z)().mark((function _callee2(){return(0,a.Z)().wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:if(B.length){t.next=2;break}return t.abrupt("return",Promise.reject(new Error("请先上传附件")));case 2:return console.log("readyToUploadList:::",B),t.next=5,C({id:Number(e.params.id),delivery_appendix:B});case 5:if(!t.sent.success){t.next=10;break}return t.abrupt("return",Promise.resolve());case 10:return t.abrupt("return",Promise.reject(new Error("上传失败")));case 11:case"end":return t.stop()}}),_callee2)}))),[B]),E=(0,_.useCallback)((function(){c().showModal({confirmColor:"#337FFF",title:"确定审核?",success:function success(t){return(0,i.Z)((0,a.Z)().mark((function _callee3(){var n;return(0,a.Z)().wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:if(!t.confirm){l.next=18;break}return l.prev=1,l.next=4,O();case 4:l.next=12;break;case 6:return l.prev=6,l.t0=l.catch(1),l.t0.name="",console.log("e",l.t0.toString()),I.Z9.error(l.t0.toString()),l.abrupt("return");case 12:return l.next=14,T({id:Number(e.params.id)});case 14:(n=l.sent).success?(I.Z9.success("审核成功"),G()):I.Z9.none(n.msg),l.next=19;break;case 18:t.cancel&&console.log("用户点击取消");case 19:case"end":return l.stop()}}),_callee3,null,[[1,6]])})))()}})}),[B]),J=function(){var e=(0,i.Z)((0,a.Z)().mark((function _callee4(){return(0,a.Z)().wrap((function _callee4$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({sale_order_id:b.sale_order_id});case 2:e.sent.success?(c().showToast({title:"出仓成功",icon:"success"}),G()):c().showToast({title:"出仓失败",icon:"error"});case 4:case"end":return e.stop()}}),_callee4)})));return function handleTakeOutOfStorage(){return e.apply(this,arguments)}}(),L=(0,_.useMemo)((function(){var e,t={};return null==b||null===(e=b.weight_list)||void 0===e||e.forEach((function(e){var n="".concat(e.product_code," ").concat(e.product_name);t.hasOwnProperty(n)?t[n].push(e):t[n]=[e]})),t}),[b]),R=function formatUnit(e){return e===y.p.Bulk?"条":"米"};return(0,N.jsxs)(s.G7,{className:u.deliveryDetail,children:[(0,N.jsxs)(s.G7,{className:u.content,children:[(0,N.jsxs)(h.Z,{circle:!0,customStyle:{padding:"24rpx"},children:[(0,N.jsxs)(s.G7,{className:u.detailTop,children:[(0,N.jsxs)(s.G7,{className:u.orderNo,children:["发货单号:",null==b?void 0:b.order_no]}),0===(null==b?void 0:b.status)?(0,N.jsx)(s.G7,{className:u["status--toBeAudit"],children:"待发货"}):(0,N.jsx)(s.G7,{className:u["status--audited"],children:"已完成"})]}),Object.entries(L).map((function(e,t){var n,l,o,a=(0,r.Z)(e,2),i=a[0],d=a[1],c=0;return c=(null===(n=d[0])||void 0===n?void 0:n.sale_mode)===y.p.Bulk?d.reduce((function(e,t){return e+t.roll}),0):d.reduce((function(e,t){return e+(0,x.N6)(t.length)}),0),(0,N.jsxs)(s.G7,{className:u.detailInfo,children:[(0,N.jsx)(p.Z,{direction:"horizontal",customClassName:u.divider}),(0,N.jsxs)(s.G7,{className:u.detailInfoItem,children:[(0,N.jsxs)(s.G7,{className:u["detailInfoItem--title"],children:[(0,N.jsxs)(s.G7,{className:"",children:[(0,N.jsx)(s.xv,{style:{marginRight:"20rpx"},children:i}),(0,N.jsx)(j.Z,{saleMode:null===(l=d[0])||void 0===l?void 0:l.sale_mode})]}),(0,N.jsxs)(s.G7,{className:"",children:["共 ",c," ",R(null===(o=d[0])||void 0===o?void 0:o.sale_mode)]})]}),(0,N.jsx)(s.G7,{className:u["detailInfoItem--detail"],children:null==d?void 0:d.map((function(e,t){return(0,N.jsxs)(s.G7,{className:u["detailInfoItem--detail--row"],children:[(0,N.jsxs)(s.G7,{className:u["detailInfoItem--detail--name"],children:[e.product_color_code," ",e.product_color_name]}),(0,N.jsxs)(s.G7,{className:u["detailInfoItem--detail--count"],children:["x",0===(null==e?void 0:e.sale_mode)?"".concat(e.roll," 条"):"".concat((0,x.N6)((null==e?void 0:e.length)||0)," 米")]}),(0,N.jsxs)(s.G7,{className:u["detailInfoItem--detail--weight"],children:[(0,x.$y)(e.weight),"kg"]})]},t)}))})]})]},t)})),(0,N.jsxs)(s.G7,{className:u.total,children:[(0,N.jsx)(s.xv,{children:"汇总:"}),(0,N.jsxs)(s.xv,{className:u.totalContent,children:["共",(null==b?void 0:b.delivery_product_nums)||0,"种面料,",(null==b?void 0:b.delivery_product_color_nums)||0,"种颜色,共",0===(null==b?void 0:b.sale_mode)?"".concat(null==b?void 0:b.total_roll,"条"):"".concat((0,x.N6)(null==b?void 0:b.total_length).toLocaleString(),"米"),",重量",(0,x.$y)(null==b?void 0:b.total_weight).toLocaleString(),"kg"]})]})]}),(0,N.jsxs)(h.Z,{circle:!0,customStyle:{padding:"24rpx"},children:[(0,N.jsx)(s.G7,{className:u.orderInfoTop,children:"订单信息"}),(0,N.jsx)(p.Z,{direction:"horizontal",customClassName:u.divider}),(0,N.jsxs)(s.G7,{className:"orderInfoDetail",children:[(0,N.jsx)(f.Z,{title:"订单备注:",desc:(null==b?void 0:b.sale_order_remark)||"暂无备注信息"}),(0,N.jsx)(f.Z,{title:"创建时间:",desc:(0,x.o0)(null==b?void 0:b.create_time)||"暂无创建时间"}),(0,N.jsx)(f.Z,{title:"发货方式:",desc:(null==b?void 0:b.shipment_mode_name)||"暂无发货方式"}),(0,N.jsx)(f.Z,{title:"发货地址:",desc:b.province_name?"".concat(b.province_name).concat(b.city_name).concat(b.district_name).concat(b.address_detail):"暂无发货地址"})]})]}),(0,N.jsxs)(h.Z,{circle:!0,customStyle:{padding:"24rpx"},children:[(0,N.jsx)(s.G7,{className:u.orderInfoTop,children:"附件"}),(0,N.jsx)(p.Z,{direction:"horizontal",customClassName:u.divider}),(0,N.jsx)(g.Z,{onlyRead:0!==(null==b?void 0:b.status),onChange:function handleUploadChange(e){console.log("imageList===>",e),P((0,o.Z)(e))},defaultList:null==b?void 0:b.delivery_appendix_url})]})]}),0===(null==b?void 0:b.status)&&function BottomBar(){return(0,N.jsxs)(s.G7,{className:u.bottomBar,style:null!=b&&b.is_outbound?{justifyContent:"center"}:{justifyContent:"space-between"},children:[!(null!=b&&b.is_outbound)&&(0,N.jsx)(v.Z,{customClassName:u.bottomBar__button,plain:!0,type:"info",customStyles:{width:"45%",color:"#636363",borderColor:"#c8c8c8"},round:!0,onClick:J,children:"确认出仓"}),(0,N.jsx)(v.Z,{type:"primary",round:!0,customStyles:{width:null!=b&&b.is_outbound?"90%":"45%"},onClick:E,children:"确认送达"})]})}()]})};Page((0,l.createPageConfig)(Z,"pages/deliveryDetail/index",{root:{cn:[]}},{enablePullDownRefresh:!0,navigationBarTitleText:"销售发货"}||{}))}},function(e){e.O(0,[6570,4199,9886,3338,3927,750,5508,9652,3039,2107,1216,8592],(function(){return t=2916,e(e.s=t);var t}));e.O()}]); \ No newline at end of file +"use strict";require("./sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js");require("./sub-common/cec1d189f23439aac313e907e3419e4b.js");require("./sub-common/77c6c00ee9ac4bfa87e3885cb3a9f4ce.js");require("./sub-common/13c349ec6fe97c02f07716d358f66d11.js");require("./sub-common/b14021f24a99c16a41f3ddce1a2c0358.js");require("./sub-common/a2adaa4f70b80326c7400ed443cd7103.js");require("./sub-common/1da759392e78d572495498b53bc4e2a9.js");(wx.webpackJsonp=wx.webpackJsonp||[]).push([[1183],{2916:function(e,t,n){var l=n(2180),o=n(3433),a=n(4165),i=n(5861),r=n(9439),s=n(1515),d=n(2954),c=n.n(d),_=n(7294),u={common_safe_area_y:"index-module__common_safe_area_y___htZtu","flex-col":"index-module__flex-col___cXJA0","flex-row":"index-module__flex-row___u5tTg","justify-between":"index-module__justify-between___T_iHW","justify-center":"index-module__justify-center___mts4D","items-center":"index-module__items-center___VWJP5","flex-item":"index-module__flex-item___gBznn","full-100":"index-module__full-100___JLSam","color-blue":"index-module__color-blue___ig07T","color-yellow":"index-module__color-yellow___rKNiE","color-green":"index-module__color-green___jSjSZ","color-grey":"index-module__color-grey___sF5FU","color-white":"index-module__color-white___K6CSc","s-w":"index-module__s-w___pfEow","s-e":"index-module__s-e___RUgpU",filter:"index-module__filter___ygxOu",deliveryDetail:"index-module__deliveryDetail___LgWBB",content:"index-module__content___fEVXG",detailTop:"index-module__detailTop___JntJA",bottomBar:"index-module__bottomBar___YsZ49",detailInfo:"index-module__detailInfo___O6yWD","detailInfoItem--title":"index-module__detailInfoItem--title___OTBUW","detailInfoItem--detail":"index-module__detailInfoItem--detail___IRtTl","detailInfoItem--detail--row":"index-module__detailInfoItem--detail--row___LvOM6","detailInfoItem--detail--name":"index-module__detailInfoItem--detail--name___QICav","detailInfoItem--detail--count":"index-module__detailInfoItem--detail--count___NJNEP","detailInfoItem--detail--weight":"index-module__detailInfoItem--detail--weight___JnoWg",orderInfoTop:"index-module__orderInfoTop____gPsf",orderNo:"index-module__orderNo___F8j3w",status:"index-module__status___z8NIx","status--toBeAudit":"index-module__status--toBeAudit___eelMQ","status--audited":"index-module__status--audited___EzW0k",divider:"index-module__divider___qffav",total:"index-module__total___lfAzN",totalContent:"index-module__totalContent___ks6S_"},m=n(1263),x=n(4812),f=n(4356),p=n(2128),h=n(8260),v=n(9742),j=n(2213),g=n(3416),I=n(1115),w=n(935),y=n(4547),N=n(5893),Z=function DeliveryDetail(){(0,d.usePullDownRefresh)((function(){G()}));var e=(0,d.useRouter)(),t=(0,m.GH)().fetchData,n=(0,w.lo)().fetchData,l=(0,_.useState)({}),Z=(0,r.Z)(l,2),b=Z[0],k=Z[1],G=function(){var n=(0,i.Z)((0,a.Z)().mark((function _callee(){var n,l;return(0,a.Z)().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:return n=e.params.id,o.next=3,t({id:n});case 3:l=o.sent,console.log("res==>",l.data),k(l.data),c().stopPullDownRefresh();case 7:case"end":return o.stop()}}),_callee)})));return function getData(){return n.apply(this,arguments)}}();(0,_.useLayoutEffect)((function(){G()}),[]);var C=(0,m.Xt)().fetchData,T=(0,m.pu)().fetchData,D=(0,_.useState)([]),S=(0,r.Z)(D,2),B=S[0],P=S[1],O=(0,_.useCallback)((0,i.Z)((0,a.Z)().mark((function _callee2(){return(0,a.Z)().wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:if(B.length){t.next=2;break}return t.abrupt("return",Promise.reject(new Error("请先上传附件")));case 2:return console.log("readyToUploadList:::",B),t.next=5,C({id:Number(e.params.id),delivery_appendix:B});case 5:if(!t.sent.success){t.next=10;break}return t.abrupt("return",Promise.resolve());case 10:return t.abrupt("return",Promise.reject(new Error("上传失败")));case 11:case"end":return t.stop()}}),_callee2)}))),[B]),E=(0,_.useCallback)((function(){c().showModal({confirmColor:"#337FFF",title:"确定审核?",success:function success(t){return(0,i.Z)((0,a.Z)().mark((function _callee3(){var n;return(0,a.Z)().wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:if(!t.confirm){l.next=18;break}return l.prev=1,l.next=4,O();case 4:l.next=12;break;case 6:return l.prev=6,l.t0=l.catch(1),l.t0.name="",console.log("e",l.t0.toString()),I.Z9.error(l.t0.toString()),l.abrupt("return");case 12:return l.next=14,T({id:Number(e.params.id)});case 14:(n=l.sent).success?(I.Z9.success("审核成功"),G()):I.Z9.none(n.msg),l.next=19;break;case 18:t.cancel&&console.log("用户点击取消");case 19:case"end":return l.stop()}}),_callee3,null,[[1,6]])})))()}})}),[B]),J=function(){var e=(0,i.Z)((0,a.Z)().mark((function _callee4(){return(0,a.Z)().wrap((function _callee4$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({sale_order_id:b.sale_order_id});case 2:e.sent.success?(c().showToast({title:"出仓成功",icon:"success"}),G()):c().showToast({title:"出仓失败",icon:"error"});case 4:case"end":return e.stop()}}),_callee4)})));return function handleTakeOutOfStorage(){return e.apply(this,arguments)}}(),L=(0,_.useMemo)((function(){var e,t={};return null==b||null===(e=b.weight_list)||void 0===e||e.forEach((function(e){var n="".concat(e.product_code," ").concat(e.product_name);t.hasOwnProperty(n)?t[n].push(e):t[n]=[e]})),t}),[b]),R=function formatUnit(e){return e===y.p.Bulk?"条":"米"};return(0,N.jsxs)(s.G7,{className:u.deliveryDetail,children:[(0,N.jsxs)(s.G7,{className:u.content,children:[(0,N.jsxs)(h.Z,{circle:!0,customStyle:{padding:"24rpx"},children:[(0,N.jsxs)(s.G7,{className:u.detailTop,children:[(0,N.jsxs)(s.G7,{className:u.orderNo,children:["发货单号:",null==b?void 0:b.order_no]}),0===(null==b?void 0:b.status)?(0,N.jsx)(s.G7,{className:u["status--toBeAudit"],children:"待发货"}):(0,N.jsx)(s.G7,{className:u["status--audited"],children:"已完成"})]}),Object.entries(L).map((function(e,t){var n,l,o,a=(0,r.Z)(e,2),i=a[0],d=a[1],c=0;return c=(null===(n=d[0])||void 0===n?void 0:n.sale_mode)===y.p.Bulk?d.reduce((function(e,t){return e+t.roll}),0):d.reduce((function(e,t){return e+(0,x.N6)(t.length)}),0),(0,N.jsxs)(s.G7,{className:u.detailInfo,children:[(0,N.jsx)(p.Z,{direction:"horizontal",customClassName:u.divider}),(0,N.jsxs)(s.G7,{className:u.detailInfoItem,children:[(0,N.jsxs)(s.G7,{className:u["detailInfoItem--title"],children:[(0,N.jsxs)(s.G7,{className:"",children:[(0,N.jsx)(s.xv,{style:{marginRight:"20rpx"},children:i}),(0,N.jsx)(j.Z,{saleMode:null===(l=d[0])||void 0===l?void 0:l.sale_mode})]}),(0,N.jsxs)(s.G7,{className:"",children:["共 ",c," ",R(null===(o=d[0])||void 0===o?void 0:o.sale_mode)]})]}),(0,N.jsx)(s.G7,{className:u["detailInfoItem--detail"],children:null==d?void 0:d.map((function(e,t){return(0,N.jsxs)(s.G7,{className:u["detailInfoItem--detail--row"],children:[(0,N.jsxs)(s.G7,{className:u["detailInfoItem--detail--name"],children:[e.product_color_code," ",e.product_color_name]}),(0,N.jsxs)(s.G7,{className:u["detailInfoItem--detail--count"],children:["x",0===(null==e?void 0:e.sale_mode)?"".concat(e.roll," 条"):"".concat((0,x.N6)((null==e?void 0:e.length)||0)," 米")]}),(0,N.jsxs)(s.G7,{className:u["detailInfoItem--detail--weight"],children:[(0,x.$y)(e.weight),"kg"]})]},t)}))})]})]},t)})),(0,N.jsxs)(s.G7,{className:u.total,children:[(0,N.jsx)(s.xv,{children:"汇总:"}),(0,N.jsxs)(s.xv,{className:u.totalContent,children:["共",(null==b?void 0:b.delivery_product_nums)||0,"种面料,",(null==b?void 0:b.delivery_product_color_nums)||0,"种颜色,共",0===(null==b?void 0:b.sale_mode)?"".concat(null==b?void 0:b.total_roll,"条"):"".concat((0,x.N6)(null==b?void 0:b.total_length).toLocaleString(),"米"),",重量",(0,x.$y)(null==b?void 0:b.total_settle_weight).toLocaleString(),"kg"]})]})]}),(0,N.jsxs)(h.Z,{circle:!0,customStyle:{padding:"24rpx"},children:[(0,N.jsx)(s.G7,{className:u.orderInfoTop,children:"订单信息"}),(0,N.jsx)(p.Z,{direction:"horizontal",customClassName:u.divider}),(0,N.jsxs)(s.G7,{className:"orderInfoDetail",children:[(0,N.jsx)(f.Z,{title:"订单备注:",desc:(null==b?void 0:b.sale_order_remark)||"暂无备注信息"}),(0,N.jsx)(f.Z,{title:"创建时间:",desc:(0,x.o0)(null==b?void 0:b.create_time)||"暂无创建时间"}),(0,N.jsx)(f.Z,{title:"发货方式:",desc:(null==b?void 0:b.shipment_mode_name)||"暂无发货方式"}),(0,N.jsx)(f.Z,{title:"发货地址:",desc:b.province_name?"".concat(b.province_name).concat(b.city_name).concat(b.district_name).concat(b.address_detail):"暂无发货地址"})]})]}),(0,N.jsxs)(h.Z,{circle:!0,customStyle:{padding:"24rpx"},children:[(0,N.jsx)(s.G7,{className:u.orderInfoTop,children:"附件"}),(0,N.jsx)(p.Z,{direction:"horizontal",customClassName:u.divider}),(0,N.jsx)(g.Z,{onlyRead:0!==(null==b?void 0:b.status),onChange:function handleUploadChange(e){console.log("imageList===>",e),P((0,o.Z)(e))},defaultList:null==b?void 0:b.delivery_appendix_url})]})]}),0===(null==b?void 0:b.status)&&function BottomBar(){return(0,N.jsxs)(s.G7,{className:u.bottomBar,style:null!=b&&b.is_outbound?{justifyContent:"center"}:{justifyContent:"space-between"},children:[!(null!=b&&b.is_outbound)&&(0,N.jsx)(v.Z,{customClassName:u.bottomBar__button,plain:!0,type:"info",customStyles:{width:"45%",color:"#636363",borderColor:"#c8c8c8"},round:!0,onClick:J,children:"确认出仓"}),(0,N.jsx)(v.Z,{type:"primary",round:!0,customStyles:{width:null!=b&&b.is_outbound?"90%":"45%"},onClick:E,children:"确认送达"})]})}()]})};Page((0,l.createPageConfig)(Z,"pages/deliveryDetail/index",{root:{cn:[]}},{enablePullDownRefresh:!0,navigationBarTitleText:"销售发货"}||{}))}},function(e){e.O(0,[6570,4199,9886,3338,3927,750,5508,9652,3039,2107,1216,8592],(function(){return t=2916,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/dist/pages/deliveryDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js b/dist/pages/deliveryDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js index 6c2bbfd..569ecce 100644 --- a/dist/pages/deliveryDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js +++ b/dist/pages/deliveryDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js @@ -1 +1 @@ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(e,s,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),r=c(1814),u=c(5893);s.Z=function Cell(e){var s=e.title,c=e.desc,l=e.isLink,o=void 0!==l&&l,m=e.customClassName,d=e.customTitleClassName,x=e.customStyle,h=e.onClick,j=e.iconName,k=e.customDescClassName,N=(0,i.useRef)(h);N.current=h;var v=(0,i.useCallback)((function(){var e;return o&&(null===(e=N.current)||void 0===e?void 0:e.call(N))}),[o]),C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(r.Z.cell,m),style:x,onClick:v,children:[(0,u.jsxs)(n.G7,{className:a()(r.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:s})]}),(0,u.jsxs)(n.G7,{className:r.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(r.Z.descText,k),children:c}),o&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[s,c,v,x]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(s,e,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),o=c(1814),u=c(5893);e.Z=function Cell(s){var e=s.title,c=s.desc,l=s.isLink,m=void 0!==l&&l,r=s.customClassName,d=s.customTitleClassName,h=s.customStyle,x=s.onClick,j=s.iconName,k=s.customDescClassName,N=function handleClick(){null==x||x()},C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(o.Z.cell,r),style:h,onClick:N,children:[(0,u.jsxs)(n.G7,{className:a()(o.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:e})]}),(0,u.jsxs)(n.G7,{className:o.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(o.Z.descText,k),children:c}),m&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[e,c,N,h]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file diff --git a/dist/pages/getColorCard/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js b/dist/pages/getColorCard/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js index 6c2bbfd..569ecce 100644 --- a/dist/pages/getColorCard/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js +++ b/dist/pages/getColorCard/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js @@ -1 +1 @@ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(e,s,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),r=c(1814),u=c(5893);s.Z=function Cell(e){var s=e.title,c=e.desc,l=e.isLink,o=void 0!==l&&l,m=e.customClassName,d=e.customTitleClassName,x=e.customStyle,h=e.onClick,j=e.iconName,k=e.customDescClassName,N=(0,i.useRef)(h);N.current=h;var v=(0,i.useCallback)((function(){var e;return o&&(null===(e=N.current)||void 0===e?void 0:e.call(N))}),[o]),C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(r.Z.cell,m),style:x,onClick:v,children:[(0,u.jsxs)(n.G7,{className:a()(r.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:s})]}),(0,u.jsxs)(n.G7,{className:r.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(r.Z.descText,k),children:c}),o&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[s,c,v,x]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(s,e,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),o=c(1814),u=c(5893);e.Z=function Cell(s){var e=s.title,c=s.desc,l=s.isLink,m=void 0!==l&&l,r=s.customClassName,d=s.customTitleClassName,h=s.customStyle,x=s.onClick,j=s.iconName,k=s.customDescClassName,N=function handleClick(){null==x||x()},C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(o.Z.cell,r),style:h,onClick:N,children:[(0,u.jsxs)(n.G7,{className:a()(o.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:e})]}),(0,u.jsxs)(n.G7,{className:o.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(o.Z.descText,k),children:c}),m&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[e,c,N,h]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file diff --git a/dist/pages/orderWarningAnalysis/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js b/dist/pages/orderWarningAnalysis/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js index 6c2bbfd..569ecce 100644 --- a/dist/pages/orderWarningAnalysis/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js +++ b/dist/pages/orderWarningAnalysis/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js @@ -1 +1 @@ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(e,s,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),r=c(1814),u=c(5893);s.Z=function Cell(e){var s=e.title,c=e.desc,l=e.isLink,o=void 0!==l&&l,m=e.customClassName,d=e.customTitleClassName,x=e.customStyle,h=e.onClick,j=e.iconName,k=e.customDescClassName,N=(0,i.useRef)(h);N.current=h;var v=(0,i.useCallback)((function(){var e;return o&&(null===(e=N.current)||void 0===e?void 0:e.call(N))}),[o]),C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(r.Z.cell,m),style:x,onClick:v,children:[(0,u.jsxs)(n.G7,{className:a()(r.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:s})]}),(0,u.jsxs)(n.G7,{className:r.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(r.Z.descText,k),children:c}),o&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[s,c,v,x]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(s,e,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),o=c(1814),u=c(5893);e.Z=function Cell(s){var e=s.title,c=s.desc,l=s.isLink,m=void 0!==l&&l,r=s.customClassName,d=s.customTitleClassName,h=s.customStyle,x=s.onClick,j=s.iconName,k=s.customDescClassName,N=function handleClick(){null==x||x()},C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(o.Z.cell,r),style:h,onClick:N,children:[(0,u.jsxs)(n.G7,{className:a()(o.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:e})]}),(0,u.jsxs)(n.G7,{className:o.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(o.Z.descText,k),children:c}),m&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[e,c,N,h]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file diff --git a/dist/pages/refundDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js b/dist/pages/refundDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js index 6c2bbfd..569ecce 100644 --- a/dist/pages/refundDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js +++ b/dist/pages/refundDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js @@ -1 +1 @@ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(e,s,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),r=c(1814),u=c(5893);s.Z=function Cell(e){var s=e.title,c=e.desc,l=e.isLink,o=void 0!==l&&l,m=e.customClassName,d=e.customTitleClassName,x=e.customStyle,h=e.onClick,j=e.iconName,k=e.customDescClassName,N=(0,i.useRef)(h);N.current=h;var v=(0,i.useCallback)((function(){var e;return o&&(null===(e=N.current)||void 0===e?void 0:e.call(N))}),[o]),C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(r.Z.cell,m),style:x,onClick:v,children:[(0,u.jsxs)(n.G7,{className:a()(r.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:s})]}),(0,u.jsxs)(n.G7,{className:r.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(r.Z.descText,k),children:c}),o&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[s,c,v,x]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(s,e,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),o=c(1814),u=c(5893);e.Z=function Cell(s){var e=s.title,c=s.desc,l=s.isLink,m=void 0!==l&&l,r=s.customClassName,d=s.customTitleClassName,h=s.customStyle,x=s.onClick,j=s.iconName,k=s.customDescClassName,N=function handleClick(){null==x||x()},C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(o.Z.cell,r),style:h,onClick:N,children:[(0,u.jsxs)(n.G7,{className:a()(o.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:e})]}),(0,u.jsxs)(n.G7,{className:o.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(o.Z.descText,k),children:c}),m&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[e,c,N,h]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file diff --git a/dist/pages/refundMoneyDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js b/dist/pages/refundMoneyDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js index 6c2bbfd..569ecce 100644 --- a/dist/pages/refundMoneyDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js +++ b/dist/pages/refundMoneyDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js @@ -1 +1 @@ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(e,s,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),r=c(1814),u=c(5893);s.Z=function Cell(e){var s=e.title,c=e.desc,l=e.isLink,o=void 0!==l&&l,m=e.customClassName,d=e.customTitleClassName,x=e.customStyle,h=e.onClick,j=e.iconName,k=e.customDescClassName,N=(0,i.useRef)(h);N.current=h;var v=(0,i.useCallback)((function(){var e;return o&&(null===(e=N.current)||void 0===e?void 0:e.call(N))}),[o]),C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(r.Z.cell,m),style:x,onClick:v,children:[(0,u.jsxs)(n.G7,{className:a()(r.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:s})]}),(0,u.jsxs)(n.G7,{className:r.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(r.Z.descText,k),children:c}),o&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[s,c,v,x]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(s,e,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),o=c(1814),u=c(5893);e.Z=function Cell(s){var e=s.title,c=s.desc,l=s.isLink,m=void 0!==l&&l,r=s.customClassName,d=s.customTitleClassName,h=s.customStyle,x=s.onClick,j=s.iconName,k=s.customDescClassName,N=function handleClick(){null==x||x()},C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(o.Z.cell,r),style:h,onClick:N,children:[(0,u.jsxs)(n.G7,{className:a()(o.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:e})]}),(0,u.jsxs)(n.G7,{className:o.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(o.Z.descText,k),children:c}),m&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[e,c,N,h]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file diff --git a/dist/pages/saleStatistic/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js b/dist/pages/saleStatistic/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js index 6c2bbfd..569ecce 100644 --- a/dist/pages/saleStatistic/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js +++ b/dist/pages/saleStatistic/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js @@ -1 +1 @@ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(e,s,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),r=c(1814),u=c(5893);s.Z=function Cell(e){var s=e.title,c=e.desc,l=e.isLink,o=void 0!==l&&l,m=e.customClassName,d=e.customTitleClassName,x=e.customStyle,h=e.onClick,j=e.iconName,k=e.customDescClassName,N=(0,i.useRef)(h);N.current=h;var v=(0,i.useCallback)((function(){var e;return o&&(null===(e=N.current)||void 0===e?void 0:e.call(N))}),[o]),C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(r.Z.cell,m),style:x,onClick:v,children:[(0,u.jsxs)(n.G7,{className:a()(r.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:s})]}),(0,u.jsxs)(n.G7,{className:r.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(r.Z.descText,k),children:c}),o&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[s,c,v,x]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(s,e,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),o=c(1814),u=c(5893);e.Z=function Cell(s){var e=s.title,c=s.desc,l=s.isLink,m=void 0!==l&&l,r=s.customClassName,d=s.customTitleClassName,h=s.customStyle,x=s.onClick,j=s.iconName,k=s.customDescClassName,N=function handleClick(){null==x||x()},C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(o.Z.cell,r),style:h,onClick:N,children:[(0,u.jsxs)(n.G7,{className:a()(o.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:e})]}),(0,u.jsxs)(n.G7,{className:o.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(o.Z.descText,k),children:c}),m&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[e,c,N,h]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file diff --git a/dist/pages/sampleCutting/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js b/dist/pages/sampleCutting/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js index 6c2bbfd..569ecce 100644 --- a/dist/pages/sampleCutting/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js +++ b/dist/pages/sampleCutting/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js @@ -1 +1 @@ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(e,s,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),r=c(1814),u=c(5893);s.Z=function Cell(e){var s=e.title,c=e.desc,l=e.isLink,o=void 0!==l&&l,m=e.customClassName,d=e.customTitleClassName,x=e.customStyle,h=e.onClick,j=e.iconName,k=e.customDescClassName,N=(0,i.useRef)(h);N.current=h;var v=(0,i.useCallback)((function(){var e;return o&&(null===(e=N.current)||void 0===e?void 0:e.call(N))}),[o]),C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(r.Z.cell,m),style:x,onClick:v,children:[(0,u.jsxs)(n.G7,{className:a()(r.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:s})]}),(0,u.jsxs)(n.G7,{className:r.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(r.Z.descText,k),children:c}),o&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[s,c,v,x]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(s,e,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),o=c(1814),u=c(5893);e.Z=function Cell(s){var e=s.title,c=s.desc,l=s.isLink,m=void 0!==l&&l,r=s.customClassName,d=s.customTitleClassName,h=s.customStyle,x=s.onClick,j=s.iconName,k=s.customDescClassName,N=function handleClick(){null==x||x()},C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(o.Z.cell,r),style:h,onClick:N,children:[(0,u.jsxs)(n.G7,{className:a()(o.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:e})]}),(0,u.jsxs)(n.G7,{className:o.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(o.Z.descText,k),children:c}),m&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[e,c,N,h]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file diff --git a/dist/pages/takeDeliveryDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js b/dist/pages/takeDeliveryDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js index 6c2bbfd..569ecce 100644 --- a/dist/pages/takeDeliveryDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js +++ b/dist/pages/takeDeliveryDetail/sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639.js @@ -1 +1 @@ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(e,s,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),r=c(1814),u=c(5893);s.Z=function Cell(e){var s=e.title,c=e.desc,l=e.isLink,o=void 0!==l&&l,m=e.customClassName,d=e.customTitleClassName,x=e.customStyle,h=e.onClick,j=e.iconName,k=e.customDescClassName,N=(0,i.useRef)(h);N.current=h;var v=(0,i.useCallback)((function(){var e;return o&&(null===(e=N.current)||void 0===e?void 0:e.call(N))}),[o]),C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(r.Z.cell,m),style:x,onClick:v,children:[(0,u.jsxs)(n.G7,{className:a()(r.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:s})]}),(0,u.jsxs)(n.G7,{className:r.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(r.Z.descText,k),children:c}),o&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[s,c,v,x]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(s,e,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),o=c(1814),u=c(5893);e.Z=function Cell(s){var e=s.title,c=s.desc,l=s.isLink,m=void 0!==l&&l,r=s.customClassName,d=s.customTitleClassName,h=s.customStyle,x=s.onClick,j=s.iconName,k=s.customDescClassName,N=function handleClick(){null==x||x()},C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(o.Z.cell,r),style:h,onClick:N,children:[(0,u.jsxs)(n.G7,{className:a()(o.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:e})]}),(0,u.jsxs)(n.G7,{className:o.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(o.Z.descText,k),children:c}),m&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[e,c,N,h]);return(0,u.jsx)(u.Fragment,{children:C})}}}]); \ No newline at end of file diff --git a/dist/pages/user/index.js b/dist/pages/user/index.js index 4b64ea0..395a266 100644 --- a/dist/pages/user/index.js +++ b/dist/pages/user/index.js @@ -1 +1 @@ -"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[2932],{6052:function(e,n,i){var a=i(2180),o=i(3433),r=i(9439),t=i(4165),c=i(5861),s=i(1515),l=i(2954),u=i.n(l),d=i(7294),_=i(5998),m=i.p+"styles/image/defaultAvatar.png",x={common_safe_area_y:"index-module__common_safe_area_y___RJ72a","flex-col":"index-module__flex-col___j0SaS","flex-row":"index-module__flex-row___G67Mr","justify-between":"index-module__justify-between___o2ZdQ","justify-center":"index-module__justify-center___Zt5wG","items-center":"index-module__items-center___DpkKW","flex-item":"index-module__flex-item___NDlL_","full-100":"index-module__full-100___bfZjV","color-blue":"index-module__color-blue___e4CVh","color-yellow":"index-module__color-yellow___XKo9l","color-green":"index-module__color-green___qhsPZ","color-grey":"index-module__color-grey___lse1m","color-white":"index-module__color-white___ZTn6m","s-w":"index-module__s-w___KV7Ja","s-e":"index-module__s-e___VYYc1",filter:"index-module__filter___Csfqr",main:"index-module__main___b7kFd",userAvatar:"index-module__userAvatar___Hg8CS","userAvatar-text":"index-module__userAvatar-text___nUiCr",topBar:"index-module__topBar___gX3V5",middle:"index-module__middle___NZx_i",bottomBar:"index-module__bottomBar___himLl",username:"index-module__username___e9MeR",userno:"index-module__userno___n1UtZ",flexBox:"index-module__flexBox___L1NK6",userTitle:"index-module__userTitle___KpPma",receiveBox:"index-module__receiveBox___gV7YU","grid-container":"index-module__grid-container___lDgpL",layoutTabBar:"index-module__layoutTabBar___UFcnO",layoutTitle:"index-module__layoutTitle___GYRTo",layoutDescription:"index-module__layoutDescription___g44Jf"},p=i(1115),g=i(8932),h=i(4119),f=i(9742),j=i(9579),v=i(2128),y=i(8260),N=i(3297),Z=i(3929),k=i(2495),C=i(5807),b=i(9498),w=i(5893),G=function UserAvatar(e){var n=e.src;return(0,w.jsxs)(s.G7,{className:x.userAvatar,children:[(0,w.jsx)(s.Ee,{className:"full-100",src:n||m}),n?null:(0,w.jsx)(s.xv,{className:x["userAvatar-text"],children:"编辑"})]})},T=[{id:1,iconName:"icon-pandiansaoma",name:"盘点扫码",path:"",jurisdiction:"counting_scanning_code_page"},{id:2,iconName:"icon-fahuoliebiao",name:"发货列表",path:"/pages/delivery/index",jurisdiction:"shipping_list_page"},{id:3,iconName:"icon-yaoqingma",name:"邀请码",path:"/pages/inviteCode/index",jurisdiction:"invitation_code_page"},{id:4,iconName:"icon-tihuoliebiao",name:"提货列表",path:"/pages/takeDelivery/index",jurisdiction:"picking_list_module_page"},{id:5,iconName:"icon-shouhouzhongxin",name:"退货退款",path:"/pages/refundPage/index",jurisdiction:"return_and_refund_page"},{id:6,iconName:"icon-shoukuanliebiao",name:"收款列表",path:"/pages/newCollection/index",jurisdiction:"collection_list_page"},{id:7,iconName:"icon-kehuxinxi",name:"客户列表",path:"/pages/customerManagement/index",jurisdiction:"customer_list_page"},{id:8,iconName:"icon-lingquseka",name:"领取色卡",path:"/pages/getColorCard/index",jurisdiction:"receive_color_card_page"},{id:9,iconName:"icon-jianyang",name:"领取剪样",path:"/pages/sampleCutting/index",jurisdiction:"receive_sample_cutting_page"}],S=[{id:10,iconName:"icon-yansequyang",name:"颜色取样",path:"/pages/colorRelated/takeColor/index",jurisdiction:"color_sampling_page"},{id:11,iconName:"icon-qusechazhao",name:"取色查找",path:"/pages/colorRelated/findColor/index",jurisdiction:"color_search_page"},{id:12,iconName:"icon-yangpinduibi",name:"样品对比",path:"/pages/colorRelated/sampleComparison/index",jurisdiction:"sample_comparison_page"}],B=[{id:13,iconName:"icon-xiaoshou",name:"销售",path:"/pages/saleStatistic/index",jurisdiction:"sales_page"},{id:14,iconName:"icon-dingdanyujing",name:"订单预警",path:"/pages/orderWarningAnalysis/index",jurisdiction:"order_warning_analysis_page"},{id:15,iconName:"icon-duizhang",name:"对账",path:"",jurisdiction:"reconciliation_page"},{id:16,iconName:"icon-yuncangkucun",name:"云仓库存",path:"",jurisdiction:"cloud_warehouse_inventory_page"},{id:17,iconName:"icon-qianzhicangkucun",name:"前置仓库存",path:"",jurisdiction:"front_warehouse_page"}],I=function UserInfo(){var e,n,i=(0,Z.Z)(),a=i.removeToken,m=i.removeUserInfo,k=i.userInfo,I=(0,_.I0)(),D=(0,b.Yw)().openSubscriptionMessage;console.log("userInfo==>",k);var U=function(){var e=(0,c.Z)((0,t.Z)().mark((function _callee(e){return(0,t.Z)().wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("item==>",e),6!==e.id){n.next=4;break}return n.next=4,D({scenes:3});case 4:if(14!==e.id){n.next=7;break}return n.next=7,D({scenes:4});case 7:(0,p.jD)(e.path,{},"navigateTo");case 8:case"end":return n.stop()}}),_callee)})));return function handleClickIconCard(n){return e.apply(this,arguments)}}(),A=(0,d.useState)([]),R=(0,r.Z)(A,2),F=R[0],z=R[1],q=(0,d.useState)([]),E=(0,r.Z)(q,2),L=E[0],M=E[1],V=(0,d.useState)([]),K=(0,r.Z)(V,2),P=K[0],J=K[1];(0,l.useDidShow)((function(){var e,n,i;e=T.filter((function(e){return(0,p.hn)(e.jurisdiction)&&e.path})),n=S.filter((function(e){return(0,p.hn)(e.jurisdiction)&&e.path})),i=B.filter((function(e){return(0,p.hn)(e.jurisdiction)&&e.path})),z((0,o.Z)(e)),M((0,o.Z)(n)),J((0,o.Z)(i))})),(0,b.F5)(g.R2.USER);var Y=function(){var e=(0,C.M)().fetchData,n=(0,Z.Z)(),i=(n.setToken,n.setSessionKey),a=(n.setUserInfo,n.userInfo);return{UseGetCode:function UseGetCode(){u().login({success:function success(n){return(0,c.Z)((0,t.Z)().mark((function _callee(){var o,r;return(0,t.Z)().wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=n.code)){t.next=14;break}return console.log("获取用户登录凭证:".concat(o)),t.next=5,e({js_code:o,user_id:a.userInfo.user_id});case 5:if(!(r=t.sent).data){t.next=11;break}i(r.data.session_key),p.Z9.none("链接成功,可开始接收服务信息啦!"),t.next=12;break;case 11:return t.abrupt("return",p.Z9.none("".concat(null==r?void 0:r.msg)));case 12:t.next=16;break;case 14:return console.log("获取用户登录态失败:".concat(n.errMsg)),t.abrupt("return",p.Z9.error("".concat(null==n?void 0:n.errMsg)));case 16:case"end":return t.stop()}}),_callee)})))()}})}}}(),O=Y.UseGetCode,X=function(){var e=(0,c.Z)((0,t.Z)().mark((function _callee2(){return(0,t.Z)().wrap((function _callee2$(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,O();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log(e.t0,"err");case 8:case"end":return e.stop()}}),_callee2,null,[[0,5]])})));return function handReceive(){return e.apply(this,arguments)}}();return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(y.Z,{circle:!0,customStyle:{paddingTop:"10px",paddingBottom:"10px"},children:[(0,w.jsxs)(s.G7,{className:x.topBar,children:[(0,w.jsx)(s.G7,{className:x.left,children:(0,w.jsx)(G,{src:null===(e=k.userInfo)||void 0===e?void 0:e.avatar_url})}),(0,w.jsxs)(s.G7,{className:x.middle,children:[(0,w.jsx)(s.xv,{className:x.username,children:null===(n=k.userInfo)||void 0===n?void 0:n.user_name}),(0,w.jsx)(s.xv,{className:x.userno,children:k.userInfo.user_code})]}),(0,w.jsx)(s.G7,{className:x.right,children:(0,w.jsx)(f.Z,{plain:!0,type:"primary",round:!0,size:"normal",onClick:function handleLogout(){a(),m(),I({type:h.g.SET_SELECTED,data:{selectedId:g.R2.INDEX}}),(0,p.jD)("/pages/login/index",{},"reLaunch")},children:"退出登录"})})]}),(0,w.jsxs)(s.G7,{className:x.bottomBar,children:[(0,w.jsx)(j.Z,{type:"primary",size:"small",circle:!0,customStyle:{padding:"8px 5px"},children:k.userInfo.department_name}),(0,w.jsx)(v.Z,{direction:"vertical"}),(0,w.jsxs)(s.G7,{className:x.flexBox,children:[(0,w.jsx)(s.xv,{className:x.userTitle,children:k.userInfo.duty_name}),(0,w.jsx)(s.G7,{className:x.receiveBox,onClick:function onClick(){return X()},children:"接收消息"})]})]})]}),!!F.length&&(0,w.jsxs)(y.Z,{circle:!0,children:[(0,w.jsx)(s.G7,{className:x.layoutTitle,children:"功能特色"}),(0,w.jsx)(s.G7,{className:x["grid-container"],children:F.map((function(e,n){return e.path?(0,w.jsx)(N.Z,{iconName:e.iconName,title:e.name,onClick:function onClick(){return U(e)}},n):null}))})]}),!!L.length&&(0,w.jsxs)(y.Z,{circle:!0,children:[(0,w.jsx)(s.G7,{className:x.layoutTitle,children:"布料取色"}),(0,w.jsx)(s.G7,{className:x["grid-container"],children:L.map((function(e,n){return e.path?(0,w.jsx)(N.Z,{iconName:e.iconName,title:e.name,onClick:function onClick(){return U(e)}},n):null}))})]}),!!P.length&&(0,w.jsxs)(y.Z,{circle:!0,children:[(0,w.jsx)(s.G7,{className:x.layoutTitle,children:"统计分析"}),(0,w.jsx)(s.G7,{className:x["grid-container"],children:P.map((function(e,n){return e.path?(0,w.jsx)(N.Z,{iconName:e.iconName,title:e.name,onClick:function onClick(){return U(e)}},n):null}))})]})]})},D=function User(){var e=(0,d.useState)("pre"),n=(0,r.Z)(e,2),i=n[0],a=(n[1],(0,d.useState)("Version: dev 73a4328\n 2023/5/15 16:20:48")),o=(0,r.Z)(a,2),t=o[0];o[1];return(0,w.jsxs)(s.G7,{className:x.main,children:[(0,w.jsx)(I,{}),(0,w.jsx)(s.G7,{style:{fontSize:"26rpx",color:"#707070",textAlign:"center"},children:t}),"production"!==i&&(0,w.jsx)(s.G7,{style:{fontSize:"26rpx",color:"#707070",textAlign:"center"},children:k._n})]})};Page((0,a.createPageConfig)(D,"pages/user/index",{root:{cn:[]}},{navigationBarTitleText:"我的",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#4581FF",backgroundColor:"#4581FF",backgroundColorTop:"#4581FF",enablePullDownRefresh:!0}||{}))}},function(e){e.O(0,[2107,1216,8592],(function(){return n=6052,e(e.s=n);var n}));e.O()}]); \ No newline at end of file +"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[2932],{6052:function(e,n,i){var a=i(2180),o=i(3433),r=i(9439),t=i(4165),c=i(5861),s=i(1515),l=i(2954),u=i.n(l),d=i(7294),_=i(5998),m=i.p+"styles/image/defaultAvatar.png",x={common_safe_area_y:"index-module__common_safe_area_y___RJ72a","flex-col":"index-module__flex-col___j0SaS","flex-row":"index-module__flex-row___G67Mr","justify-between":"index-module__justify-between___o2ZdQ","justify-center":"index-module__justify-center___Zt5wG","items-center":"index-module__items-center___DpkKW","flex-item":"index-module__flex-item___NDlL_","full-100":"index-module__full-100___bfZjV","color-blue":"index-module__color-blue___e4CVh","color-yellow":"index-module__color-yellow___XKo9l","color-green":"index-module__color-green___qhsPZ","color-grey":"index-module__color-grey___lse1m","color-white":"index-module__color-white___ZTn6m","s-w":"index-module__s-w___KV7Ja","s-e":"index-module__s-e___VYYc1",filter:"index-module__filter___Csfqr",main:"index-module__main___b7kFd",userAvatar:"index-module__userAvatar___Hg8CS","userAvatar-text":"index-module__userAvatar-text___nUiCr",topBar:"index-module__topBar___gX3V5",middle:"index-module__middle___NZx_i",bottomBar:"index-module__bottomBar___himLl",username:"index-module__username___e9MeR",userno:"index-module__userno___n1UtZ",flexBox:"index-module__flexBox___L1NK6",userTitle:"index-module__userTitle___KpPma",receiveBox:"index-module__receiveBox___gV7YU","grid-container":"index-module__grid-container___lDgpL",layoutTabBar:"index-module__layoutTabBar___UFcnO",layoutTitle:"index-module__layoutTitle___GYRTo",layoutDescription:"index-module__layoutDescription___g44Jf"},p=i(1115),g=i(8932),h=i(4119),f=i(9742),j=i(9579),v=i(2128),y=i(8260),N=i(3297),Z=i(3929),k=i(2495),C=i(5807),b=i(9498),w=i(5893),G=function UserAvatar(e){var n=e.src;return(0,w.jsxs)(s.G7,{className:x.userAvatar,children:[(0,w.jsx)(s.Ee,{className:"full-100",src:n||m}),n?null:(0,w.jsx)(s.xv,{className:x["userAvatar-text"],children:"编辑"})]})},T=[{id:1,iconName:"icon-pandiansaoma",name:"盘点扫码",path:"",jurisdiction:"counting_scanning_code_page"},{id:2,iconName:"icon-fahuoliebiao",name:"发货列表",path:"/pages/delivery/index",jurisdiction:"shipping_list_page"},{id:3,iconName:"icon-yaoqingma",name:"邀请码",path:"/pages/inviteCode/index",jurisdiction:"invitation_code_page"},{id:4,iconName:"icon-tihuoliebiao",name:"提货列表",path:"/pages/takeDelivery/index",jurisdiction:"picking_list_module_page"},{id:5,iconName:"icon-shouhouzhongxin",name:"退货退款",path:"/pages/refundPage/index",jurisdiction:"return_and_refund_page"},{id:6,iconName:"icon-shoukuanliebiao",name:"收款列表",path:"/pages/newCollection/index",jurisdiction:"collection_list_page"},{id:7,iconName:"icon-kehuxinxi",name:"客户列表",path:"/pages/customerManagement/index",jurisdiction:"customer_list_page"},{id:8,iconName:"icon-lingquseka",name:"领取色卡",path:"/pages/getColorCard/index",jurisdiction:"receive_color_card_page"},{id:9,iconName:"icon-jianyang",name:"领取剪样",path:"/pages/sampleCutting/index",jurisdiction:"receive_sample_cutting_page"}],S=[{id:10,iconName:"icon-yansequyang",name:"颜色取样",path:"/pages/colorRelated/takeColor/index",jurisdiction:"color_sampling_page"},{id:11,iconName:"icon-qusechazhao",name:"取色查找",path:"/pages/colorRelated/findColor/index",jurisdiction:"color_search_page"},{id:12,iconName:"icon-yangpinduibi",name:"样品对比",path:"/pages/colorRelated/sampleComparison/index",jurisdiction:"sample_comparison_page"}],B=[{id:13,iconName:"icon-xiaoshou",name:"销售",path:"/pages/saleStatistic/index",jurisdiction:"sales_page"},{id:14,iconName:"icon-dingdanyujing",name:"订单预警",path:"/pages/orderWarningAnalysis/index",jurisdiction:"order_warning_analysis_page"},{id:15,iconName:"icon-duizhang",name:"对账",path:"",jurisdiction:"reconciliation_page"},{id:16,iconName:"icon-yuncangkucun",name:"云仓库存",path:"",jurisdiction:"cloud_warehouse_inventory_page"},{id:17,iconName:"icon-qianzhicangkucun",name:"前置仓库存",path:"",jurisdiction:"front_warehouse_page"}],I=function UserInfo(){var e,n,i=(0,Z.Z)(),a=i.removeToken,m=i.removeUserInfo,k=i.userInfo,I=(0,_.I0)(),D=(0,b.Yw)().openSubscriptionMessage;console.log("userInfo==>",k);var U=function(){var e=(0,c.Z)((0,t.Z)().mark((function _callee(e){return(0,t.Z)().wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("item==>",e),6!==e.id){n.next=4;break}return n.next=4,D({scenes:3});case 4:if(14!==e.id){n.next=7;break}return n.next=7,D({scenes:4});case 7:(0,p.jD)(e.path,{},"navigateTo");case 8:case"end":return n.stop()}}),_callee)})));return function handleClickIconCard(n){return e.apply(this,arguments)}}(),A=(0,d.useState)([]),R=(0,r.Z)(A,2),F=R[0],z=R[1],q=(0,d.useState)([]),E=(0,r.Z)(q,2),L=E[0],M=E[1],V=(0,d.useState)([]),K=(0,r.Z)(V,2),P=K[0],J=K[1];(0,l.useDidShow)((function(){var e,n,i;e=T.filter((function(e){return(0,p.hn)(e.jurisdiction)&&e.path})),n=S.filter((function(e){return(0,p.hn)(e.jurisdiction)&&e.path})),i=B.filter((function(e){return(0,p.hn)(e.jurisdiction)&&e.path})),z((0,o.Z)(e)),M((0,o.Z)(n)),J((0,o.Z)(i))})),(0,b.F5)(g.R2.USER);var Y=function(){var e=(0,C.M)().fetchData,n=(0,Z.Z)(),i=(n.setToken,n.setSessionKey),a=(n.setUserInfo,n.userInfo);return{UseGetCode:function UseGetCode(){u().login({success:function success(n){return(0,c.Z)((0,t.Z)().mark((function _callee(){var o,r;return(0,t.Z)().wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=n.code)){t.next=14;break}return console.log("获取用户登录凭证:".concat(o)),t.next=5,e({js_code:o,user_id:a.userInfo.user_id});case 5:if(!(r=t.sent).data){t.next=11;break}i(r.data.session_key),p.Z9.none("链接成功,可开始接收服务信息啦!"),t.next=12;break;case 11:return t.abrupt("return",p.Z9.none("".concat(null==r?void 0:r.msg)));case 12:t.next=16;break;case 14:return console.log("获取用户登录态失败:".concat(n.errMsg)),t.abrupt("return",p.Z9.error("".concat(null==n?void 0:n.errMsg)));case 16:case"end":return t.stop()}}),_callee)})))()}})}}}(),O=Y.UseGetCode,X=function(){var e=(0,c.Z)((0,t.Z)().mark((function _callee2(){return(0,t.Z)().wrap((function _callee2$(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,O();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log(e.t0,"err");case 8:case"end":return e.stop()}}),_callee2,null,[[0,5]])})));return function handReceive(){return e.apply(this,arguments)}}();return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(y.Z,{circle:!0,customStyle:{paddingTop:"10px",paddingBottom:"10px"},children:[(0,w.jsxs)(s.G7,{className:x.topBar,children:[(0,w.jsx)(s.G7,{className:x.left,children:(0,w.jsx)(G,{src:null===(e=k.userInfo)||void 0===e?void 0:e.avatar_url})}),(0,w.jsxs)(s.G7,{className:x.middle,children:[(0,w.jsx)(s.xv,{className:x.username,children:null===(n=k.userInfo)||void 0===n?void 0:n.user_name}),(0,w.jsx)(s.xv,{className:x.userno,children:k.userInfo.user_code})]}),(0,w.jsx)(s.G7,{className:x.right,children:(0,w.jsx)(f.Z,{plain:!0,type:"primary",round:!0,size:"normal",onClick:function handleLogout(){a(),m(),I({type:h.g.SET_SELECTED,data:{selectedId:g.R2.INDEX}}),(0,p.jD)("/pages/login/index",{},"reLaunch")},children:"退出登录"})})]}),(0,w.jsxs)(s.G7,{className:x.bottomBar,children:[(0,w.jsx)(j.Z,{type:"primary",size:"small",circle:!0,customStyle:{padding:"8px 5px"},children:k.userInfo.department_name}),(0,w.jsx)(v.Z,{direction:"vertical"}),(0,w.jsxs)(s.G7,{className:x.flexBox,children:[(0,w.jsx)(s.xv,{className:x.userTitle,children:k.userInfo.duty_name}),(0,w.jsx)(s.G7,{className:x.receiveBox,onClick:function onClick(){return X()},children:"接收消息"})]})]})]}),!!F.length&&(0,w.jsxs)(y.Z,{circle:!0,children:[(0,w.jsx)(s.G7,{className:x.layoutTitle,children:"功能特色"}),(0,w.jsx)(s.G7,{className:x["grid-container"],children:F.map((function(e,n){return e.path?(0,w.jsx)(N.Z,{iconName:e.iconName,title:e.name,onClick:function onClick(){return U(e)}},n):null}))})]}),!!L.length&&(0,w.jsxs)(y.Z,{circle:!0,children:[(0,w.jsx)(s.G7,{className:x.layoutTitle,children:"布料取色"}),(0,w.jsx)(s.G7,{className:x["grid-container"],children:L.map((function(e,n){return e.path?(0,w.jsx)(N.Z,{iconName:e.iconName,title:e.name,onClick:function onClick(){return U(e)}},n):null}))})]}),!!P.length&&(0,w.jsxs)(y.Z,{circle:!0,children:[(0,w.jsx)(s.G7,{className:x.layoutTitle,children:"统计分析"}),(0,w.jsx)(s.G7,{className:x["grid-container"],children:P.map((function(e,n){return e.path?(0,w.jsx)(N.Z,{iconName:e.iconName,title:e.name,onClick:function onClick(){return U(e)}},n):null}))})]})]})},D=function User(){var e=(0,d.useState)("pre"),n=(0,r.Z)(e,2),i=n[0],a=(n[1],(0,d.useState)("Version: dev 73a4328\n 2023/5/15 17:19:23")),o=(0,r.Z)(a,2),t=o[0];o[1];return(0,w.jsxs)(s.G7,{className:x.main,children:[(0,w.jsx)(I,{}),(0,w.jsx)(s.G7,{style:{fontSize:"26rpx",color:"#707070",textAlign:"center"},children:t}),"production"!==i&&(0,w.jsx)(s.G7,{style:{fontSize:"26rpx",color:"#707070",textAlign:"center"},children:k._n})]})};Page((0,a.createPageConfig)(D,"pages/user/index",{root:{cn:[]}},{navigationBarTitleText:"我的",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#4581FF",backgroundColor:"#4581FF",backgroundColorTop:"#4581FF",enablePullDownRefresh:!0}||{}))}},function(e){e.O(0,[2107,1216,8592],(function(){return n=6052,e(e.s=n);var n}));e.O()}]); \ No newline at end of file