"use strict";require("./sub-common/c3cce4a22c39194d23d0153ab7e918d8.js");require("./sub-common/f53b1679f25c7637ce43fb0068d1509b.js");require("./sub-common/7573a601b2e7601c00ed52c4c484ac13.js");/*! For license information please see index.js.LICENSE.txt */ (wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/weightList/index"],{"./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/weightList/index.tsx":function(e,n,t){var s=t("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),a=t("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),i=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),o=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),c=t("./node_modules/@tarojs/taro/index.js"),r=t.n(c),l=t("./node_modules/react/cjs/react.production.min.js"),d=t("./src/pages/weightList/components/companyItem/index.tsx"),u=t("./src/api/weightList.ts"),m=(t("./src/common/common.ts"),t("./src/use/useCommon.ts")),p=t("./node_modules/react/cjs/react-jsx-runtime.production.min.js"),f=function WeightList(e){var n,t,f,h;(0,m.useBuriedDataPoint)("pages/weightList/index");var g=(0,u.weightListApi)(),_=g.fetchData,x=g.state,w=function getData(){_()};(0,l.useEffect)((function(){return r().eventCenter.on("weightList:refresh",w),w(),function(){r().eventCenter.off("weightList:refresh",w)}}),[]);var j=(0,l.useState)(!1),v=(0,i.default)(j,2),b=v[0],y=v[1],L=function(){var e=(0,a.default)((0,s.default)().mark((function _callee(){return(0,s.default)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return y(!0),e.next=3,_();case 3:y(!1);case 4:case"end":return e.stop()}}),_callee)})));return function handleRefresh(){return e.apply(this,arguments)}}(),C=(Array.from({length:0}),(0,u.weightDeleteApi)().fetchData,function onSelect(e){var n=(0,c.getCurrentPages)();n[n.length-1].getOpenerEventChannel().emit("getSelectCompanyEvent",e),r().navigateBack()});return(0,p.jsxs)(o.View,{className:"weight-list-scroll-view",children:[(0,p.jsx)(o.ScrollView,{scrollY:!0,refresherEnabled:!0,enhanced:!0,refresherTriggered:b,onRefresherRefresh:L,children:(null==x||null===(n=x.data)||void 0===n||null===(t=n.list)||void 0===t?void 0:t.length)>0?null==x||null===(f=x.data)||void 0===f||null===(h=f.list)||void 0===h?void 0:h.map((function(e){return(0,p.jsx)(o.View,{className:"weight-list-con",children:(0,p.jsx)(d.default,{value:e,onClick:C})},e.id)})):(0,p.jsxs)(o.View,{className:"weight-list-no-data",children:[(0,p.jsx)(o.View,{children:"您末添加任何码单信息"}),"正在使用平台默认码单信息"]})}),(0,p.jsx)(o.Navigator,{url:"/pages/weightListAdd/index?type=add",hoverClass:"none",className:"add-weight-list",children:"新建抬头"})]})};n.default=function weightListManager(){return(0,p.jsx)(o.View,{className:"weight-list-manager",children:(0,p.jsx)(f,{})})}},"./src/pages/weightList/components/companyItem/index.tsx":function(e,n,t){var s=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=t("./src/pages/weightList/components/companyItem/index.module.scss"),i=t("./src/components/iconfont/iconfont.tsx"),o=t("./src/components/nameLabel/index.tsx"),c=t("./node_modules/react/cjs/react-jsx-runtime.production.min.js");n.default=function(e){var n=e.value,t=e.onClick;return(0,c.jsxs)(s.View,{className:a.default.company_item,onClick:function onClick(){return null==t?void 0:t(n)},children:[(0,c.jsx)(o.default,{name:n.title}),(0,c.jsxs)(s.View,{className:a.default.desc,children:[(0,c.jsx)(s.Text,{children:null==n?void 0:n.title}),(0,c.jsx)(s.Text,{children:"".concat(null==n?void 0:n.purchaser_name," ").concat(null==n?void 0:n.phone)})]}),(0,c.jsx)(s.View,{className:a.default.company_icon,children:(0,c.jsx)(i.default,{name:"icon-xiala",size:43})})]})}},"./src/pages/weightList/index.tsx":function(e,n,t){var s=t("./node_modules/@tarojs/runtime/dist/runtime.esm.js"),a=t("./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/weightList/index.tsx");a.default.enableShareAppMessage=!0;Page((0,s.createPageConfig)(a.default,"pages/weightList/index",{root:{cn:[]}},{navigationBarTitleText:"码单管理",enableShareAppMessage:!0,backgroundColor:"#F7F7F7FF"}||{})),a.default},"./src/pages/weightList/components/companyItem/index.module.scss":function(e,n){n.default={common_safe_area_y:"index-module__common_safe_area_y___AmEEx",hoverClass:"index-module__hoverClass___p_5dE","full-100":"index-module__full-100___PzSfj",company_item:"index-module__company_item___EzAly",desc:"index-module__desc___XvkZy",company_icon:"index-module__company_icon___fyH9u"}}},function(e){e.O(0,["sub-common/c3cce4a22c39194d23d0153ab7e918d8","sub-common/9326b70cbae39d6c4822800c44325b27","sub-common/f53b1679f25c7637ce43fb0068d1509b","sub-common/7573a601b2e7601c00ed52c4c484ac13","taro","vendors","common"],(function(){return n="./src/pages/weightList/index.tsx",e(e.s=n);var n}));e.O()}]);