包含后厨 团餐 门店分支
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
20 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2580],{64317:function(Le,me,n){"use strict";var $=n(28991),Y=n(81253),se=n(85893),Se=n(22270),j=n(67294),ge=n(66758),_=n(31649),c=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],g=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],we=j.forwardRef(function(o,ye){var f=o.fieldProps,s=o.children,r=o.params,oe=o.proFieldProps,ie=o.mode,de=o.valueEnum,ce=o.request,te=o.showSearch,A=o.options,I=(0,Y.Z)(o,c),he=(0,j.useContext)(ge.Z);return(0,se.jsx)(_.Z,(0,$.Z)((0,$.Z)({valueEnum:(0,Se.h)(de),request:ce,params:r,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,$.Z)({options:A,mode:ie,showSearch:te,getPopupContainer:he.getPopupContainer},f),ref:ye,proFieldProps:oe},I),{},{children:s}))}),xe=j.forwardRef(function(o,ye){var f=o.fieldProps,s=o.children,r=o.params,oe=o.proFieldProps,ie=o.mode,de=o.valueEnum,ce=o.request,te=o.options,A=(0,Y.Z)(o,g),I=(0,$.Z)({options:te,mode:ie||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},f),he=(0,j.useContext)(ge.Z);return(0,se.jsx)(_.Z,(0,$.Z)((0,$.Z)({valueEnum:(0,Se.h)(de),request:ce,params:r,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,$.Z)({getPopupContainer:he.getPopupContainer},I),ref:ye,proFieldProps:oe},A),{},{children:s}))}),Ae=we,ee=xe,fe=Ae;fe.SearchSelect=ee,fe.displayName="ProFormComponent",me.Z=fe},32213:function(Le,me,n){"use strict";n.r(me),n.d(me,{default:function(){return lt}});var $=n(71194),Y=n(50146),se=n(11849),Se=n(43358),j=n(34041),ge=n(57663),_=n(71577),c=n(39428),g=n(3182),we=n(62350),xe=n(24565),Ae=n(43185),ee=n(93009),fe=n(34792),o=n(48086),ye=n(9715),f=n(55843),s=n(2824),r=n(67294),oe=n(28790),ie=n(85224),de=n(49101),ce=n(84391),te=n(16894),A=n(48971),I=n(96690);function he(h){return Ze.apply(this,arguments)}function Ze(){return Ze=(0,g.Z)((0,c.Z)().mark(function h(a){return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,A.WY)((0,I.w)()+"/api/technology/page",{method:"POST",data:a}));case 1:case"end":return u.stop()}},h)})),Ze.apply(this,arguments)}function Ne(){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,g.Z)((0,c.Z)().mark(function h(){return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",(0,A.WY)((0,I.w)()+"/api/product/list",{method:"Get"}));case 1:case"end":return m.stop()}},h)})),Ce.apply(this,arguments)}function We(h){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,g.Z)((0,c.Z)().mark(function h(a){return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,A.WY)((0,I.w)()+"/api/devicevesion/getdevicevesion?productId="+a,{method:"Get"}));case 1:case"end":return u.stop()}},h)})),Fe.apply(this,arguments)}function Ke(h){return Te.apply(this,arguments)}function Te(){return Te=(0,g.Z)((0,c.Z)().mark(function h(a){return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,A.WY)((0,I.w)()+"/api/technology/delete?id="+a,{method:"Get"}));case 1:case"end":return u.stop()}},h)})),Te.apply(this,arguments)}function $e(h){return Ee.apply(this,arguments)}function Ee(){return Ee=(0,g.Z)((0,c.Z)().mark(function h(a){return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,A.WY)((0,I.w)()+"/api/systemconfig/GeneratePostPolicy",{method:"POST",data:a}));case 1:case"end":return u.stop()}},h)})),Ee.apply(this,arguments)}function Tt(h){return je.apply(this,arguments)}function je(){return je=_asyncToGenerator(_regeneratorRuntime().mark(function h(a){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request(getDataBaseUrl()+"/api/goods/goodstemplateexport",{method:"POST",data:a}));case 1:case"end":return u.stop()}},h)})),je.apply(this,arguments)}function Ye(h){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,g.Z)((0,c.Z)().mark(function h(a){return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,A.WY)((0,I.w)()+"/api/technology/UpdateRecodeRemark",{method:"POST",data:a}));case 1:case"end":return u.stop()}},h)})),Ie.apply(this,arguments)}var Et=n(47673),ne=n(4107),Je=n(64317),ze=n(76615),e=n(85893),He=function(a){var m=f.Z.useForm(),u=(0,s.Z)(m,1),re=u[0],y=r.useRef(null),ae=(0,r.useState)("text"),P=(0,s.Z)(ae,2),R=P[0],D=P[1],k=(0,r.useState)("Form"),O=(0,s.Z)(k,2),L=O[0],Z=O[1],J=(0,r.useState)([]),B=(0,s.Z)(J,2),z=B[0],H=B[1],N=(0,r.useState)(!1),M=(0,s.Z)(N,2),C=M[0],b=M[1],ue=(0,r.useState)(!1),W=(0,s.Z)(ue,2),V=W[0],G=W[1];(0,r.useEffect)(function(){var v;if((v=y.current)===null||v===void 0||v.setFieldsValue(a.values),a.createModalVisible)if(a.values.actionType==null){var S;(S=y.current)===null||S===void 0||S.setFieldsValue({actionType:"text"}),a.values.actionType="text",D("text"),Z("Form"),H([])}else{var E;if((E=y.current)===null||E===void 0||E.setFieldsValue({actionType:a.values.actionType}),D(a.values.actionType),a.values.actionType=="select"){Z("ModalForm");var K=[];if(a.values.technologyType==0)for(var X=JSON.parse(a.values.actionValue),w=0;w<X.length;w++)K.push({actionValueName:X[w].actionValueName});H(K)}else D(a.values.actionType),Z("Form"),H([])}},[a.createModalVisible]);var F=function(S){if(console.log(JSON.stringify(S)),S){var E;(E=y.current)===null||E===void 0||E.setFieldsValue({actionValue:JSON.stringify(S)})}b(!1),o.default.success("\u4FDD\u5B58\u6210\u529F")},T=[{value:"text",label:"\u6587\u672C\u6846"},{value:"select",label:"\u4E0B\u62C9\u6846"},{value:"textarea",label:"\u6587\u672C\u57DF"},{value:"digit",label:"\u6570\u5B57\u8F93\u5165\u6846"},{value:"switch",label:"\u5F00\u5173"}],Q=[{dataIndex:"actionValue",valueType:"dependency",name:["valueType"],columns:function(S){var E=S.actionType;switch(console.log(R),R){case"select":return[{dataIndex:"list",valueType:"formList",initialValue:z,columns:[{valueType:"group",columns:[{title:"\u9009\u9879\u540D\u79F0",dataIndex:"actionValueName",width:"md",disabled:!0,formItemProps:{rules:[{required:!0,message:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879"}]}}]}]},{renderFormItem:function(X,w,ve){return[(0,e.jsx)("div",{style:{float:"right"}})]}}];case"text":return[{dataIndex:"actionValue",valueType:"text",renderFormItem:function(){return(0,e.jsx)(ne.Z,{placeholder:"\u8F93\u5165\u7C7B\u578B\u503C",disabled:!0})}}];default:return[{dataIndex:"actionValue",valueType:R,fieldProps:{disabled:!0}}]}}}];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Y.Z,{title:"\u52A8\u4F5C\u914D\u7F6E",width:640,ref:y,visible:a==null?void 0:a.createModalVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){a==null||a.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(f.Z,{layout:"vertical",preserve:!1,initialValues:a==null?void 0:a.values,onFinish:a==null?void 0:a.onFinish,ref:y,children:[(0,e.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(ne.Z,{})}),(0,e.jsxs)(f.Z.Item,{children:[(0,e.jsx)(f.Z.Item,{name:"actionName",label:"\u6A21\u578B\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,e.jsx)(ne.Z,{placeholder:"\u8BF7\u8F93\u5165\u6A21\u578B\u540D\u79F0",disabled:!0})}),(0,e.jsx)(f.Z.Item,{name:"actionType",label:"\u8F93\u5165\u7C7B\u578B",rules:[{required:!0,max:64,whitespace:!0}],children:(0,e.jsx)(Je.Z,{options:T,disabled:!0,fieldProps:{value:R,onChange:function(S){S=="select"?Z("ModalForm"):Z("Form"),D(S)}}})}),(0,e.jsx)(f.Z.Item,{name:"actionValue",label:"\u8F93\u5165\u7C7B\u578B\u63A7\u4EF6",children:(0,e.jsx)(ze.Z,{trigger:(0,e.jsx)("a",{onClick:function(){return b(!0)},children:"\u67E5\u770B\u9009\u9879"}),columns:Q,layoutType:L,visible:C,modalProps:{forceRender:!0,onCancel:function(){return b(!1)}},onVisibleChange:function(S){G(S)},width:420,shouldUpdate:V,submitter:!1,style:{padding:"40px 10px 1px 10px;"}})}),(0,e.jsx)(f.Z.Item,{name:"sort",label:"\u6392\u5E8F",children:(0,e.jsx)(ne.Z,{placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F",disabled:!0})})]})]})})})},Qe=He,jt=j.Z.Option,It=j.Z.OptGroup,Xe=function(a){var m=(0,r.useState)([]),u=(0,s.Z)(m,2),re=u[0],y=u[1],ae=(0,r.useState)([]),P=(0,s.Z)(ae,2),R=P[0],D=P[1],k=(0,r.useRef)(),O=f.Z.useForm(),L=(0,s.Z)(O,1),Z=L[0],J=(0,r.useState)(),B=(0,s.Z)(J,2),z=B[0],H=B[1],N=(0,r.useState)(!1),M=(0,s.Z)(N,2),C=M[0],b=M[1],ue={text:{value:"text",text:"\u6587\u672C\u6846"},select:{value:"select",text:"\u4E0B\u62C9\u6846"},textarea:{value:"textarea",text:"\u6587\u672C\u57DF"},digit:{value:"digit",text:"\u6570\u5B57\u8F93\u5165\u6846"},switch:{value:"switch",text:"\u5F00\u5173"}},W=[{title:"\u6A21\u578B\u540D\u79F0",dataIndex:"actionName",width:"15%"},{title:"\u8F93\u5165\u7C7B\u578B",key:"actionType",dataIndex:"actionType",valueType:"select",width:"15%",valueEnum:ue},{title:"\u8F93\u5165\u503C\u7C7B\u578B",dataIndex:"technologyType",valueType:"select",hideInSearch:!0,valueEnum:{"0":{text:" "},"1":{text:"\u7269\u6599"}}},{title:"\u6392\u5E8F",dataIndex:"sort",valueType:"digit",width:"8%"},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(G,F,T,Q){return[(0,e.jsx)("a",{onClick:function(){b(!0),y(F)},children:"\u67E5\u770B"},"editable")]}}];return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Y.Z,{title:"\u6A21\u578B\u914D\u7F6E",width:1140,visible:a==null?void 0:a.actionFormModalVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){a==null||a.onCancel()},destroyOnClose:!0,maskClosable:!1,children:[(0,e.jsx)(te.ZP,{rowKey:"id",headerTitle:"\u6A21\u578B\u914D\u7F6E\u5217\u8868",actionRef:k,pagination:!1,search:!1,toolBarRender:!1,columns:W,dataSource:a.dataSource}),(0,e.jsx)(Qe,{onFinish:function(){var V=(0,g.Z)((0,c.Z)().mark(function G(F){var T;return(0,c.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(T=!1,console.log(F),console.log(F.actionValue),F.goodstechnologyId=a.values.id,!F.id){v.next=10;break}return v.next=7,handleUpdate(F);case 7:T=v.sent,v.next=13;break;case 10:return v.next=12,onFinish(F);case 12:T=v.sent;case 13:T&&(b(!1),k.current&&k.current.reload());case 14:case"end":return v.stop()}},G)}));return function(G){return V.apply(this,arguments)}}(),onCancel:function(){y(void 0),b(!1)},createModalVisible:C,actionValueName:z,values:re||{}})]})})},qe=Xe,_e=function(a){var m=(0,r.useState)(!1),u=(0,s.Z)(m,2),re=u[0],y=u[1],ae=(0,r.useState)(!1),P=(0,s.Z)(ae,2),R=P[0],D=P[1],k=(0,r.useState)(!1),O=(0,s.Z)(k,2),L=O[0],Z=O[1],J=(0,r.useRef)(),B=(0,r.useState)(),z=(0,s.Z)(B,2),H=z[0],N=z[1],M=(0,r.useState)([]),C=(0,s.Z)(M,2),b=C[0],ue=C[1],W=(0,r.useState)([]),V=(0,s.Z)(W,2),G=V[0],F=V[1],T=(0,r.useState)([]),Q=(0,s.Z)(T,2),v=Q[0],S=Q[1],E=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(X,w){return(0,e.jsx)("a",{onClick:function(){N(w),Z(!0)},children:X})}},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",ellipsis:!0,search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(X,w){return[(0,e.jsx)("a",{onClick:function(){var q,pe;D(!0),N(w.technologyActionInfo),(q=J.current)===null||q===void 0||(pe=q.reloadAndRest)===null||pe===void 0||pe.call(q)},children:"\u6A21\u578B\u914D\u7F6E"},"config")]}}];return(0,r.useEffect)(function(){},[]),(0,e.jsxs)(Y.Z,{title:"\u5DE5\u827A\u8BE6\u60C5",width:1040,visible:a.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){a.onCancel()},maskClosable:!1,destroyOnClose:!0,children:[(0,e.jsx)(te.ZP,{headerTitle:"\u5DE5\u827A",actionRef:J,rowKey:"id",search:!1,columns:E,toolBarRender:!1,dataSource:a.dataSource,rowSelection:!1}),(0,e.jsx)(qe,{actionFormModalVisible:R,dataSource:H||{},onCancel:function(){N(void 0),D(!1)}})]})},et=_e,tt=function(a){return(0,e.jsx)(Y.Z,{width:400,title:"\u7F16\u8F91\u5907\u6CE8",open:a.remarkModalOpen,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:a.onCancel,children:(0,e.jsxs)(f.Z,{layout:"horizontal",preserve:!1,initialValues:a.values,onFinish:a.onFinish,children:[(0,e.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(ne.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u5907\u6CE8",name:"remark",children:(0,e.jsx)(ne.Z,{})}),(0,e.jsx)(f.Z.Item,{children:(0,e.jsx)(_.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]})})},at=tt,nt=n(19755),rt=n.n(nt),Pt=n(96486),Pe="message",ut=function(){var a=(0,r.useState)(!1),m=(0,s.Z)(a,2),u=m[0],re=m[1],y=(0,r.useRef)(),ae=(0,r.useState)([]),P=(0,s.Z)(ae,2),R=P[0],D=P[1],k=(0,r.useState)([]),O=(0,s.Z)(k,2),L=O[0],Z=O[1],J=(0,r.useState)(),B=(0,s.Z)(J,2),z=B[0],H=B[1],N=(0,r.useState)([]),M=(0,s.Z)(N,2),C=M[0],b=M[1],ue=(0,r.useState)(!1),W=(0,s.Z)(ue,2),V=W[0],G=W[1],F=(0,r.useState)(!1),T=(0,s.Z)(F,2),Q=T[0],v=T[1],S=f.Z.useForm(),E=(0,s.Z)(S,1),K=E[0],X=(0,r.useState)(""),w=(0,s.Z)(X,2),ve=w[0],q=w[1],pe=(0,r.useState)(""),De=(0,s.Z)(pe,2),Oe=De[0],Re=De[1],st=(0,r.useState)(""),Be=(0,s.Z)(st,2),ot=Be[0],it=Be[1],dt=(0,r.useState)(""),Me=(0,s.Z)(dt,2),ct=Me[0],Ge=Me[1],ht=(0,r.useState)(!1),Ue=(0,s.Z)(ht,2),vt=Ue[0],be=Ue[1],pt=(0,r.useState)(),ke=(0,s.Z)(pt,2),mt=ke[0],Ve=ke[1],ft="https://bpa.oss-cn-chengdu.aliyuncs.com/hkerp/test/technology/",yt={beforeUpload:function(t){return Ge(ft+t.name),St(t),t.type!=="application/vnd.ms-excel"&&t.type!=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"&&o.default.error("".concat(t.name," \u4E0D\u662F excel \u6587\u4EF6")),ve.length==0?(o.default.error("\u8BF7\u9009\u62E9\u7248\u672C"),ee.Z.LIST_IGNORE,ee.Z.LIST_IGNORE):Oe.length==0?(o.default.error("\u8BF7\u9009\u62E9\u4EA7\u54C1"),ee.Z.LIST_IGNORE):t.type=="application/vnd.ms-excel"||t.type=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?!0:ee.Z.LIST_IGNORE},name:"file",data:{id:ve,deviceClientType:Oe,version:ot,isAddGoodsTemplate:Q,aliyunUrl:ct},action:(0,I.w)()+"/api/goods/goodstemplateexport",headers:{Authorization:"Bearer "+localStorage.getItem("token")},onChange:function(t){console.log(t),t.file.status!=="uploading"&&console.log(t.file,t.fileList),v(!1),t.file.status==="done"?(G(!1),y.current.reload(),o.default.success("".concat(t.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F."))):t.file.status==="error"&&o.default.error("".concat(t.file.name," \u6587\u4EF6\u4E0A\u8F7D\u5931\u8D25."))}};function St(i){$e({directory:"hkerp/test/technology",buildUniqueDirectory:!1}).then(function(t){if(t.success_Action_Status==200){var l=new FormData;l.append("name",i.name),l.append("key",t.key),l.append("ossAccessKeyId",t.ossAccessKeyId),l.append("policy",t.policy),l.append("signature",t.signature),l.append("file",i),l.append("success_Action_Status",200),l.append("host",t.host),rt().ajax({url:t.host,type:"POST",data:l,cache:!1,contentType:!1,processData:!1,success:function(d){var x=t.host+"/"+t.key.replace("${filename}",i.name);Ge(x)},error:function(d){console.log(d)}})}})}var gt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u6240\u5C5E\u4EA7\u54C1",dataIndex:"productName",valueType:"textarea"},{title:"\u7248\u672C\u53F7",dataIndex:"vesion",valueType:"textarea"},{title:"\u65F6\u95F4",dataIndex:"createAt",valueType:"textarea",search:!1},{title:"\u5907\u6CE8",dataIndex:"remark",valueType:"textarea",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",fixed:"right",width:700,render:function(t,l){return[(0,e.jsx)("a",{onClick:function(){re(!0),H(l.technologyInfo)},children:" \u8BE6\u60C5"},"config"),(0,e.jsx)("a",{href:l.templatePath,children:" \u4E0B\u8F7D"},"config"),(0,e.jsx)(xe.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){Ke(l.id).then(function(d){d.data?(o.default.success("\u5220\u9664\u6210\u529F"),y.current.reload()):o.default.error(d.errors)})},onCancel:function(){},children:(0,e.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary11"),(0,e.jsx)("a",{onClick:function(){be(!0),Ve(l)},children:" \u7F16\u8F91\u5907\u6CE8"},"config")]}}];(0,r.useEffect)(function(){Ne().then(function(i){var t=i.data;if(i.succeeded){var l=[];t.forEach(function(p){l.push({label:p.name,text:p.name,id:p.id})}),D(l)}})},[]);var xt=function(t){console.log("selected ".concat(t)),Re(t),We(t).then(function(l){var p=l.data;if(l.succeeded){var d=[];p.forEach(function(x){d.push({label:x.vesion,text:x.vesion,id:x.id})}),Z(d)}})},Zt=function(t){console.log("selected ".concat(t)),q(t);var l=L.find(function(p){return p.id==t});it(l==null?void 0:l.label)},Ct=function(){console.log("ss"),Re(""),q(""),Z([]),re(!1)},Ft=function(){var i=(0,g.Z)((0,c.Z)().mark(function t(l){return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,o.default.loading("\u6B63\u5728\u4FEE\u6539",Pe),o.default.destroy(Pe),d.next=5,Ye(JSON.stringify(l)).then(function(x){if(o.default.destroy(Pe),x.data){var U,le;return o.default.success("\u4FEE\u6539\u6210\u529F"),(U=y.current)===null||U===void 0||(le=U.reloadAndRest)===null||le===void 0||le.call(U),!0}else return o.default.error(x.errors),!1});case 5:d.next=11;break;case 7:return d.prev=7,d.t0=d.catch(0),o.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),d.abrupt("return",!1);case 11:case"end":return d.stop()}},t,null,[[0,7]])}));return function(l){return i.apply(this,arguments)}}();return(0,e.jsxs)(oe.ZP,{host:!0,header:{title:"",breadcrumb:{}},children:[(0,e.jsx)(te.ZP,{headerTitle:"\u8BBE\u5907\u7248\u672C",actionRef:y,rowKey:"id",pagination:{defaultPageSize:10},search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(_.Z,{type:"primary",onClick:function(){G(!0)},children:[(0,e.jsx)(de.Z,{})," \u5BFC\u5165\u5DE5\u827A\u6A21\u7248"]},"primary")]},request:function(){var i=(0,g.Z)((0,c.Z)().mark(function t(l){var p,d;return(0,c.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return p=[],d=0,U.next=4,he(l).then(function(le){p=le.data.data,d=le.data.total});case 4:return U.abrupt("return",{data:p,success:!0,total:d});case 5:case"end":return U.stop()}},t)}));return function(t){return i.apply(this,arguments)}}(),columns:gt,rowSelection:{onChange:function(t,l){b(l)}}}),(C==null?void 0:C.length)>0&&(0,e.jsx)(ie.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:C.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(_.Z,{onClick:(0,g.Z)((0,c.Z)().mark(function i(){var t,l;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,handleRemove(C);case 2:b([]),(t=y.current)===null||t===void 0||(l=t.reloadAndRest)===null||l===void 0||l.call(t);case 4:case"end":return d.stop()}},i)})),children:"\u5220\u9664"})}),(0,e.jsxs)(Y.Z,{title:"\u4E0A\u4F20\u5DE5\u827A\u6A21\u7248",open:V,footer:null,maskClosable:!1,width:400,destroyOnClose:!0,onCancel:function(){Z(),Re(""),q(""),G(!1)},children:[(0,e.jsxs)("div",{style:{marginBottom:10},children:[(0,e.jsx)("span",{style:{marginRight:10},children:"\u9009\u62E9\u4EA7\u54C1"}),(0,e.jsx)(j.Z,{style:{width:"80%"},onChange:xt,children:R==null?void 0:R.map(function(i,t){return(0,e.jsx)(j.Z.Option,{index:t,value:i.id,children:i.label},i.id)})})]}),(0,e.jsxs)("div",{style:{marginBottom:10},children:[(0,e.jsx)("span",{style:{marginRight:10},children:"\u9009\u62E9\u7248\u672C"}),(0,e.jsx)(j.Z,{style:{width:"80%"},onChange:Zt,children:L==null?void 0:L.map(function(i,t){return(0,e.jsx)(j.Z.Option,{index:t,value:i.id,children:i.label},i.id)})})]}),(0,e.jsx)(ee.Z,(0,se.Z)((0,se.Z)({},yt),{},{maxCount:1,children:(0,e.jsx)(_.Z,{icon:(0,e.jsx)(ce.Z,{}),style:{marginLeft:"48%"},children:"\u5BFC\u5165\u5DE5\u827A\u6A21\u7248"})}))]}),(0,e.jsx)(at,{onFinish:function(){var i=(0,g.Z)((0,c.Z)().mark(function t(l){var p;return(0,c.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:p=Ft(l),p&&(be(!1),Ve(void 0)),y.current.reload();case 3:case"end":return x.stop()}},t)}));return function(t){return i.apply(this,arguments)}}(),onCancel:function(){be(!1),Ve(void 0)},remarkModalOpen:vt,values:mt||{}}),(0,e.jsx)(et,{createModalVisible:u,dataSource:z,onCancel:Ct})]})},lt=ut}}]);