|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[816],{53571:function(Te,K,i){"use strict";i.r(K),i.d(K,{default:function(){return De}});var f=i(57338),C=i(273),j=i(71194),N=i(50146),V=i(43358),T=i(34041),z=i(57663),$=i(71577),m=i(2824),p=i(39428),J=i(34792),b=i(48086),S=i(3182),X=i(49101),O=i(90631),v=i(67294),W=i(78009),q=i(85224),M=i(53779),_=i(12826),H=i(9715),D=i(55843),Q=i(47673),G=i(4107),r=i(85893),ee=function(g){var h=T.Z.Option,Z=T.Z.OptGroup;return(0,r.jsx)(N.Z,{title:g.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:g.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){g.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(D.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,initialValues:g.values,onFinish:g.onFinish,children:[(0,r.jsx)(D.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(G.Z,{})}),(0,r.jsx)(D.Z.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",rules:[{required:!0}],children:(0,r.jsx)(G.Z,{})}),(0,r.jsx)(D.Z.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:(0,r.jsx)(G.Z,{})}),(0,r.jsx)(D.Z.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:(0,r.jsx)(G.Z,{})}),(0,r.jsx)(D.Z.Item,{name:"imgUrl",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",rules:[{required:!0}],children:(0,r.jsx)(G.Z,{})}),(0,r.jsx)(D.Z.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!0}],children:(0,r.jsx)(G.Z,{})}),(0,r.jsx)(D.Z.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u7C7B\u578B",rules:[{required:!0}],children:(0,r.jsx)(T.Z,{children:g.goodsTypaData==null?"":g.goodsTypaData.map(function(B,s){return(0,r.jsx)(T.Z.Option,{index:s,value:B.id,children:B.goodsType_Name},B.id)})})}),(0,r.jsx)(D.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:g.values.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,r.jsx)(T.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(Z,{children:[(0,r.jsx)(T.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,r.jsx)(T.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,r.jsx)(D.Z.Item,{children:(0,r.jsx)($.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},L=ee,k=i(48971),w=i(4795),u=function(){var F=(0,S.Z)((0,p.Z)().mark(function g(h){var Z;return(0,p.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return console.log("fields",h),Z=b.default.loading("\u6B63\u5728\u6DFB\u52A0"),h.createBy="admin",s.prev=3,s.next=6,(0,w.Rq)(JSON.stringify(h)).then(function(E){E.data?b.default.success("\u6DFB\u52A0\u6210\u529F"):b.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 6:return Z(),s.abrupt("return",!0);case 10:return s.prev=10,s.t0=s.catch(3),Z(),b.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 15:case"end":return s.stop()}},g,null,[[3,10]])}));return function(h){return F.apply(this,arguments)}}(),d=function(){var F=(0,S.Z)((0,p.Z)().mark(function g(h){var Z;return(0,p.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return Z=b.default.loading("\u6B63\u5728\u914D\u7F6E"),s.prev=1,s.next=4,(0,w.e3)({id:h.id,code:h.code,name:h.name,price:h.price,imgUrl:h.imgUrl,remark:h.remark,status:h.status,goodsTypeId:h.goodsTypeId}).then(function(E){E.data?b.default.success("\u914D\u7F6E\u6210\u529F"):b.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 4:return s.abrupt("return",!0);case 7:return s.prev=7,s.t0=s.catch(1),Z(),s.abrupt("return",!1);case 11:case"end":return s.stop()}},g,null,[[1,7]])}));return function(h){return F.apply(this,arguments)}}(),y=function(){var F=(0,S.Z)((0,p.Z)().mark(function g(h){var Z;return(0,p.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(Z=b.default.loading("\u6B63\u5728\u5220\u9664"),h){s.next=3;break}return s.abrupt("return",!0);case 3:return s.prev=3,s.next=6,(0,w.yR)(h.map(function(E){return E.id})).then(function(E){Z(),E.data?b.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):b.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")});case 6:return s.abrupt("return",!0);case 9:return s.prev=9,s.t0=s.catch(3),Z(),b.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),s.abrupt("return",!1);case 14:case"end":return s.stop()}},g,null,[[3,9]])}));return function(h){return F.apply(this,arguments)}}(),t=function(){var g=(0,v.useState)([]),h=(0,m.Z)(g,2),Z=h[0],B=h[1],s=(0,v.useState)(!1),E=(0,m.Z)(s,2),xe=E[0],ie=E[1],Ee=(0,v.useState)(!1),le=(0,m.Z)(Ee,2),Be=le[0],Ge=le[1],R=(0,v.useRef)(),ke=(0,v.useState)(),oe=(0,m.Z)(ke,2),x=oe[0],te=oe[1],Fe=(0,v.useState)([]),de=(0,m.Z)(Fe,2),U=de[0],ce=de[1],Re=(0,v.useState)(),pe=(0,m.Z)(Re,2),ut=pe[0],st=pe[1],Ae=(0,v.useState)(),he=(0,m.Z)(Ae,2),it=he[0],lt=he[1],$e=(0,v.useState)(),fe=(0,m.Z)($e,2),ot=fe[0],Oe=fe[1],Pe=(0,v.useState)(),me=(0,m.Z)(Pe,2),dt=me[0],ct=me[1],We=(0,v.useState)([]),ve=(0,m.Z)(We,2),Me=ve[0],Le=ve[1],Ue=(0,v.useState)([]),ge=(0,m.Z)(Ue,2),Ye=ge[0],ye=ge[1],Ke=(0,v.useState)(""),Ze=(0,m.Z)(Ke,2),Ne=Ze[0],re=Ze[1],Ve=(0,v.useState)(""),Se=(0,m.Z)(Ve,2),ze=Se[0],ae=Se[1],Je=(0,v.useState)([]),be=(0,m.Z)(Je,2),He=be[0],ne=be[1],Qe=(0,v.useState)(!1),we=(0,m.Z)(Qe,2),Xe=we[0],ue=we[1],qe=(0,v.useState)(""),Ce=(0,m.Z)(qe,2),_e=Ce[0],se=Ce[1];(0,v.useEffect)(function(){function o(){(0,w.GT)({current:1,pageSize:1e7}).then(function(e){var a=e.data.data;Oe(a)})}o();function n(){(0,w.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}),B(a)})}n(),et()},[]);var et=function(){(0,w._v)().then(function(n){var e=n.data;if(n.succeeded){var a=[];e.forEach(function(l){a.push({value:l.id,label:l.deviceName})}),Le(a)}})},tt=function(n){(0,w.KM)(n).then(function(e){var a=e.data;if(e.succeeded){var l=[],c=[];a.forEach(function(I){l.push({value:I.id,label:I.name}),c.push(I.id)}),se(c),ye(l)}})},Ie=[{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(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u4F1A\u5458\u4EF7",dataIndex:"vipPrice",hideInForm:!0,renderText:function(n){return"".concat(n,"\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:Z},{title:"\u5546\u54C1\u5C5E\u6027",dataIndex:"goodsAttribute",hideInForm:!0,valueEnum:{0:{text:"\u5355\u54C1"},1:{text:"\u5957\u9910"}}},{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:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,e){return[(0,r.jsx)("a",{type:"primary",onClick:function(){k.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!1,values:e,tabStatus:"basis"}})},children:"\u66F4\u65B0"},"primary"),(0,r.jsx)("a",{type:"primary",onClick:function(){k.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!0,values:e,tabStatus:"basis"}})},children:"\u590D\u5236"},"primary"),(0,r.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,r.jsx)("a",{onClick:function(){e.status="1",d(e),R.current.reload()},children:"\u505C\u7528"},"link"),(e.status===1||e.status===2)&&(0,r.jsx)("a",{onClick:function(){e.status="0",d(e),R.current.reload()},children:"\u542F\u7528"},"warn"),(0,r.jsx)("a",{type:"primary",onClick:function(){k.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!1,values:e,tabStatus:"basis"}})},children:"\u5957\u9910\u914D\u7F6E"},"primary")]}}],rt=function(n,e){ne(n)},at=function(n,e){re(e==null?void 0:e.value),ae(e==null?void 0:e.label),tt(e==null?void 0:e.value)},nt=function(){var o=(0,S.Z)((0,p.Z)().mark(function n(){var e,a,l,c,I,Y,P,je;return(0,p.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(ze!=""){A.next=3;break}return b.default.error("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8BBE\u5907\uFF01"),A.abrupt("return");case 3:return A.next=5,(0,w.S)({goodsId:He,deviceId:Ne,ids:_e});case 5:for(e=A.sent,a=atob(e),l=new Uint8Array(a.length),c=0;c<a.length;c++)l[c]=a.charCodeAt(c);I=new Blob([l],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),Y=window.URL.createObjectURL(I),P=document.createElement("a"),je="\u5546\u54C1.xlsx",P.href=Y,P.setAttribute("download",je),document.body.appendChild(P),P.click(),document.body.removeChild(P),re(""),ae(""),ne([]),se([]),ue(!1);case 23:case"end":return A.stop()}},n)}));return function(){return o.apply(this,arguments)}}();return(0,r.jsxs)(W.ZP,{children:[(0,r.jsx)(M.ZP,{headerTitle:"\u67E5\u8BE2\u8868\u683C",actionRef:R,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,r.jsxs)($.Z,{type:"primary",onClick:function(){k.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!0,values:null,tabStatus:"basis"}})},children:[(0,r.jsx)(X.Z,{})," \u65B0\u5EFA"]},"primary"),(0,r.jsxs)($.Z,{onClick:(0,S.Z)((0,p.Z)().mark(function n(){return(0,p.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:ue(!0);case 1:case"end":return a.stop()}},n)})),children:[(0,r.jsx)(O.Z,{})," \u4E0B\u8F7D\u5546\u54C1\u5DE5\u827A"]},"primary")]},request:function(){var o=(0,S.Z)((0,p.Z)().mark(function n(e){var a,l;return(0,p.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return a=[],e.goodsTypeId!=null&&(e.goodsTypeId=Z[e.goodsTypeId].goodsTypeId),l=0,I.next=5,(0,w.lO)(e).then(function(Y){a=Y.data.data,l=Y.data.total});case 5:return I.abrupt("return",{data:a,success:!0,total:l});case 6:case"end":return I.stop()}},n)}));return function(n){return o.apply(this,arguments)}}(),columns:Ie,rowSelection:{onChange:function(n,e){ce(e)}}}),(U==null?void 0:U.length)>0&&(0,r.jsx)(q.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:U.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)($.Z,{onClick:(0,S.Z)((0,p.Z)().mark(function o(){var n,e;return(0,p.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,y(U);case 2:ce([]),(n=R.current)===null||n===void 0||(e=n.reloadAndRest)===null||e===void 0||e.call(n);case 4:case"end":return l.stop()}},o)})),children:"\u5220\u9664"})}),(0,r.jsx)(L,{goodsTypaData:Z,onFinish:function(){var o=(0,S.Z)((0,p.Z)().mark(function n(e){var a;return(0,p.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(a=!1,!e.id){c.next=7;break}return c.next=4,d(e);case 4:a=c.sent,c.next=10;break;case 7:return c.next=9,u(e);case 9:a=c.sent;case 10:a&&(ie(!1),te(void 0),R.current&&R.current.reload()),R.current.reload();case 12:case"end":return c.stop()}},n)}));return function(n){return o.apply(this,arguments)}}(),onCancel:function(){ie(!1),te(void 0)},createModalVisible:xe,values:x||{}}),(0,r.jsxs)(N.Z,{title:"\u4E0B\u8F7D\u5546\u54C1\u5DE5\u827A",open:Xe,footer:!1,width:450,maskClosable:!1,destroyOnClose:!0,onCancel:function(){ye([]),re(""),ae(""),ne([]),se(""),ue(!1)},children:[(0,r.jsxs)("div",{style:{marginBottom:10},children:[(0,r.jsxs)("span",{style:{marginRight:10},children:[(0,r.jsx)("span",{style:{color:"red",marginRight:3},children:"*"}),"\u9009\u62E9\u8BBE\u5907\uFF1A"]}),(0,r.jsx)(T.Z,{showSearch:!0,allowClear:!0,style:{width:300,marginRight:10},placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907",optionFilterProp:"children",filterOption:function(n,e){var a;return((a=e==null?void 0:e.label)!==null&&a!==void 0?a:"").includes(n)},filterSort:function(n,e){var a,l;return((a=n==null?void 0:n.label)!==null&&a!==void 0?a:"").toLowerCase().localeCompare(((l=e==null?void 0:e.label)!==null&&l!==void 0?l:"").toLowerCase())},onChange:function(){var o=(0,S.Z)((0,p.Z)().mark(function n(e,a){return(0,p.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:at(e,a);case 1:case"end":return c.stop()}},n)}));return function(n,e){return o.apply(this,arguments)}}(),options:Me,required:!0})]}),(0,r.jsxs)("div",{style:{marginBottom:10},children:[(0,r.jsx)("span",{style:{marginLeft:9,marginRight:10},children:"\u9009\u62E9\u5546\u54C1\uFF1A"}),(0,r.jsx)(T.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(n,e){var a;return((a=e==null?void 0:e.label)!==null&&a!==void 0?a:"").includes(n)},filterSort:function(n,e){var a,l;return((a=n==null?void 0:n.label)!==null&&a!==void 0?a:"").toLowerCase().localeCompare(((l=e==null?void 0:e.label)!==null&&l!==void 0?l:"").toLowerCase())},onChange:function(){var o=(0,S.Z)((0,p.Z)().mark(function n(e,a){return(0,p.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:rt(e,a);case 1:case"end":return c.stop()}},n)}));return function(n,e){return o.apply(this,arguments)}}(),options:Ye})]}),(0,r.jsx)($.Z,{icon:(0,r.jsx)(O.Z,{}),style:{marginLeft:"22.2%"},onClick:nt,children:"\u4E0B\u8F7D"})]}),(0,r.jsx)(C.Z,{width:600,visible:Be,onClose:function(){te(void 0),Ge(!1)},closable:!1,children:(x==null?void 0:x.name)&&(0,r.jsx)(_.ZP,{column:2,title:x==null?void 0:x.name,request:(0,S.Z)((0,p.Z)().mark(function o(){return(0,p.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{data:x||{}});case 1:case"end":return e.stop()}},o)})),params:{id:x==null?void 0:x.name},columns:Ie})})]})},De=t},4795:function(Te,K,i){"use strict";i.d(K,{lO:function(){return N},GT:function(){return T},Rq:function(){return b},e3:function(){return X},yR:function(){return v},fA:function(){return q},se:function(){return _},_v:function(){return G},KM:function(){return ee},S:function(){return k}});var f=i(39428),C=i(3182),j=i(48971);function N(u){return V.apply(this,arguments)}function V(){return V=(0,C.Z)((0,f.Z)().mark(function u(d){return(0,f.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,j.WY)("/kitchen/api/goods/goodss",{method:"Post",data:d}));case 1:case"end":return t.stop()}},u)})),V.apply(this,arguments)}function T(u){return z.apply(this,arguments)}function z(){return z=(0,C.Z)((0,f.Z)().mark(function u(d){return(0,f.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,j.WY)("/kitchen/api/bom/getpage",{method:"Post",data:d}));case 1:case"end":return t.stop()}},u)})),z.apply(this,arguments)}function $(u){return m.apply(this,arguments)}function m(){return m=_asyncToGenerator(_regeneratorRuntime().mark(function u(d){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:d}));case 1:case"end":return t.stop()}},u)})),m.apply(this,arguments)}function p(u){return J.apply(this,arguments)}function J(){return J=_asyncToGenerator(_regeneratorRuntime().mark(function u(d){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:d}));case 1:case"end":return t.stop()}},u)})),J.apply(this,arguments)}function b(u){return S.apply(this,arguments)}function S(){return S=(0,C.Z)((0,f.Z)().mark(function u(d){return(0,f.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,j.WY)("/kitchen/api/goods",{method:"POST",data:d}));case 1:case"end":return t.stop()}},u)})),S.apply(this,arguments)}function X(u){return O.apply(this,arguments)}function O(){return O=(0,C.Z)((0,f.Z)().mark(function u(d){return(0,f.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("\u5546\u54C1\u6570\u636E\u4FEE\u6539",d),t.abrupt("return",(0,j.WY)("/kitchen/api/goods",{method:"PUT",data:d}));case 2:case"end":return t.stop()}},u)})),O.apply(this,arguments)}function v(u){return W.apply(this,arguments)}function W(){return W=(0,C.Z)((0,f.Z)().mark(function u(d){return(0,f.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,j.WY)("/kitchen/api/goods",{method:"DELETE",data:d}));case 1:case"end":return t.stop()}},u)})),W.apply(this,arguments)}function q(u){return M.apply(this,arguments)}function M(){return M=(0,C.Z)((0,f.Z)().mark(function u(d){return(0,f.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,j.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:d}));case 1:case"end":return t.stop()}},u)})),M.apply(this,arguments)}function _(u){return H.apply(this,arguments)}function H(){return H=(0,C.Z)((0,f.Z)().mark(function u(d){return(0,f.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,j.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:d}));case 1:case"end":return t.stop()}},u)})),H.apply(this,arguments)}function D(u){return Q.apply(this,arguments)}function Q(){return Q=_asyncToGenerator(_regeneratorRuntime().mark(function u(d){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()}},u)})),Q.apply(this,arguments)}function G(){return r.apply(this,arguments)}function r(){return r=(0,C.Z)((0,f.Z)().mark(function u(){return(0,f.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",(0,j.WY)("/kitchen/api/goodstechnology/getDevice",{method:"Get"}));case 1:case"end":return y.stop()}},u)})),r.apply(this,arguments)}function ee(u){return L.apply(this,arguments)}function L(){return L=(0,C.Z)((0,f.Z)().mark(function u(d){return(0,f.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,j.WY)("/kitchen/api/goodes/GetGoodsWithDeviceId?deviceId="+d,{method:"Get"}));case 1:case"end":return t.stop()}},u)})),L.apply(this,arguments)}function k(u){return w.apply(this,arguments)}function w(){return w=(0,C.Z)((0,f.Z)().mark(function u(d){return(0,f.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,j.WY)("/kitchen/api/goodes/GoodsSimpleExport",{method:"POST",data:d}));case 1:case"end":return t.stop()}},u)})),w.apply(this,arguments)}}}]);
|