| 1 |
- var W=Object.defineProperty,Y=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var V=(o,a,t)=>a in o?W(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,z=(o,a)=>{for(var t in a||(a={}))J.call(a,t)&&V(o,t,a[t]);if(L)for(var t of L(a))K.call(a,t)&&V(o,t,a[t]);return o},N=(o,a)=>Y(o,Z(a));var h=(o,a,t)=>new Promise((C,c)=>{var b=u=>{try{x(t.next(u))}catch(I){c(I)}},v=u=>{try{x(t.throw(u))}catch(I){c(I)}},x=u=>u.done?C(u.value):Promise.resolve(u.value).then(b,v);x((t=t.apply(o,a)).next())});import{u as X}from"./index-Mu5dydaG.js";import{u as ee,_ as te}from"./useForm-C4X-ZdZ_.js";import"./BasicForm.vue_vue_type_style_index_0_lang-BiIkb6ny.js";import{u as ae,_ as ie}from"./entry/index-BaQQ7BQ_.js";import{S as oe,a1 as ne,B as S}from"./antd-ILpsl5AZ.js";import"./index-CFMHSB5r.js";import"./TableImg.vue_vue_type_style_index_0_lang-QH8GfGtu.js";import{l as re,d as se,f as w,ak as le,Y as ce,o as ue,r as B,Z as g,_,k as d,u as r,$ as l,a7 as y,a0 as T,F as $,a9 as E,af as de,ab as pe,ae as fe,G as D,a2 as me,a3 as he}from"./vue-CF9JqwIh.js";import"./uuid-BUBnBT7J.js";import"./sortable.esm-CoO8jRpa.js";import{_ as ge}from"./index-CXGOl87Z.js";import{P as _e}from"./SubMenu.vue_vue_type_style_index_0_scoped_9b6103ff_lang-EL89TTg4.js";import"./index-D6-fj_Lr.js";import{V as ye}from"./index-D0jygwV8.js";import we from"./FormDrawer-BmipDTNp.js";import{A as be,a as ve}from"./imageEnum-DhfTiCIu.js";import{f as xe,g as M,h as A,i as Ie}from"./flowApi-CIgJ7KVe.js";import{c as Ce}from"./common-CALU1ODu.js";import"./FormItem.vue_vue_type_script_lang-Dp4O1V3R.js";import"./index-BDVnX7zP.js";import"./IconPicker.vue_vue_type_script_setup_true_lang-0J_QZbkb.js";import"./copyTextToClipboard-Cu8x8bym.js";import"./index-L2ZLrFTi.js";import"./index-D6Qi77pD.js";import"./base64Conver-BAcTuUD2.js";import"./index-Pqf9ZLE_.js";import"./onMountedOrActivated-D34Dt7uC.js";import"./download-D1ZoFQnu.js";import"./resourceApi-D9gL48ec.js";import"./useWindowSizeFn-CiJNBK0Q.js";import"./componentMap-DjxH3hEY.js";import"./useSortable-6iYBSviO.js";import"./VxeBasicTable-BjQCEzUa.js";import"./BasicForm.vue_vue_type_script_setup_true_lang-BhiE9_bz.js";import"./useForm-B90AflV1.js";import"./feildApi-VF_Esp0L.js";import"./enums-vssea2K3.js";import"./test-VrWWj5h0.js";const ke=[{field:"name",label:"",component:"Input",componentProps:({formModel:o})=>({placeholder:"请输入要搜索的内容",onChange:a=>{o.blurry=a.target.value}}),renderComponentContent:()=>({prefix:()=>re(oe)}),colProps:{span:24}}],Re=[{title:"列表id",dataIndex:"id",field:"id",visible:!1},{title:"名字",dataIndex:"name",field:"name"},{title:"类型",dataIndex:"type",field:"type"},{title:"标签",dataIndex:"label",field:"label",align:"left"},{title:"日期",dataIndex:"date",field:"date",align:"left"},{title:"数量",dataIndex:"count",field:"count"},{title:"备注",dataIndex:"remark",field:"remark",align:"left"},{title:"附件",dataIndex:"attachment",slots:{default:"attachment"},field:"attachment",align:"left"},{title:"链接",dataIndex:"hyperLink",slots:{default:"hyperLink"},field:"hyperLink",width:200,align:"left"},{title:"引用",dataIndex:"reference",slots:{default:"reference"},field:"reference",width:200,align:"left"},{width:150,title:"操作",align:"center",slots:{default:"action"},fixed:"right"}],Se=o=>(me("data-v-24c44797"),o=o(),he(),o),De={key:0,class:"flex justify-center"},Fe={key:1},Pe={class:"flex justify-between"},qe={class:"flex justify-between my-4"},Le={class:"flex"},Ve={class:"bg-white section"},ze={class:"flex cursor-pointer table-attachment"},Ne=["src"],Be=["href"],Te={class:"footer"},$e=Se(()=>l("div",null,null,-1)),Ee=se({__name:"index",setup(o){const a=w(!1),t=le(),C=w(""),c=w([]),b=w([]),{createMessage:v}=ae(),x=ce(),[u,{openDrawer:I}]=X(),[O,{getFieldsValue:F}]=ee({schemas:ke,autoSubmitOnEnter:!0,size:"large",rowProps:{gutter:16}});ue(()=>h(this,null,function*(){yield p()}));const P=B({name:"",tags:[]}),j=w([]),G=w(),m=B({id:"biz_me_detial",columns:Re,stripe:!1,border:"inner",data:j.value,proxyConfig:null,showOverflow:!0,resizable:!1,toolbarConfig:null,round:!0,height:640,minHeight:300,headerRowClassName:"row-class",headerCellClassName:"table-basic_header",columnConfig:{resizable:!1}}),H={cellClick({row:s,columnIndex:i}){}};function p(){return h(this,null,function*(){var e,n,f;m.loading=!0;const s={menuReviewId:(e=t.query)==null?void 0:e.menuReviewId,groupId:((n=t.query)==null?void 0:n.groupId)||""},i=yield xe(s);if(!i){a.value=!0;return}C.value=((f=t.query)==null?void 0:f.title)||"",m.data=i||[],m.loading=!1})}function k(s,i){return h(this,null,function*(){var e,n,f,q;c.value=[],s==2&&I(!0,{record:N(z({},i),{id:i.id}),menuId:(e=t.query)==null?void 0:e.menuId,isCbb:!0,isUpdate:!0,groupId:((n=t.query)==null?void 0:n.groupId)||""}),s==3&&(yield M({groupId:((f=t.query)==null?void 0:f.groupId)||"",type:"3",content:i}),yield p()),s==4&&(yield M({groupId:((q=t.query)==null?void 0:q.groupId)||"",type:"4",content:i}),yield p()),s==1&&(c.value.push(i.id),yield A(c.value),v.success("数据已撤回申请"),yield p())})}function R(s){return h(this,null,function*(){var i;if(c.value=[],b.value=[],s=="withdrawn"){for(const e of m.data)c.value.push(e.id);yield A(c.value),v.success("已撤回全部申请"),yield p()}if(s=="cancel"&&x.push({path:"/bizMe/flow"}),s=="submit"){for(const e of m.data)b.value.push({operationType:e.resource_review_type,resource:e});yield Ie({menuId:(i=t.query)==null?void 0:i.menuId,operationResource:b.value,repositoryResource:!0}),v.success("已审批"),yield p()}})}function Q(){return h(this,null,function*(){P.ownerRegionId=F().ownerRegionId,P.resourceName=F().resourceName,m.pagerConfig.currentPage=1,yield p()})}function U(){return h(this,null,function*(){yield p()})}return(s,i)=>(g(),_("div",null,[a.value?(g(),_("div",De,[d(r(ne))])):(g(),_("div",Fe,[l("div",Pe,[d(r(_e),{title:C.value,"go-back":!0},null,8,["title"]),l("div",qe,[l("div",Le,[d(r(te),{onRegister:r(O),onFieldValueChange:Q,style:{width:"500px"}},null,8,["onRegister"])])])]),l("div",Ve,[d(r(ye),pe({ref_key:"gridRef",ref:G},m,fe(H),{class:"table-basic"}),{reference:y(({row:e})=>{var n;return[l("div",null,T((n=r(Ce)(e.reference))==null?void 0:n.text),1)]}),attachment:y(({row:e})=>[l("div",ze,[(g(!0),_($,null,E(e.attachment,(n,f)=>(g(),_("img",{width:"28",height:"36",class:"table-attachment_item",key:n,style:de({zIndex:999-f,marginLeft:f>0?"-18px":"0px"}),src:r(be)[r(ve).includes(n.suffix)?n.suffix:"other"]},null,12,Ne))),128))])]),hyperLink:y(({row:e})=>[l("div",null,[(g(!0),_($,null,E(e.hyperLink,n=>(g(),_("span",{key:n},[l("a",{href:n,target:"_blank"},T(n),9,Be)]))),128))])]),action:y(({row:e})=>[d(r(ge),{actions:[{icon:"icon-edit|iconfont",tooltip:"编辑",onClick:k.bind(null,2,e),ifShow:e.resource_review_type!="3"},{icon:"icon-withdrawn|iconfont",tooltip:"撤销",onClick:k.bind(null,1,e)},{icon:"icon-delete|iconfont",tooltip:"删除",popConfirm:{title:"是否删除",placement:"left",confirm:k.bind(null,3,e)},ifShow:e.resource_review_type!="3"},{icon:"icon-cancel|iconfont",tooltip:"撤销删除",popConfirm:{title:"是否撤销删除",placement:"left",confirm:k.bind(null,4,e)},ifShow:e.resource_review_type=="3"}]},null,8,["actions"])]),_:1},16)]),l("div",Te,[$e,l("div",null,[d(r(S),{onClick:i[0]||(i[0]=e=>R("cancel"))},{default:y(()=>[D(" 取消 ")]),_:1}),d(r(S),{onClick:i[1]||(i[1]=e=>R("withdrawn"))},{default:y(()=>[D(" 撤销全部申请 ")]),_:1}),d(r(S),{onClick:i[2]||(i[2]=e=>R("submit")),type:"primary"},{default:y(()=>[D(" 提交审核 ")]),_:1})])])])),d(we,{onRegister:r(u),onSuccess:U},null,8,["onRegister"])]))}}),kt=ie(Ee,[["__scopeId","data-v-24c44797"]]);export{kt as default};
|