包含后厨 团餐 门店分支
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

p__device__deviceInfo.64ee08bc.async.js 21 KiB

pirms 9 mēnešiem
1
  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7657],{1966:function(Ve,M,l){"use strict";l.r(M),l.d(M,{default:function(){return rr}});var T=l(57663),G=l(71577),a=l(39428),_=l(34792),w=l(48086),f=l(3182),b=l(2824),k=l(49101),y=l(67294),C=l(28790),X=l(85224),$=l(16894),je=l(71194),E=l(50146),Me=l(49111),O=l(19650),Ae=l(48736),B=l(27049),v=l(43358),g=l(34041),A=l(9715),i=l(55843),W=l(47673),q=l(4107),R=l(48971);function Le(r){return ee.apply(this,arguments)}function ee(){return ee=(0,f.Z)((0,a.Z)().mark(function r(t){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,R.WY)("/saasbase/api/device/page",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ee.apply(this,arguments)}function Ye(){return re.apply(this,arguments)}function re(){return re=(0,f.Z)((0,a.Z)().mark(function r(){return(0,a.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,R.WY)("/saasbase/api/product/list",{method:"Get"}));case 1:case"end":return s.stop()}},r)})),re.apply(this,arguments)}function Ue(r){return te.apply(this,arguments)}function te(){return te=(0,f.Z)((0,a.Z)().mark(function r(t){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,R.WY)("/saasbase/api/device/add",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),te.apply(this,arguments)}function gr(r){return ae.apply(this,arguments)}function ae(){return ae=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/api/device/PushDeviceGoods?DeviceId="+t,{method:"Get"}));case 1:case"end":return e.stop()}},r)})),ae.apply(this,arguments)}function Pe(r){return ne.apply(this,arguments)}function ne(){return ne=(0,f.Z)((0,a.Z)().mark(function r(t){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,R.WY)("/saasbase/api/device/update",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ne.apply(this,arguments)}function yr(r){return ue.apply(this,arguments)}function ue(){return ue=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/api/device/CopyDevice",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ue.apply(this,arguments)}function ze(r){return se.apply(this,arguments)}function se(){return se=(0,f.Z)((0,a.Z)().mark(function r(t){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,R.WY)("\u200B\u200B/saasbase/api/device/delete",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),se.apply(this,arguments)}function Ke(){return ie.apply(this,arguments)}function ie(){return ie=(0,f.Z)((0,a.Z)().mark(function r(){return(0,a.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,R.WY)("\u200B/saasbase/api/device/getdevicetypelist",{method:"GET"}));case 1:case"end":return s.stop()}},r)})),ie.apply(this,arguments)}function Ne(r){return ce.apply(this,arguments)}function ce(){return ce=(0,f.Z)((0,a.Z)().mark(function r(t){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,R.WY)("\u200B/saasbase/api/device/adddevicetype",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ce.apply(this,arguments)}function He(){return le.apply(this,arguments)}function le(){return le=(0,f.Z)((0,a.Z)().mark(function r(){return(0,a.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,R.WY)("\u200B/saasbase/api/devicevesion/getdevicevesionlist",{method:"GET"}));case 1:case"end":return s.stop()}},r)})),le.apply(this,arguments)}function Zr(r,t){return oe.apply(this,arguments)}function oe(){return oe=_asyncToGenerator(_regeneratorRuntime().mark(function r(t,s){return _regeneratorRuntime().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",request("/saasbase/api/device/GetDeviceGoods",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return j.stop()}},r)})),oe.apply(this,arguments)}function Sr(r){return de.apply(this,arguments)}function de(){return de=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/api/device/AddDeviceGood",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},r)})),de.apply(this,arguments)}function wr(r){return pe.apply(this,arguments)}function pe(){return pe=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/\u200Bapi/device/GetGoods",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},r)})),pe.apply(this,arguments)}function Dr(r){return he.apply(this,arguments)}function he(){return he=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/\u200Bapi/device/GetByDeviceGoods",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},r)})),he.apply(this,arguments)}function br(r){return fe.apply(this,arguments)}function fe(){return fe=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/api/device/GetDeviceStorePage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),fe.apply(this,arguments)}function Tr(r){return me.apply(this,arguments)}function me(){return me=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/api/device/DelStockAdjust?Id=".concat(t),{method:"DELETE"}));case 1:case"end":return e.stop()}},r)})),me.apply(this,arguments)}function Gr(r){return ve.apply(this,arguments)}function ve(){return ve=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/api/device/AddUpdateDeviceStocAsync",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ve.apply(this,arguments)}function Rr(r){return ge.apply(this,arguments)}function ge(){return ge=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/api/device/AddUpdateDeviceStocAsync",{method:"put",data:t}));case 1:case"end":return e.stop()}},r)})),ge.apply(this,arguments)}function jr(r){return ye.apply(this,arguments)}function ye(){return ye=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/api/deviceconfig/getlocs?Code=".concat(t),{method:"GET"}));case 1:case"end":return e.stop()}},r)})),ye.apply(this,arguments)}function Ar(r){return Ze.apply(this,arguments)}function Ze(){return Ze=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/api/device/GetProductList",{method:"post",data:t}));case 1:case"end":return e.stop()}},r)})),Ze.apply(this,arguments)}function Pr(r){return Se.apply(this,arguments)}function Se(){return Se=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/\u200Bapi/FoodMenu/tree",{data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},r)})),Se.apply(this,arguments)}function _r(r){return we.apply(this,arguments)}function we(){return we=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/api/device/PushDevice?DeviceId=".concat(t),{method:"post"}));case 1:case"end":return e.stop()}},r)})),we.apply(this,arguments)}function kr(r){return De.apply(this,arguments)}function De(){return De=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/saasbase/api/device/CheckStockAdjust?DeviceId=".concat(t),{method:"POST"}));case 1:case"end":return e.stop()}},r)})),De.apply(this,arguments)}function _e(r){return be.apply(this,arguments)}function be(){return be=(0,f.Z)((0,a.Z)().mark(function r(t){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,R.WY)("/saasbase/api/DeviceVesion/GetDeviceVesion?productId=".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},r)})),be.apply(this,arguments)}function Je(r){return Te.apply(this,arguments)}function Te(){return Te=(0,f.Z)((0,a.Z)().mark(function r(t){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,R.WY)("/saasbase/api/goods/TechnologyTemplateExport?deviceId=".concat(t),{method:"post"}));case 1:case"end":return e.stop()}},r)})),Te.apply(this,arguments)}var o=l(85893),Qe=function(t){var s=(0,y.useState)([]),e=(0,b.Z)(s,2),j=e[0],L=e[1],Y=(0,y.useState)(0),U=(0,b.Z)(Y,2),ke=U[0],Ge=U[1],z=(0,y.useState)(""),K=(0,b.Z)(z,2),N=K[0],H=K[1],J=(0,y.useRef)(null);(0,y.useEffect)(function(){console.log(t.values),Object.keys(t.values).length>0&&_e(t.values.productId).then(function(S){L(S.data)})},[t.values]);var Ie=function(D){_e(D).then(function(I){L(I.data)})},Re=function(D){H(D.target.value)},Ce=function(D){console.log("radio checked",D.target.value),Ge(D.target.value)},Q=function(D){D.preventDefault(),H("");var I={name:N};Ne(I).then(function(P){P.succeeded?(w.default.success("\u6DFB\u52A0\u6210\u529F"),t.initDeviceType()):w.default.error(P.errors)})};return(0,o.jsx)(E.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,o.jsxs)(i.Z,{layout:"Horizontal",labelCol:{span:4},preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,o.jsx)(i.Z.Item,{name:"id",hidden:!0,children:(0,o.jsx)(q.Z,{})}),(0,o.jsx)(i.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"deviceName",rules:[{required:!0,max:50}],children:(0,o.jsx)(q.Z,{})}),(0,o.jsx)(i.Z.Item,{label:"\u6240\u5C5E\u4EA7\u54C1",name:"productId",rules:[{required:!0}],children:(0,o.jsx)(g.Z,{onChange:Ie,children:t.dicData.map(function(S,D){return(0,o.jsx)(g.Z.Option,{index:D,value:S.id,children:S.label},S.id)})})}),(0,o.jsx)(i.Z.Item,{label:"\u4EA7\u54C1\u7248\u672C",name:"productVersionId",rules:[{required:!0}],children:(0,o.jsx)(g.Z,{children:j.map(function(S,D){return(0,o.jsx)(g.Z.Option,{index:D,value:S.id,children:S.vesion},S.id)})})}),(0,o.jsx)(i.Z.Item,{label:"\u8BBE\u5907\u6807\u7B7E",name:"deviceTypeId",rules:[{required:!1}],children:(0,o.jsx)(g.Z,{style:{width:"100%"},placeholder:"\u8BF7\u9009\u8BBE\u5907\u6807\u7B7E",options:t.storeType,dropdownRender:function(D){return(0,o.jsxs)(o.Fragment,{children:[D,(0,o.jsx)(B.Z,{style:{margin:"8px 0"}}),(0,o.jsxs)(O.Z,{style:{padding:"0 8px 4px"},children:[(0,o.jsx)(q.Z,{placeholder:"\u8BF7\u8F93\u5165\u8BBE\u5907\u6807\u7B7E",ref:J,value:N,onChange:Re,onKeyDown:function(P){return P.stopPropagation()}}),(0,o.jsx)(G.Z,{type:"text",icon:(0,o.jsx)(k.Z,{}),onClick:Q,children:"\u65B0\u589E"})]})]})}})}),(0,o.jsx)(i.Z.Item,{children:(0,o.jsx)(G.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Xe=Qe,qe=l(20173),Ir=l(96486),Cr="message",er=function(){var t=(0,y.useState)(),s=(0,b.Z)(t,2),e=s[0],j=s[1],L=(0,y.useState)([]),Y=(0,b.Z)(L,2),U=Y[0],ke=Y[1],Ge=(0,y.useState)([]),z=(0,b.Z)(Ge,2),K=z[0],N=z[1],H=(0,y.useState)([]),J=(0,b.Z)(H,2),Ie=J[0],Re=J[1],Ce=(0,y.useState)([]),Q=(0,b.Z)(Ce,2),S=Q[0],D=Q[1],I=(0,y.useState)([]),P=(0,b.Z)(I,2),tr=P[0],ar=P[1],nr=(0,y.useState)([]),$e=(0,b.Z)(nr,2),ur=$e[0],sr=$e[1],ir=(0,y.useState)(!1),Ee=(0,b.Z)(ir,2),cr=Ee[0],x=Ee[1],F=(0,y.useRef)(),lr=(0,y.useState)(),Oe=(0,b.Z)(lr,2),or=Oe[0],Be=Oe[1],dr=(0,y.useState)([]),We=(0,b.Z)(dr,2),V=We[0],xe=We[1];(0,y.useEffect)(function(){function Z(){(0,qe.FM)().then(function(u){p(u.data);function p(d){for(var m in d)d[m].type==2||d[m].type==3?d[m].disabled=!1:d[m].disabled=!0,d[m].children&&p(d[m].children)}N(u.data);var n={};c(u.data);function c(d){for(var m in d)n[d[m].disabled]=!0,n[d[m].value]={text:d[m].title},d[m].children&&c(d[m].children)}Re(n)})}Z(),Fe();function h(){Ye().then(function(u){var p=u.data,n={};if(u.succeeded){var c=[];p.forEach(function(d){n[d.name]={text:d.name},c.push({id:d.id,label:d.name,text:d.name})}),D(n),ar(c)}})}h(),pr()},[]);var Fe=function(){Ke().then(function(h){var u={},p=[];h.data.forEach(function(n){p.push({label:n.name,text:n.name,value:n.id}),u[n.id]={text:n.name}}),ke(p),j(u)})},pr=function(){var Z=(0,f.Z)((0,a.Z)().mark(function h(){var u;return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,He();case 2:u=n.sent,u.statusCode==200?sr(u.data):w.default.error("\u83B7\u53D6\u8BBE\u5907\u7248\u672C\u5931\u8D25");case 4:case"end":return n.stop()}},h)}));return function(){return Z.apply(this,arguments)}}(),hr=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"deviceName",valueType:"textarea"},{title:"\u6240\u5C5E\u4EA7\u54C1",dataIndex:"productName",valueEnum:S,hideInSearch:!0},{title:"\u4EA7\u54C1\u7248\u672C",dataIndex:"productVersionName",search:!1},{title:"\u652F\u6301\u529F\u80FD",dataIndex:"technologyOrBom",search:!1,valueEnum:{0:{text:"\u5DE5\u827A"},1:{text:"\u914D\u65B9"}}},{title:"\u8BBE\u5907\u6807\u7B7E",dataIndex:"deviceTypeId",valueEnum:e},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u542F\u7528",status:"Processing"},1:{text:"\u7981\u7528",status:"Success"}},hideInSearch:!0},{title:"\u8BBE\u5907\u552F\u4E00key",dataIndex:"autoKey",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",fixed:"right",width:400,render:function(h,u){return[(0,o.jsx)("a",{onClick:function(){x(!0),Be(u)},children:"\u66F4\u65B0"},"update"),(0,o.jsx)("a",{onClick:(0,f.Z)((0,a.Z)().mark(function p(){return(0,a.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return F.current.reload(),u.status=u.status?0:1,c.next=4,Pe(u).then(function(d){d.succeeded?w.default.success("\u914D\u7F6E\u6210\u529F"):w.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 4:case"end":return c.stop()}},p)})),children:u.status==0?"\u505C\u7528":"\u6B63\u5E38"},"status"),(0,o.jsx)("a",{onClick:(0,f.Z)((0,a.Z)().mark(function p(){var n,c;return(0,a.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Je(u.id);case 2:if(n=m.sent,n!=""){m.next=6;break}return w.default.error("\u5F53\u524D\u6A21\u677F\u4E0D\u5B58\u5728\uFF01"),m.abrupt("return");case 6:c=document.createElement("a"),c.href=n,c.click();case 9:case"end":return m.stop()}},p)})),children:"\u5BFC\u51FA\u5DE5\u827A\u6A21\u7248"},"add")]}}],fr=function(){var Z=(0,f.Z)((0,a.Z)().mark(function h(u){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ue(JSON.stringify(u)).then(function(c){if(c.succeeded)w.default.success("\u6DFB\u52A0\u6210\u529F"),x(!1),F.current.reload();else return w.default.error(c.errors),!1});case 2:case"end":return n.stop()}},h)}));return function(u){return Z.apply(this,arguments)}}(),mr=function(){var Z=(0,f.Z)((0,a.Z)().mark(function h(u){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Pe(JSON.stringify(u)).then(function(c){if(c.succeeded)w.default.success("\u6DFB\u52A0\u6210\u529F"),x(!1),F.current.reload();else return w.default.error(c.errors),!1});case 2:case"end":return n.stop()}},h)}));return function(u){return Z.apply(this,arguments)}}(),vr=function(){var Z=(0,f.Z)((0,a.Z)().mark(function h(u){var p;return(0,a.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,w.default.loading("\u6B63\u5728\u5220\u9664"),p=[],u.forEach(function(d){p.push(d.id)}),c.next=6,ze(p).then(function(d){return d.data?(w.default.success("\u5220\u9664\u6210\u529F"),!0):(w.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),w.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 12:case"end":return c.stop()}},h,null,[[0,8]])}));return function(u){return Z.apply(this,arguments)}}();return(0,o.jsxs)(C.ZP,{host:!0,header:{title:"",breadcrumb:{}},children:[(0,o.jsx)($.ZP,{headerTitle:"\u8BBE\u5907\u4FE1\u606F",actionRef:F,rowKey:"id",pagination:{defaultPageSize:10},search:{labelWidth:120},scroll:{x:2e3},toolBarRender:function(){return[(0,o.jsxs)(G.Z,{type:"primary",onClick:function(){x(!0)},children:[(0,o.jsx)(k.Z,{})," \u65B0\u5EFA"]},"primary"),(0,o.jsx)(G.Z,{onClick:(0,f.Z)((0,a.Z)().mark(function h(){var u,p;return(0,a.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,vr(V);case 2:xe([]),(u=F.current)===null||u===void 0||(p=u.reloadAndRest)===null||p===void 0||p.call(u);case 4:case"end":return c.stop()}},h)})),children:"\u5220\u9664"})]},request:function(){var Z=(0,f.Z)((0,a.Z)().mark(function h(u){var p,n;return(0,a.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return p=[],n=0,d.next=4,Le(u).then(function(m){p=m.data.data,n=m.data.total});case 4:return d.abrupt("return",{data:p,success:!0,total:n});case 5:case"end":return d.stop()}},h)}));return function(h){return Z.apply(this,arguments)}}(),columns:hr,rowSelection:{onChange:function(h,u){xe(u)}}}),(V==null?void 0:V.length)>0&&(0,o.jsx)(X.Z,{extra:(0,o.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,o.jsx)("a",{style:{fontWeight:600},children:V.length})," ","\u9879 \xA0\xA0"]})}),(0,o.jsx)(Xe,{storeType:U,OrgData:K,dicData:tr,initDeviceType:Fe,onFinish:function(){var Z=(0,f.Z)((0,a.Z)().mark(function h(u){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:u.id?mr(u):fr(u);case 1:case"end":return n.stop()}},h)}));return function(h){return Z.apply(this,arguments)}}(),onCancel:function(){x(!1),Be(void 0)},createModalVisible:cr,deviceVersions:ur,values:or||{}})]})},rr=er},20173:function(Ve,M,l){"use strict";l.d(M,{lM:function(){return w},IH:function(){return b},mm:function(){return X},eP:function(){return je},FM:function(){return Ae}});var T=l(39428),G=l(11849),a=l(3182),_=l(48971);function w(v,g){return f.apply(this,arguments)}function f(){return f=(0,a.Z)((0,T.Z)().mark(function v(g,A){return(0,T.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",(0,_.WY)("/saasbase/api/organize/page",{method:"POST",data:(0,G.Z)({},g)}));case 1:case"end":return W.stop()}},v)})),f.apply(this,arguments)}function b(v){return k.apply(this,arguments)}function k(){return k=(0,a.Z)((0,T.Z)().mark(function v(g){return(0,T.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,_.WY)("/saasbase/api/organize/addorg",{method:"POST",data:(0,G.Z)({},g)}));case 1:case"end":return i.stop()}},v)})),k.apply(this,arguments)}function y(v){return C.apply(this,arguments)}function C(){return C=_asyncToGenerator(_regeneratorRuntime().mark(function v(g){return _regeneratorRuntime().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",request("\u200B/kitchen/api\u200B/organize/getorglist",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return i.stop()}},v)})),C.apply(this,arguments)}function X(v){return $.apply(this,arguments)}function $(){return $=(0,a.Z)((0,T.Z)().mark(function v(g){return(0,T.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,_.WY)("\u200B/kitchen/api\u200B/organize/deleteorg",{method:"POST",data:(0,G.Z)({},g)}));case 1:case"end":return i.stop()}},v)})),$.apply(this,arguments)}function je(v){return E.apply(this,arguments)}function E(){return E=(0,a.Z)((0,T.Z)().mark(function v(g){return(0,T.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,_.WY)("\u200B/saasbase/api\u200B/organize/updateorg",{method:"POST",data:(0,G.Z)({},g)}));case 1:case"end":return i.stop()}},v)})),E.apply(this,arguments)}function Me(v){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function v(g){return _regeneratorRuntime().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",request("/saasbase/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return i.stop()}},v)})),O.apply(this,arguments)}function Ae(v){return B.apply(this,arguments)}function B(){return B=(0,a.Z)((0,T.Z)().mark(function v(g){return(0,T.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,_.WY)("\u200B/saasbase/api\u200B/organize/tree",{method:"GET",data:(0,G.Z)({},g)}));case 1:case"end":return i.stop()}},v)})),B.apply(this,arguments)}}}]);