|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[816],{53571:function(Fe,U,u){"use strict";u.r(U),u.d(U,{default:function(){return Ge}});var h=u(20228),S=u(11382),I=u(57338),J=u(273),L=u(71194),H=u(50146),K=u(43358),Q=u(34041),G=u(11849),Be=u(57663),j=u(71577),ne=u(43185),R=u(93009),f=u(2824),c=u(39428),ue=u(34792),Z=u(48086),x=u(3182),$=u(49101),Y=u(84391),_=u(90631),m=u(67294),O=u(78009),se=u(85224),P=u(16894),le=u(12826),N=u(9715),oe=u(47673),s=u(85893),ie=function(g){var v=_Select.Option,C=_Select.OptGroup;return _jsx(_Modal,{title:g.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:g.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,closable:!0,onCancel:function(){g.onCancel()},destroyOnClose:!0,children:_jsxs(_Form,{labelCol:{span:4},layout:"horizontal",preserve:!1,initialValues:g.values,onFinish:g.onFinish,children:[_jsx(_Form.Item,{name:"id",hidden:!0,children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",hidden:!0,rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"imgUrl",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"foreignKeyRe",label:"\u5173\u8054\u5916\u952E",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u7C7B\u578B",rules:[{required:!0}],children:_jsx(_Select,{children:g.goodsTypaData==null?"":g.goodsTypaData.map(function(D,d){return _jsx(_Select.Option,{index:d,value:D.id,children:D.goodsType_Name},D.id)})})}),_jsx(_Form.Item,{name:"status",label:"\u72B6\u6001",defaultValue:g.values.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:_jsx(_Select,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:_jsxs(C,{children:[_jsx(_Select.Option,{value:0,children:"\u6B63\u5E38"}),_jsx(_Select.Option,{value:1,children:"\u505C\u7528"})]})})}),_jsx(_Form.Item,{children:_jsx(_Button,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},V=null,k=u(48971),b=u(4795),n=null,o=function(){var A=(0,x.Z)((0,c.Z)().mark(function g(v){var C;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return C=Z.default.loading("\u6B63\u5728\u914D\u7F6E"),d.prev=1,d.next=4,(0,b.e3)({id:v.id,code:v.code,name:v.name,price:v.price,imgUrl:v.imgUrl,remark:v.remark,status:v.status,goodsTypeId:v.goodsTypeId}).then(function(F){F.data?Z.default.success("\u914D\u7F6E\u6210\u529F"):Z.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 4:return d.abrupt("return",!0);case 7:return d.prev=7,d.t0=d.catch(1),C(),d.abrupt("return",!1);case 11:case"end":return d.stop()}},g,null,[[1,7]])}));return function(v){return A.apply(this,arguments)}}(),p=function(){var A=(0,x.Z)((0,c.Z)().mark(function g(v){var C;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(C=Z.default.loading("\u6B63\u5728\u5220\u9664"),v){d.next=3;break}return d.abrupt("return",!0);case 3:return d.prev=3,d.next=6,(0,b.yR)(v.map(function(F){return F.id})).then(function(F){C(),F.data?Z.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):Z.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")});case 6:return d.abrupt("return",!0);case 9:return d.prev=9,d.t0=d.catch(3),C(),Z.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),d.abrupt("return",!1);case 14:case"end":return d.stop()}},g,null,[[3,9]])}));return function(v){return A.apply(this,arguments)}}(),t=function(){var g=(0,m.useState)([]),v=(0,f.Z)(g,2),C=v[0],D=v[1],d=(0,m.useState)(!1),F=(0,f.Z)(d,2),pt=F[0],ht=F[1],Re=(0,m.useState)(!1),de=(0,f.Z)(Re,2),_e=de[0],ke=de[1],z=(0,m.useRef)(),Ae=(0,m.useState)(),ce=(0,f.Z)(Ae,2),T=ce[0],$e=ce[1],Oe=(0,m.useState)([]),pe=(0,f.Z)(Oe,2),M=pe[0],he=pe[1],Pe=(0,m.useState)(),me=(0,f.Z)(Pe,2),mt=me[0],ft=me[1],Me=(0,m.useState)(),fe=(0,f.Z)(Me,2),vt=fe[0],gt=fe[1],We=(0,m.useState)(),ve=(0,f.Z)(We,2),yt=ve[0],Ue=ve[1],Le=(0,m.useState)(),ge=(0,f.Z)(Le,2),Zt=ge[0],St=ge[1],Ke=(0,m.useState)([]),ye=(0,f.Z)(Ke,2),Ye=ye[0],Ne=ye[1],Ve=(0,m.useState)([]),Ze=(0,f.Z)(Ve,2),ze=Ze[0],Se=Ze[1],Je=(0,m.useState)(""),xe=(0,f.Z)(Je,2),He=xe[0],X=xe[1],Qe=(0,m.useState)(""),be=(0,f.Z)(Qe,2),Xe=be[0],q=be[1],qe=(0,m.useState)([]),Ce=(0,f.Z)(qe,2),we=Ce[0],ee=Ce[1],et=(0,m.useState)(!1),Ie=(0,f.Z)(et,2),tt=Ie[0],te=Ie[1],rt=(0,m.useState)(""),je=(0,f.Z)(rt,2),at=je[0],re=je[1],nt=(0,m.useState)(!1),Te=(0,f.Z)(nt,2),ut=Te[0],ae=Te[1];(0,m.useEffect)(function(){function i(){(0,b.GT)({current:1,pageSize:1e7}).then(function(e){var a=e.data.data;Ue(a)})}i();function r(){(0,b.fA)({current:1,pageSize:1e3}).then(function(e){var a=e.data.data;a.forEach(function(l){l.text=l.goodsType_Name,l.goodsTypeId=l.id}),D(a)})}r(),st()},[]);var st=function(){(0,b._v)().then(function(r){var e=r.data;if(r.succeeded){var a=[];e.forEach(function(l){a.push({value:l.id,label:l.deviceName})}),Ne(a)}})},lt=function(r){(0,b.KM)(r).then(function(e){var a=e.data;if(e.succeeded){var l=[],y=[];a.forEach(function(w){l.push({value:w.id,label:w.name}),y.push(w.id)}),re(y),Se(l)}})},Ee=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u56FE\u7247\u5730\u5740",dataIndex:"imgUrl",hideInTable:!0,hideInSearch:!0},{title:"\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u57FA\u7840\u4EF7\u683C",dataIndex:"price",hideInForm:!0,renderText:function(r){return"".concat(r,"\xA5")},hideInSearch:!0},{title:"\u4F1A\u5458\u4EF7",dataIndex:"vipPrice",hideInForm:!0,renderText:function(r){return"".concat(r,"\xA5")},hideInSearch:!0},{title:"\u5546\u54C1\u5C0F\u7C7B",dataIndex:"goodsTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5546\u54C1\u7C7B\u578B",dataIndex:"goodsTypeId",hideInForm:!0,hideInTable:!0,valueEnum:C},{title:"\u5546\u54C1\u5C5E\u6027",dataIndex:"goodsAttribute",hideInForm:!0,valueEnum:{0:{text:"\u5355\u54C1"},1:{text:"\u5957\u9910"}}},{title:"\u5173\u8054\u5916\u952E",dataIndex:"foreignKeyRe",valueType:"textarea"},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u5907\u6CE8",dataIndex:"remark",ellipsis:!0,tip:"\u6807\u9898\u8FC7\u957F\u4F1A\u81EA\u52A8\u6536\u7F29"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(r,e){return[(0,s.jsx)("a",{type:"primary",onClick:function(){k.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!1,values:e,tabStatus:"basis"}})},children:"\u66F4\u65B0"},"primary"),(0,s.jsx)("a",{type:"primary",onClick:function(){k.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!1,values:e,tabStatus:"goodsbom"}})},children:"\u5546\u54C1\u914D\u65B9\u8BBE\u7F6E"},"primary"),e.status===0&&(0,s.jsx)("a",{onClick:function(){e.status="1",o(e),z.current.reload()},children:"\u505C\u7528"},"link"),(e.status===1||e.status===2)&&(0,s.jsx)("a",{onClick:function(){e.status="0",o(e),z.current.reload()},children:"\u542F\u7528"},"warn"),(0,s.jsx)("a",{onClick:function(){k.m8.push({pathname:"/bom/cookingentry",query:{isAdd:!1,values:e}})},children:"\u5C0F\u7092\u914D\u7F6E"},"config")]}}],ot=function(r,e){ee(r)},it=function(r,e){X(e==null?void 0:e.value),q(e==null?void 0:e.label),lt(e==null?void 0:e.value)},dt=function(){var i=(0,x.Z)((0,c.Z)().mark(function r(){var e,a,l,y,w,W,E,De;return(0,c.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(Xe!=""){B.next=3;break}return Z.default.error("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8BBE\u5907\uFF01"),B.abrupt("return");case 3:if(we!=""){B.next=6;break}return Z.default.error("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u5546\u54C1\uFF01"),B.abrupt("return");case 6:return B.next=8,(0,b.S)({goodsId:we,deviceId:He,ids:at});case 8:for(e=B.sent,a=atob(e),l=new Uint8Array(a.length),y=0;y<a.length;y++)l[y]=a.charCodeAt(y);w=new Blob([l],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),W=window.URL.createObjectURL(w),E=document.createElement("a"),De="\u5546\u54C1.xlsx",E.href=W,E.setAttribute("download",De),document.body.appendChild(E),E.click(),document.body.removeChild(E),X(""),q(""),ee([]),re([]),te(!1);case 26:case"end":return B.stop()}},r)}));return function(){return i.apply(this,arguments)}}(),ct={beforeUpload:function(r){return ae(!0),r.type!=="application/vnd.ms-excel"&&r.type!=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"&&Z.default.error("".concat(r.name," \u4E0D\u662F exelce \u6587\u4EF6")),r.type=="application/vnd.ms-excel"||r.type=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?!0:R.Z.LIST_IGNORE},name:"file",action:"/kitchen/api/goodes/ExportGood",headers:{Authorization:"Bearer "+localStorage.getItem("token")},onChange:function(r){r.file.status!=="uploading"&&console.log(r.file,r.fileList),r.file.status==="done"?(ae(!1),Z.default.success("".concat(r.file.name," file uploaded successfully"))):r.file.status==="error"&&(ae(!1),Z.default.error("".concat(r.file.name,":").concat(r.file.response," ")))}};return(0,s.jsx)(O.ZP,{children:(0,s.jsxs)(S.Z,{spinning:ut,tip:"\u4E0A\u4F20\u4E2D...",children:[(0,s.jsx)(P.ZP,{headerTitle:"",actionRef:z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,s.jsxs)(j.Z,{type:"primary",onClick:function(){k.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!0,values:null,tabStatus:"basis"}})},children:[(0,s.jsx)($.Z,{})," \u65B0\u5EFA"]},"primary"),(0,s.jsxs)(j.Z,{onClick:(0,x.Z)((0,c.Z)().mark(function r(){var e;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:e=document.createElement("a"),e.href="https://hbl-test-1305371387.cos.ap-chengdu.myqcloud.com//Franchisee/goods/133463060115739076.xlsx",e.click();case 3:case"end":return l.stop()}},r)})),children:[(0,s.jsx)(Y.Z,{})," \u4E0B\u8F7D\u5546\u54C1\u5BFC\u5165\u6A21\u677F"]},"primary"),(0,s.jsx)(R.Z,(0,G.Z)((0,G.Z)({},ct),{},{showUploadList:!1,children:(0,s.jsx)(j.Z,{icon:(0,s.jsx)(Y.Z,{}),children:"\u5BFC\u5165\u5546\u54C1"})})),(0,s.jsxs)(j.Z,{onClick:(0,x.Z)((0,c.Z)().mark(function r(){return(0,c.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:te(!0);case 1:case"end":return a.stop()}},r)})),children:[(0,s.jsx)(_.Z,{})," \u4E0B\u8F7D\u5546\u54C1\u5DE5\u827A"]},"primary")]},request:function(){var i=(0,x.Z)((0,c.Z)().mark(function r(e){var a,l;return(0,c.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return a=[],e.goodsTypeId!=null&&(e.goodsTypeId=C[e.goodsTypeId].goodsTypeId),l=0,w.next=5,(0,b.lO)(e).then(function(W){a=W.data.data,console.log(a),a.forEach(function(E){E.defaultMate!=null&&(E.defaultMate=E.defaultMate.split(","))}),console.log(a),l=W.data.total});case 5:return w.abrupt("return",{data:a,success:!0,total:l});case 6:case"end":return w.stop()}},r)}));return function(r){return i.apply(this,arguments)}}(),columns:Ee,rowSelection:{onChange:function(r,e){he(e)}}}),(M==null?void 0:M.length)>0&&(0,s.jsx)(se.Z,{extra:(0,s.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,s.jsx)("a",{style:{fontWeight:600},children:M.length})," ","\u9879 \xA0\xA0"]}),children:(0,s.jsx)(j.Z,{onClick:(0,x.Z)((0,c.Z)().mark(function i(){var r,e;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,p(M);case 2:he([]),(r=z.current)===null||r===void 0||(e=r.reloadAndRest)===null||e===void 0||e.call(r);case 4:case"end":return l.stop()}},i)})),children:"\u5220\u9664"})}),(0,s.jsxs)(H.Z,{title:"\u4E0B\u8F7D\u5546\u54C1\u5DE5\u827A",open:tt,footer:!1,width:450,maskClosable:!1,destroyOnClose:!0,onCancel:function(){Se([]),X(""),q(""),ee([]),re(""),te(!1)},children:[(0,s.jsxs)("div",{style:{marginBottom:10},children:[(0,s.jsxs)("span",{style:{marginRight:10},children:[(0,s.jsx)("span",{style:{color:"red",marginRight:3},children:"*"}),"\u9009\u62E9\u8BBE\u5907\uFF1A"]}),(0,s.jsx)(Q.Z,{showSearch:!0,allowClear:!0,style:{width:300,marginRight:10},placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907",optionFilterProp:"children",filterOption:function(r,e){var a;return((a=e==null?void 0:e.label)!==null&&a!==void 0?a:"").includes(r)},filterSort:function(r,e){var a,l;return((a=r==null?void 0:r.label)!==null&&a!==void 0?a:"").toLowerCase().localeCompare(((l=e==null?void 0:e.label)!==null&&l!==void 0?l:"").toLowerCase())},onChange:function(){var i=(0,x.Z)((0,c.Z)().mark(function r(e,a){return(0,c.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:it(e,a);case 1:case"end":return y.stop()}},r)}));return function(r,e){return i.apply(this,arguments)}}(),options:Ye,required:!0})]}),(0,s.jsxs)("div",{style:{marginBottom:10},children:[(0,s.jsxs)("span",{style:{marginRight:10},children:[(0,s.jsx)("span",{style:{color:"red",marginRight:3},children:"*"}),"\u9009\u62E9\u5546\u54C1\uFF1A"]}),(0,s.jsx)(Q.Z,{mode:"multiple",showSearch:!0,allowClear:!0,style:{width:300,marginRight:10},placeholder:"\u9009\u62E9\u5546\u54C1\u4E0B\u8F7D\u5DE5\u827A",optionFilterProp:"children",filterOption:function(r,e){var a;return((a=e==null?void 0:e.label)!==null&&a!==void 0?a:"").includes(r)},filterSort:function(r,e){var a,l;return((a=r==null?void 0:r.label)!==null&&a!==void 0?a:"").toLowerCase().localeCompare(((l=e==null?void 0:e.label)!==null&&l!==void 0?l:"").toLowerCase())},onChange:function(){var i=(0,x.Z)((0,c.Z)().mark(function r(e,a){return(0,c.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:ot(e,a);case 1:case"end":return y.stop()}},r)}));return function(r,e){return i.apply(this,arguments)}}(),options:ze})]}),(0,s.jsx)(j.Z,{icon:(0,s.jsx)(_.Z,{}),style:{marginLeft:"22.2%"},onClick:dt,children:"\u4E0B\u8F7D"})]}),(0,s.jsx)(J.Z,{width:600,visible:_e,onClose:function(){$e(void 0),ke(!1)},closable:!1,children:(T==null?void 0:T.name)&&(0,s.jsx)(le.ZP,{column:2,title:T==null?void 0:T.name,request:(0,x.Z)((0,c.Z)().mark(function i(){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{data:T||{}});case 1:case"end":return e.stop()}},i)})),params:{id:T==null?void 0:T.name},columns:Ee})})]})})},Ge=t},4795:function(Fe,U,u){"use strict";u.d(U,{lO:function(){return J},GT:function(){return H},Rq:function(){return ne},e3:function(){return f},yR:function(){return ue},fA:function(){return x},se:function(){return Y},_v:function(){return oe},KM:function(){return ie},S:function(){return k}});var h=u(39428),S=u(3182),I=u(48971);function J(n){return L.apply(this,arguments)}function L(){return L=(0,S.Z)((0,h.Z)().mark(function n(o){return(0,h.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,I.WY)("/kitchen/api/goods/goodss",{method:"Post",data:o}));case 1:case"end":return t.stop()}},n)})),L.apply(this,arguments)}function H(n){return K.apply(this,arguments)}function K(){return K=(0,S.Z)((0,h.Z)().mark(function n(o){return(0,h.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,I.WY)("/kitchen/api/bom/getpage",{method:"Post",data:o}));case 1:case"end":return t.stop()}},n)})),K.apply(this,arguments)}function Q(n){return G.apply(this,arguments)}function G(){return G=_asyncToGenerator(_regeneratorRuntime().mark(function n(o){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:o}));case 1:case"end":return t.stop()}},n)})),G.apply(this,arguments)}function Be(n){return j.apply(this,arguments)}function j(){return j=_asyncToGenerator(_regeneratorRuntime().mark(function n(o){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/kitchen/api/GoodsBom/getBomInfo",{method:"Post",data:o}));case 1:case"end":return t.stop()}},n)})),j.apply(this,arguments)}function ne(n){return R.apply(this,arguments)}function R(){return R=(0,S.Z)((0,h.Z)().mark(function n(o){return(0,h.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,I.WY)("/kitchen/api/goods",{method:"POST",data:o}));case 1:case"end":return t.stop()}},n)})),R.apply(this,arguments)}function f(n){return c.apply(this,arguments)}function c(){return c=(0,S.Z)((0,h.Z)().mark(function n(o){return(0,h.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("\u5546\u54C1\u6570\u636E\u4FEE\u6539",o),t.abrupt("return",(0,I.WY)("/kitchen/api/goods",{method:"PUT",data:o}));case 2:case"end":return t.stop()}},n)})),c.apply(this,arguments)}function ue(n){return Z.apply(this,arguments)}function Z(){return Z=(0,S.Z)((0,h.Z)().mark(function n(o){return(0,h.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,I.WY)("/kitchen/api/goods",{method:"DELETE",data:o}));case 1:case"end":return t.stop()}},n)})),Z.apply(this,arguments)}function x(n){return $.apply(this,arguments)}function $(){return $=(0,S.Z)((0,h.Z)().mark(function n(o){return(0,h.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,I.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:o}));case 1:case"end":return t.stop()}},n)})),$.apply(this,arguments)}function Y(n){return _.apply(this,arguments)}function _(){return _=(0,S.Z)((0,h.Z)().mark(function n(o){return(0,h.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,I.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:o}));case 1:case"end":return t.stop()}},n)})),_.apply(this,arguments)}function m(n){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function n(o){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/kitchen/api/goodstaste/getlist"));case 1:case"end":return t.stop()}},n)})),O.apply(this,arguments)}function se(n){return P.apply(this,arguments)}function P(){return P=_asyncToGenerator(_regeneratorRuntime().mark(function n(o){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/kitchen//api/goodes/ExportGood",{method:"POST",data:o}));case 1:case"end":return t.stop()}},n)})),P.apply(this,arguments)}function le(){return N.apply(this,arguments)}function N(){return N=_asyncToGenerator(_regeneratorRuntime().mark(function n(){return _regeneratorRuntime().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",request("/kitchen/api/goodes/GoodsTemplateExport",{method:"post",responseType:"blob"}));case 1:case"end":return p.stop()}},n)})),N.apply(this,arguments)}function oe(){return s.apply(this,arguments)}function s(){return s=(0,S.Z)((0,h.Z)().mark(function n(){return(0,h.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",(0,I.WY)("/kitchen/api/goodstechnology/getDevice",{method:"Get"}));case 1:case"end":return p.stop()}},n)})),s.apply(this,arguments)}function ie(n){return V.apply(this,arguments)}function V(){return V=(0,S.Z)((0,h.Z)().mark(function n(o){return(0,h.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,I.WY)("/kitchen/api/goodes/GetGoodsWithDeviceId?deviceId="+o,{method:"Get"}));case 1:case"end":return t.stop()}},n)})),V.apply(this,arguments)}function k(n){return b.apply(this,arguments)}function b(){return b=(0,S.Z)((0,h.Z)().mark(function n(o){return(0,h.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,I.WY)("/kitchen/api/goodes/GoodsSimpleExport",{method:"POST",data:o}));case 1:case"end":return t.stop()}},n)})),b.apply(this,arguments)}}}]);
|