import{V as k,d as U,b as $,r as d,a as W,Z as b,c as j,o as E,w as a,j as t,aE as h,W as O,l as o,k as X,c6 as z,H as G,B as H,i as L,aF as v,X as Z,v as J}from"./index-9PRMimni.js";import{B as K}from"./BasicForm-dL_oCSPM.js";import{s as Q,a as Y,_ as ee,g as te}from"./FormPage.vue_vue_type_script_setup_true_lang-kQQVXPmc.js";import{B as oe}from"./Table-0PViRYCf.js";import{_ as ne}from"./TableAction.vue_vue_type_script_setup_true_lang-Bj_Y4LtN.js";import{u as ae}from"./useForm-CKmgcynv.js";import"./Render.vue_vue_type_script_lang-DKUYY0Zw.js";import"./SingleImageUpload-CNx4b9eC.js";import"./ImageUpload.vue_vue_type_style_index_0_scoped_cb086928_lang-D-28kXvw.js";import"./componentSetting-DVhNDBTO.js";import"./ImageUpload-DUsnro3W.js";import"./vuedraggable.umd-Co2xEC3p.js";import"./BasicUpload.vue_vue_type_style_index_0_scoped_a4d0e930_lang-DxRbtP01.js";import"./tabsView-BXskTdVh.js";import"./BasicForm.vue_vue_type_style_index_0_scoped_b9e995ec_lang-CEvcLwxD.js";import"./propTypes-CebMRUpe.js";import"./BasicSelect-C_uwzMkE.js";import"./BasicSelect.vue_vue_type_style_index_0_scoped_772d51cc_lang-Brp6PjEU.js";import"./dictionary-BRse4lkf.js";import"./index-DkvzUEqh.js";import"./index-kKnqLkWM.js";import"./AutoComplete-Dv1Bqed4.js";import"./TreeSelect-BZh2DeCh.js";import"./template-rpthWlT9.js";import"./account-C850CBTF.js";import"./base64-BbY-I90a.js";import"./TimelineItem-Bkds7ZW8.js";import"./Table.vue_vue_type_style_index_0_scoped_7b9e6ece_lang-BoW2DV_e.js";import"./componentMap-CElCaWis.js";import"./format-DgF6KtHk.js";import"./omit-B2_8Y6O_.js";import"./_flatRest-DBrd2CHT.js";import"./flatten-DeoUZLdb.js";import"./print-CT_2hrjP.js";import"./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";import"./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";import"./useModal-CO65vga3.js";import"./useTimeout-BxFilWvD.js";import"./usePageCache-DluHn7Yy.js";import"./Flex-CTSf12gq.js";const{t:r}=k(),ie=[{title:r("common.messagedefine.Num"),key:"num",width:80,render:(l,i)=>i+1},{title:r("hsqe.operationalIdentification.applicationNo"),key:"applicationNo"},{title:r("hsqe.operationalIdentification.suggestDept"),key:"deptName"},{title:r("hsqe.operationalIdentification.identificationItem"),key:"identificationProject"},{title:r("hsqe.operationalIdentification.status"),key:"status",render(l){return Q.find(i=>i.value===l.status)?.label}},{title:r("hsqe.operationalIdentification.suggestTime"),key:"createTime"}],se=U({__name:"index",setup(l){const{t:i}=k(),y=$(),c=d(),m=d(),p=d("mainPage"),w=y.getUserInfo.roles?.includes("dpa"),x=W({width:100,title:i("common.optionsText"),key:"action",fixed:"right",align:"center",render(e){return b(ne,{style:"text",actions:[{label:i("common.optionsViewText"),labelShow:!1,icon:b("i",{class:"iconfont icon-View text-[#3F7AE9] text-[20px]"}),onClick:q.bind(null,e)}]})}}),[T,{getFieldsValue:B}]=ae({gridProps:{cols:"4",xGap:"15"},labelWidth:80,schemas:Y,showAdvancedButton:!1});function _(){c.value.reload()}function P(e){_()}function S(e){_()}const C=async(e,s)=>te({...e,...s});function I(){c.value.reload()}function R(){u("formPage"),m.value?.handleOpenModal({},"add")}function q(e){u("formPage"),m.value?.handleOpenModal(e,"edit")}function u(e){p.value=e}return(e,s)=>{const D=X,V=K,f=O,F=H,N=G,A=Z;return E(),j(A,null,{default:a(()=>[t(f,{bordered:!1,class:"mb-3 proCard"},{default:a(()=>[t(V,{onRegister:o(T),onSubmit:P,onReset:S},{statusSlot:a(({model:n,field:g})=>[t(D,{value:n[g],"onUpdate:value":M=>n[g]=M},null,8,["value","onUpdate:value"])]),_:1},8,["onRegister"])]),_:1}),h(t(f,{bordered:!1,class:"proCard"},{default:a(()=>[t(o(oe),{ref_key:"basicTableRef",ref:c,columns:o(ie),request:n=>C(n,o(B)()),"row-key":n=>n.id,autoScrollX:!0,actionColumn:o(x),"virtual-scroll":""},z({_:2},[o(w)?void 0:{name:"tableTitle",fn:a(()=>[t(N,null,{default:a(()=>[t(F,{type:"primary",strong:"",bordered:"",secondary:"",class:"size-7",onClick:R},{icon:a(()=>s[1]||(s[1]=[L("i",{class:"iconfont icon-ADD"},null,-1)])),_:1})]),_:1})]),key:"0"}]),1032,["columns","request","row-key","actionColumn"])]),_:1},512),[[v,o(p)==="mainPage"]]),h(t(ee,{ref_key:"formModalRef",ref:m,onSuccess:I,onBack:s[0]||(s[0]=n=>u("mainPage"))},null,512),[[v,o(p)==="formPage"]])]),_:1})}}}),He=J(se,[["__scopeId","data-v-bf06d682"]]);export{He as default};
