|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1262,7975,1322],{94075:function(ge,X,o){"use strict";o.r(X),o.d(X,{default:function(){return Wt}});var k=o(57663),j=o(71577),D=o(71194),P=o(50146),g=o(2824),n=o(39428),K=o(34792),s=o(48086),d=o(3182),V=o(49101),y=o(67294),w=o(78009),T=o(85224),W=o(53779),f=o(79361),se=o.n(f),Le=o(62999),le=o(54680),_=o(9715),m=o(55843),ee=o(47673),v=o(4107),ie=o(43358),E=o(34041),r=o(85893),tt=function(t){var p=E.Z.Option,e=E.Z.OptGroup;return(0,r.jsx)(P.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,r.jsxs)(m.Z,{layout:"Horizontal",labelCol:{span:4},preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5E97\u94FA\u540D\u79F0",name:"store_Name",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5E97\u94FA\u5730\u5740",name:"store_Addr",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u8054\u7CFB\u7535\u8BDD",name:"store_Tel",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{placeholder:"\u591A\u4E2A\u624B\u673A\u53F7\u7528,\u5206\u9694"})}),(0,r.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"store_Status",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(e,{children:[(0,r.jsx)(E.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,r.jsx)(E.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,r.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"storeTypeKey",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:t.dicData.map(function(l,c){return(0,r.jsx)(E.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{label:"\u56FE\u6807",name:"store_ImgUrl",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5750\u6807",name:"store_Loc",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u7C7B\u578B",name:"store_TypeId",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:t.storeType.map(function(l,c){return(0,r.jsx)(E.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{name:"orgId",label:"\u6240\u5C5E\u673A\u6784",rules:[{required:!0}],children:(0,r.jsx)(le.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:t.OrgData,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784",treeDefaultExpandAll:!0})}),(0,r.jsx)(m.Z.Item,{label:"\u7B49\u7EA7",name:"store_LevelId",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:t.storeLevel.map(function(l,c){return(0,r.jsx)(E.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},rt=tt,qt=o(77883),Ue=o(85986),B=o(48971);function nt(u){return Se.apply(this,arguments)}function Se(){return Se=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("\u200B\u200B/kitchen/api/store-info/store-goods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Se.apply(this,arguments)}function at(){return we.apply(this,arguments)}function we(){return we=(0,d.Z)((0,n.Z)().mark(function u(){var t;return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3,goods_Enable:0},e.abrupt("return",(0,B.WY)("/kitchen/api/goods/goodss",{method:"Post",data:t}));case 2:case"end":return e.stop()}},u)})),we.apply(this,arguments)}function ut(u){return be.apply(this,arguments)}function be(){return be=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-goods",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),be.apply(this,arguments)}function st(u){return ke.apply(this,arguments)}function ke(){return ke=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-goods-status",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),ke.apply(this,arguments)}function lt(u){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Ce.apply(this,arguments)}function it(u){return je.apply(this,arguments)}function je(){return je=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/del-store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),je.apply(this,arguments)}var ot=function(t){var p=E.Z.Option,e=E.Z.OptGroup,l=(0,y.useState)([]),c=(0,g.Z)(l,2),S=c[0],z=c[1];return(0,y.useEffect)(function(){var x=function(){at().then(function($){var q=[];$.data.data.forEach(function(H){q.push({text:H.name,id:H.id})}),z(q)})};x()},[]),(0,r.jsx)(P.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,r.jsxs)(m.Z,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5546\u54C1",name:"goods_Id",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:S.map(function(x,J){return(0,r.jsx)(E.Z.Option,{index:J,value:x.id,children:x.text},x.id)})})}),(0,r.jsx)(m.Z.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:(0,r.jsx)(Ue.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,r.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"goods_Enable",rules:[{required:!0}],children:(0,r.jsxs)(E.Z,{placeholder:"\u72B6\u6001",children:[(0,r.jsx)(p,{value:1,children:"\u6B63\u5E38"}),(0,r.jsx)(p,{value:0,children:"\u505C\u7528"})]})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},ct=ot,te="message",dt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",te),s.default.destroy(te),l.next=5,ut(JSON.stringify(p)).then(function(c){return s.default.destroy(te),c.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:l.next=11;break;case 7:return l.prev=7,l.t0=l.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 11:case"end":return l.stop()}},t,null,[[0,7]])}));return function(p){return u.apply(this,arguments)}}(),pt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){var e;return(0,n.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,s.default.loading("\u6B63\u5728\u5220\u9664",te),e=[],p.forEach(function(S){e.push(S.id)}),c.next=6,it(e).then(function(S){return s.default.destroy(te),S.data?(s.default.success("\u5220\u9664\u6210\u529F"),!0):(s.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 12:case"end":return c.stop()}},t,null,[[0,8]])}));return function(p){return u.apply(this,arguments)}}(),ft=function(t){var p=(0,y.useState)(!1),e=(0,g.Z)(p,2),l=e[0],c=e[1],S=(0,y.useState)(!1),z=(0,g.Z)(S,2),x=z[0],J=z[1],$=(0,y.useRef)(),q=(0,y.useState)(),H=(0,g.Z)(q,2),ce=H[0],Q=H[1],de=(0,y.useState)([]),ae=(0,g.Z)(de,2),me=ae[0],ue=ae[1],pe=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,i.store_Id=t.values.id,s.default.loading("\u6B63\u5728\u6DFB\u52A0",te),a.next=5,lt(JSON.stringify(i)).then(function(C){return s.default.destroy(te),C.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 5:a.next=11;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 11:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u72B6\u6001",dataIndex:"goods_Enable",valueEnum:{1:{text:"\u6B63\u5E38",status:"Processing"},0:{text:"\u505C\u7528",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,i){return[(0,r.jsxs)("a",{onClick:function(){c(!0),Q(i)},children:[" ","\u66F4\u65B0"]},"config"),(0,r.jsxs)("a",{onClick:function(){i.goods_Enable=i.goods_Enable==0?1:0,st(i).then(function(a){a.data&&$.current.reload()})},children:[" ",i.goods_Enable==0?"\u505C\u7528":"\u6B63\u5E38"]},"primary"),,(0,r.jsx)("a",{onClick:function(){pt([i]),$.current.reload()},children:"\u5220\u9664"},"config")]}}];return(0,r.jsx)(P.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u5546\u54C1\u4E0A\u67B6",visible:t.storeGoodsModalVisible,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,r.jsxs)(w.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(W.ZP,{headerTitle:"",actionRef:$,rowKey:"id",search:!1,toolBarRender:function(){return[(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){c(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u589E\u4E0A\u67B6\u5546\u54C1"]},"primary")]},request:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z,a;return(0,n.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return Z=[],a=0,i.StoreId=t.values.id,U.next=5,nt(i).then(function(re){Z=re.data.data,a=re.data.total});case 5:return U.abrupt("return",{data:Z,success:!0,total:a});case 6:case"end":return U.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),columns:fe,rowSelection:{onChange:function(h,i){ue(i)}}}),(0,r.jsx)(ct,{onFinish:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:Z=!1,i.id?Z=dt(i):Z=pe(i),Z&&(c(!1),Q(void 0),$.current.reload());case 3:case"end":return C.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),onCancel:function(){c(!1),Q(void 0)},createModalVisible:l,values:ce||{}})]})})},ht=ft,er=o(62350),Ye=o(24565);function mt(u){return Ae.apply(this,arguments)}function Ae(){return Ae=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-batching-stock-page",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Ae.apply(this,arguments)}function vt(u){return _e.apply(this,arguments)}function _e(){return _e=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-batching-stoc",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),_e.apply(this,arguments)}function yt(u){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-batching-stoc",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Ie.apply(this,arguments)}function tr(u){return Ee.apply(this,arguments)}function Ee(){return Ee=_asyncToGenerator(_regeneratorRuntime().mark(function u(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3},e.abrupt("return",request("/kitchen/api/goods/goodss",{method:"post",data:t}));case 2:case"end":return e.stop()}},u)})),Ee.apply(this,arguments)}function Zt(u){return Te.apply(this,arguments)}function Te(){return Te=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/frachisee-stock-adjust/product-lists",{method:"post",data:t}));case 1:case"end":return e.stop()}},u)})),Te.apply(this,arguments)}function gt(u){return Be.apply(this,arguments)}function Be(){return Be=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/push-stock/".concat(t),{method:"post"}));case 1:case"end":return e.stop()}},u)})),Be.apply(this,arguments)}function St(u){return xe.apply(this,arguments)}function xe(){return xe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/frachisee-stock-adjust/check-stock-adjust/".concat(t),{method:"POST"}));case 1:case"end":return e.stop()}},u)})),xe.apply(this,arguments)}function wt(u){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/".concat(t),{method:"DELETE"}));case 1:case"end":return e.stop()}},u)})),Oe.apply(this,arguments)}var bt=function(t){var p=E.Z.Option,e=E.Z.OptGroup,l=(0,y.useState)([]),c=(0,g.Z)(l,2),S=c[0],z=c[1];return console.log("ffgbvc",t.Store_Id),(0,y.useEffect)(function(){var x=function(){Zt({Store_Id:t.Store_Id}).then(function($){z($.data)})};x()},[]),(0,r.jsx)(P.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,r.jsxs)(m.Z,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{name:"batching_Id",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,r.jsx)(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",children:S.map(function(x,J){return(0,r.jsx)(E.Z.Option,{index:J,value:x.id,children:x.name},x.id)})})}),(0,r.jsx)(m.Z.Item,{name:"batching_Loc",label:"\u5E93\u5B58\u4F4D\u7F6E",rules:[{required:!0}],defaultValue:"0",children:(0,r.jsx)(v.Z,{placeholder:"\u8F93\u5165\u5E93\u5B58\u4F4D\u7F6E\u7F16\u7801"})}),(0,r.jsx)(m.Z.Item,{name:"batching_Count",label:"\u539F\u6599\u6570\u91CF",rules:[{required:!0}],defaultValue:"0",children:(0,r.jsx)(Ue.Z,{min:0,placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u6570\u91CF"})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},kt=bt,N="message",Ct=function(t){var p=(0,y.useState)(!1),e=(0,g.Z)(p,2),l=e[0],c=e[1],S=(0,y.useRef)(),z=(0,y.useState)(),x=(0,g.Z)(z,2),J=x[0],$=x[1],q=(0,y.useState)([]),H=(0,g.Z)(q,2),ce=H[0],Q=H[1],de=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,i.store_Id=t.values.id,s.default.loading("\u6B63\u5728\u6DFB\u52A0",N),a.next=5,vt(JSON.stringify(i)).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),S.current.reload(),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"+C.errors),S.current.reload(),!1)});case 5:a.next=12;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),ae=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u540C\u6B65",N),a.next=4,gt(i).then(function(C){return s.default.destroy(N),C.data?(Q([]),s.default.success("\u540C\u6B65\u6210\u529F"),S.current.reload(),!0):(s.default.success("\u540C\u6B65\u5931\u8D25"),S.current.reload(),!1)});case 4:a.next=11;break;case 6:return a.prev=6,a.t0=a.catch(0),s.default.error("\u540C\u6B65\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 11:case"end":return a.stop()}},h,null,[[0,6]])}));return function(i){return b.apply(this,arguments)}}(),me=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u83B7\u53D6",N),s.default.destroy(N),a.next=5,St(i).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u83B7\u53D6\u6210\u529F"),S.current.reload(),!0):(s.default.error("\u83B7\u53D6\u5931\u8D25"+C.errors),S.current.reload(),!1)});case 5:a.next=12;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u83B7\u53D6\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),ue=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,wt(i).then(function(C){C.data?(s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),S.current.reload()):(s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),S.current.reload())});case 3:return a.abrupt("return",!0);case 6:a.prev=6,a.t0=a.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),S.current.reload();case 10:case"end":return a.stop()}},h,null,[[0,6]])}));return function(i){return b.apply(this,arguments)}}(),pe=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",N),s.default.destroy(N),i.store_Id=t.values.id,a.next=6,yt(JSON.stringify(i)).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.error("\u4FEE\u6539\u5931\u8D25"+C.errors),!1)});case 6:a.next=12;break;case 8:return a.prev=8,a.t0=a.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,8]])}));return function(i){return b.apply(this,arguments)}}(),fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7269\u6599",dataIndex:"batching_Name",valueType:"textarea"},{title:"\u6570\u91CF",dataIndex:"batching_Count",valueType:"textarea"},{title:"\u5E93\u4F4D",dataIndex:"batching_Loc",valueEnum:{1:{text:"1"},2:{text:"2"},3:{text:"3"},4:{text:"4"},5:{text:"5"},6:{text:"6"}}},{title:"\u540C\u6B65",dataIndex:"synchronize",valueEnum:{0:{text:"\u672A\u540C\u6B65",status:"Processing"},1:{text:"\u5DF2\u540C\u6B65",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,i){return[(0,r.jsxs)("a",{onClick:function(){c(!0),$(i)},children:[" ","\u4FEE\u6539"]},"config"),(0,r.jsx)(Ye.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){ue(i.id)},onCancel:function(){},children:(0,r.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,r.jsx)(P.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:(t.values==null?"":t.values.store_Name)+"\u5E93\u5B58\u539F\u6599\u8C03\u6574",search:!1,visible:t.stockModalVisible,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,r.jsxs)(w.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(W.ZP,{headerTitle:"",actionRef:S,rowKey:"id",search:!1,toolBarRender:function(){return[(0,r.jsx)(Ye.Z,{type:"primary",title:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u8986\u76D6\u672C\u6B21\u8865\u8D27\u6570\u636E",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){me(t.values.id)},onCancel:function(){},children:(0,r.jsx)(j.Z,{type:"primary",children:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58"},"primary")},"primary"),(0,r.jsx)(j.Z,{type:"primary",onClick:function(){if(ce.length==0)s.default.error("\u8BF7\u9009\u62E9\u9700\u8981\u540C\u6B65\u7684\u6570\u636E\uFF01\uFF01");else{var i,Z;ae(t.values.id),(i=S.current)===null||i===void 0||(Z=i.reloadAndRest)===null||Z===void 0||Z.call(i)}},children:"\u540C\u6B65\u5E93\u5B58\u539F\u6599"},"primary"),(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){c(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u589E\u5E93\u5B58\u539F\u6599"]},"primary")]},request:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z,a;return(0,n.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return Z=[],a=0,i.store_Id=t.values.id,U.next=5,mt(i).then(function(re){Z=re.data.data,a=re.data.total});case 5:return U.abrupt("return",{data:Z,success:!0,total:a});case 6:case"end":return U.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),columns:fe,rowSelection:{onChange:function(h,i){Q(i)}}}),(0,r.jsx)(kt,{Store_Id:t.values==null?"":t.values.id,onFinish:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:Z=!1,i.id?Z=pe(i):Z=de(i),Z&&(c(!1),$(void 0),S.current.reload());case 3:case"end":return C.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),onCancel:function(){c(!1),$(void 0)},createModalVisible:l,values:J||{}})]})})},jt=Ct;function At(u){return De.apply(this,arguments)}function De(){return De=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("\u200B/kitchen/api\u200B/store-info\u200B/store-info-page",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),De.apply(this,arguments)}function _t(u){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},u)})),Pe.apply(this,arguments)}function It(u){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api\u200B/store-info\u200B/store-info",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Fe.apply(this,arguments)}function Et(u){return Ge.apply(this,arguments)}function Ge(){return Ge=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-infofo",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Ge.apply(this,arguments)}function Tt(u){return Re.apply(this,arguments)}function Re(){return Re=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-status",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Re.apply(this,arguments)}function Bt(u){return We.apply(this,arguments)}function We(){return We=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("\u200B\u200B/kitchen/api/store-info/del-store-info",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),We.apply(this,arguments)}var xt=o(41877),Ot=o(94595),Dt=o(3408),oe="message",Pt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u6DFB\u52A0",oe),l.next=4,It(JSON.stringify(p)).then(function(c){return s.default.destroy(oe),c.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:l.next=10;break;case 6:return l.prev=6,l.t0=l.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 10:case"end":return l.stop()}},t,null,[[0,6]])}));return function(p){return u.apply(this,arguments)}}(),Ft=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",oe),s.default.destroy(oe),l.next=5,Et(JSON.stringify(p)).then(function(c){return s.default.destroy(oe),c.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:l.next=11;break;case 7:return l.prev=7,l.t0=l.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 11:case"end":return l.stop()}},t,null,[[0,7]])}));return function(p){return u.apply(this,arguments)}}(),Gt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){var e;return(0,n.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,s.default.loading("\u6B63\u5728\u5220\u9664"),e=[],p.forEach(function(S){e.push(S.id)}),c.next=6,Bt(e).then(function(S){return S.data?(s.default.success("\u5220\u9664\u6210\u529F"),!0):(s.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 12:case"end":return c.stop()}},t,null,[[0,8]])}));return function(p){return u.apply(this,arguments)}}(),Rt=function(){var t=(0,y.useState)(),p=(0,g.Z)(t,2),e=p[0],l=p[1],c=(0,y.useState)(),S=(0,g.Z)(c,2),z=S[0],x=S[1],J=(0,y.useState)([]),$=(0,g.Z)(J,2),q=$[0],H=$[1],ce=(0,y.useState)([]),Q=(0,g.Z)(ce,2),de=Q[0],ae=Q[1],me=(0,y.useState)([]),ue=(0,g.Z)(me,2),pe=ue[0],fe=ue[1],b=(0,y.useState)([]),h=(0,g.Z)(b,2),i=h[0],Z=h[1],a=(0,y.useState)([]),C=(0,g.Z)(a,2),U=C[0],re=C[1],$t=(0,y.useState)([]),Ve=(0,g.Z)($t,2),Mt=Ve[0],Lt=Ve[1];(0,y.useEffect)(function(){var L=function(){(0,xt.ow)({current:1,pageSize:1e3}).then(function(Y){var G={},R=[];Y.data.data.forEach(function(O){R.push({text:O.storeType_Name,id:O.id}),G[O.id]={text:O.storeType_Name}}),console.log(G),ae(R),x(G)})},M=function(Y){var G=(0,Ot.k3)({current:1,pageSize:1e3}).then(function(R){var O={},et=[];R.data.data.forEach(function(Ze){et.push({text:Ze.storeLevel_Name,id:Ze.id}),O[Ze.id]={text:Ze.storeLevel_Name}}),l(O),H(et)})};function A(){(0,Dt.FM)().then(function(I){fe(I.data);var Y={};G(I.data);function G(R){for(var O in R)Y[R[O].value]={text:R[O].title},R[O].children&&G(R[O].children)}Z(Y)})}A(),L(),M();function F(){_t("DeviceClientType").then(function(I){var Y=I.data,G={};if(I.succeeded){var R=[];Y.forEach(function(O){G[O.code]={text:O.remark},R.push({batchingType:O.code,text:O.remark,value:O.code,label:O.remark})}),re(G),Lt(R)}})}F()},[]);var Ut=(0,y.useState)(!1),Ke=(0,g.Z)(Ut,2),Yt=Ke[0],ve=Ke[1],Vt=(0,y.useState)(!1),Ne=(0,g.Z)(Vt,2),Kt=Ne[0],$e=Ne[1],Nt=(0,y.useState)(!1),ze=(0,g.Z)(Nt,2),zt=ze[0],Je=ze[1],Jt=(0,y.useState)(!1),He=(0,g.Z)(Jt,2),rr=He[0],nr=He[1],ye=(0,y.useRef)(),Ht=(0,y.useState)(),Qe=(0,g.Z)(Ht,2),Me=Qe[0],ne=Qe[1],Qt=(0,y.useState)([]),Xe=(0,g.Z)(Qt,2),he=Xe[0],qe=Xe[1],ar=function(){$e(!1)},Xt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"store_Name",valueType:"textarea"},{title:"\u8054\u7CFB\u7535\u8BDD",dataIndex:"store_Tel",valueType:"textarea"},{title:"\u5E97\u94FA\u5730\u5740",dataIndex:"store_Addr",search:!1,valueType:"textarea"},{title:"\u56FE\u6807",dataIndex:"store_ImgUrl",search:!1,valueType:"textarea"},{title:"\u5E97\u94FA\u7C7B\u578B",dataIndex:"store_TypeId",valueEnum:z},{title:"\u5F52\u5C5E\u673A\u6784",dataIndex:"orgId",search:!1,valueEnum:i},{title:"\u5E97\u94FA\u7B49\u7EA7",dataIndex:"store_LevelId",search:!1,valueEnum:e},{title:"\u5750\u6807",dataIndex:"store_Loc",valueType:"textarea",search:!1},{title:"\u8D1F\u8D23\u4EBA",dataIndex:"store_Cadre",valueType:"textarea",search:!1},{title:"\u72B6\u6001",dataIndex:"store_Status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,A){return[(0,r.jsxs)("a",{onClick:function(){ve(!0),ne(A)},children:[" ","\u66F4\u65B0"]},"primary"),(0,r.jsxs)("a",{onClick:function(){A.store_Status=A.store_Status==0?1:0,Tt(A).then(function(I){I.data&&ye.current.reload()})},children:[" ",A.store_Status==0?"\u505C\u7528":"\u6B63\u5E38"]},"primary"),(0,r.jsxs)("a",{onClick:function(){ne(A),$e(!0)},children:[" ","\u5546\u54C1\u4E0A\u67B6"]},"primary"),(0,r.jsxs)("a",{onClick:function(){ne(A),Je(!0)},children:[" ","\u5E93\u5B58\u8C03\u62E8"]},"primary"),(0,r.jsxs)("a",{onClick:function(){var I={title:"\u5E97\u94FA\u4E8C\u7EF4\u7801",content:(0,r.jsx)(se(),{id:"qrCode",value:"https://black-pa.com:5443/lead?StoreId=".concat(A.id,"&StoreType="),size:200,fgColor:"#000000",style:{margin:"auto"}})};P.Z.info(I)},children:[" ","\u5E97\u94FA\u4E8C\u7EF4\u7801"]},"primary")]}}];return(0,r.jsxs)(w.ZP,{children:[(0,r.jsx)(W.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:ye,rowKey:"id",search:{labelWidth:120},scroll:{x:2e3},toolBarRender:function(){return[(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){ve(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var L=(0,d.Z)((0,n.Z)().mark(function M(A){var F,I;return(0,n.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return F=[],I=0,G.next=4,At(A).then(function(R){F=R.data.data,I=R.data.total});case 4:return G.abrupt("return",{data:F,success:!0,total:I});case 5:case"end":return G.stop()}},M)}));return function(M){return L.apply(this,arguments)}}(),columns:Xt,rowSelection:{onChange:function(M,A){qe(A)}}}),(he==null?void 0:he.length)>0&&(0,r.jsx)(T.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:he.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(j.Z,{onClick:(0,d.Z)((0,n.Z)().mark(function L(){var M,A;return(0,n.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Gt(he);case 2:qe([]),(M=ye.current)===null||M===void 0||(A=M.reloadAndRest)===null||A===void 0||A.call(M);case 4:case"end":return I.stop()}},L)})),children:"\u5220\u9664"})}),(0,r.jsx)(rt,{storeLevel:q,storeType:de,OrgData:pe,dicData:Mt,onFinish:function(){var L=(0,d.Z)((0,n.Z)().mark(function M(A){var F;return(0,n.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:F=!1,A.id?F=Ft(A):F=Pt(A),F&&(ve(!1),ne(void 0),ye.current.reload());case 3:case"end":return Y.stop()}},M)}));return function(M){return L.apply(this,arguments)}}(),onCancel:function(){ve(!1),ne(void 0)},createModalVisible:Yt,values:Me||{}}),(0,r.jsx)(ht,{onCancel:function(){$e(!1),ne({})},storeGoodsModalVisible:Kt,values:Me}),(0,r.jsx)(jt,{onCancel:function(){Je(!1),ne({})},stockModalVisible:zt,values:Me})]})},Wt=Rt},94595:function(ge,X,o){"use strict";o.d(X,{k3:function(){return P},ef:function(){return n},EQ:function(){return s},mv:function(){return V}});var k=o(39428),j=o(3182),D=o(48971);function P(w){return g.apply(this,arguments)}function g(){return g=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api/store/store-level-page",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),g.apply(this,arguments)}function n(w){return K.apply(this,arguments)}function K(){return K=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api\u200B/store\u200B/store-level",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),K.apply(this,arguments)}function s(w){return d.apply(this,arguments)}function d(){return d=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api/store/store-level",{method:"put",data:T}));case 1:case"end":return f.stop()}},w)})),d.apply(this,arguments)}function V(w){return y.apply(this,arguments)}function y(){return y=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api\u200B/store\u200B/del-store-level",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),y.apply(this,arguments)}},41877:function(ge,X,o){"use strict";o.d(X,{ow:function(){return P},U7:function(){return n},z7:function(){return s},Ym:function(){return V}});var k=o(39428),j=o(3182),D=o(48971);function P(w){return g.apply(this,arguments)}function g(){return g=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api/store/store-type-page",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),g.apply(this,arguments)}function n(w){return K.apply(this,arguments)}function K(){return K=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api\u200B/store\u200B/store-type",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),K.apply(this,arguments)}function s(w){return d.apply(this,arguments)}function d(){return d=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen\u200B/api\u200B/store\u200B/store-type",{method:"put",data:T}));case 1:case"end":return f.stop()}},w)})),d.apply(this,arguments)}function V(w){return y.apply(this,arguments)}function y(){return y=(0,j.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("\u200B/kitchen/api/store/del-store-type",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),y.apply(this,arguments)}},3408:function(ge,X,o){"use strict";o.d(X,{lM:function(){return g},IH:function(){return K},mm:function(){return y},eP:function(){return T},FM:function(){return Le}});var k=o(39428),j=o(11849),D=o(3182),P=o(48971);function g(_,m){return n.apply(this,arguments)}function n(){return n=(0,D.Z)((0,k.Z)().mark(function _(m,ee){return(0,k.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",(0,P.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,j.Z)({},m)}));case 1:case"end":return ie.stop()}},_)})),n.apply(this,arguments)}function K(_){return s.apply(this,arguments)}function s(){return s=(0,D.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),s.apply(this,arguments)}function d(_){return V.apply(this,arguments)}function V(){return V=_asyncToGenerator(_regeneratorRuntime().mark(function _(m){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return v.stop()}},_)})),V.apply(this,arguments)}function y(_){return w.apply(this,arguments)}function w(){return w=(0,D.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),w.apply(this,arguments)}function T(_){return W.apply(this,arguments)}function W(){return W=(0,D.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),W.apply(this,arguments)}function f(_){return se.apply(this,arguments)}function se(){return se=_asyncToGenerator(_regeneratorRuntime().mark(function _(m){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return v.stop()}},_)})),se.apply(this,arguments)}function Le(_){return le.apply(this,arguments)}function le(){return le=(0,D.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),le.apply(this,arguments)}}}]);
|