1 |
- import{u as v,_ as g}from"./use-page-search.65ce9740.js";import{P as y}from"./page-content.46df3069.js";import{a as _,o as m,h as x,b as F,c as b,d as k,_ as R}from"./process-modal.abb6c08c.js";import{ah as r,aE as l,aW as w,_ as D,q as E,B as f,C as P,aP as A,o as M,n as S,t as u,H,p as c,v as a,bx as Y}from"./index.f00b3728.js";import I from"./process-list.c91f84a9.js";import"./basic-form.11f5b8be.js";import"./global.9ad647c8.js";import"./hooks.704e488b.js";import"./index.892782bc.js";import"./responseHandle.dd0170ee.js";import"./use-response-handle.10a5ad96.js";import"./index.342bdce0.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 $={class:"main role bg-white"},q={"w-full":"",flex:""},L={class:"min-w-240px h-[calc(100vh-90px)] process-list__content"},N={"flex-1":""},V={name:"invoiceheader"},j=E({...V,setup(e){const t=f({}),o=f(null),{pageContentRef:i,handleResetClick:B,handleSearchClick:h}=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",$,[u(Y,{"is-show":a(d).powers.some(n=>n==="001")},{default:H(()=>[c("div",q,[c("div",L,[u(I,{"current-process":t.value,onChangeBtnClick:C},null,8,["current-process"])]),c("div",N,[u(a(g),{class:"search","form-config":a(T),onSearchBtnClick:a(h),onResetBtnClick:a(B)},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(j,[["__scopeId","data-v-5683d19e"]]);export{oe as default};
|