engineering/public/admin/assets/index.f9b8b381.js
2024-02-27 10:28:16 +08:00

2 lines
7.0 KiB
JavaScript

import{I as Q,y as X,G as Y,H as Z,w as ee,D as te,C as oe,L as le,M as ae,N as ne}from"./element-plus.517d4382.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as se,a as re}from"./index.8b1962e9.js";import{u as pe}from"./usePaging.f6660143.js";import{u as de}from"./useDictOptions.b5854a9e.js";import{_ as me,a as ce,b as x,c as _e}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.bbcabe44.js";import"./lodash.1d82ee7c.js";import fe from"./detail.6ce4d541.js";import{d as S,a0 as A,s as $,r as g,ai as ve,o as s,c as P,V as e,M as l,O as f,u as n,L as d,S as L,W as we,a8 as Ee,a as R,k as be,T as c,n as B}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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./project_role_set.47e8f52b.js";import"./custom.99349afc.js";const he=c("\u67E5\u8BE2"),De=c("\u91CD\u7F6E"),ke=c(" \u65B0\u589E "),ye=c(" \u5220\u9664 "),Fe={class:"mt-4"},Ce=c(" \u7F16\u8F91 "),ge=c(" \u5220\u9664 "),Be=c(" \u8BE6\u60C5 "),je={class:"flex justify-end mt-4"},Ve=S({name:"projectLists"}),Dt=S({...Ve,setup(xe){A([]);const k=$(),E=$(),b=g(!1),y=g(!1),r=A({phone:"",name:"",project_name:"",identity:""}),F=g([]),N=i=>{F.value=i.map(({id:o})=>o)},{dictData:_}=de("degree_adaptability,attitude_status,identity"),{pager:v,getLists:h,resetParams:T,resetPage:U}=pe({fetchFun:ce,params:r}),I=async()=>{var i;b.value=!0,await B(),(i=E.value)==null||i.open("add")},M=async i=>{var p,u;console.log(i.id);let o=await x({id:i.id});b.value=!0,await B(),(p=E.value)==null||p.open("edit"),(u=E.value)==null||u.setFormData(o)},j=async i=>{await se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _e({id:i}),h()},O=async i=>{var p,u;let o=await x({id:i.id});y.value=!0,await B(),(p=k.value)==null||p.open(),(u=k.value)==null||u.setFormData(o)};return h(),(i,o)=>{const p=Q,u=X,q=Y,G=Z,m=ee,H=te,V=oe,W=re,a=le,C=ue,z=ae,J=ie,w=ve("perms"),K=ne;return s(),P("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(H,{class:"mb-[-16px]",model:r,inline:""},{default:l(()=>[e(u,{label:"\u59D3\u540D",prop:"name"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:r.name,"onUpdate:modelValue":o[0]||(o[0]=t=>r.name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u7535\u8BDD",prop:"phone"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:r.phone,"onUpdate:modelValue":o[1]||(o[1]=t=>r.phone=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},{default:l(()=>[e(p,{class:"w-[280px]",modelValue:r.project_name,"onUpdate:modelValue":o[2]||(o[2]=t=>r.project_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u8EAB\u4EFD",prop:"identity"},{default:l(()=>[e(G,{class:"w-[280px]",modelValue:r.identity,"onUpdate:modelValue":o[3]||(o[3]=t=>r.identity=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8EAB\u4EFD"},{default:l(()=>[(s(!0),P(we,null,Ee(n(_).identity,(t,D)=>(s(),d(q,{key:D,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:l(()=>[e(m,{type:"primary",onClick:n(U)},{default:l(()=>[he]),_:1},8,["onClick"]),e(m,{onClick:n(T)},{default:l(()=>[De]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),d(V,{class:"!border-none",shadow:"never"},{default:l(()=>[f((s(),d(m,{type:"primary",onClick:I},{icon:l(()=>[e(W,{name:"el-icon-Plus"})]),default:l(()=>[ke]),_:1})),[[w,["project.project/add"]]]),f((s(),d(m,{disabled:!F.value.length,onClick:o[4]||(o[4]=t=>j(F.value))},{default:l(()=>[ye]),_:1},8,["disabled"])),[[w,["project.project/delete"]]]),R("div",Fe,[e(z,{data:n(v).lists,onSelectionChange:N},{default:l(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(a,{label:"\u59D3\u540D",prop:"name","show-overflow-tooltip":""}),e(a,{label:"\u8EAB\u4EFD","show-overflow-tooltip":""},{default:l(({row:t})=>[e(C,{options:n(_).identity,value:t.identity},null,8,["options","value"])]),_:1}),e(a,{label:"\u4E0A\u7EA7",prop:"superior","show-overflow-tooltip":""}),e(a,{label:"\u90E8\u95E8",prop:"department","show-overflow-tooltip":""}),e(a,{label:"\u5C97\u4F4D",prop:"station","show-overflow-tooltip":""}),e(a,{label:"\u7535\u8BDD",prop:"phone","show-overflow-tooltip":""}),e(a,{label:"\u90AE\u7BB1",prop:"email","show-overflow-tooltip":""}),e(a,{label:" \u5BF9\u6211\u65B9\u6001\u5EA6",prop:"working_unit_price","show-overflow-tooltip":""},{default:l(({row:t})=>[e(C,{options:n(_).attitude_status,value:t.attitude},null,8,["options","value"])]),_:1}),e(a,{label:" \u5DE5\u4F5C\u914D\u5408\u5EA6",prop:"working_unit_price","show-overflow-tooltip":""},{default:l(({row:t})=>[e(C,{options:n(_).degree_adaptability,value:t.degree_adaptability},null,8,["options","value"])]),_:1}),e(a,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:l(({row:t})=>[f((s(),d(m,{type:"primary",link:"",onClick:D=>M(t)},{default:l(()=>[Ce]),_:2},1032,["onClick"])),[[w,["project.project/edit"]]]),f((s(),d(m,{type:"danger",link:"",onClick:D=>j(t.id)},{default:l(()=>[ge]),_:2},1032,["onClick"])),[[w,["project.project/delete"]]]),f((s(),d(m,{link:"",onClick:D=>O(t)},{default:l(()=>[Be]),_:2},1032,["onClick"])),[[w,["project.project/detail"]]])]),_:1})]),_:1},8,["data"])]),R("div",je,[e(J,{modelValue:n(v),"onUpdate:modelValue":o[5]||(o[5]=t=>be(v)?v.value=t:null),onChange:n(h)},null,8,["modelValue","onChange"])])]),_:1})),[[K,n(v).loading]]),b.value?(s(),d(me,{key:0,ref_key:"editRef",ref:E,"dict-data":n(_),onSuccess:n(h),onClose:o[6]||(o[6]=t=>b.value=!1)},null,8,["dict-data","onSuccess"])):L("",!0),y.value?(s(),d(fe,{key:1,ref_key:"detailRef",ref:k,"dict-data":n(_),onClose:o[7]||(o[7]=t=>y.value=!1)},null,8,["dict-data"])):L("",!0)])}}});export{Dt as default};