2 lines
7.5 KiB
JavaScript
2 lines
7.5 KiB
JavaScript
import{G as X,H as Y,y as Z,w as tt,D as et,C as ot,L as at,M as lt,N as ut}from"./element-plus.258bf9e7.js";import{_ as rt}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as nt}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as st,a as it}from"./index.ec401e3b.js";import{u as pt}from"./usePaging.f6660143.js";import{u as ct}from"./useDictOptions.c644f395.js";import{p as dt,a as R,d as _t}from"./project_labor_contract.62b5248b.js";import"./lodash.1d82ee7c.js";import{_ as mt}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.7c15ac20.js";import ft from"./detail.84caacbc.js";import{d as I,a0 as S,s as N,r as g,ai as vt,o as u,c as y,V as t,M as o,O as v,u as r,L as s,S as T,W as j,a8 as V,a as A,k as bt,T as f,n as x}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.5a5f706a.js";import"./project.bccf4059.js";import"./index.vue_vue_type_script_setup_true_lang.0ec25c70.js";import"./project_personnel.09fb588e.js";import"./custom.13e75d58.js";const wt=f("\u67E5\u8BE2"),Ct=f("\u91CD\u7F6E"),Ft=f(" \u65B0\u589E "),ht=f(" \u5220\u9664 "),Et={class:"mt-4"},yt=f(" \u7F16\u8F91 "),Bt=f(" \u5220\u9664 "),Dt=f(" \u8BE6\u60C5 "),kt={class:"flex justify-end mt-4"},gt=I({name:"projectLists"}),he=I({...gt,setup(jt){S([]);const B=N(),C=N(),F=g(!1),D=g(!1),c=S({contract_status:"",contract_type:"",contract_title:""}),k=g([]),U=n=>{k.value=n.map(({id:a})=>a)},{dictData:_}=ct("labor_contract_status,labor_contract_type,labor_contract_name"),{pager:b,getLists:h,resetParams:M,resetPage:O}=pt({fetchFun:dt,params:c}),q=async()=>{var n;F.value=!0,await x(),(n=C.value)==null||n.open("add")},G=async n=>{var i,p;console.log(n.id);let a=await R({id:n.id});F.value=!0,await x(),(i=C.value)==null||i.open("edit"),(p=C.value)==null||p.setFormData(a)},$=async n=>{await st.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _t({id:n}),h()},H=async n=>{var i,p;let a=await R({id:n.id});D.value=!0,await x(),(i=B.value)==null||i.open(),(p=B.value)==null||p.setFormData(a)};return h(),(n,a)=>{const i=X,p=Y,E=Z,m=tt,W=et,L=ot,z=it,l=at,P=nt,J=lt,K=rt,w=vt("perms"),Q=ut;return u(),y("div",null,[t(L,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(W,{class:"mb-[-16px]",model:c,inline:""},{default:o(()=>[t(E,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type"},{default:o(()=>[t(p,{class:"w-[280px]",modelValue:c.contract_type,"onUpdate:modelValue":a[0]||(a[0]=e=>c.contract_type=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u7C7B\u578B"},{default:o(()=>[(u(!0),y(j,null,V(r(_).labor_contract_type,(e,d)=>(u(),s(i,{key:d,label:e.name,value:parseInt(e.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(E,{label:"\u5408\u540C\u72B6\u6001",prop:"contract_status"},{default:o(()=>[t(p,{class:"w-[280px]",modelValue:c.contract_status,"onUpdate:modelValue":a[1]||(a[1]=e=>c.contract_status=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u72B6\u6001"},{default:o(()=>[(u(!0),y(j,null,V(r(_).labor_contract_status,(e,d)=>(u(),s(i,{key:d,label:e.name,value:parseInt(e.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(E,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_title"},{default:o(()=>[t(p,{class:"w-[280px]",modelValue:c.contract_title,"onUpdate:modelValue":a[2]||(a[2]=e=>c.contract_title=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u540D\u79F0"},{default:o(()=>[(u(!0),y(j,null,V(r(_).labor_contract_name,(e,d)=>(u(),s(i,{key:d,label:e.name,value:parseInt(e.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(E,null,{default:o(()=>[t(m,{type:"primary",onClick:r(O)},{default:o(()=>[wt]),_:1},8,["onClick"]),t(m,{onClick:r(M)},{default:o(()=>[Ct]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((u(),s(L,{class:"!border-none",shadow:"never"},{default:o(()=>[v((u(),s(m,{type:"primary",onClick:q},{icon:o(()=>[t(z,{name:"el-icon-Plus"})]),default:o(()=>[Ft]),_:1})),[[w,["project.project/add"]]]),v((u(),s(m,{disabled:!k.value.length,onClick:a[3]||(a[3]=e=>$(k.value))},{default:o(()=>[ht]),_:1},8,["disabled"])),[[w,["project.project/delete"]]]),A("div",Et,[t(J,{data:r(b).lists,onSelectionChange:U},{default:o(()=>[t(l,{type:"selection",width:"55"}),t(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),t(l,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),t(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),t(l,{label:"\u59D3\u540D",prop:"person_name","show-overflow-tooltip":""}),t(l,{label:"\u8EAB\u4EFD\u8BC1\u53F7",prop:"person_idcard","show-overflow-tooltip":""}),t(l,{label:"\u5408\u540C\u72B6\u6001",prop:"per_daily_living","show-overflow-tooltip":""},{default:o(({row:e})=>[t(P,{options:r(_).labor_contract_status,value:e.contract_status},null,8,["options","value"])]),_:1}),t(l,{label:"\u5408\u540C\u7C7B\u522B",prop:"per_daily_living","show-overflow-tooltip":""},{default:o(({row:e})=>[t(P,{options:r(_).labor_contract_type,value:e.contract_type},null,8,["options","value"])]),_:1}),t(l,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_title_text","show-overflow-tooltip":""}),t(l,{label:"\u5408\u540C\u7B7E\u5B9A\u65E5\u671F",prop:"signing_date","show-overflow-tooltip":""}),t(l,{label:"\u8BD5\u7528\u671F\u8D77\u59CB\u65E5\u671F",prop:"trial_start_date","show-overflow-tooltip":""}),t(l,{label:"\u8BD5\u7528\u671F\u7ED3\u675F\u65E5\u671F",prop:"trial_end_date","show-overflow-tooltip":""}),t(l,{label:"\u8D77\u59CB\u65F6\u95F4",prop:"start_date","show-overflow-tooltip":""}),t(l,{label:"\u7ED3\u675F\u65F6\u95F4",prop:"end_date","show-overflow-tooltip":""}),t(l,{label:"\u89E3\u9664\u65F6\u95F4",prop:"release_time","show-overflow-tooltip":""}),t(l,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:o(({row:e})=>[v((u(),s(m,{type:"primary",link:"",onClick:d=>G(e)},{default:o(()=>[yt]),_:2},1032,["onClick"])),[[w,["project.project/edit"]]]),v((u(),s(m,{type:"danger",link:"",onClick:d=>$(e.id)},{default:o(()=>[Bt]),_:2},1032,["onClick"])),[[w,["project.project/delete"]]]),v((u(),s(m,{link:"",onClick:d=>H(e)},{default:o(()=>[Dt]),_:2},1032,["onClick"])),[[w,["project.project/detail"]]])]),_:1})]),_:1},8,["data"])]),A("div",kt,[t(K,{modelValue:r(b),"onUpdate:modelValue":a[4]||(a[4]=e=>bt(b)?b.value=e:null),onChange:r(h)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,r(b).loading]]),F.value?(u(),s(mt,{key:0,ref_key:"editRef",ref:C,"dict-data":r(_),onSuccess:r(h),onClose:a[5]||(a[5]=e=>F.value=!1)},null,8,["dict-data","onSuccess"])):T("",!0),D.value?(u(),s(ft,{key:1,ref_key:"detailRef",ref:B,"dict-data":r(_),onClose:a[6]||(a[6]=e=>D.value=!1)},null,8,["dict-data"])):T("",!0)])}}});export{he as default};
|