1 |
- import{u as y,_ as b}from"./use-page-search.28ac261d.js";import{P as x}from"./page-content.1a0b2a74.js";import{a as m,o as _,h as F,b as k,c as R,d as D,_ as w}from"./process-modal.2bedfbc0.js";import{V as r,ap as u,aI as E,_ as P,e as A,q as d,o as S,c as I,h as l,A as M,a as c,j as a,bp as Y}from"./index.ea981fc6.js";import N from"./process-list.48524a68.js";import{u as T}from"./use-permission.b533ab83.js";import"./basic-form.2fdff2a2.js";import"./global.9ad647c8.js";import"./hooks.e40aff9e.js";import"./index.216fda7e.js";import"./responseHandle.493fab6c.js";import"./use-response-handle.6c1eccdf.js";import"./export.efd107f3.js";import"./xlsx.ed122d16.js";import"./index.fb0e9c21.js";const V={formItems:[{field:"action_type",type:"select",placeholder:"\u8282\u70B9\u7C7B\u578B",options:m},{field:"operation_type",type:"select",placeholder:"\u64CD\u4F5C\u7C7B\u578B",options:_}]},$=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u8282\u70B9\u540D\u79F0",prop:"status_name"},{label:"\u8282\u70B9\u503C",prop:"order_process"},{label:"\u8282\u70B9\u7C7B\u578B",prop:"status",cellRenderer({row:e}){return r(u,null,{default:()=>{var t;return(t=m.find(o=>o.value===e.action_type))==null?void 0:t.label}})}},{label:"\u64CD\u4F5C\u7C7B\u578B",prop:"status",cellRenderer({row:e}){return r(u,null,{default:()=>{var t;return(t=_.find(o=>o.value===e.operation_type))==null?void 0:t.label}})}},{label:"\u72B6\u6001",prop:"status",cellRenderer({row:e}){return r(u,{type:e.status==="0"?"danger":"success"},{default:()=>e.status==="1"?"\u542F\u7528":"\u7981\u7528"})}},{label:"\u4E0B\u4E00\u8282\u70B9",prop:"status",width:"200px",cellRenderer({row:e}){return r("div",null,{default:()=>e.next_actions.map(t=>r(u,{style:{marginRight:"10px"}},{default:()=>t}))})}},{label:"\u521B\u5EFA\u4EBA",prop:"creater"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",formatter:({createTime:e})=>E(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:150,slot:"operation"}],f={title:"\u6D41\u7A0B\u8282\u70B9\u8BBE\u7F6E",powers:["001","002","003","004","005","006","007","008"],columns:$,notReuqiredInit:!0,apis:{httpAdd:F,httpList:k,httpStatus:R,httpUpdate:!0,httpDelete:D}};const j={class:"main role bg-white"},q={"w-full":"",flex:""},H={class:"min-w-240px h-[calc(100vh-90px)] process-list__content"},L={"flex-1":""},U={name:"invoiceheader"},z=A({...U,setup(e){const t=d({}),o=d(null),{pageContentRef:i,handleResetClick:h,handleSearchClick:B}=y(()=>({result:{process_id:t.value.id},deleteProps:[]}));function C(n){const{id:s}=n;t.value=n,i.value.getPageData({process_id:s})}const{permission:g,contentConfigRef:v}=T({pageName:"setActionProcess",contentConfig:f,callback:n=>f.powers=n});return(n,s)=>(S(),I("div",j,[l(Y,{"is-show":a(g).list},{default:M(()=>[c("div",q,[c("div",H,[l(N,{"current-process":t.value,onChangeBtnClick:C},null,8,["current-process"])]),c("div",L,[l(a(b),{class:"search","form-config":a(V),onSearchBtnClick:a(B),onResetBtnClick:a(h)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),l(a(x),{ref_key:"pageContentRef",ref:i,"content-config":a(v),onCreateBtnClick:s[0]||(s[0]=()=>o.value.onDisplay()),onPreviewBtnClick:s[1]||(s[1]=({id:p})=>o.value.onDisplay(p,!0)),onUpdateBtnClick:s[2]||(s[2]=({id:p})=>o.value.onDisplay(p))},null,8,["content-config"])])]),l(w,{"current-process":t.value,ref_key:"processModalRef",ref:o,onReload:s[3]||(s[3]=()=>a(i).getPageData({process_id:t.value.id}))},null,8,["current-process"])]),_:1},8,["is-show"])]))}});var le=P(z,[["__scopeId","data-v-58a37202"]]);export{le as default};
|