engineering/public/admin/assets/index.963bd8dc.js
2024-02-27 10:28:16 +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.517d4382.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as pe,a as se}from"./index.8b1962e9.js";import{u as me}from"./usePaging.f6660143.js";import{u as de}from"./useDictOptions.b5854a9e.js";import{a as ce,b as L,e as _e}from"./project.a81dff6c.js";import{g as fe}from"./projecttype.80aa89f5.js";import{_ as be}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.89ad1473.js";import Ee from"./detail.ddbc5b2a.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.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"./lodash.1d82ee7c.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.vue_vue_type_script_setup_true_lang.51f10eaa.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.99349afc.js";import"./index.b17dae19.js";import"./index.e6dda1f5.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./Overview.ac0c29c9.js";import"./Business.9e6377d9.js";import"./project_follow_up.9e000742.js";import"./customer_demand.ccb61d2f.js";import"./customer_demand_solution.7b6f5501.js";import"./project_estimate.b878230f.js";import"./competitor.4d4b3ebe.js";import"./edit.vue_vue_type_script_setup_true_name_projectFollowUpEdit_lang.fde0c8f3.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./tender.4806607a.js";import"./bid_bidding_decision.8473b8d0.js";import"./bid_buy_bidding_document.4f5b0fae.js";import"./bid_document_examination.e5e0b50f.js";import"./bid_result.0a83d031.js";import"./bidbbond.c1a671b8.js";import"./refundbidDeposit.8c11a5d3.js";import"./contract.7d0a6c22.js";import"./contract.2d0c2079.js";import"./contract_negotiation.85be8886.js";import"./budget.3574d296.js";import"./myTable.a8538379.js";import"./project_cost_budget.c6a49989.js";import"./project_material_budget_detail.ace9a748.js";import"./project_subpackage_budget_detail.d2e48930.js";import"./project_equipment_budget_detail.e33dd891.js";import"./project_labor_budget_detail.248ce0ea.js";import"./procurement.8a55bcc8.js";import"./procurement_contract.97fa9110.js";import"./subcontract.7563ffe9.js";import"./subcontracting_contract.66a1e173.js";import"./subcontractor.3beaff49.js";import"./manpower.add1ec15.js";import"./project_personnel.b59a00de.js";import"./project_labor_contract.c0a3eef5.js";import"./project_insurance_management.6e781053.js";import"./project_attendance_record.2786e3ce.js";import"./project_attendance_detail.49a76a7d.js";import"./project_salary_detail.c487a402.js";import"./Collection.94431315.js";import"./InvoicingRequests.194880ba.js";import"./remittance.aceb913b.js";import"./recordsPayment.6ee62b87.js";import"./refund.06f79b56.js";import"./payment.2fc67a49.js";import"./receiptrecord.546c4e80.js";import"./paymentplan.9d16f23f.js";import"./paymentrequest.928d1cc7.js";import"./refundrecord.7625cfa1.js";import"./documentation.3f43d1b7.js";import"./project_document_set.7521959f.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};