山西督察-superintend-distribute-web react
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.
 
 
 

1 lines
44 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"Ehk+":function(le,se,a){},PA7j:function(le,se,a){le.exports={example:"example___2JotV"}},RC8p:function(le,se,a){"use strict";var Ie=a("EFp3"),oe=a.n(Ie),Ze=a("Ehk+"),fe=a.n(Ze)},"Uh+N":function(le,se,a){le.exports={TopSearch:"TopSearch___2_17e",radioBox:"radioBox___3Rlvy"}},WZwD:function(le,se,a){"use strict";var Ie=a("2qtc"),oe=a("kLXV"),Ze=a("DjyN"),fe=a("NUBc"),Ne=a("g9YV"),N=a("wCAj"),je=a("+L6B"),R=a("2/Rp"),Je=a("5Dmo"),ne=a("3S7+"),j=a("tJVT"),p=a("q1tI"),Ee=a.n(p),Ke=a("T2oS"),_e=a("W9HT"),A=a("7Kak"),f=a("9yH6"),V=a("miYZ"),m=a("tsqr"),i=a("k1fw"),he=a("y8nQ"),s=a("Vl3Y"),J=a("9kvl"),B=a("ydnR"),h=a("+n12"),e=a("nKUr"),de=[{title:"\u5E8F\u53F7",dataIndex:"id",key:"id",render:function(t,o,n){return n+1},width:"5%"},{title:"\u5BA1\u6279\u4EBA",dataIndex:"clrMc",key:"id",width:"10%"},{title:"\u5BA1\u6279\u5355\u4F4D",dataIndex:"cldwMc",key:"id",width:"15%"},{title:"\u5BA1\u6279\u65B9\u5F0F",dataIndex:"spFs",key:"id",width:"10%",render:function(t){return Object(h.b)(B.b,t)}},{title:"\u5BA1\u6279\u65F6\u95F4",dataIndex:"clSj",key:"id",width:"10%"},{title:"\u5BA1\u6279\u610F\u89C1",dataIndex:"spyj",key:"id",width:"10%"},{title:"\u4E0B\u4E00\u7EA7\u5BA1\u6279\u4EBA",dataIndex:"xjSprMc",key:"id",width:"10%"}],ge=function(t){var o=t.mxZbId,n=t.sysToken,r=Object(p.useState)([]),u=Object(j.a)(r,2),d=u[0],_=u[1],F=function(){t.fetcHistory({params:{mxZbId:o},sysToken:n}).then(function($){return _($)})};return Object(p.useEffect)(function(){console.log(t),F()},[]),Object(e.jsxs)("div",{children:[Object(e.jsx)("p",{children:"\u5386\u53F2\u5BA1\u6279\u610F\u89C1"}),Object(e.jsx)(N.a,{columns:de,dataSource:d,pagination:!1})]})},ce=function(t){var o=t.user,n=t.modelapprove,r=t.loading;return{user:o.currentUser,isLocationInBu:o.isLocationInBu,locationType:o.locationType,modelapprove:n,loading:r.effects["modelapprove/fetcHistory"]||!1}},ve=function(t){return{fetcHistory:function(n){return t({type:"modelapprove/fetcHistory",payload:n})}}},ae=Object(J.a)(ce,ve)(ge),H=a("DYRE"),ie=a("zeV3"),Pe=a("14J3"),be=a("BMrR"),$e=a("jCWc"),M=a("kPKH"),Ae=a("5NDa"),S=a("5rEg"),ke=a("OaEy"),Y=a("2fM7"),E=s.a.Item,L=Y.a.Option,k={labelCol:{span:4},wrapperCol:{span:18}},Se={labelCol:{span:8},wrapperCol:{span:14}},We={wrapperCol:{offset:10,span:10}},tt=function(t){var o=s.a.useForm(),n=Object(j.a)(o,1),r=n[0],u=t.btns,d=t.sjldspr,_=t.sprList,F=t.xffwDict,T=t.zxlbDict,$=t.mxflDict,Z=t.changeSPFS,G=t.approveType,z=t.sysToken,X=t.isLocationInBu,y=t.user,w=function(O){var C=Object.keys(B.b).map(function(v){if((O==null?void 0:O[v])===1)return Object(e.jsx)(f.a,{value:B.b[v].value,children:B.b[v].name},v)});return C},K=function(O){O.target.value===B.b.zjbl.value?Z(!0):Z(!1)},ee=function(O){t.handleSp(O)};return Object(e.jsx)("div",{children:Object(e.jsxs)(s.a,Object(i.a)(Object(i.a)({},k),{},{name:"mxsp",form:r,onFinish:ee,children:[Object(e.jsx)(E,{label:"\u5BA1\u6279\u610F\u89C1",name:"spyj",rules:[{max:200,message:"\u6700\u591A\u80FD\u8F93\u5165200\u5B57!"}],children:Object(e.jsx)(S.a.TextArea,{})}),Object(e.jsxs)(be.a,{children:[Object(e.jsx)(M.a,{span:12,children:Object(e.jsx)(E,Object(i.a)(Object(i.a)({},Se),{},{label:"\u5BA1\u6279\u65B9\u5F0F",name:"spFs",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u65B9\u5F0F!"}],children:Object(e.jsx)(f.a.Group,{onChange:K,children:w(u)})}))}),Object(e.jsxs)(M.a,{span:12,id:"ldr",children:[Object(e.jsx)(E,Object(i.a)(Object(i.a)({},Se),{},{noStyle:!0,shouldUpdate:function(O,C){return O.spFs!==C.spFs},children:function(O){var C=O.getFieldValue;return C("spFs")===B.b.bjldsp.value?Object(e.jsxs)(e.Fragment,{children:[Object(e.jsx)(E,{label:"\u5BA1\u6279\u4EBA",name:"xjSpr",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!"}],children:Object(e.jsx)(Y.a,{getPopupContainer:function(){return document.getElementById("ldr")},style:{width:150},onSelect:function(W,D){r.setFieldsValue({xjSprMc:D.children})},children:_.map(function(v){return Object(e.jsx)(L,{value:v.logingId,children:"".concat(v.surname).concat(v.commonName)},v.id)})})}),Object(e.jsx)(E,{hidden:!0,label:"\u5BA1\u6279\u4EBA\u540D\u79F0",name:"xjSprMc",children:Object(e.jsx)(S.a,{})})]}):null}})),Object(e.jsx)(E,{noStyle:!0,shouldUpdate:function(O,C){return O.spFs!==C.spFs},children:function(O){var C=O.getFieldValue;return C("spFs")===B.b.sjldsp.value?Object(e.jsxs)(e.Fragment,{children:[Object(e.jsx)(E,{label:"\u5BA1\u6279\u4EBA",name:"xjSpr",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!"}],children:Object(e.jsx)(Y.a,{getPopupContainer:function(){return document.getElementById("ldr")},style:{width:150},onSelect:function(W,D){r.setFieldsValue(Object(i.a)({},D.others))},children:d.map(function(v){return Object(e.jsx)(L,{value:v.jsr,others:{xjSprMc:v.jsrMc,xjDw:v.jsdw,xjDwMc:v.jsdwMc},children:v.jsrMc},v.id)})})}),Object(e.jsx)(E,{hidden:!0,label:"\u5BA1\u6279\u4EBA\u540D\u79F0",name:"xjSprMc",children:Object(e.jsx)(S.a,{})}),Object(e.jsx)(E,{hidden:!0,label:"\u63A5\u53D7\u5355\u4F4D",name:"xjDw",children:Object(e.jsx)(S.a,{})}),Object(e.jsx)(E,{hidden:!0,label:"\u63A5\u53D7\u5355\u4F4D\u540D\u79F0",name:"xjDwMc",children:Object(e.jsx)(S.a,{})})]}):null}})]})]}),Object(e.jsx)(E,{noStyle:!0,shouldUpdate:function(O,C){return O.spFs!==C.spFs},children:function(O){var C=O.getFieldValue;return C("spFs")===B.b.zjbl.value&&X&&y.departmentOrgLevel===B.s.Department.value?Object(e.jsx)(e.Fragment,{children:Object(e.jsx)(E,{label:"\u4E0B\u53D1\u8303\u56F4",name:"modelTokenIdList",children:Object(e.jsx)(Y.a,{getPopupContainer:function(){return document.getElementById("ldr")},style:{width:350},placeholder:"\u8BF7\u9009\u62E9\u4E0B\u53D1\u8303\u56F4",mode:"tags",children:F==null?void 0:F.map(function(v){return Object(e.jsx)(L,{value:v.id,others:Object(i.a)({},v),children:v.sysName},v.id)})})})}):null}}),Object(e.jsx)(E,Object(i.a)(Object(i.a)({},We),{},{children:Object(e.jsxs)(ie.b,{children:[Object(e.jsx)(R.a,{type:"default",onClick:function(){return t.hideModal(!1)},children:"\u53D6\u6D88"}),Object(e.jsx)(R.a,{type:"primary",htmlType:"submit",children:"\u786E\u8BA4"})]})}))]}))})},nt=tt,at={labelCol:{span:4},wrapperCol:{span:18}},Ye={wrapperCol:{offset:10,span:10}},Ve=s.a.Item,Qe=function(t){var o=s.a.useForm(),n=Object(j.a)(o,1),r=n[0],u=function(_){t.handleSp(Object(i.a)(Object(i.a)({},_),{},{spFs:3}))};return Object(e.jsx)("div",{children:Object(e.jsxs)(s.a,Object(i.a)(Object(i.a)({},at),{},{onFinish:u,children:[Object(e.jsx)(Ve,{label:"\u5BA1\u6279\u610F\u89C1",name:"spyj",form:r,rules:[{max:200,message:"\u6700\u591A\u80FD\u8F93\u5165200\u5B57!"}],children:Object(e.jsx)(S.a.TextArea,{})}),Object(e.jsx)(s.a.Item,Object(i.a)(Object(i.a)({},Ye),{},{children:Object(e.jsxs)(ie.b,{children:[Object(e.jsx)(R.a,{type:"default",onClick:function(){return t.hideModal(!1)},children:"\u53D6\u6D88"}),Object(e.jsx)(R.a,{type:"primary",htmlType:"submit",children:"\u786E\u8BA4"})]})}))]}))})},ot=Qe,Te=s.a.Item,Ce=Y.a.Option,Q=Object(p.forwardRef)(function(c,t){var o=c.info,n=c.approveType,r=c.form,u=c.isZjbl,d=c.zxlbDict,_=c.mxflDict,F=Object(p.useState)([]),T=Object(j.a)(F,2),$=T[0],Z=T[1];Object(p.useImperativeHandle)(t,function(){return{getItemValues:g}});var G={labelCol:{span:4},wrapperCol:{span:18}},z={labelCol:{span:8},wrapperCol:{span:12}},X=Object(p.useState)({}),y=Object(j.a)(X,2),w=y[0],K=y[1],ee=function(C){c.handleChange(C)},g=function(){var C=r.getFieldsValue();return C};return Object(p.useEffect)(function(){if(o&&o.mxJson){var O=JSON.parse(o.mxJson),C=n==="share"?1:0,v={code:O.code,modelServer:O.sjIp,sourceType:o.sourceType,type:C,version:O.version};c.fetchModelDetailInfo({params:v}).then(function(W){var D,l=JSON.parse(W);console.log(l,"===<"),Z(l),r.setFieldsValue(Object(i.a)(Object(i.a)({},O),{},{classify:l==null||(D=l.classifyCodes)===null||D===void 0?void 0:D.split(","),zxZbId:l==null?void 0:l.zxZbId}))})}},[o]),Object(e.jsx)("div",{children:Object(e.jsx)(s.a,Object(i.a)(Object(i.a)({},G),{},{form:r,onValuesChange:ee,children:Object(e.jsxs)(be.a,{children:[Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Te,{label:"\u6A21\u578B\u540D\u79F0",name:"name",children:Object(e.jsx)(S.a,{disabled:!u})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Te,{label:"\u6A21\u578B\u5206\u7C7B",name:"classify",children:Object(e.jsx)(Y.a,{mode:"tags",disabled:!u,children:_==null?void 0:_.map(function(O){return Object(e.jsx)(Y.a.Option,{value:O.code,children:O.name},O.code)})})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Te,{label:"\u95EE\u9898\u7C7B\u578B",name:"checkTypeName",children:Object(e.jsx)(S.a,{disabled:!u})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Te,{label:"\u4E13\u9879\u7C7B\u522B",name:"zxZbId",children:Object(e.jsx)(Y.a,{disabled:!u,children:d==null?void 0:d.map(function(O){return Object(e.jsx)(Y.a.Option,{value:O.zxZbId,children:O.zxZbName},O.zxZbId)})})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Te,{label:"\u6A21\u578B\u7B80\u4ECB",name:"synopsis",children:Object(e.jsx)(S.a.TextArea,{disabled:!u})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Te,{label:"\u6570\u636E\u6765\u6E90",name:"datasourceDesc",children:Object(e.jsx)(S.a.TextArea,{disabled:!u})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Te,{label:"\u5EFA\u6A21\u903B\u8F91",name:"modelingLogic",children:Object(e.jsx)(S.a.TextArea,{disabled:!u})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Te,{label:"\u7763\u5BDF\u4F9D\u636E",name:"inspectionBasis",children:Object(e.jsx)(S.a.TextArea,{disabled:!u})})})]})}))})}),te=function(t){var o=t.user,n=t.modelapprove,r=t.doing,u=t.global,d=t.loading;return{user:o.currentUser,modelapprove:n,doing:r,global:u,loading:d.effects["modelapprove/fetchModelDetailInfo"]||!1}},U=function(t){return{fetchModelDetailInfo:function(n){return t({type:"modelapprove/fetchModelDetailInfo",payload:n})}}},pe=Object(J.a)(te,U)(Q),ue=a("fWQN"),Me=a("mtLc"),Be=a("yKVA"),Re=a("879j"),xt=a("Zp3K"),Ge=a.n(xt),gt=function(c){Object(Be.a)(o,c);var t=Object(Re.a)(o);function o(n){var r;return Object(ue.a)(this,o),r=t.call(this,n),r.state={load:!0},r}return Object(Me.a)(o,[{key:"componentDidMount",value:function(){var r=this;window.addEventListener("message",function(u){(u==null?void 0:u.data)==="\u53D6\u6D88\u52A0\u8F7D"&&setTimeout(function(){r.setState({load:!1})},150)},!1)}},{key:"render",value:function(){var r=this.props,u=r.mxZbId,d=r.info,_=r.approveType,F=r.sysToken,T=this.state.load,$=Object(h.d)(),Z=$.PARENT_URL,G=d.shZfFw,z=JSON.parse(d.mxJson),X=z.code,y=JSON.parse(d.mxJson),w=y.version,K=_==="share"?1:0,ee="".concat(Z,"/forwork?code=").concat(X,"&&version=").concat(w,"&&url=").concat(G,"&&type=").concat(K,"&&sourceType=").concat(d.sourceType,"&&pageSource=","approve");return Object(e.jsx)("div",{children:Object(e.jsx)(_e.a,{size:"large",spinning:T,className:Ge.a.example,children:Object(e.jsx)("iframe",{width:"100%",height:"600",frameBorder:"no",border:"0",marginWidth:"0",marginHeight:"0",src:ee})})})}}]),o}(Ee.a.Component),yt=gt,Dt={labelCol:{span:4},wrapperCol:{span:18}},St=s.a.Item,Tt=function(t){var o=t.approveType,n=t.sysToken,r=t.user,u=t.global,d=t.mxZbId,_=t.loading,F=t.info,T=t.fetchAllZxlbDict,$=t.fetchModeltokenList,Z=t.fetchClassifyDict,G=Object(p.useState)(!0),z=Object(j.a)(G,2),X=z[0],y=z[1],w=Object(p.useState)(null),K=Object(j.a)(w,2),ee=K[0],g=K[1],O=Object(p.useState)([]),C=Object(j.a)(O,2),v=C[0],W=C[1],D=Object(p.useState)(null),l=Object(j.a)(D,2),P=l[0],me=l[1],lt=Object(p.useState)(!1),Xe=Object(j.a)(lt,2),qe=Xe[0],Ue=Xe[1],ct=Object(p.useState)([]),et=Object(j.a)(ct,2),ze=et[0],q=et[1],b=Object(p.useState)([]),Oe=Object(j.a)(b,2),ye=Oe[0],re=Oe[1],De=Object(p.useState)([]),vt=Object(j.a)(De,2),He=vt[0],gn=vt[1],yn=Object(p.useRef)(),Dn=s.a.useForm(),Sn=Object(j.a)(Dn,1),mt=Sn[0],ht=function(){t.fetchSprList()},bt=function(){if(n==="bu"){var x;t.fetchUperSprList({params:(x=r==null?void 0:r.departmentCode)!==null&&x!==void 0?x:"",sysToken:r.departmentOrgLevel===B.s.Province.value?"bu":"sheng"}).then(function(we){W(we)})}else{var xe;t.fetchUperSprList({params:(xe=r==null?void 0:r.departmentCode)!==null&&xe!==void 0?xe:"",sysToken:n}).then(function(we){W(we)})}},Tn=function(){o==="report"?t.fetchReportAnqx({sysToken:n}).then(function(x){g(x),x!=null&&x.bjldsp&&ht(),x!=null&&x.sjldsp&&bt()}):o==="share"&&t.fetchSharetAnqx({sysToken:n}).then(function(x){g(x),x!=null&&x.bjldsp&&ht(),x!=null&&x.sjldsp&&bt()})},Cn=function(){t.fetchNewest({params:d,sysToken:n}).then(function(x){me(x)})},Pn=function(){t.fetchModeltokenList({sysToken:n}).then(function(x){x&&setXffw(x)})},In=function(){T().then(function(x){q(x.filter(function(xe){return xe.zxZbName}))}),$().then(function(x){re(x)}),Z().then(function(x){x.forEach(function(xe){delete xe.del}),gn(x)})};Object(p.useEffect)(function(){return Tn(),Cn(),In(),function(){}},[]);var pt=function(x){var xe=Object(i.a)({mxZbId:d,id:P.id,sqLx:o==="share"?"01":"02"},x);if(x.spFs===B.b.bjldsp.value){var we,st;xe.xjdw=(we=r==null?void 0:r.departmentCode)!==null&&we!==void 0?we:"",xe.xjdwMc=(st=r==null?void 0:r.departmentName)!==null&&st!==void 0?st:""}mt.validateFields().then(function(I){var dt;console.log("dataVlaues",x,I);var Ot=JSON.parse(F.mxJson);xe.marketModelInfoDto={status:1,code:Ot.code,version:Ot.version,name:I==null?void 0:I.name,modelClassifyEntities:He==null?void 0:He.filter(function(ut){var ft;return I==null||(ft=I.classify)===null||ft===void 0?void 0:ft.includes(ut.code)}),checkTypeName:I==null?void 0:I.checkTypeName,synopsis:I==null?void 0:I.synopsis,datasourceDesc:I==null?void 0:I.datasourceDesc,modelingLogic:I==null?void 0:I.modelingLogic,inspectionBasis:I==null?void 0:I.inspectionBasis,zxZbId:I==null?void 0:I.zxZbId,zxZbName:I!=null&&I.zxZbId?ze==null||(dt=ze.find(function(ut){return ut.zxZbId===(I==null?void 0:I.zxZbId)}))===null||dt===void 0?void 0:dt.zxZbName:""}}),t.fetchMxsp({params:xe,sysToken:n}).then(function(I){I?(m.default.success("\u64CD\u4F5C\u6210\u529F!"),t.hideModal(!0)):m.default.error("\u64CD\u4F5C\u5931\u8D25!")})},En=function(x){Ue(x)},_n=function(){};return Object(e.jsxs)("div",{className:Ge.a.mainDiv,children:[Object(e.jsxs)(_e.a,{spinning:_,children:[Object(e.jsx)("div",{className:Ge.a.title,children:"\u6A21\u578B\u4FE1\u606F"}),Object(e.jsx)(pe,{info:F,approveType:o,isZjbl:qe,handleChange:_n,form:mt,ref:yn,zxlbDict:ze,mxflDict:He}),Object(e.jsx)(yt,{mxZbId:d,sysToken:n,info:F,approveType:o,hideModal:t.hideModal,match:t.match}),Object(e.jsx)("div",{className:Ge.a.title,children:"\u5BA1\u6279\u4FE1\u606F"}),Object(e.jsx)(St,Object(i.a)(Object(i.a)({},Dt),{},{label:"\u5BA1\u6279\u7ED3\u679C",children:Object(e.jsxs)(f.a.Group,{onChange:function(x){return y(x.target.value)},value:X,children:[Object(e.jsx)(f.a,{value:!0,children:"\u540C\u610F"}),Object(e.jsx)(f.a,{value:!1,children:"\u9A73\u56DE"})]})})),X?Object(e.jsx)(nt,{handleSp:pt,hideModal:t.hideModal,btns:ee,sjldspr:v,sprList:u.sprList,user:r,xffwDict:ye,zxlbDict:ze,mxflDict:He,changeSPFS:En,sysToken:n,approveType:o,isLocationInBu:t.isLocationInBu}):Object(e.jsx)(ot,{handleSp:pt,hideModal:t.hideModal})]}),Object(e.jsx)(ae,Object(i.a)({mxZbId:d,sysToken:n},t))]})},Ct=function(t){var o=t.user,n=t.modelapprove,r=t.doing,u=t.global,d=t.loading;return{user:o.currentUser,isLocationInBu:o.isLocationInBu,modelapprove:n,doing:r,global:u,loading:d.effects["doing/fetchUperSprList"]||d.effects["global/fetchSprList"]||d.effects["modelapprove/fetchMxsp"]||d.effects["modelapprove/fetchNewest"]||d.effects["modelapprove/fetchReportAnqx"]||d.effects["modelapprove/fetchSharetAnqx"]||!1}},It=function(t){return{fetchUperSprList:function(n){return t({type:"doing/fetchUperSprList",payload:n})},fetchSprList:function(n){return t({type:"global/fetchSprList",payload:n})},fetchMxsp:function(n){return t({type:"modelapprove/fetchMxsp",payload:n})},fetchNewest:function(n){return t({type:"modelapprove/fetchNewest",payload:n})},fetchReportAnqx:function(n){return t({type:"modelapprove/fetchReportAnqx",payload:n})},fetchSharetAnqx:function(n){return t({type:"modelapprove/fetchSharetAnqx",payload:n})},fetcHistory:function(n){return t({type:"modelapprove/fetcHistory",payload:n})},fetchModeltokenList:function(n){return t({type:"modelapprove/fetchModeltokenList",payload:n})},fetchClassifyDict:function(n){return t({type:"modelapprove/fetchClassifyDict",payload:n})},fetchAllZxlbDict:function(n){return t({type:"modelapprove/fetchAllZxlbDict",payload:n})}}},Et=Object(J.a)(Ct,It)(Tt),_t=a("PA7j"),Mt=a.n(_t),Lt=function(c){Object(Be.a)(o,c);var t=Object(Re.a)(o);function o(n){var r;return Object(ue.a)(this,o),r=t.call(this,n),r.state={load:!0},r}return Object(Me.a)(o,[{key:"componentDidMount",value:function(){var r=this;window.addEventListener("message",function(u){console.log("orgin",u.origin),console.log("data",u.data),(u==null?void 0:u.data)==="\u53D6\u6D88\u52A0\u8F7D"&&setTimeout(function(){r.setState({load:!1})},150)},!1)}},{key:"render",value:function(){var r=this.props,u=r.mxZbId,d=r.info,_=r.approveType,F=r.sysToken,T=this.state.load,$=Object(h.d)(),Z=$.PARENT_URL,G=d.shZfFw,z=JSON.parse(d.mxJson),X=z.code,y=JSON.parse(d.mxJson),w=y.version,K=_==="share"?1:0,ee="".concat(Z,"/forwork?code=").concat(X,"&&version=").concat(w,"&&url=").concat(G,"&&type=").concat(K,"&&sourceType=").concat(d.sourceType);return console.log(ee),console.log(this.props),Object(e.jsxs)("div",{children:[Object(e.jsx)(_e.a,{size:"large",spinning:T,className:Mt.a.example,children:Object(e.jsx)("iframe",{width:"100%",height:"600",frameBorder:"no",border:"0",marginWidth:"0",marginHeight:"0",src:ee})}),Object(e.jsx)(ae,Object(i.a)({mxZbId:u,sysToken:F},this.props))]})}}]),o}(Ee.a.Component),Ft=Lt,rt=a("CiB2"),Pt=a("wd/R"),At=a.n(Pt),Bt=function(t){var o=t.mxZbId,n=t.fetchUnderShareRecord,r=t.fetchReUnderShare,u=t.loading,d=Object(p.useState)([]),_=Object(j.a)(d,2),F=_[0],T=_[1],$=Object(p.useState)(""),Z=Object(j.a)($,2),G=Z[0],z=Z[1],X=Object(p.useState)(!1),y=Object(j.a)(X,2),w=y[0],K=y[1],ee=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",render:function(v,W,D){return D+1},width:"3%"},{title:"\u4E0B\u53D1\u5355\u4F4D",dataIndex:"targetSysName",width:"17%"},{title:"\u4E0B\u53D1\u4EBA",dataIndex:"createUser",width:"10%"},{title:"\u4E0B\u53D1\u65F6\u95F4",dataIndex:"clSj",key:"id",width:"10%",render:function(v,W){return At()(v).format("YYYY-MM-DD HH:MM:SS")}},{title:"\u72B6\u6001",dataIndex:"state",width:"8%",render:function(v){return Object(h.b)(B.t,String(v))}},{title:"\u64CD\u4F5C",key:"id",dataIndex:"id",width:"8%",render:function(v,W){return Object(e.jsxs)(e.Fragment,{children:[Object(e.jsx)(R.a,{type:"link",disabled:W.state===0,onClick:function(){z(W.resultJson),K(!0)},children:"\u65E5\u5FD7"}),Object(e.jsx)(R.a,{type:"link",disabled:W.state!==2,onClick:function(){return g(W)},loading:u,children:"\u91CD\u65B0\u4E0B\u53D1"})]})},fixed:"right"}],g=function(v){r(v.id).then(function(W){W&&W.code==="000000"?m.default.success("\u91CD\u65B0\u4E0B\u53D1\u6210\u529F"):m.default.error("\u91CD\u65B0\u4E0B\u53D1\u5931\u8D25"),O()})},O=function(){n(o).then(function(v){v&&v.code==="000000"&&T(v.data||[])})};return Object(p.useEffect)(function(){O()},[]),Object(e.jsxs)("div",{children:[Object(e.jsx)(N.a,{columns:ee,dataSource:F,rowKey:"index",pagination:!1}),w&&Object(e.jsx)(oe.a,{visible:w,title:"\u4E0B\u53D1\u65E5\u5FD7",onCancel:function(){K(!1)},rowKey:"id",centered:!0,footer:!1,children:Object(e.jsx)("div",{children:G})})]})},Rt=function(t){var o=t.loading;return{loading:o.effects["modelapprove/fetchReUnderShare"]||!1}},Ut=function(t){return{fetchUnderShareRecord:function(n){return t({type:"modelapprove/fetchUnderShareRecord",payload:n})},fetchReUnderShare:function(n){return t({type:"modelapprove/fetchReUnderShare",payload:n})}}},Zt=Object(J.a)(Rt,Ut)(Bt),Nt=S.a.TextArea,kt={labelCol:{span:4},wrapperCol:{span:18}},zt=function(t){var o=t.mxZbId,n=t.info,r=t.fetchModelDetailInfo,u=t.fetchAllZxlbDict,d=t.approveType,_=s.a.useForm(),F=Object(j.a)(_,1),T=F[0],$=Object(p.useState)([]),Z=Object(j.a)($,2),G=Z[0],z=Z[1],X=function(){u().then(function(w){z(w.filter(function(K){return K.zxZbName}))})};return Object(p.useEffect)(function(){if(X(),n&&n.mxJson){var y=JSON.parse(n.mxJson),w=d==="share"?1:0,K={code:y.code,modelServer:y.sjIp,sourceType:n.sourceType,type:w,version:y.version};r({params:K}).then(function(ee){var g=JSON.parse(ee);T.setFieldsValue({mxmc:g==null?void 0:g.name,wtlx:g==null?void 0:g.checkTypeName,zxZbId:g==null?void 0:g.zxZbId,mxms:g==null?void 0:g.synopsis})})}},[n]),Object(e.jsxs)("div",{children:[Object(e.jsxs)("div",{children:[Object(e.jsx)("p",{children:"\u6A21\u578B\u57FA\u672C\u4FE1\u606F"}),Object(e.jsxs)(s.a,Object(i.a)(Object(i.a)({},kt),{},{name:"ajcz",form:T,children:[Object(e.jsx)(s.a.Item,{label:"\u6A21\u578B\u540D\u79F0",name:"mxmc",children:Object(e.jsx)(S.a,{disabled:!0})}),Object(e.jsx)(s.a.Item,{label:"\u95EE\u9898\u7C7B\u578B",name:"wtlx",children:Object(e.jsx)(S.a,{disabled:!0})}),Object(e.jsx)(s.a.Item,{label:"\u4E13\u9879\u7C7B\u522B",name:"zxZbId",children:Object(e.jsx)(Y.a,{disabled:!0,children:G==null?void 0:G.map(function(y){return Object(e.jsx)(Y.a.Option,{value:y.zxZbId,children:y.zxZbName},y.zxZbId)})})}),Object(e.jsx)(s.a.Item,{label:"\u6A21\u578B\u63CF\u8FF0",name:"mxms",children:Object(e.jsx)(Nt,{disabled:!0,rows:3})})]}))]}),Object(e.jsxs)("div",{children:[Object(e.jsx)("p",{children:"\u4E0B\u53D1\u4FE1\u606F"}),Object(e.jsx)(Zt,{mxZbId:o})]})]})},wt=function(t){return Object(rt.a)(t),{}},Kt=function(t){return{fetchModelDetailInfo:function(n){return t({type:"modelapprove/fetchModelDetailInfo",payload:n})},fetchAllZxlbDict:function(n){return t({type:"modelapprove/fetchAllZxlbDict",payload:n})}}},Wt=Object(J.a)(wt,Kt)(zt),Mn=a("R9oj"),Jt=a("ECub"),Ln=a("RC8p"),jt=a("rgW5"),$t=a("wGk/"),Ht=a.n($t),Yt=function(t){var o=t.mxZbId,n=t.fetchActionLog,r=Object(p.useState)([]),u=Object(j.a)(r,2),d=u[0],_=u[1],F=function(){n(o).then(function($){_($||[])})};return Object(p.useEffect)(function(){F()},[]),Object(e.jsx)("div",{className:Ht.a.action_log,children:d?Object(e.jsx)(jt.a,{children:d==null?void 0:d.map(function(T){return Object(e.jsx)(jt.a.Item,{children:T.rz},T.id)})}):Object(e.jsx)(Jt.a,{})})},Vt=function(t){return Object(rt.a)(t),{}},Qt=function(t){return{fetchActionLog:function(n){return t({type:"modelapprove/fetchActionLog",payload:n})}}},Gt=Object(J.a)(Vt,Qt)(Yt),Xt=S.a.TextArea,qt={labelCol:{span:4},wrapperCol:{span:18}},en={wrapperCol:{offset:10,span:10}},tn=function(t){var o=t.fetchUnderCarriage,n=t.mxZbId,r=t.info,u=t.sysToken,d=t.hideModal,_=t.loading,F=s.a.useForm(),T=Object(j.a)(F,1),$=T[0];Object(p.useEffect)(function(){$.setFieldsValue({mxmc:r.mxMc})},[]);var Z=function(z){var X=Object(i.a)(Object(i.a)({},z),{},{mxZbId:n});o({params:X,sysToken:u}).then(function(y){if(y){var w=y.resCode,K=y.resMsg;w===0?(m.default.success(K),d(!0)):m.default.error(K)}})};return Object(e.jsx)("div",{children:Object(e.jsxs)(s.a,Object(i.a)(Object(i.a)({},qt),{},{name:"mxxj",form:$,onFinish:Z,children:[Object(e.jsx)(s.a.Item,{label:"\u6A21\u578B\u540D\u79F0",name:"mxmc",children:Object(e.jsx)(S.a,{disabled:!0})}),Object(e.jsx)(s.a.Item,{label:"\u4E0B\u67B6\u7406\u7531",name:"xjly",rules:[{max:200,message:"\u8BF7\u8F93\u5165\u5C0F\u4E8E200\u4E2A\u5B57"}],children:Object(e.jsx)(Xt,{rows:8})}),Object(e.jsx)(s.a.Item,Object(i.a)(Object(i.a)({},en),{},{children:Object(e.jsxs)(ie.b,{children:[Object(e.jsx)(R.a,{type:"default",loading:_,onClick:function(){return t.hideModal(!1)},children:"\u53D6\u6D88"}),Object(e.jsx)(R.a,{type:"primary",loading:_,htmlType:"submit",children:"\u786E\u8BA4"})]})}))]}))})},nn=function(t){var o=t.user,n=t.loading;return{user:o.currentUser,loading:n.effects["modelapprove/fetchUnderCarriage"]||!1}},an=function(t){return{fetchUnderCarriage:function(n){return t({type:"modelapprove/fetchUnderCarriage",payload:n})}}},on=Object(J.a)(nn,an)(tn),Le=s.a.Item,rn=Y.a.Option,ln={labelCol:{span:4},wrapperCol:{span:18}},cn={wrapperCol:{offset:10,span:10}},sn=Object(p.forwardRef)(function(c){var t=c.mxZbId,o=c.info,n=c.approveType,r=c.hideModal,u=c.fetchModelDetailInfo,d=c.fetchAllZxlbDict,_=c.fetchModeltokenList,F=c.fetchClassifyDict,T=c.fetchUnderShareRecord,$=c.fetchSelves,Z=c.actionLoading,G=c.isLocationInBu,z=c.user,X=s.a.useForm(),y=Object(j.a)(X,1),w=y[0],K=Object(p.useState)([]),ee=Object(j.a)(K,2),g=ee[0],O=ee[1],C=Object(p.useState)([]),v=Object(j.a)(C,2),W=v[0],D=v[1],l=Object(p.useState)([]),P=Object(j.a)(l,2),me=P[0],lt=P[1],Xe=Object(p.useState)([]),qe=Object(j.a)(Xe,2),Ue=qe[0],ct=qe[1],et=function(){d().then(function(b){D(b.filter(function(Oe){return Oe.zxZbName}))}),_().then(function(b){lt(b)}),F().then(function(b){b.forEach(function(Oe){delete Oe.del}),ct(b)})};Object(p.useEffect)(function(){if(et(),o&&o.mxJson){var q=JSON.parse(o.mxJson),b=n==="share"?1:0,Oe={code:q.code,modelServer:q.sjIp,sourceType:o.sourceType,type:b,version:q.version};T(t).then(function(ye){if(ye&&ye.code==="000000"){var re;w.setFieldsValue({modelTokenIdList:ye==null||(re=ye.data)===null||re===void 0?void 0:re.map(function(De){return De.targetSysId})})}}),u({params:Oe}).then(function(ye){var re,De=JSON.parse(ye);O(De),w.setFieldsValue(Object(i.a)(Object(i.a)({},q),{},{classifyCodes:De==null||(re=De.classifyCodes)===null||re===void 0?void 0:re.split(","),zxZbId:De==null?void 0:De.zxZbId}))})}},[o]);var ze=function(b){var Oe,ye={mxZbId:t,modelTokenIdList:b==null?void 0:b.modelTokenIdList,marketModelInfoDto:{code:g==null?void 0:g.code,version:g==null?void 0:g.version,name:b==null?void 0:b.name,modelClassifyEntities:Ue==null?void 0:Ue.filter(function(re){return b==null?void 0:b.classifyCodes.includes(re.code)}),checkTypeName:b==null?void 0:b.checkTypeName,synopsis:b==null?void 0:b.synopsis,datasourceDesc:b==null?void 0:b.datasourceDesc,modelingLogic:b==null?void 0:b.modelingLogic,inspectionBasis:b==null?void 0:b.inspectionBasis,zxZbId:b==null?void 0:b.zxZbId,zxZbName:b!=null&&b.zxZbId?W==null||(Oe=W.find(function(re){return re.zxZbId===(b==null?void 0:b.zxZbId)}))===null||Oe===void 0?void 0:Oe.zxZbName:""}};$({params:ye}).then(function(re){re&&re.resCode===0?(m.default.success(re.resMsg),r(!0)):m.default.error("\u4E0A\u67B6\u5931\u8D25")})};return Object(e.jsx)("div",{children:Object(e.jsx)(s.a,Object(i.a)(Object(i.a)({},ln),{},{form:w,onFinish:ze,children:Object(e.jsxs)(be.a,{children:[Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Le,{label:"\u6A21\u578B\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6A21\u578B\u540D\u79F0"}],children:Object(e.jsx)(S.a,{})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Le,{label:"\u6A21\u578B\u5206\u7C7B",name:"classifyCodes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6A21\u578B\u5206\u7C7B"}],children:Object(e.jsx)(Y.a,{mode:"tags",children:Ue==null?void 0:Ue.map(function(q){return Object(e.jsx)(Y.a.Option,{value:q.code,children:q.name},q.code)})})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Le,{label:"\u95EE\u9898\u7C7B\u578B",name:"checkTypeName",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u95EE\u9898\u7C7B\u578B"}],children:Object(e.jsx)(S.a,{})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Le,{label:"\u4E13\u9879\u7C7B\u522B",name:"zxZbId",children:Object(e.jsx)(Y.a,{children:W==null?void 0:W.map(function(q){return Object(e.jsx)(Y.a.Option,{value:q.zxZbId,children:q.zxZbName},q.zxZbId)})})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Le,{label:"\u6A21\u578B\u7B80\u4ECB",name:"synopsis",children:Object(e.jsx)(S.a.TextArea,{})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Le,{label:"\u6570\u636E\u6765\u6E90",name:"datasourceDesc",children:Object(e.jsx)(S.a.TextArea,{})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Le,{label:"\u5EFA\u6A21\u903B\u8F91",name:"modelingLogic",children:Object(e.jsx)(S.a.TextArea,{})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Le,{label:"\u7763\u5BDF\u4F9D\u636E",name:"inspectionBasis",children:Object(e.jsx)(S.a.TextArea,{})})}),Object(e.jsx)(M.a,{span:24,children:c.children}),G&&z.departmentOrgLevel===B.s.Department.value&&Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(Le,{label:"\u4E0B\u53D1\u8303\u56F4",name:"modelTokenIdList",children:Object(e.jsx)(Y.a,{mode:"tags",children:me==null?void 0:me.map(function(q){return Object(e.jsx)(rn,{value:String(q.id),others:Object(i.a)({},q),children:q.sysName},String(q.id))})})})}),Object(e.jsx)(M.a,{span:24,children:Object(e.jsx)(s.a.Item,Object(i.a)(Object(i.a)({},cn),{},{children:Object(e.jsxs)(ie.b,{children:[Object(e.jsx)(R.a,{type:"default",loading:Z,onClick:function(){return r(!1)},children:"\u53D6\u6D88"}),Object(e.jsx)(R.a,{type:"primary",loading:Z,htmlType:"submit",children:"\u786E\u8BA4"})]})}))})]})}))})}),dn=function(t){var o=t.user,n=t.modelapprove,r=t.doing,u=t.global,d=t.loading;return{user:o.currentUser,isLocationInBu:o.isLocationInBu,modelapprove:n,doing:r,global:u,loading:d.effects["modelapprove/fetchModelDetailInfo"]||!1,actionLoading:d.effects["modelapprove/fetchSelves"]||!1}},un=function(t){return{fetchModelDetailInfo:function(n){return t({type:"modelapprove/fetchModelDetailInfo",payload:n})},fetchAllZxlbDict:function(n){return t({type:"modelapprove/fetchAllZxlbDict",payload:n})},fetchModeltokenList:function(n){return t({type:"modelapprove/fetchModeltokenList",payload:n})},fetchClassifyDict:function(n){return t({type:"modelapprove/fetchClassifyDict",payload:n})},fetchUnderShareRecord:function(n){return t({type:"modelapprove/fetchUnderShareRecord",payload:n})},fetchSelves:function(n){return t({type:"modelapprove/fetchSelves",payload:n})}}},fn=Object(J.a)(dn,un)(sn),jn=a("fxR8"),it=a.n(jn),vn=function(c){Object(Be.a)(o,c);var t=Object(Re.a)(o);function o(n){var r;return Object(ue.a)(this,o),r=t.call(this,n),r.state={load:!0},r}return Object(Me.a)(o,[{key:"componentDidMount",value:function(){var r=this;window.addEventListener("message",function(u){(u==null?void 0:u.data)==="\u53D6\u6D88\u52A0\u8F7D"&&setTimeout(function(){r.setState({load:!1})},150)},!1)}},{key:"render",value:function(){var r=this.props,u=r.mxZbId,d=r.info,_=r.approveType,F=r.sysToken,T=this.state.load,$=Object(h.d)(),Z=$.PARENT_URL,G=d.shZfFw,z=JSON.parse(d.mxJson),X=z.code,y=JSON.parse(d.mxJson),w=y.version,K=_==="share"?1:0,ee="".concat(Z,"/forwork?code=").concat(X,"&&version=").concat(w,"&&url=").concat(G,"&&type=").concat(K,"&&sourceType=").concat(d.sourceType,"&&pageSource=","approve");return Object(e.jsx)("div",{children:Object(e.jsx)(_e.a,{size:"large",spinning:T,className:it.a.example,children:Object(e.jsx)("iframe",{width:"100%",height:"600",frameBorder:"no",border:"0",marginWidth:"0",marginHeight:"0",src:ee})})})}}]),o}(Ee.a.Component),mn=vn,hn=function(t){var o=t.approveType,n=t.sysToken,r=t.mxZbId,u=t.info,d=Object(p.useRef)();return Object(e.jsx)("div",{className:it.a.mainDiv,children:Object(e.jsxs)(_e.a,{spinning:!1,children:[Object(e.jsx)("div",{className:it.a.title,children:"\u6A21\u578B\u4FE1\u606F"}),Object(e.jsx)(fn,{mxZbId:r,info:u,approveType:o,ref:d,hideModal:t.hideModal,children:Object(e.jsx)(mn,{mxZbId:r,sysToken:n,info:u,approveType:o,hideModal:t.hideModal,match:t.match})})]})})},bn=function(t){return Object(rt.a)(t),{}},pn=function(){return{}},On=Object(J.a)(bn,pn)(hn),xn=function(t){var o=t.sysToken,n=t.tableData,r=t.approveType,u=t.loading,d=Object(p.useState)(null),_=Object(j.a)(d,2),F=_[0],T=_[1],$=Object(p.useState)(""),Z=Object(j.a)($,2),G=Z[0],z=Z[1],X=function(l){t.handlePageChange(l)},y=function(l){T(null),l&&t.handelRefresh()},w=function(l){var P="";r==="share"?P="\u6A21\u578B\u5206\u4EAB\u5BA1\u6279":t.sysToken==="bu"?P="\u4E0A\u62A5\u90E8\u7EA7\u5BA1\u6279":t.sysToken==="sheng"&&(P="\u4E0A\u62A5\u7701\u7EA7\u5BA1\u6279"),z(P),T(Object(e.jsx)(Et,{mxZbId:l.id,approveType:r,hideModal:y,sysToken:o,info:l,match:t.match}))},K=function(l){z("\u6A21\u578B\u4E0A\u62A5\u5BA1\u6279"),T(Object(e.jsx)(On,{mxZbId:l.id,approveType:r,hideModal:y,sysToken:o,info:l,match:t.match}))},ee=function(l){z("\u4E0B\u67B6"),T(Object(e.jsx)(on,{mxZbId:l.id,hideModal:y,sysToken:o,info:l,match:t.match}))},g=function(l){z("\u4E0B\u53D1\u8BB0\u5F55"),T(Object(e.jsx)(Wt,{mxZbId:l.id,hideModal:y,approveType:r,sysToken:o,info:l,match:t.match}))},O=function(l){z("\u64CD\u4F5C\u65E5\u5FD7"),T(Object(e.jsx)(Gt,{mxZbId:l.id,hideModal:y,sysToken:o,info:l,match:t.match}))},C=function(l){z("\u67E5\u770B\u8BE6\u60C5"),T(Object(e.jsx)(Ft,{mxZbId:l.id,hideModal:y,approveType:r,sysToken:o,info:l,match:t.match}))},v=[{title:"\u5E8F\u53F7",dataIndex:"id",key:"id",render:function(l,P,me){return me+1},width:"6%"},{title:"\u6A21\u578B\u540D\u79F0",dataIndex:"mxMc",width:"18%",render:function(l){return Object(e.jsx)("span",{children:l})}},{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"sqSj",width:"15%",render:function(l){return Object(e.jsx)(ne.a,{placement:"topLeft",title:l,children:l})},ellipsis:{showTitle:!1}},{title:"\u7533\u8BF7\u4EBA",dataIndex:"sqrMc",width:"8%",render:function(l){return Object(e.jsx)(ne.a,{placement:"topLeft",title:l,children:l})},ellipsis:{showTitle:!1}},{title:"\u7533\u8BF7\u4EBA\u6240\u5728\u5355\u4F4D",dataIndex:"sqrDwMc",width:"14%",render:function(l){return Object(e.jsx)(ne.a,{placement:"topLeft",title:l,children:l})},ellipsis:{showTitle:!1}},{title:"\u5F53\u524D\u5904\u7406\u4EBA",dataIndex:"dqClrMc",width:"13%",render:function(l){return Object(e.jsx)(ne.a,{placement:"topLeft",title:l,children:l})},ellipsis:{showTitle:!1}},{title:"\u5F53\u524D\u5904\u7406\u5355\u4F4D",dataIndex:"dqCldwMc",width:"13%",render:function(l){return Object(e.jsx)(ne.a,{placement:"topLeft",title:l,children:l})},ellipsis:{showTitle:!1}},{title:"\u5BA1\u6279\u72B6\u6001",dataIndex:"dqzt",width:"8%",render:function(l){return Object(e.jsx)(ne.a,{placement:"topLeft",title:Object(h.b)(B.q,l),children:Object(h.b)(B.q,l)})},ellipsis:{showTitle:!1}},{title:"\u4E0A\u67B6\u72B6\u6001",dataIndex:"sjzt",width:"8%",render:function(l){return Object(e.jsx)(ne.a,{placement:"topLeft",title:Object(h.b)(B.m,l),children:Object(h.b)(B.m,l)})},ellipsis:{showTitle:!1}},{title:"\u64CD\u4F5C",key:"id",dataIndex:"id",width:"20%",render:function(l,P){return Object(e.jsxs)(e.Fragment,{children:[P.sj!==0&&Object(e.jsx)(R.a,{type:"link",disabled:P.sj===0,onClick:function(){return K(P)},children:"\u4E0A\u67B6"}),P.xj!==0&&Object(e.jsx)(R.a,{type:"link",disabled:P.xj===0,onClick:function(){return ee(P)},children:"\u4E0B\u67B6"}),P.sp!==0&&Object(e.jsx)(R.a,{type:"link",disabled:P.sp===0,onClick:function(){return w(P)},children:"\u5BA1\u6279"}),P.ck!==0&&Object(e.jsx)(R.a,{type:"link",disabled:P.ck===0,onClick:function(){return C(P)},children:"\u67E5\u770B"}),P.xfjl!==0&&Object(e.jsx)(R.a,{type:"link",disabled:P.xfjl===0,onClick:function(){return g(P)},children:"\u4E0B\u53D1\u8BB0\u5F55"}),P.czjl!==0&&Object(e.jsx)(R.a,{type:"link",disabled:P.czjl===0,onClick:function(){return O(P)},children:"\u64CD\u4F5C\u8BB0\u5F55"})]})},fixed:"right"}],W=function(){return o==="sheng"&&v.splice(8,1),v};return Object(e.jsxs)("div",{children:[Object(e.jsx)(N.a,{loading:u,columns:W(),dataSource:(n==null?void 0:n.records)||[],rowKey:"id",pagination:!1}),Object(e.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:Object(e.jsx)(fe.a,{current:(n==null?void 0:n.current)||0,pageSize:(n==null?void 0:n.size)||0,total:(n==null?void 0:n.total)||0,onChange:function(l){return X(l)},showTotal:function(l){return"\u5171 ".concat(l," \u6761")}})}),F&&Object(e.jsx)(oe.a,{title:G,visible:F,footer:null,onCancel:function(){return T(null)},maskClosable:!1,width:1e3,sysToken:o,children:F})]})},Fn=se.a=xn},Xsp7:function(le,se,a){"use strict";var Ie=a("k1fw"),oe=a("y8nQ"),Ze=a("Vl3Y"),fe=a("tJVT"),Ne=a("nRaC"),N=a("5RzL"),je=a("q1tI"),R=a.n(je),Je=a("9kvl"),ne=a("nKUr"),j=a.n(ne),p=N.a.TreeNode,Ee=function(f){var V,m,i,he,s=f.user,J=f.selfRoot,B=f.noLoad,h=f.defaultVal,e=f.multiple,de=f.fetchOrgList,ge=f.fetchOrgBranch,ce=[{code:(V=s==null?void 0:s.departmentCode)!==null&&V!==void 0?V:"",name:(m=s==null?void 0:s.departmentName)!==null&&m!==void 0?m:"",orgLevel:(i=s==null?void 0:s.departmentOrgLevel)!==null&&i!==void 0?i:"",isLeaf:(he=s==null?void 0:s.departmentOrgLevel)!==null&&he!==void 0?he:""===3}],ve=Object(je.useState)(J?ce:[]),ae=Object(fe.a)(ve,2),H=ae[0],ie=ae[1],Pe=Ze.a.useForm(),be=Object(fe.a)(Pe,1),$e=be[0],M=Object(je.useState)([]),Ae=Object(fe.a)(M,2),S=Ae[0],ke=Ae[1],Y=Object(je.useState)(h),E=Object(fe.a)(Y,2),L=E[0],k=E[1],Se=Object(je.useState)(!1),We=Object(fe.a)(Se,2),tt=We[0],nt=We[1],at=function Ce(Q,te,U){return te.map(function(pe){var ue=Object(Ie.a)({},pe);return pe.code===Q?U.length>0?ue.children=U:ue.isLeaf=!0:pe.children&&(ue.children=Ce(Q,pe.children,U)),ue})},Ye=function(Q){return new Promise(function(te){var U;if(Q!=null&&(U=Q.props)!==null&&U!==void 0&&U.children){te();return}var pe=Q.key;de(pe).then(function(ue){var Me=H.map(function(Be){var Re=Object(Ie.a)({},Be);return Be.code===pe?ue.length>0?Re.children=ue:Re.isLeaf=!0:Be.children&&(Re.children=at(pe,Be.children,ue)),Re});ie(Me),te()})})},Ve=function(Q){h&&(Q.some(function(te){return te.code===h})?nt(!0):ge(h).then(function(te){var U=te.findIndex(function(ue){var Me;return(Me=ue.code===(s==null?void 0:s.departmentCode))!==null&&Me!==void 0?Me:""}),pe=te.slice(U+1);ke(pe)}))},Qe=function(){if(H.length===0){var Q;de((Q=s==null?void 0:s.departmentCode)!==null&&Q!==void 0?Q:"").then(function(te){ie(te),Ve(te)})}else Ve(H)};Object(je.useEffect)(function(){return L===void 0&&h&&typeof h=="string"&&!tt&&Qe(),k(h),function(){}},[h]),Object(je.useEffect)(function(){return J||Qe(),function(){}},[]),Object(je.useEffect)(function(){return S.length>0&&Ye({key:S[0].code,orgLevel:S[0].orgLevel}).then(function(){var Ce=S.slice(1);ke(Ce)}),function(){}},[S]);var ot=function Ce(Q){if(!!Q){var te=Q.map(function(U){return U.children?Object(ne.jsx)(p,{value:U.code,title:U.name,orgLevel:U.orgLevel,isLeaf:U.isLeaf||B||U.orgLevel===3,children:Ce(U.children)},U.code):Object(ne.jsx)(p,{value:U.code,orgLevel:U.orgLevel,title:U.name,isLeaf:U.isLeaf||B||U.orgLevel===3},U.code)});return te}},Te=function(Q,te){k(Q),e?f.onChange({bm:Q,mc:te}):f.onChange({bm:Q,mc:te[0]})};return Object(ne.jsx)(N.a,{multiple:e,style:{width:"100%"},dropdownStyle:{overflow:"auto"},allowClear:!0,onChange:Te,loadData:B?null:Ye,value:L,children:ot(H)})},Ke=function(f){var V=f.user,m=f.global;return{user:V.currentUser,global:m}},_e=function(f){return{fetchOrgList:function(m){return f({type:"global/fetchOrgList",payload:m})},fetchOrgBranch:function(m){return f({type:"global/fetchOrgBranch",payload:m})}}};se.a=Object(Je.a)(Ke,_e)(Ee)},Zp3K:function(le,se,a){le.exports={mainDiv:"mainDiv___6zfYe",title:"title___Ru2QZ",example:"example___2WSrD"}},fxR8:function(le,se,a){le.exports={mainDiv:"mainDiv___3qGMI",title:"title___3C6Fp",example:"example___2ROzg"}},ngN8:function(le,se,a){"use strict";var Ie=a("14J3"),oe=a("BMrR"),Ze=a("+L6B"),fe=a("2/Rp"),Ne=a("sRBo"),N=a("kaz8"),je=a("jCWc"),R=a("kPKH"),Je=a("5NDa"),ne=a("5rEg"),j=a("k1fw"),p=a("tJVT"),Ee=a("iQDF"),Ke=a("+eQT"),_e=a("y8nQ"),A=a("Vl3Y"),f=a("q1tI"),V=a.n(f),m=a("wd/R"),i=a.n(m),he=a("Xsp7"),s=a("ydnR"),J=a("Uh+N"),B=a.n(J),h=a("nKUr"),e=a.n(h),de=A.a.Item,ge=Ke.a.RangePicker,ce={xs:12,sm:12,md:12,lg:12,xl:12,xxl:8},ve={labelCol:{span:5},wrapperCol:{span:19}},ae=function(ie){var Pe=ie.approveType,be=A.a.useForm(),$e=Object(p.a)(be,1),M=$e[0];Object(f.useEffect)(function(){},[ie.changeParams]);var Ae=function(){M.resetFields(),ie.handleReset()},S=function(L){var k=Object(j.a)({},L);L.sqsj&&(k.startTime="".concat(i()(L.sqsj[0]).format("YYYY-MM-DD")," 00:00:00"),k.endTime="".concat(i()(L.sqsj[1]).format("YYYY-MM-DD")," 23:59:59")),delete k.sqsj,delete k.sqdw,ie.handleSearch(k)},ke=function(){},Y=function(L){var k=L.bm;M.setFieldsValue({xjdwBm:k})};return Object(h.jsx)("div",{className:B.a.TopSearch,children:Object(h.jsx)(A.a,Object(j.a)(Object(j.a)({},ve),{},{name:"topSearch",form:M,onFinish:S,onFinishFailed:ke,className:B.a.form,children:Object(h.jsxs)(oe.a,{children:[Object(f.createElement)(R.a,Object(j.a)(Object(j.a)({},ce),{},{key:"mxMc"}),Object(h.jsx)(A.a.Item,{label:"\u6A21\u578B\u540D\u79F0",name:"mxMc",children:Object(h.jsx)(ne.a,{})})),Object(f.createElement)(R.a,Object(j.a)(Object(j.a)({},ce),{},{key:"sqrDw"}),Object(h.jsx)(de,{label:"\u7533\u8BF7\u5355\u4F4D",name:"sqdw",children:Object(h.jsx)(he.a,{selfRoot:!0,onChange:function(L){var k=L.mc,Se=L.bm;return M.setFieldsValue({sqrDw:Se})}})}),Object(h.jsx)(A.a.Item,{label:"\u7533\u8BF7\u5355\u4F4D",name:"sqrDw",hidden:!0,children:Object(h.jsx)(ne.a,{})})),Object(f.createElement)(R.a,Object(j.a)(Object(j.a)({},ce),{},{key:"sqrMc"}),Object(h.jsx)(A.a.Item,{label:"\u7533\u8BF7\u4EBA",name:"sqrMc",children:Object(h.jsx)(ne.a,{})})),Object(f.createElement)(R.a,Object(j.a)(Object(j.a)({},ce),{},{key:"sqsj"}),Object(h.jsx)(de,{label:"\u7533\u8BF7\u65F6\u95F4",name:"sqsj",children:Object(h.jsx)(ge,{disabledDate:function(L){return L&&L>i()().endOf("day")}})})),Object(f.createElement)(R.a,Object(j.a)(Object(j.a)({},ce),{},{key:"dqzt"}),Object(h.jsx)(de,{label:"\u5BA1\u6279\u72B6\u6001",name:"dqzt",children:Object(h.jsx)(N.a.Group,{children:Object.keys(s.q).map(function(E){return Object(h.jsx)(N.a,{value:s.q[E].value,children:s.q[E].name},E)})})})),Object(f.createElement)(R.a,Object(j.a)(Object(j.a)({},ce),{},{key:"sjzt"}),Object(h.jsx)(de,{label:"\u4E0A\u67B6\u72B6\u6001",name:"sjzt",children:Object(h.jsx)(N.a.Group,{children:Object.keys(s.m).map(function(E){return Object(h.jsx)(N.a,{value:s.m[E].value,children:s.m[E].name},E)})})})),Object(h.jsx)(R.a,{span:24,children:Object(h.jsxs)("div",{style:{textAlign:"right"},children:[Object(h.jsx)(fe.a,{onClick:Ae,children:"\u91CD\u7F6E"}),Object(h.jsx)(fe.a,{type:"primary",htmlType:"submit",style:{marginLeft:5},children:"\u67E5\u8BE2"})]})})]})}))})};se.a=ae},rgW5:function(le,se,a){"use strict";var Ie=a("wx14"),oe=a("rePB"),Ze=a("ye1Q"),fe=a("TSYQ"),Ne=a.n(fe),N=a("q1tI"),je=a("H84U"),R=a("0n0R"),Je=function(A,f){var V={};for(var m in A)Object.prototype.hasOwnProperty.call(A,m)&&f.indexOf(m)<0&&(V[m]=A[m]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,m=Object.getOwnPropertySymbols(A);i<m.length;i++)f.indexOf(m[i])<0&&Object.prototype.propertyIsEnumerable.call(A,m[i])&&(V[m[i]]=A[m[i]]);return V},ne=function(f){var V=f.prefixCls,m=f.className,i=f.color,he=i===void 0?"blue":i,s=f.dot,J=f.pending,B=J===void 0?!1:J,h=f.position,e=f.label,de=f.children,ge=Je(f,["prefixCls","className","color","dot","pending","position","label","children"]),ce=N.useContext(je.b),ve=ce.getPrefixCls,ae=ve("timeline",V),H=Ne()(Object(oe.a)(Object(oe.a)({},"".concat(ae,"-item"),!0),"".concat(ae,"-item-pending"),B),m),ie=Ne()(Object(oe.a)(Object(oe.a)(Object(oe.a)({},"".concat(ae,"-item-head"),!0),"".concat(ae,"-item-head-custom"),!!s),"".concat(ae,"-item-head-").concat(he),!0)),Pe=/blue|red|green|gray/.test(he||"")?void 0:he;return N.createElement("li",Object(Ie.a)({},ge,{className:H}),e&&N.createElement("div",{className:"".concat(ae,"-item-label")},e),N.createElement("div",{className:"".concat(ae,"-item-tail")}),N.createElement("div",{className:ie,style:{borderColor:Pe,color:Pe}},s),N.createElement("div",{className:"".concat(ae,"-item-content")},de))},j=ne,p=function(A,f){var V={};for(var m in A)Object.prototype.hasOwnProperty.call(A,m)&&f.indexOf(m)<0&&(V[m]=A[m]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,m=Object.getOwnPropertySymbols(A);i<m.length;i++)f.indexOf(m[i])<0&&Object.prototype.propertyIsEnumerable.call(A,m[i])&&(V[m[i]]=A[m[i]]);return V},Ee=function(f){var V=N.useContext(je.b),m=V.getPrefixCls,i=V.direction,he=f.prefixCls,s=f.pending,J=s===void 0?null:s,B=f.pendingDot,h=f.children,e=f.className,de=f.reverse,ge=de===void 0?!1:de,ce=f.mode,ve=ce===void 0?"":ce,ae=p(f,["prefixCls","pending","pendingDot","children","className","reverse","mode"]),H=m("timeline",he),ie=typeof J=="boolean"?null:J,Pe=J?N.createElement(j,{pending:!!J,dot:B||N.createElement(Ze.a,null)},ie):null,be=N.Children.toArray(h);be.push(Pe),ge&&be.reverse();var $e=function(k,Se){return ve==="alternate"?k.props.position==="right"?"".concat(H,"-item-right"):k.props.position==="left"||Se%2==0?"".concat(H,"-item-left"):"".concat(H,"-item-right"):ve==="left"?"".concat(H,"-item-left"):ve==="right"||k.props.position==="right"?"".concat(H,"-item-right"):""},M=be.filter(function(L){return!!L}),Ae=N.Children.count(M),S="".concat(H,"-item-last"),ke=N.Children.map(M,function(L,k){var Se=k===Ae-2?S:"",We=k===Ae-1?S:"";return Object(R.a)(L,{className:Ne()([L.props.className,!ge&&!!J?Se:We,$e(L,k)])})}),Y=be.some(function(L){var k;return!!((k=L==null?void 0:L.props)===null||k===void 0?void 0:k.label)}),E=Ne()(H,Object(oe.a)(Object(oe.a)(Object(oe.a)(Object(oe.a)(Object(oe.a)({},"".concat(H,"-pending"),!!J),"".concat(H,"-reverse"),!!ge),"".concat(H,"-").concat(ve),!!ve&&!Y),"".concat(H,"-label"),Y),"".concat(H,"-rtl"),i==="rtl"),e);return N.createElement("ul",Object(Ie.a)({},ae,{className:E}),ke)};Ee.Item=j;var Ke=Ee,_e=se.a=Ke},"wGk/":function(le,se,a){le.exports={action_log:"action_log___1spAZ"}}}]);