1 |
- import{u as v,_ as g}from"./use-page-search.c21c835a.js";import{P as y}from"./page-content.d81fe6d5.js";import{a as _,o as m,h as x,b as F,c as b,d as k,_ as R}from"./process-modal.fa85ab09.js";import{V as r,ap as l,aI as w,_ as D,e as E,q as f,v as P,aA as A,o as M,c as S,h as u,A as I,a as c,j as a,bl as Y}from"./index.197db209.js";import H from"./process-list.d1a0f830.js";import"./basic-form.1636836f.js";import"./global.9ad647c8.js";import"./hooks.f1aab91e.js";import"./index.a1329aaa.js";import"./responseHandle.86881388.js";import"./use-response-handle.d2980b3d.js";import"./index.c135858d.js";const T={formItems:[{field:"action_type",type:"select",placeholder:"\u8282\u70B9\u7C7B\u578B",options:_},{field:"operation_type",type:"select",placeholder:"\u64CD\u4F5C\u7C7B\u578B",options:m}]},U=[{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(l,null,{default:()=>{var t;return(t=_.find(o=>o.value===e.action_type))==null?void 0:t.label}})}},{label:"\u64CD\u4F5C\u7C7B\u578B",prop:"status",cellRenderer({row:e}){return r(l,null,{default:()=>{var t;return(t=m.find(o=>o.value===e.operation_type))==null?void 0:t.label}})}},{label:"\u72B6\u6001",prop:"status",cellRenderer({row:e}){return r(l,{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(l,{style:{marginRight:"10px"}},{default:()=>t}))})}},{label:"\u521B\u5EFA\u4EBA",prop:"creater"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",formatter:({createTime:e})=>w(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:150,slot:"operation"}],d={title:"\u6D41\u7A0B\u8282\u70B9\u8BBE\u7F6E",powers:["001","002","003","004","005","006","007","008"],columns:U,notReuqiredInit:!0,apis:{httpAdd:x,httpList:F,httpStatus:b,httpUpdate:!0,httpDelete:k}};const V={class:"main role bg-white"},$={"w-full":"",flex:""},j={class:"min-w-240px h-[calc(100vh-90px)] process-list__content"},q={"flex-1":""},L={name:"invoiceheader"},N=E({...L,setup(e){const t=f({}),o=f(null),{pageContentRef:i,handleResetClick:h,handleSearchClick:B}=v(()=>({result:{process_id:t.value.id},deleteProps:[]}));function C(p){const{id:s}=p;t.value=p,i.value.getPageData({process_id:s})}return P(()=>d.powers=A().getMenuActions("setActionProcess")),(p,s)=>(M(),S("div",V,[u(Y,{"is-show":a(d).powers.some(n=>n==="001")},{default:I(()=>[c("div",$,[c("div",j,[u(H,{"current-process":t.value,onChangeBtnClick:C},null,8,["current-process"])]),c("div",q,[u(a(g),{class:"search","form-config":a(T),onSearchBtnClick:a(B),onResetBtnClick:a(h)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),u(a(y),{ref_key:"pageContentRef",ref:i,"content-config":a(d),onCreateBtnClick:s[0]||(s[0]=()=>o.value.onDisplay()),onPreviewBtnClick:s[1]||(s[1]=({id:n})=>o.value.onDisplay(n,!0)),onUpdateBtnClick:s[2]||(s[2]=({id:n})=>o.value.onDisplay(n))},null,8,["content-config"])])]),u(R,{"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 oe=D(N,[["__scopeId","data-v-5683d19e"]]);export{oe as default};
|