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

2 lines
8.9 KiB
JavaScript

import{I as H,y as W,G as z,H as J,w as K,D as Q,C as X,L as Y,M as Z,N as ee}from"./element-plus.517d4382.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as te,a as ue}from"./index.8b1962e9.js";import{u as ae}from"./usePaging.f6660143.js";import{u as le}from"./useDictOptions.b5854a9e.js";import{d as ne,a as se,e as re}from"./cost_approved_project.00126379.js";import"./lodash.1d82ee7c.js";import{_ as pe}from"./edit.vue_vue_type_script_setup_true_name_costApprovedProjectEdit_lang.7b7ea6a8.js";import{d as U,s as ce,r as g,a0 as ie,a5 as _e,ai as de,o as n,c as w,V as e,M as t,O as f,u as r,L as p,S as me,W as y,a8 as A,a as j,k as fe,T as m,n as P}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.e6dda1f5.js";import"./index.b17dae19.js";const be=m("\u67E5\u8BE2"),Ee=m("\u91CD\u7F6E"),ve=m(" \u65B0\u589E "),we=m(" \u5220\u9664 "),Fe={class:"mt-4"},Be=m(" \u7F16\u8F91 "),De=m(" \u5220\u9664 "),Ce=m(" \u751F\u6210\u9879\u76EE "),he={class:"flex justify-end mt-4"},ye=U({name:"costApprovedProjectLists"}),mo=U({...ye,setup(Ae){const F=ce(),B=g(!1),a=ie({contract_name:"",contract_num:"",part_a:"",part_b:"",business_nature:"",industry_nature:"",fund_sources:"",const_area:""}),V=g([]),I=c=>{V.value=c.map(({id:u})=>u)},{dictData:b}=le("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:E,getLists:D,resetParams:L,resetPage:$}=ae({fetchFun:ne,params:a}),N=async()=>{var c;B.value=!0,await P(),(c=F.value)==null||c.open("add")},S=async c=>{var _,s;let u=await se({id:c.id});B.value=!0,await P(),(_=F.value)==null||_.open("edit"),(s=F.value)==null||s.setFormData(u)},k=async c=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:c}),D()};return D(),(c,u)=>{const _=H,s=W,C=z,h=J,d=K,T=Q,x=X,R=ue,l=Y,q=_e("router-link"),M=Z,O=oe,v=de("perms"),G=ee;return n(),w("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(T,{class:"mb-[-16px]",model:a,inline:""},{default:t(()=>[e(s,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:a.contract_name,"onUpdate:modelValue":u[0]||(u[0]=o=>a.contract_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_num"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:a.contract_num,"onUpdate:modelValue":u[1]||(u[1]=o=>a.contract_num=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u7532\u65B9\u7B7E\u7EA6\u5355\u4F4D",prop:"part_a"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:a.part_a,"onUpdate:modelValue":u[2]||(u[2]=o=>a.part_a=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7532\u65B9\u7B7E\u7EA6\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u4E59\u65B9\u7B7E\u7EA6\u5355\u4F4D",prop:"part_b"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:a.part_b,"onUpdate:modelValue":u[3]||(u[3]=o=>a.part_b=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E59\u65B9\u7B7E\u7EA6\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u4E1A\u52A1\u6027\u8D28",prop:"business_nature"},{default:t(()=>[e(h,{class:"w-[280px]",modelValue:a.business_nature,"onUpdate:modelValue":u[4]||(u[4]=o=>a.business_nature=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u6027\u8D28"},{default:t(()=>[(n(!0),w(y,null,A(r(b).cost_consultation_business_nature,(o,i)=>(n(),p(C,{key:i,label:o.name,value:parseInt(o.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u884C\u4E1A\u6027\u8D28",prop:"industry_nature"},{default:t(()=>[e(h,{class:"w-[280px]",modelValue:a.industry_nature,"onUpdate:modelValue":u[5]||(u[5]=o=>a.industry_nature=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u884C\u4E1A\u6027\u8D28"},{default:t(()=>[(n(!0),w(y,null,A(r(b).cost_consultation_industry_nature,(o,i)=>(n(),p(C,{key:i,label:o.name,value:parseInt(o.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u8D44\u91D1\u6765\u6E90",prop:"fund_sources","label-width":"100px"},{default:t(()=>[e(h,{class:"w-[280px]",modelValue:a.fund_sources,"onUpdate:modelValue":u[6]||(u[6]=o=>a.fund_sources=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8D44\u91D1\u6765\u6E90"},{default:t(()=>[(n(!0),w(y,null,A(r(b).cost_consultation_fund_sources,(o,i)=>(n(),p(C,{key:i,label:o.name,value:parseInt(o.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u5EFA\u8BBE\u533A\u57DF",prop:"const_area","label-width":"100px"},{default:t(()=>[e(h,{class:"w-[280px]",modelValue:a.const_area,"onUpdate:modelValue":u[7]||(u[7]=o=>a.const_area=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5EFA\u8BBE\u533A\u57DF"},{default:t(()=>[(n(!0),w(y,null,A(r(b).cost_consultation_const_area,(o,i)=>(n(),p(C,{key:i,label:o.name,value:parseInt(o.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,null,{default:t(()=>[e(d,{type:"primary",onClick:r($)},{default:t(()=>[be]),_:1},8,["onClick"]),e(d,{onClick:r(L)},{default:t(()=>[Ee]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((n(),p(x,{class:"!border-none",shadow:"never"},{default:t(()=>[f((n(),p(d,{type:"primary",onClick:N},{icon:t(()=>[e(R,{name:"el-icon-Plus"})]),default:t(()=>[ve]),_:1})),[[v,["cost_project.cost_approved_project/add"]]]),f((n(),p(d,{disabled:!V.value.length,onClick:u[8]||(u[8]=o=>k(V.value))},{default:t(()=>[we]),_:1},8,["disabled"])),[[v,["cost_project.cost_approved_project/delete"]]]),j("div",Fe,[e(M,{data:r(E).lists,onSelectionChange:I},{default:t(()=>[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:t(({row:o})=>[f((n(),p(d,{type:"primary",link:"",onClick:i=>S(o)},{default:t(()=>[Be]),_:2},1032,["onClick"])),[[v,["cost_project.cost_approved_project/edit"]]]),f((n(),p(d,{type:"danger",link:"",onClick:i=>k(o.id)},{default:t(()=>[De]),_:2},1032,["onClick"])),[[v,["cost_project.cost_approved_project/delete"]]]),f((n(),p(d,{type:"warning",link:""},{default:t(()=>[e(q,{to:{path:"/cost_consultation/cost_consultation_project/cost_project",query:{contractId:o.id,contractName:o.contract_name}}},{default:t(()=>[Ce]),_:2},1032,["to"])]),_:2},1024)),[[v,["cost_project.cost_approved_project/edit"]]])]),_:1})]),_:1},8,["data"])]),j("div",he,[e(O,{modelValue:r(E),"onUpdate:modelValue":u[9]||(u[9]=o=>fe(E)?E.value=o:null),onChange:r(D)},null,8,["modelValue","onChange"])])]),_:1})),[[G,r(E).loading]]),B.value?(n(),p(pe,{key:0,ref_key:"editRef",ref:F,"dict-data":r(b),onSuccess:r(D),onClose:u[10]||(u[10]=o=>B.value=!1)},null,8,["dict-data","onSuccess"])):me("",!0)])}}});export{mo as default};