1 |
- import{al as r,a$ as i,ae as y,_ as P,d as b,bn as x,w as _,o as F,c as k,j as l,C as w,h as f,l as o,bo as D,bp as R,bA as E}from"./index.js";import{u as A}from"./use-page-search.f7bc460e.js";import{a as m,o as h,P as S}from"./process-modal.150127.js";import{h as M,a as N,b as Y,c as j}from"./index.4f7f3298.js";import I from"./process-list.b7fb65.js";import"./index.a7a62dc5.js";const T={formItems:[{field:"action_type",type:"select",placeholder:"\u8282\u70B9\u7C7B\u578B",options:m},{field:"operation_type",type:"select",placeholder:"\u64CD\u4F5C\u7C7B\u578B",options:h}]},U=[{type:"selection",width:40,align:"center",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(i,null,{default:()=>{var s;return(s=m.find(a=>a.value===e.action_type))==null?void 0:s.label}})}},{label:"\u64CD\u4F5C\u7C7B\u578B",prop:"status",cellRenderer({row:e}){return r(i,null,{default:()=>{var s;return(s=h.find(a=>a.value===e.operation_type))==null?void 0:s.label}})}},{label:"\u72B6\u6001",prop:"status",cellRenderer({row:e}){return r(i,{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(s=>r(i,{style:{marginRight:"10px"}},{default:()=>s}))})}},{label:"\u521B\u5EFA\u4EBA",prop:"creater"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",formatter:({addtime:e})=>y(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:150,slot:"operation"}],H={title:"\u6D41\u7A0B\u8282\u70B9\u8BBE\u7F6E",notNeedCompanyFilter:!0,columns:U,notReuqiredInit:!0,apis:{httpAdd:M,httpList:N,httpStatus:Y,httpUpdate:!0,httpDelete:j}};const L={class:"main role bg-white"},V={"w-full":"",flex:""},q={class:"min-w-240px h-[calc(100vh-90px)] process-list__content"},W={"flex-1":""},$={name:"setActionProcess"},z=b({...$,setup(e){const s="setActionProcess",{hasPermissionWithCode:a,permissions:C}=x(s),n=_({}),u=_(null),{pageContentRef:c,handleResetClick:B,handleSearchClick:g}=A(()=>({result:{process_id:n.value.id},deleteProps:[]}));function v(p){const{id:t}=p;n.value=p,c.value.getPageData({process_id:t})}return(p,t)=>(F(),k("div",L,[l(E,{"is-show":o(a)("001")},{default:w(()=>[f("div",V,[f("div",q,[l(I,{"current-process":n.value,onChangeBtnClick:v},null,8,["current-process"])]),f("div",W,[l(o(D),{class:"search","form-config":o(T),onSearchBtnClick:o(g),onResetBtnClick:o(B)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),l(o(R),{ref_key:"pageContentRef",ref:c,powers:o(C),"content-config":o(H),onCreateBtnClick:t[0]||(t[0]=()=>u.value.onDisplay()),onPreviewBtnClick:t[1]||(t[1]=({id:d})=>u.value.onDisplay(d,!0)),onUpdateBtnClick:t[2]||(t[2]=({id:d})=>u.value.onDisplay(d))},null,8,["powers","content-config"])])]),l(S,{"current-process":n.value,ref_key:"processModalRef",ref:u,onReload:t[3]||(t[3]=()=>o(c).getPageData({process_id:n.value.id}))},null,8,["current-process"])]),_:1},8,["is-show"])]))}});var Z=P(z,[["__scopeId","data-v-3e5c5e10"],["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/system/setActionProcess/index.vue"]]);export{Z as default};
|