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
27 KiB
1 lines
27 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"2A6J":function(Fe,ue,n){Fe.exports={form:"form___1D7z-",resetBtn:"resetBtn___3v1Uh",container:"container___YQY3g",search:"search___nc9Yv",table:"table___1-75z",titletop:"titletop___3TY-e",addform:"addform___2WZOP",formheight:"formheight___XNnVr",buttongroup:"buttongroup___2Yeah",tablebox:"tablebox___1RLvG"}},"B+L9":function(Fe,ue,n){"use strict";var ve=n("+n12"),me=n("Qyje"),Ge=n.n(me),U=function(E,G){var _={mc:E.wjMc,path:E.wjPath,url:E.wjUrl},re=Object(ve.d)(),o=re.API_URL;window.open("".concat(o).concat(Object(ve.a)(G),"/xtwj/download?").concat(Object(me.stringify)(_)))};ue.a=U},OSq6:function(Fe,ue,n){"use strict";var ve=n("DjyN"),me=n("NUBc"),Ge=n("g9YV"),U=n("wCAj"),We=n("5NDa"),E=n("5rEg"),G=n("+L6B"),_=n("2/Rp"),re=n("5Dmo"),o=n("3S7+"),ke=n("miYZ"),ie=n("tsqr"),f=n("k1fw"),Ye=n("y8nQ"),j=n("Vl3Y"),M=n("tJVT"),d=n("q1tI"),S=n("9kvl"),$=n("wd/R"),z=n.n($),D=n("+n12"),c=n("ydnR"),K=n("2qtc"),k=n("kLXV"),V=n("OaEy"),te=n("2fM7"),Be=n("7Kak"),Y=n("9yH6"),Se=n("RCxd"),se=n("x9/G"),Ie=n("Xsp7"),oe=n("2A6J"),C=n.n(oe),e=n("nKUr"),De=E.a.TextArea,Te={labelCol:{span:5},wrapperCol:{span:15}},Ce=function(t){var l=t.visible,a=t.btns,h=t.sprList,x=t.currentUser,R=t.handleClose,N=t.handleClear,A=t.handleAddItem,ne=j.a.useForm(),xe=Object(M.a)(ne,1),Z=xe[0],ce=function(){R(),Z.resetFields(),N()},ae=function(b){var L=[];return b.mc.map(function(g,J){L.push({code:b.bm[J],name:g})}),JSON.stringify(L)},s=function(b){var L,g,J=Object(f.a)(Object(f.a)({},b),{},{xfdwFw:ae(b==null?void 0:b.xfdwFw),xjdw:(L=x==null?void 0:x.departmentCode)!==null&&L!==void 0?L:"",xjdwMc:(g=x==null?void 0:x.departmentName)!==null&&g!==void 0?g:""});A(J).then(function(v){v&&v.resCode===0?(ie.default.success(v.resMsg),ce()):ie.default.error(v.resMsg)})},ge=function(b){return Object.keys(c.b).map(function(L){if((b==null?void 0:b[L])===1)return Object(e.jsx)(Y.a,{value:c.b[L].value,children:c.b[L].name},L)})};return Object(d.useEffect)(function(){Z.setFieldsValue({approvetype:0})},[]),Object(e.jsx)(k.a,{title:"\u65B0\u589E\u7763\u5BDF\u4E13\u9879",width:800,visible:l,onCancel:ce,footer:!1,children:Object(e.jsx)("div",{className:C.a.addform,children:Object(e.jsxs)(j.a,Object(f.a)(Object(f.a)({form:Z},Te),{},{onFinish:s,children:[Object(e.jsx)(j.a.Item,{label:"\u6807\u9898",name:"bt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E13\u9879\u6807\u9898!"}],children:Object(e.jsx)(E.a,{})}),Object(e.jsx)(j.a.Item,{label:"\u4E13\u9879\u7C7B\u522B",name:"zxLb",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E13\u9879\u7C7B\u522B!"}],extra:Object(e.jsxs)("span",{children:[Object(e.jsx)(Se.a,{style:{color:"orange"}})," \u901A\u8FC7\u8BE5\u5B57\u6BB5\u5C06\u4E13\u9879\u548C\u6A21\u578B\u5173\u8054"]}),children:Object(e.jsx)(E.a,{})}),Object(e.jsx)(j.a.Item,{label:"\u8BE6\u7EC6\u63CF\u8FF0",name:"xxMs",children:Object(e.jsx)(De,{allowClear:!0,rows:4})}),Object(e.jsx)(j.a.Item,{label:"\u4E0B\u53D1\u8303\u56F4",name:"xfdwFw",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E0B\u53D1\u5355\u4F4D!"}],children:Object(e.jsx)(Ie.a,{multiple:!0,selfRoot:!0,onChange:function(b){var L=b.bm,g=b.mc;return Z.setFieldsValue({xfdwFw:{bm:L,mc:g}})}})}),Object(e.jsx)(j.a.Item,{label:"\u4E0A\u4F20\u9644\u4EF6",name:"wj",children:Object(e.jsx)(se.a,{onChange:function(b){Z.setFieldsValue({files:b})}})}),Object(e.jsx)(j.a.Item,{label:"\u5BA1\u6279\u65B9\u5F0F",name:"spFs",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u65B9\u5F0F!"}],children:Object(e.jsx)(Y.a.Group,{children:ge(a)})}),Object(e.jsx)(j.a.Item,{noStyle:!0,shouldUpdate:function(b,L){return b.spFs!==L.spFs},children:function(b){var L=b.getFieldValue;return L("spFs")===c.b.bjldsp.value?Object(e.jsxs)(e.Fragment,{children:[Object(e.jsx)(j.a.Item,{label:"\u5BA1\u6279\u4EBA",name:"xjSpr",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!"}],children:Object(e.jsx)(te.a,{style:{width:150},onSelect:function(J,v){Z.setFieldsValue({xjSprMc:v.children})},children:h.map(function(g){return Object(e.jsx)(Option,{value:g.logingId,children:"".concat(g.surname).concat(g.commonName)},g.id)})})}),Object(e.jsx)(j.a.Item,{hidden:!0,label:"\u5BA1\u6279\u4EBA\u540D\u79F0",name:"xjSprMc",children:Object(e.jsx)(E.a,{})})]}):null}}),Object(e.jsx)(j.a.Item,{children:Object(e.jsxs)("div",{className:C.a.buttongroup,children:[Object(e.jsx)(_.a,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"}),Object(e.jsx)(_.a,{className:C.a.resetBtn,onClick:ce,children:"\u53D6\u6D88"})]})})]}))})})},Le=Ce,fe=n("14J3"),he=n("BMrR"),be=n("jCWc"),F=n("kPKH"),_e=n("B+L9"),pe=function(t){var l,a,h,x,R,N,A,ne,xe=t.visible,Z=t.sysToken,ce=t.isLocationInBu,ae=t.listType,s=t.itemMsg,ge=t.handleClose,W=t.handleClear,b=function(){ge(),W()},L=function(i){var T={msg:{mxMc:i,page:1,size:10},type:ce?"department":"province"};S.b.push({pathname:"/progresssearch",params:T})},g=[{title:"\u5BA1\u6279\u4EBA",dataIndex:"clrMc",key:"clrMc",width:"12%",render:function(i){return Object(e.jsx)(o.a,{placement:"topLeft",title:i,children:i})}},{title:"\u5BA1\u6279\u5355\u4F4D",dataIndex:"cldwMc",key:"cldwMc",width:"18%",render:function(i){return Object(e.jsx)(o.a,{placement:"topLeft",title:i,children:i})}},{title:"\u5BA1\u6279\u65F6\u95F4",dataIndex:"createTime",key:"createTime",width:"18%",render:function(i){return Object(e.jsx)(o.a,{placement:"topLeft",title:i,children:i})}},{title:"\u5BA1\u6279\u65B9\u5F0F",dataIndex:"spFs",key:"spFs",width:"12%",render:function(i){return Object(e.jsx)(o.a,{placement:"topLeft",title:Object(D.b)(c.b,i),children:Object(D.b)(c.b,i)})}},{title:"\u4E0B\u7EA7\u5BA1\u6279\u4EBA",dataIndex:"xjSprMc",key:"xjSprMc",width:"20%",render:function(i){return Object(e.jsx)(o.a,{placement:"topLeft",title:i,children:i})}},{title:"\u5BA1\u6279\u610F\u89C1",dataIndex:"spyj",key:"spyj",width:"22%",render:function(i){return Object(e.jsx)(o.a,{placement:"topLeft",title:i,children:i})}}],J=[{title:"\u5355\u4F4D",dataIndex:"qsdwMc",key:"qsdwMc",width:"50%",render:function(i){return Object(e.jsx)(o.a,{placement:"topLeft",title:i,children:i})}},{title:"\u662F\u5426\u7B7E\u6536",dataIndex:"sfqs",key:"sfqs",width:"20%",render:function(i,T){return Object(e.jsx)(o.a,{placement:"topLeft",title:Object(D.b)(c.l,T.qsZt),children:Object(D.b)(c.l,T.qsZt)})}},{title:"\u7B7E\u6536\u65F6\u95F4",dataIndex:"qsSj",key:"qsSj",width:"30%",render:function(i){return Object(e.jsx)(o.a,{placement:"topLeft",title:i,children:i})}}];return Object(e.jsxs)(k.a,{title:"\u67E5\u770B\u7763\u5BDF\u4E13\u9879",width:800,visible:xe,onCancel:b,footer:!1,children:[Object(e.jsxs)("div",{children:[Object(e.jsx)("div",{className:C.a.titletop,children:"\u7763\u5BDF\u4E13\u9879"}),Object(e.jsxs)(he.a,{gutter:[5,5],children:[Object(e.jsx)(F.a,{span:4,style:{textAlign:"right"},children:"\u4E13\u9879\u6807\u9898\uFF1A"}),Object(e.jsx)(F.a,{span:18,children:s==null||(l=s.itemInfo)===null||l===void 0?void 0:l.bt}),Object(e.jsx)(F.a,{span:4,style:{textAlign:"right"},children:"\u4E13\u9879\u7C7B\u522B\uFF1A"}),Object(e.jsx)(F.a,{span:18,children:s==null||(a=s.itemInfo)===null||a===void 0?void 0:a.zxLb}),Object(e.jsx)(F.a,{span:4,style:{textAlign:"right"},children:"\u8BE6\u7EC6\u63CF\u8FF0\uFF1A"}),Object(e.jsx)(F.a,{span:18,children:s==null||(h=s.itemInfo)===null||h===void 0?void 0:h.xxMs}),ae!=="approve"&&Object(e.jsx)(F.a,{span:4,style:{textAlign:"right"},children:"\u5173\u8054\u6A21\u578B\uFF1A"}),ae!=="approve"&&Object(e.jsx)(F.a,{span:18,children:(s==null?void 0:s.moduleList)&&(s==null||(x=s.moduleList)===null||x===void 0||(R=x.split(","))===null||R===void 0?void 0:R.map(function(v,i){var T,I;return Object(e.jsxs)("a",{onClick:function(){return L(v)},children:[v,i===(s==null||(T=s.moduleList)===null||T===void 0||(I=T.split(","))===null||I===void 0?void 0:I.length)-1?"":";"]},i)}))}),Object(e.jsx)(F.a,{span:4,style:{textAlign:"right"},children:"\u9644\u4EF6\u4FE1\u606F\uFF1A"}),Object(e.jsx)(F.a,{span:18,children:s==null||(N=s.itemInfo)===null||N===void 0||(A=N.wjList)===null||A===void 0?void 0:A.map(function(v,i){var T,I;return Object(e.jsxs)("a",{onClick:function(){return Object(_e.a)(v,Z)},children:[v.wjMc,i===(s==null||(T=s.itemInfo)===null||T===void 0||(I=T.wjList)===null||I===void 0?void 0:I.length)-1?"":";"]},i)})}),ae==="approve"&&Object(e.jsx)(F.a,{span:4,style:{textAlign:"right"},children:"\u53D1\u5E03\u65F6\u95F4\uFF1A"}),ae==="approve"&&Object(e.jsx)(F.a,{span:18,children:s==null||(ne=s.itemInfo)===null||ne===void 0?void 0:ne.fbSj})]})]}),Object(e.jsxs)("div",{className:C.a.tablebox,children:[Object(e.jsx)("div",{className:C.a.titletop,children:"\u5BA1\u6279\u8BB0\u5F55"}),Object(e.jsx)(U.a,{rowKey:function(i){return(i==null?void 0:i.id)||null},columns:g,dataSource:(s==null?void 0:s.approveList)||[],pagination:!1,scroll:{x:1e3}})]}),Object(e.jsxs)("div",{className:C.a.tablebox,children:[Object(e.jsx)("div",{className:C.a.titletop,children:"\u7B7E\u6536\u60C5\u51B5"}),Object(e.jsx)(U.a,{rowKey:function(i){return(i==null?void 0:i.id)||null},columns:J,dataSource:(s==null?void 0:s.checkedList)||[],pagination:!1})]})]})},Oe=pe,Ee=E.a.TextArea,we=te.a.Option,Me={labelCol:{span:5},wrapperCol:{span:15}},Pe=function(t){var l=t.visible,a=t.btns,h=t.nowRow,x=t.newestRecord,R=t.sprList,N=t.approveList,A=t.currentUser,ne=t.handleClose,xe=t.handleClear,Z=t.handleApproveItem,ce=j.a.useForm(),ae=Object(M.a)(ce,1),s=ae[0],ge=Object(d.useState)(0),W=Object(M.a)(ge,2),b=W[0],L=W[1],g=function(r){L(r.target.value)},J=function(){ne(),s.resetFields(),xe()},v=function(r){var w,de,je={id:x,spFs:b===3?r.spjg:r.spFs,zxZbId:h.id,spyj:r.spyj,xjSpr:r.xjSpr,xjSprMc:r.xjSprMc,xjdw:(w=A==null?void 0:A.departmentCode)!==null&&w!==void 0?w:"",xjdwMc:(de=A==null?void 0:A.departmentName)!==null&&de!==void 0?de:""};Z(je).then(function(X){X&&X.resCode===0&&(ie.default.success(X.resMsg),J())})},i=function(r){return Object.keys(c.b).map(function(w){if((r==null?void 0:r[w])===1)return Object(e.jsx)(Y.a,{value:c.b[w].value,children:c.b[w].name},w)})};Object(d.useEffect)(function(){s.setFieldsValue({approveEnd:0,approvetype:0})},[]);var T=[{title:"\u5E8F\u53F7",dataIndex:"id",key:"id",width:"10%",render:function(r,w,de){return de+1}},{title:"\u5BA1\u6279\u4EBA",dataIndex:"clrMc",key:"clrMc",width:"12%",render:function(r){return Object(e.jsx)(o.a,{placement:"topLeft",title:r,children:r})}},{title:"\u5BA1\u6279\u5355\u4F4D",dataIndex:"cldwMc",key:"cldwMc",width:"18%",render:function(r){return Object(e.jsx)(o.a,{placement:"topLeft",title:r,children:r})}},{title:"\u5BA1\u6279\u65F6\u95F4",dataIndex:"createTime",key:"createTime",width:"18%",render:function(r){return Object(e.jsx)(o.a,{placement:"topLeft",title:r,children:r})}},{title:"\u5BA1\u6279\u65B9\u5F0F",dataIndex:"spFs",key:"spFs",width:"12%",render:function(r){return Object(e.jsx)(o.a,{placement:"topLeft",title:Object(D.b)(c.b,r),children:Object(D.b)(c.b,r)})}},{title:"\u4E0B\u7EA7\u5BA1\u6279\u4EBA",dataIndex:"xjSprMc",key:"xjSprMc",width:"20%",render:function(r){return Object(e.jsx)(o.a,{placement:"topLeft",title:r,children:r})}},{title:"\u5BA1\u6279\u610F\u89C1",dataIndex:"spyj",key:"spyj",width:"22%",render:function(r){return Object(e.jsx)(o.a,{placement:"topLeft",title:r,children:r})}}];return Object(e.jsxs)(k.a,{title:"\u5BA1\u6279\u7763\u5BDF\u4E13\u9879",width:800,visible:l,onCancel:J,footer:!1,children:[Object(e.jsx)("div",{className:C.a.titletop,children:"\u5BA1\u6279\u610F\u89C1"}),Object(e.jsx)("div",{className:C.a.addform,children:Object(e.jsxs)(j.a,Object(f.a)(Object(f.a)({form:s},Me),{},{onFinish:v,children:[Object(e.jsxs)("div",{className:C.a.formheight,children:[Object(e.jsx)(j.a.Item,{label:"\u5BA1\u6279\u7ED3\u679C",name:"spjg",initialValue:b,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u7ED3\u679C!"}],children:Object(e.jsxs)(Y.a.Group,{onChange:g,children:[Object(e.jsx)(Y.a,{value:0,children:"\u901A\u8FC7"}),Object(e.jsx)(Y.a,{value:3,children:"\u9A73\u56DE"})]})}),Object(e.jsx)(j.a.Item,{label:"\u5BA1\u6279\u610F\u89C1",name:"spyj",children:Object(e.jsx)(Ee,{allowClear:!0,rows:4})}),Object(e.jsx)(j.a.Item,{noStyle:!0,shouldUpdate:function(r,w){return r.spjg!==w.spjg},children:function(r){var w=r.getFieldValue;return w("spjg")===0?Object(e.jsxs)(e.Fragment,{children:[Object(e.jsx)(j.a.Item,{label:"\u5BA1\u6279\u65B9\u5F0F",name:"spFs",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u65B9\u5F0F!"}],children:Object(e.jsx)(Y.a.Group,{children:i(a)})}),Object(e.jsx)(j.a.Item,{noStyle:!0,shouldUpdate:function(je,X){return je.spFs!==X.spFs},children:function(je){var X=je.getFieldValue;return X("spFs")===c.b.bjldsp.value?Object(e.jsxs)(e.Fragment,{children:[Object(e.jsx)(j.a.Item,{label:"\u5BA1\u6279\u4EBA",name:"xjSpr",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!"}],children:Object(e.jsx)(te.a,{style:{width:150},onSelect:function(He,Ke){s.setFieldsValue({xjSprMc:Ke.children})},children:R.map(function(Q){return Object(e.jsx)(we,{value:Q.logingId,children:"".concat(Q.surname).concat(Q.commonName)},Q.id)})})}),Object(e.jsx)(j.a.Item,{hidden:!0,label:"\u5BA1\u6279\u4EBA\u540D\u79F0",name:"xjSprMc",children:Object(e.jsx)(E.a,{})})]}):null}})]}):""}})]}),Object(e.jsx)(j.a.Item,{children:Object(e.jsxs)("div",{className:C.a.buttongroup,children:[Object(e.jsx)(_.a,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"}),Object(e.jsx)(_.a,{className:C.a.resetBtn,onClick:J,children:"\u53D6\u6D88"})]})})]}))}),Object(e.jsxs)("div",{className:C.a.tablebox,children:[Object(e.jsx)("div",{className:C.a.titletop,children:"\u5386\u53F2\u5BA1\u6279\u610F\u89C1"}),Object(e.jsx)(U.a,{rowKey:function(r){return(r==null?void 0:r.id)||null},columns:T,dataSource:N||[],scroll:{x:1100}})]})]})},ye=Pe,P=function(t){var l=t.listType,a=t.sprList,h=t.currentUser,x=t.fetchGetApproveItemList,R=t.fetchAddItem,N=t.fetchApproveItem,A=t.fetchGetAddBtns,ne=t.fetchGetApproveBtns,xe=t.fetchGetNewestRecord,Z=t.fetchGetCheckItemList,ce=t.fetchCheckItem,ae=t.fetchGetItemInfo,s=t.fetchGetItemApproveRecord,ge=t.fetchGetItemCheckRecord,W=t.fetchGetItemModuleAbout,b=t.fetchSprList,L=t.isLocationInBu,g=L?"":"bu",J=j.a.useForm(),v=Object(M.a)(J,1),i=v[0],T=Object(d.useState)({}),I=Object(M.a)(T,2),r=I[0],w=I[1],de=Object(d.useState)({page:1,limit:10}),je=Object(M.a)(de,2),X=je[0],Q=je[1],He=Object(d.useState)(),Ke=Object(M.a)(He,2),Ze=Ke[0],Ve=Ke[1],ft=Object(d.useState)(!1),Je=Object(M.a)(ft,2),Re=Je[0],jt=Je[1],vt=Object(d.useState)(!1),Xe=Object(M.a)(vt,2),Ae=Xe[0],Qe=Xe[1],mt=Object(d.useState)(!1),qe=Object(M.a)(mt,2),Ue=qe[0],ht=qe[1],bt=Object(d.useState)({}),et=Object(M.a)(bt,2),pt=et[0],tt=et[1],Ot=Object(d.useState)({}),nt=Object(M.a)(Ot,2),xt=nt[0],at=nt[1],gt=Object(d.useState)(),lt=Object(M.a)(gt,2),It=lt[0],Ct=lt[1],Lt=Object(d.useState)({itemInfo:{},approveList:{},checkedList:{},moduleList:{}}),rt=Object(M.a)(Lt,2),_t=rt[0],it=rt[1],Et=Object(d.useState)([]),st=Object(M.a)(Et,2),Mt=st[0],yt=st[1],At=function(u){var p=Object(f.a)(Object(f.a)({},u),{},{page:1,limit:10});Q(p)},Ft=function(){i.resetFields(),Q({page:1,limit:10})},Bt=function(u){Q(Object(f.a)(Object(f.a)({},X),{},{page:u})),getList(Object(f.a)(Object(f.a)({},X),{},{page:u}))},St=function(u){l==="approve"&&x(u).then(function(p){w(p)}),l==="check"&&Z({params:u,sysToken:g}).then(function(p){w(p)})},Dt=function(u){ce({id:u.id,sysToken:g}).then(function(p){p&&p.resCode===0&&(ie.default.success(p.resMsg),Q({page:1,limit:10}),i.setFieldsValue())})},ot=function(u){Ve(u),Re&&(Q({page:1,limit:10}),i.setFieldsValue()),!Re&&l==="approve"&&(A().then(function(p){tt(p)}),ne().then(function(p){at(p)}),b()),jt(!Re)},ct=function(u){Ve(u),Ue&&(Q({page:1,limit:10}),i.setFieldsValue()),Ue||(xe(u.id).then(function(p){p&&p.resCode===0&&(Ct(p.data.id),s({id:u.id,sysToken:g}).then(function(ze){yt(ze)}))}),l==="approve"&&(A().then(function(p){tt(p)}),ne().then(function(p){at(p)}),b())),ht(!Ue)},dt=function(u){Ve(u),Ae?(Qe(!Ae),it()):Promise.all([ae({id:l==="approve"?u.id:u.zxZbId,sysToken:g}),s({id:l==="approve"?u.id:u.zxZbId,sysToken:g}),ge({id:l==="approve"?u.id:u.zxZbId,sysToken:g}),!Ae&&u.qs===0&&W(u.zxZbId)]).then(function(p){it({itemInfo:p[0],approveList:p[1],checkedList:p[2],moduleList:p[3]||""}),Qe(!Ae)})},$e=function(){Ve()};Object(d.useEffect)(function(){St(X)},[X]);var Tt=function(){var u=[{title:"\u5E8F\u53F7",dataIndex:"id",key:"id",render:function(O,B,Ne){return Ne+1},width:"8%"},{title:"\u4E13\u9879\u6807\u9898",dataIndex:"bt",width:"15%",render:function(O){return Object(e.jsx)(o.a,{placement:"topLeft",title:O,children:O})}},{title:"\u4E13\u9879\u7C7B\u522B",dataIndex:"zxLb",width:"15%",render:function(O){return Object(e.jsx)(o.a,{placement:"topLeft",title:O,children:O})},ellipsis:{showTitle:!1}}],p=[{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"sqSj",width:"15%",render:function(O){return Object(e.jsx)(o.a,{placement:"topLeft",title:z()(O).format("YYYY-MM-DD HH:mm:ss"),children:z()(O).format("YYYY-MM-DD HH:mm:ss")})},ellipsis:{showTitle:!1}},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"fbSj",width:"15%",render:function(O){return O!==null&&Object(e.jsx)(o.a,{placement:"topLeft",title:z()(O).format("YYYY-MM-DD HH:mm:ss"),children:z()(O).format("YYYY-MM-DD HH:mm:ss")})},ellipsis:{showTitle:!1}},{title:"\u5F53\u524D\u5904\u7406\u4EBA",dataIndex:"dqClrMc",width:"15%",render:function(O){return Object(e.jsx)(o.a,{placement:"topLeft",title:O,children:O})},ellipsis:{showTitle:!1}},{title:"\u5F53\u524D\u5904\u7406\u5355\u4F4D",dataIndex:"dqCldwMc",width:"15%",render:function(O){return Object(e.jsx)(o.a,{placement:"topLeft",title:O,children:O})},ellipsis:{showTitle:!1}}],ze=[{title:"\u4E0B\u53D1\u5355\u4F4D",dataIndex:"xfdwMc",width:"15%",render:function(O){return Object(e.jsx)(o.a,{placement:"topLeft",title:O,children:O})},ellipsis:{showTitle:!1}},{title:"\u7B7E\u6536\u65F6\u95F4",dataIndex:"qsSj",width:"15%",render:function(O){return O!==null&&Object(e.jsx)(o.a,{placement:"topLeft",title:z()(O).format("YYYY-MM-DD HH:mm:ss"),children:z()(O).format("YYYY-MM-DD HH:mm:ss")})},ellipsis:{showTitle:!1}}],ut=[{title:"\u72B6\u6001",dataIndex:"dqzt",width:"10%",render:function(O,B){return l==="approve"?Object(e.jsx)(o.a,{placement:"topLeft",title:Object(D.b)(c.q,B.dqzt),children:Object(D.b)(c.q,B.dqzt)}):Object(e.jsx)(o.a,{placement:"topLeft",title:Object(D.b)(c.l,B.qsZt),children:Object(D.b)(c.l,B.qsZt)})},ellipsis:{showTitle:!1}},{title:"\u64CD\u4F5C",dataIndex:"wtjs",width:"10%",render:function(O,B){return Object(e.jsxs)(e.Fragment,{children:[(B==null?void 0:B.ck)!==0&&Object(e.jsx)(_.a,{type:"link",onClick:function(){return dt(B)},children:"\u67E5\u770B"}),l==="approve"&&(B==null?void 0:B.sp)===1&&Object(e.jsx)(_.a,{type:"link",onClick:function(){return ct(B)},children:"\u5BA1\u6279"}),l==="check"&&(B==null?void 0:B.qs)===1&&Object(e.jsx)(_.a,{type:"link",onClick:function(){return Dt(B)},children:"\u7B7E\u6536"})]})}}];if(l==="approve")return[].concat(u,p,ut);if(l==="check")return[].concat(u,ze,ut)};return Object(e.jsxs)("div",{className:C.a.container,children:[Object(e.jsxs)("div",{className:C.a.search,children:[Object(e.jsxs)(j.a,{layout:"inline",form:i,initialValues:{},onFinish:At,children:[Object(e.jsx)(j.a.Item,{label:"\u4E13\u9879\u6807\u9898",name:"bt",children:Object(e.jsx)(E.a,{placeholder:""})}),Object(e.jsx)(j.a.Item,{label:"\u4E13\u9879\u7C7B\u522B",name:"zxLb",children:Object(e.jsx)(E.a,{placeholder:""})}),Object(e.jsxs)(j.a.Item,{children:[Object(e.jsx)(_.a,{type:"primary",htmlType:"submit",children:"\u67E5\u8BE2"}),Object(e.jsx)(_.a,{type:"default",onClick:Ft,className:C.a.resetBtn,children:"\u91CD\u7F6E"})]})]}),l==="approve"&&Object(e.jsx)(_.a,{type:"primary",onClick:ot,children:"\u65B0\u589E\u7763\u5BDF\u4E13\u9879"})]}),Object(e.jsx)(U.a,{columns:Tt(),dataSource:r==null?void 0:r.records,rowKey:"id",pagination:!1}),Object(e.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:Object(e.jsx)(me.a,{current:(r==null?void 0:r.current)||1,pageSize:(r==null?void 0:r.size)||0,total:(r==null?void 0:r.total)||0,onChange:function(u){return Bt(u)},showTotal:function(u){return"\u5171 ".concat(u," \u6761")}})}),Re&&Object(e.jsx)(Le,{visible:Re,nowRow:Ze,btns:pt,sprList:a,currentUser:h,handleClose:ot,handleClear:$e,handleAddItem:R}),Ae&&Object(e.jsx)(Oe,{visible:Ae,sysToken:g,itemMsg:_t,listType:l,currentUser:h,handleClose:dt,handleClear:$e}),Ue&&Object(e.jsx)(ye,{visible:Ue,nowRow:Ze,newestRecord:It,btns:xt,sprList:a,approveList:Mt,currentUser:h,handleClose:ct,handleClear:$e,handleApproveItem:N})]})},m=function(t){var l=t.itemapprove,a=t.global,h=t.user;return Object(f.a)(Object(f.a)(Object(f.a)({},l),a),h)},H=function(t){return{fetchGetApproveItemList:function(a){return t({type:"itemapprove/fetchGetApproveItemList",payload:Object(f.a)({},a)})},fetchAddItem:function(a){return t({type:"itemapprove/fetchAddItem",payload:Object(f.a)({},a)})},fetchApproveItem:function(a){return t({type:"itemapprove/fetchApproveItem",payload:Object(f.a)({},a)})},fetchGetAddBtns:function(a){return t({type:"itemapprove/fetchGetAddBtns",payload:Object(f.a)({},a)})},fetchGetApproveBtns:function(a){return t({type:"itemapprove/fetchGetApproveBtns",payload:Object(f.a)({},a)})},fetchGetNewestRecord:function(a){return t({type:"itemapprove/fetchGetNewestRecord",payload:a})},fetchGetCheckItemList:function(a){return t({type:"itemapprove/fetchGetCheckItemList",payload:Object(f.a)({},a)})},fetchCheckItem:function(a){return t({type:"itemapprove/fetchCheckItem",payload:Object(f.a)({},a)})},fetchGetItemInfo:function(a){return t({type:"itemapprove/fetchGetItemInfo",payload:Object(f.a)({},a)})},fetchGetItemApproveRecord:function(a){return t({type:"itemapprove/fetchGetItemApproveRecord",payload:Object(f.a)({},a)})},fetchGetItemCheckRecord:function(a){return t({type:"itemapprove/fetchGetItemCheckRecord",payload:Object(f.a)({},a)})},fetchGetItemModuleAbout:function(a){return t({type:"itemapprove/fetchGetItemModuleAbout",payload:a})},fetchSprList:function(a){return t({type:"global/fetchSprList",payload:a})}}},q=ue.a=Object(S.a)(m,H)(P)},Xsp7:function(Fe,ue,n){"use strict";var ve=n("k1fw"),me=n("y8nQ"),Ge=n("Vl3Y"),U=n("tJVT"),We=n("nRaC"),E=n("5RzL"),G=n("q1tI"),_=n.n(G),re=n("9kvl"),o=n("nKUr"),ke=n.n(o),ie=E.a.TreeNode,f=function(d){var S,$,z,D,c=d.user,K=d.selfRoot,k=d.noLoad,V=d.defaultVal,te=d.multiple,Be=d.fetchOrgList,Y=d.fetchOrgBranch,Se=[{code:(S=c==null?void 0:c.departmentCode)!==null&&S!==void 0?S:"",name:($=c==null?void 0:c.departmentName)!==null&&$!==void 0?$:"",orgLevel:(z=c==null?void 0:c.departmentOrgLevel)!==null&&z!==void 0?z:"",isLeaf:(D=c==null?void 0:c.departmentOrgLevel)!==null&&D!==void 0?D:""===3}],se=Object(G.useState)(K?Se:[]),Ie=Object(U.a)(se,2),oe=Ie[0],C=Ie[1],e=Ge.a.useForm(),De=Object(U.a)(e,1),Te=De[0],Ce=Object(G.useState)([]),Le=Object(U.a)(Ce,2),fe=Le[0],he=Le[1],be=Object(G.useState)(V),F=Object(U.a)(be,2),_e=F[0],pe=F[1],Oe=Object(G.useState)(!1),Ee=Object(U.a)(Oe,2),we=Ee[0],Me=Ee[1],Pe=function y(t,l,a){return l.map(function(h){var x=Object(ve.a)({},h);return h.code===t?a.length>0?x.children=a:x.isLeaf=!0:h.children&&(x.children=y(t,h.children,a)),x})},ye=function(t){return new Promise(function(l){var a;if(t!=null&&(a=t.props)!==null&&a!==void 0&&a.children){l();return}var h=t.key;Be(h).then(function(x){var R=oe.map(function(N){var A=Object(ve.a)({},N);return N.code===h?x.length>0?A.children=x:A.isLeaf=!0:N.children&&(A.children=Pe(h,N.children,x)),A});C(R),l()})})},P=function(t){V&&(t.some(function(l){return l.code===V})?Me(!0):Y(V).then(function(l){var a=l.findIndex(function(x){var R;return(R=x.code===(c==null?void 0:c.departmentCode))!==null&&R!==void 0?R:""}),h=l.slice(a+1);he(h)}))},m=function(){if(oe.length===0){var t;Be((t=c==null?void 0:c.departmentCode)!==null&&t!==void 0?t:"").then(function(l){C(l),P(l)})}else P(oe)};Object(G.useEffect)(function(){return _e===void 0&&V&&typeof V=="string"&&!we&&m(),pe(V),function(){}},[V]),Object(G.useEffect)(function(){return K||m(),function(){}},[]),Object(G.useEffect)(function(){return fe.length>0&&ye({key:fe[0].code,orgLevel:fe[0].orgLevel}).then(function(){var y=fe.slice(1);he(y)}),function(){}},[fe]);var H=function y(t){if(!!t){var l=t.map(function(a){return a.children?Object(o.jsx)(ie,{value:a.code,title:a.name,orgLevel:a.orgLevel,isLeaf:a.isLeaf||k||a.orgLevel===3,children:y(a.children)},a.code):Object(o.jsx)(ie,{value:a.code,orgLevel:a.orgLevel,title:a.name,isLeaf:a.isLeaf||k||a.orgLevel===3},a.code)});return l}},q=function(t,l){pe(t),te?d.onChange({bm:t,mc:l}):d.onChange({bm:t,mc:l[0]})};return Object(o.jsx)(E.a,{multiple:te,style:{width:"100%"},dropdownStyle:{overflow:"auto"},allowClear:!0,onChange:q,loadData:k?null:ye,value:_e,children:H(oe)})},Ye=function(d){var S=d.user,$=d.global;return{user:S.currentUser,global:$}},j=function(d){return{fetchOrgList:function($){return d({type:"global/fetchOrgList",payload:$})},fetchOrgBranch:function($){return d({type:"global/fetchOrgBranch",payload:$})}}};ue.a=Object(re.a)(Ye,j)(f)},"x9/G":function(Fe,ue,n){"use strict";var ve=n("DZo9"),me=n("8z0m"),Ge=n("+L6B"),U=n("2/Rp"),We=n("miYZ"),E=n("tsqr"),G=n("oBTY"),_=n("k1fw"),re=n("tJVT"),o=n("q1tI"),ke=n.n(o),ie=n("ydnR"),f=n("GwDU"),Ye=n.n(f),j=n("9kvl"),M=n("B+L9"),d=n("z7Xi"),S=n("nKUr"),$=n.n(S),z=function(K){var k=K.dispatch,V=K.onChange,te=K.defList,Be=K.effects,Y=K.sysToken,Se=K.disabled,se=K.allowType,Ie=Object(o.useState)(0),oe=Object(re.a)(Ie,2),C=oe[0],e=oe[1],De=Object(o.useState)(0),Te=Object(re.a)(De,2),Ce=Te[0],Le=Te[1],fe=Object(o.useState)([]),he=Object(re.a)(fe,2),be=he[0],F=he[1],_e=Object(o.useState)([]),pe=Object(re.a)(_e,2),Oe=pe[0],Ee=pe[1],we=function(){k({type:"global/fetchUploadMaxSize",payload:{sysToken:Y}}).then(function(m){if(m.resCode===0){var H=m.data*1024*1024;Le(m.data),e(H)}})},Me=function(m){V&&V(m)};Object(o.useEffect)(function(){if(we(),se){var P=[];se.forEach(function(m){Oe.indexOf(m.name===-1)&&P.push(m.name)}),Ee(P)}},[]),Object(o.useEffect)(function(){if(te){var P=te.map(function(m){return Object(_.a)(Object(_.a)({},m),{},{name:m.wjMc,url:m.wjUrl,uid:Object(f.uuid)()})});F(P)}return function(){}},[te]);var Pe=function(m){k({type:"global/uploadCaseFiles",payload:{files:m,sysToken:Y}}).then(function(H){if(H.resCode===0){var q=H.data.map(function(t){return Object(_.a)(Object(_.a)({},t),{},{uid:Object(f.uuid)()})}),y=[].concat(Object(G.a)(be),Object(G.a)(q));F(y),Me(y)}})},ye={onRemove:function(m){if(m.isDub===1)return E.default.info("\u6B64\u6587\u4EF6\u4E0D\u5141\u8BB8\u5220\u9664\uFF01"),!1;var H=be.indexOf(m),q=be.slice();q.splice(H,1),F(q),Me(q)},beforeUpload:function(m,H){var q=m.name.split("."),y=q.length-1,t=q[y].toLowerCase();if(se){var l=!0;if(se.forEach(function(h){h===t&&(l=!1)}),l)return E.default.error("\u8BF7\u4E0A\u4F20".concat(Oe.join(),"\u683C\u5F0F\u6587\u4EF6")),!1}else{var a=!0;if(ie.g.forEach(function(h){h===t&&(a=!1)}),a)return E.default.error("\u53EA\u652F\u6301xml\u3001pdf\u3001word\u3001excel\u3001jpg\u3001png\u683C\u5F0F\u6587\u4EF6"),!1}return m.size>C?(E.default.error("\u6587\u4EF6\u6700\u5927\u4E0D\u80FD\u8D85\u8FC7".concat(Ce,"M")),!1):(Pe(m,H),!1)},fileList:be,onPreview:function(m){return Object(M.a)(m,Y)}};return Object(S.jsxs)(me.a,Object(_.a)(Object(_.a)({},ye),{},{children:[Object(S.jsxs)(U.a,{loading:Be["global/uploadCaseFiles"],disabled:Se,children:[Object(S.jsx)(d.a,{})," \u9009\u62E9\u6587\u4EF6"]}),Object(S.jsxs)("span",{style:{fontSize:10,marginLeft:10},children:["\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u4E0D\u80FD\u8D85\u8FC7".concat(Ce,"M"),",",se?"\u53EA\u652F\u6301".concat(Oe.join(),"\u683C\u5F0F\u6587\u4EF6"):"\u53EA\u652F\u6301xml\u3001pdf\u3001word\u3001excel\u3001jpg\u3001png\u683C\u5F0F\u6587\u4EF6"]})]}))},D=function(K){var k=K.loading,V=K.doing;return Object(_.a)(Object(_.a)({},V),{},{effects:k.effects})};ue.a=Object(j.a)(D)(z)}}]);
|