engineering/public/admin/assets/index.1e336783.js
2024-03-04 15:04:21 +08:00

2 lines
9.1 KiB
JavaScript

import{I as W,y as J,G as K,H as Q,w as X,D as Y,C as Z,L as ee,M as te,N as oe}from"./element-plus.258bf9e7.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as ue,a as le}from"./index.ec401e3b.js";import{_ as ne}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as se}from"./usePaging.f6660143.js";import{u as re}from"./useDictOptions.c644f395.js";import{d as x,a as pe,e as ce}from"./cost_approved_project.c875ef76.js";import"./lodash.1d82ee7c.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_costApprovedProjectEdit_lang.678ddb0f.js";import{d as I,s as _e,r as j,a0 as de,a5 as me,ai as fe,o as n,c as w,V as e,M as o,O as b,u as s,L as p,S as be,W as y,a8 as A,a as P,k as Ee,T as m,n as U}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.a7758114.js";const ve=m("\u67E5\u8BE2"),we=m("\u91CD\u7F6E"),Fe=m(" \u65B0\u589E "),Be=m(" \u5220\u9664 "),De={class:"mt-4"},Ce=m(" \u7F16\u8F91 "),he=m(" \u5220\u9664 "),ye=m(" \u751F\u6210\u9879\u76EE "),Ae={class:"flex justify-end mt-4"},Ve=I({name:"costApprovedProjectLists"}),bt=I({...Ve,setup(ke){const F=_e(),B=j(!1),u=de({contract_name:"",contract_num:"",part_a:"",part_b:"",business_nature:"",industry_nature:"",fund_sources:"",const_area:""}),V=j([]),$=c=>{V.value=c.map(({id:a})=>a)},{dictData:E}=re("cost_contract_type,cost_consultation_business_nature,cost_consultation_industry_nature,cost_consultation_fund_sources,cost_consultation_const_area,cost_consultation_file_type,cost_consultation_way,cost_consultation_seal_name"),{pager:f,getLists:D,resetParams:L,resetPage:N}=se({fetchFun:x,params:u}),S=async()=>{var c;B.value=!0,await U(),(c=F.value)==null||c.open("add")},T=async c=>{var _,r;let a=await pe({id:c.id});B.value=!0,await U(),(_=F.value)==null||_.open("edit"),(r=F.value)==null||r.setFormData(a)},k=async c=>{await ue.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ce({id:c}),D()};return D(),(c,a)=>{const _=W,r=J,C=K,h=Q,d=X,R=ne,z=Y,g=Z,q=le,l=ee,M=me("router-link"),O=te,G=ae,v=fe("perms"),H=oe;return n(),w("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(z,{class:"mb-[-16px]",model:u,inline:""},{default:o(()=>[e(r,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:u.contract_name,"onUpdate:modelValue":a[0]||(a[0]=t=>u.contract_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_num"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:u.contract_num,"onUpdate:modelValue":a[1]||(a[1]=t=>u.contract_num=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u7532\u65B9\u7B7E\u7EA6\u5355\u4F4D",prop:"part_a"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:u.part_a,"onUpdate:modelValue":a[2]||(a[2]=t=>u.part_a=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7532\u65B9\u7B7E\u7EA6\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u4E59\u65B9\u7B7E\u7EA6\u5355\u4F4D",prop:"part_b"},{default:o(()=>[e(_,{class:"w-[280px]",modelValue:u.part_b,"onUpdate:modelValue":a[3]||(a[3]=t=>u.part_b=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E59\u65B9\u7B7E\u7EA6\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u4E1A\u52A1\u6027\u8D28",prop:"business_nature"},{default:o(()=>[e(h,{class:"w-[280px]",modelValue:u.business_nature,"onUpdate:modelValue":a[4]||(a[4]=t=>u.business_nature=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u6027\u8D28"},{default:o(()=>[(n(!0),w(y,null,A(s(E).cost_consultation_business_nature,(t,i)=>(n(),p(C,{key:i,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u884C\u4E1A\u6027\u8D28",prop:"industry_nature"},{default:o(()=>[e(h,{class:"w-[280px]",modelValue:u.industry_nature,"onUpdate:modelValue":a[5]||(a[5]=t=>u.industry_nature=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u884C\u4E1A\u6027\u8D28"},{default:o(()=>[(n(!0),w(y,null,A(s(E).cost_consultation_industry_nature,(t,i)=>(n(),p(C,{key:i,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u8D44\u91D1\u6765\u6E90",prop:"fund_sources","label-width":"100px"},{default:o(()=>[e(h,{class:"w-[280px]",modelValue:u.fund_sources,"onUpdate:modelValue":a[6]||(a[6]=t=>u.fund_sources=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8D44\u91D1\u6765\u6E90"},{default:o(()=>[(n(!0),w(y,null,A(s(E).cost_consultation_fund_sources,(t,i)=>(n(),p(C,{key:i,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u5EFA\u8BBE\u533A\u57DF",prop:"const_area","label-width":"100px"},{default:o(()=>[e(h,{class:"w-[280px]",modelValue:u.const_area,"onUpdate:modelValue":a[7]||(a[7]=t=>u.const_area=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5EFA\u8BBE\u533A\u57DF"},{default:o(()=>[(n(!0),w(y,null,A(s(E).cost_consultation_const_area,(t,i)=>(n(),p(C,{key:i,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:o(()=>[e(d,{type:"primary",onClick:s(N)},{default:o(()=>[ve]),_:1},8,["onClick"]),e(d,{onClick:s(L)},{default:o(()=>[we]),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":s(x),params:u,"page-size":s(f).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),b((n(),p(g,{class:"!border-none",shadow:"never"},{default:o(()=>[b((n(),p(d,{type:"primary",onClick:S},{icon:o(()=>[e(q,{name:"el-icon-Plus"})]),default:o(()=>[Fe]),_:1})),[[v,["cost_project.cost_approved_project/add"]]]),b((n(),p(d,{disabled:!V.value.length,onClick:a[8]||(a[8]=t=>k(V.value))},{default:o(()=>[Be]),_:1},8,["disabled"])),[[v,["cost_project.cost_approved_project/delete"]]]),P("div",De,[e(O,{data:s(f).lists,onSelectionChange:$},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_num","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name","show-overflow-tooltip":""}),e(l,{label:"\u7532\u65B9\u7B7E\u7EA6\u5355\u4F4D",prop:"part_a","show-overflow-tooltip":""}),e(l,{label:"\u4E59\u65B9\u7B7E\u7EA6\u5355\u4F4D",prop:"part_b","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u8BA1\u5212\u5F00\u59CB\u65E5\u671F",prop:"start_date","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u8BA1\u5212\u7ED3\u675F\u65E5\u671F",prop:"end_date","show-overflow-tooltip":""}),e(l,{label:"\u5DE5\u7A0B\u603B\u6295\u8D44",prop:"project_money","show-overflow-tooltip":""}),e(l,{label:"\u4E1A\u52A1\u6027\u8D28",prop:"business_nature_text","show-overflow-tooltip":""}),e(l,{label:"\u884C\u4E1A\u6027\u8D28",prop:"industry_nature","show-overflow-tooltip":""}),e(l,{label:"\u7B7E\u8BA2\u90E8\u95E8",prop:"dept","show-overflow-tooltip":""}),e(l,{label:"\u8D44\u91D1\u6765\u6E90",prop:"fund_sources_text","show-overflow-tooltip":""}),e(l,{label:"\u5EFA\u8BBE\u533A\u57DF",prop:"const_area_text","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u603B\u76D1/\u7ECF\u7406",prop:"project_director","show-overflow-tooltip":""}),e(l,{label:"\u76D1\u7BA1\u90E8\u95E8",prop:"regulators","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",fixed:"right",width:"200",align:"center"},{default:o(({row:t})=>[b((n(),p(d,{type:"primary",link:"",onClick:i=>T(t)},{default:o(()=>[Ce]),_:2},1032,["onClick"])),[[v,["cost_project.cost_approved_project/edit"]]]),b((n(),p(d,{type:"danger",link:"",onClick:i=>k(t.id)},{default:o(()=>[he]),_:2},1032,["onClick"])),[[v,["cost_project.cost_approved_project/delete"]]]),b((n(),p(d,{type:"warning",link:""},{default:o(()=>[e(M,{to:{path:"/cost_consultation/cost_consultation_project/cost_project",query:{contractId:t.id,contractName:t.contract_name}}},{default:o(()=>[ye]),_:2},1032,["to"])]),_:2},1024)),[[v,["cost_project.cost_approved_project/edit"]]])]),_:1})]),_:1},8,["data"])]),P("div",Ae,[e(G,{modelValue:s(f),"onUpdate:modelValue":a[9]||(a[9]=t=>Ee(f)?f.value=t:null),onChange:s(D)},null,8,["modelValue","onChange"])])]),_:1})),[[H,s(f).loading]]),B.value?(n(),p(ie,{key:0,ref_key:"editRef",ref:F,"dict-data":s(E),onSuccess:s(D),onClose:a[10]||(a[10]=t=>B.value=!1)},null,8,["dict-data","onSuccess"])):be("",!0)])}}});export{bt as default};