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