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.
 
 
 

2 rindas
37 KiB

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