engineering/public/admin/assets/index.2b73fd5c.js
shengchanzhe a2653dcd36 提交pc
2024-01-27 11:43:47 +08:00

2 lines
12 KiB
JavaScript

import{I as Y,y as Z,G as ee,H as oe,w as te,D as le,C as ue,L as ae,M as re,N as ie}from"./element-plus.4ff6f47d.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{f as pe,a as se}from"./index.aaca920c.js";import{u as me}from"./usePaging.f6660143.js";import{u as de}from"./useDictOptions.c83e2497.js";import{a as ce,b as L,e as _e}from"./project.86812b1a.js";import"./lodash.8ea2174a.js";import{g as fe}from"./projecttype.6db09bf7.js";import{_ as be}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.d5223cff.js";import Ee from"./detail.538992ee.js";import{d as I,a0 as R,s as S,r as A,ai as ve,o as a,c as b,V as e,M as l,O as F,u as p,L as s,S as T,W as w,a8 as g,a as N,k as Fe,T as E,n as U}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.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.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.4845895e.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.01004c04.js";import"./index.ff7c6188.js";import"./index.f2ff6561.js";import"./department.a7058b70.js";import"./organization.f9ce12f7.js";import"./Overview.6ca58a5b.js";import"./Business.9b020c94.js";import"./project_follow_up.5138b4d9.js";import"./customer_demand.1f5762f3.js";import"./customer_demand_solution.509645bd.js";import"./project_estimate.316c1ddc.js";import"./competitor.33801606.js";import"./edit.vue_vue_type_script_setup_true_name_projectFollowUpEdit_lang.aad92765.js";import"./index.vue_vue_type_script_setup_true_lang.c07aa9ab.js";import"./tender.7d4d10a7.js";import"./bid_bidding_decision.931cbe49.js";import"./bid_buy_bidding_document.4b6d70d3.js";import"./bid_document_examination.1c5b6d12.js";import"./bid_result.7d9ea370.js";import"./bidbbond.a5e0c877.js";import"./refundbidDeposit.7c4fa97d.js";import"./contract.f8b61e5d.js";import"./contract.36d7c861.js";import"./contract_negotiation.549d2757.js";import"./budget.68e77f0b.js";import"./myTable.20c7bddc.js";import"./project_cost_budget.c118b65c.js";import"./project_material_budget_detail.9d50a443.js";import"./project_subpackage_budget_detail.0650519e.js";import"./project_equipment_budget_detail.99f908dc.js";import"./project_labor_budget_detail.bb288c81.js";import"./procurement.7a57959f.js";import"./procurement_contract.38e1c48b.js";import"./subcontract.91d082f5.js";import"./subcontracting_contract.8c088cec.js";import"./subcontractor.0b30d4aa.js";import"./manpower.abf004c2.js";import"./project_personnel.e1e9d99e.js";import"./project_labor_contract.8e46e37a.js";import"./project_insurance_management.81d0061a.js";import"./project_attendance_record.3485cb49.js";import"./project_attendance_detail.db1ea5f7.js";import"./project_salary_detail.bd2e8426.js";import"./Collection.dfa2c36c.js";import"./InvoicingRequests.ba6804ac.js";import"./remittance.062ce581.js";import"./recordsPayment.fd1a560d.js";import"./refund.665434c3.js";import"./payment.e5a4f530.js";import"./receiptrecord.95d9433e.js";import"./paymentplan.475e1263.js";import"./paymentrequest.9f42c3ff.js";import"./refundrecord.8bc5c9e2.js";import"./documentation.4e4b76cb.js";import"./project_document_set.11dcf684.js";const we=E("\u67E5\u8BE2"),ge=E("\u91CD\u7F6E"),ye=E(" \u65B0\u589E "),he=E(" \u5220\u9664 "),Be={class:"mt-4"},Ve=E(" \u7F16\u8F91 "),Ce=E(" \u5220\u9664 "),De=E(" \u8BE6\u60C5 "),je={class:"flex justify-end mt-4"},ke=I({name:"projectLists"}),yt=I({...ke,setup(xe){const D=R([]),j=S(),B=S(),V=A(!1),k=A(!1),u=R({custom_name:"",project_type:"",project_code:"",name:"",project_address:"",estimated_construction:"",bidding_method:"",person:"",relationship:"",strategic_significance:"",industry:"",unit_nature:"",status:"",project_content:"",information_sources:""}),x=A([]),M=m=>{x.value=m.map(({id:t})=>t)},{dictData:_}=de("project_type,project_content,bidding_method,relationship,information_sources,construction_funds_sources,construction_financial_status,construction_recognition,my_construction_recognition,strategic_significance,industry,unit_nature"),{pager:y,getLists:C,resetParams:O,resetPage:q}=me({fetchFun:ce,params:u}),G=async()=>{var m;V.value=!0,await U(),(m=B.value)==null||m.open("add")},H=async m=>{var c,r;let t=await L({id:m.id});V.value=!0,await U(),(c=B.value)==null||c.open("edit"),(r=B.value)==null||r.setFormData(t)},P=async m=>{await pe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _e({id:m}),C()},W=async m=>{var c,r;let t=await L({id:m.id});k.value=!0,await U(),(c=j.value)==null||c.open(),(r=j.value)==null||r.setFormData(t)};return(()=>{fe().then(m=>{D.splice(0,D.length,...m)})})(),C(),(m,t)=>{const c=Y,r=Z,d=ee,v=oe,f=te,z=le,$=ue,J=se,i=ae,K=re,Q=ne,h=ve("perms"),X=ie;return a(),b("div",null,[e($,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(z,{class:"mb-[-16px]",model:u,inline:"","label-width":"auto"},{default:l(()=>[e(r,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name"},{default:l(()=>[e(c,{class:"w-[280px]",modelValue:u.custom_name,"onUpdate:modelValue":t[0]||(t[0]=o=>u.custom_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code"},{default:l(()=>[e(c,{class:"w-[280px]",modelValue:u.project_code,"onUpdate:modelValue":t[1]||(t[1]=o=>u.project_code=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u7801"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u9879\u76EE\u540D\u79F0",prop:"name"},{default:l(()=>[e(c,{class:"w-[280px]",modelValue:u.name,"onUpdate:modelValue":t[2]||(t[2]=o=>u.name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u8D1F\u8D23\u4EBA",prop:"person"},{default:l(()=>[e(c,{class:"w-[280px]",modelValue:u.person,"onUpdate:modelValue":t[3]||(t[3]=o=>u.person=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u6218\u7565\u610F\u4E49",prop:"strategic_significance"},{default:l(()=>[e(v,{class:"w-[280px]",modelValue:u.strategic_significance,"onUpdate:modelValue":t[4]||(t[4]=o=>u.strategic_significance=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6218\u7565\u610F\u4E49"},{default:l(()=>[e(d,{label:"\u5168\u90E8",value:""}),(a(!0),b(w,null,g(p(_).strategic_significance,(o,n)=>(a(),s(d,{key:n,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u6240\u5C5E\u884C\u4E1A",prop:"industry"},{default:l(()=>[e(v,{class:"w-[280px]",modelValue:u.industry,"onUpdate:modelValue":t[5]||(t[5]=o=>u.industry=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u884C\u4E1A"},{default:l(()=>[e(d,{label:"\u5168\u90E8",value:""}),(a(!0),b(w,null,g(p(_).industry,(o,n)=>(a(),s(d,{key:n,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u5355\u4F4D\u6027\u8D28",prop:"unit_nature"},{default:l(()=>[e(v,{class:"w-[280px]",modelValue:u.unit_nature,"onUpdate:modelValue":t[6]||(t[6]=o=>u.unit_nature=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5355\u4F4D\u6027\u8D28"},{default:l(()=>[e(d,{label:"\u5168\u90E8",value:""}),(a(!0),b(w,null,g(p(_).unit_nature,(o,n)=>(a(),s(d,{key:n,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u62DB\u6807\u65B9\u5F0F",prop:"bidding_method"},{default:l(()=>[e(v,{class:"w-[280px]",modelValue:u.bidding_method,"onUpdate:modelValue":t[7]||(t[7]=o=>u.bidding_method=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u62DB\u6807\u65B9\u5F0F"},{default:l(()=>[e(d,{label:"\u5168\u90E8",value:""}),(a(!0),b(w,null,g(p(_).bidding_method,(o,n)=>(a(),s(d,{key:n,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u4FE1\u606F\u6765\u6E90",prop:"information_sources"},{default:l(()=>[e(v,{class:"w-[280px]",modelValue:u.information_sources,"onUpdate:modelValue":t[8]||(t[8]=o=>u.information_sources=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4FE1\u606F\u6765\u6E90"},{default:l(()=>[e(d,{label:"\u5168\u90E8",value:""}),(a(!0),b(w,null,g(p(_).information_sources,(o,n)=>(a(),s(d,{key:n,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u9879\u76EE\u7C7B\u578B",prop:"project_type"},{default:l(()=>[e(v,{class:"w-[280px]",modelValue:u.project_type,"onUpdate:modelValue":t[9]||(t[9]=o=>u.project_type=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE\u7C7B\u578B"},{default:l(()=>[e(d,{label:"\u5168\u90E8",value:""}),(a(!0),b(w,null,g(D,(o,n)=>(a(),s(d,{key:n,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:l(()=>[e(f,{type:"primary",onClick:p(q)},{default:l(()=>[we]),_:1},8,["onClick"]),e(f,{onClick:p(O)},{default:l(()=>[ge]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((a(),s($,{class:"!border-none",shadow:"never"},{default:l(()=>[F((a(),s(f,{type:"primary",onClick:G},{icon:l(()=>[e(J,{name:"el-icon-Plus"})]),default:l(()=>[ye]),_:1})),[[h,["project.project/add"]]]),F((a(),s(f,{disabled:!x.value.length,onClick:t[10]||(t[10]=o=>P(x.value))},{default:l(()=>[he]),_:1},8,["disabled"])),[[h,["project.project/delete"]]]),N("div",Be,[e(K,{data:p(y).lists,onSelectionChange:M},{default:l(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(i,{label:"\u5BA2\u6237",prop:"custom_name","show-overflow-tooltip":""}),e(i,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(i,{label:"\u9879\u76EE\u72B6\u6001",prop:"status","show-overflow-tooltip":""}),e(i,{label:"\u9879\u76EE\u6240\u5728\u5730",prop:"project_address","show-overflow-tooltip":""}),e(i,{label:"\u9879\u76EE\u7C7B\u578B",prop:"project_type","show-overflow-tooltip":""}),e(i,{label:"\u6218\u7565\u610F\u4E49",prop:"strategic_significance","show-overflow-tooltip":""}),e(i,{label:"\u6240\u5C5E\u884C\u4E1A",prop:"industry","show-overflow-tooltip":""}),e(i,{label:"\u5355\u4F4D\u6027\u8D28",prop:"unit_nature","show-overflow-tooltip":""}),e(i,{label:"\u62DB\u6807\u65B9\u5F0F",prop:"bidding_method","show-overflow-tooltip":""}),e(i,{label:"\u4FE1\u606F\u6765\u6E90",prop:"information_sources","show-overflow-tooltip":""}),e(i,{label:"\u8D1F\u8D23\u4EBA",prop:"person","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:l(({row:o})=>[F((a(),s(f,{type:"primary",link:"",onClick:n=>H(o)},{default:l(()=>[Ve]),_:2},1032,["onClick"])),[[h,["project.project/edit"]]]),F((a(),s(f,{type:"danger",link:"",onClick:n=>P(o.id)},{default:l(()=>[Ce]),_:2},1032,["onClick"])),[[h,["project.project/delete"]]]),F((a(),s(f,{link:"",onClick:n=>W(o)},{default:l(()=>[De]),_:2},1032,["onClick"])),[[h,["project.project/detail"]]])]),_:1})]),_:1},8,["data"])]),N("div",je,[e(Q,{modelValue:p(y),"onUpdate:modelValue":t[11]||(t[11]=o=>Fe(y)?y.value=o:null),onChange:p(C)},null,8,["modelValue","onChange"])])]),_:1})),[[X,p(y).loading]]),V.value?(a(),s(be,{key:0,ref_key:"editRef",ref:B,"dict-data":p(_),onSuccess:p(C),onClose:t[12]||(t[12]=o=>V.value=!1)},null,8,["dict-data","onSuccess"])):T("",!0),k.value?(a(),s(Ee,{key:1,ref_key:"detailRef",ref:j,"dict-data":p(_),onClose:t[13]||(t[13]=o=>k.value=!1)},null,8,["dict-data"])):T("",!0)])}}});export{yt as default};