"use strict";require("./sub-common/c3cce4a22c39194d23d0153ab7e918d8.js");require("./sub-common/f53b1679f25c7637ce43fb0068d1509b.js");require("./sub-common/7573a601b2e7601c00ed52c4c484ac13.js");(wx.webpackJsonp=wx.webpackJsonp||[]).push([[363],{7966:function(e,n,t){var a=t(2180),i=t(4165),r=t(5861),s=t(9439),l=t(1515),c=t(2954),o=t.n(c),u=t(7294),d="index-module__company_item___EzAly",h="index-module__desc___XvkZy",g="index-module__company_icon___fyH9u",f=t(6028),v=t(3271),x=t(5893),companyItem=function(e){var n=e.value,t=e.onClick;return(0,x.jsxs)(l.G7,{className:d,onClick:function onClick(){return null==t?void 0:t(n)},children:[(0,x.jsx)(v.Z,{name:n.title}),(0,x.jsxs)(l.G7,{className:h,children:[(0,x.jsx)(l.xv,{children:null==n?void 0:n.title}),(0,x.jsx)(l.xv,{children:"".concat(null==n?void 0:n.purchaser_name," ").concat(null==n?void 0:n.phone)})]}),(0,x.jsx)(l.G7,{className:g,children:(0,x.jsx)(f.Z,{name:"icon-xiala",size:43})})]})},p=t(8247),m=(t(1115),t(9498)),_=function WeightList(e){var n,t,a,d;(0,m.av)("pages/weightList/index");var h=(0,p.TE)(),g=h.fetchData,f=h.state,v=function getData(){g()};(0,u.useEffect)((function(){return o().eventCenter.on("weightList:refresh",v),v(),function(){o().eventCenter.off("weightList:refresh",v)}}),[]);var _=(0,u.useState)(!1),w=(0,s.Z)(_,2),j=w[0],C=w[1],k=function(){var e=(0,r.Z)((0,i.Z)().mark((function _callee(){return(0,i.Z)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),e.next=3,g();case 3:C(!1);case 4:case"end":return e.stop()}}),_callee)})));return function handleRefresh(){return e.apply(this,arguments)}}(),y=(Array.from({length:0}),(0,p.ob)().fetchData,function onSelect(e){var n=(0,c.getCurrentPages)();n[n.length-1].getOpenerEventChannel().emit("getSelectCompanyEvent",e),o().navigateBack()});return(0,x.jsxs)(l.G7,{className:"weight-list-scroll-view",children:[(0,x.jsx)(l.pf,{scrollY:!0,refresherEnabled:!0,enhanced:!0,refresherTriggered:j,onRefresherRefresh:k,children:(null==f||null===(n=f.data)||void 0===n||null===(t=n.list)||void 0===t?void 0:t.length)>0?null==f||null===(a=f.data)||void 0===a||null===(d=a.list)||void 0===d?void 0:d.map((function(e){return(0,x.jsx)(l.G7,{className:"weight-list-con",children:(0,x.jsx)(companyItem,{value:e,onClick:y})},e.id)})):(0,x.jsxs)(l.G7,{className:"weight-list-no-data",children:[(0,x.jsx)(l.G7,{children:"您末添加任何码单信息"}),"正在使用平台默认码单信息"]})}),(0,x.jsx)(l.C3,{url:"/pages/weightListAdd/index?type=add",hoverClass:"none",className:"add-weight-list",children:"新建抬头"})]})},w=function weightListManager(){return(0,x.jsx)(l.G7,{className:"weight-list-manager",children:(0,x.jsx)(_,{})})};w.enableShareAppMessage=!0;Page((0,a.createPageConfig)(w,"pages/weightList/index",{root:{cn:[]}},{navigationBarTitleText:"码单管理",enableShareAppMessage:!0,backgroundColor:"#F7F7F7FF"}||{}))}},function(e){e.O(0,[2535,1376,3786,5282,2107,1216,8592],(function(){return n=7966,e(e.s=n);var n}));e.O()}]);