2 lines
12 KiB
JavaScript
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.258bf9e7.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as pe,a as se}from"./index.ec401e3b.js";import{u as me}from"./usePaging.f6660143.js";import{u as de}from"./useDictOptions.c644f395.js";import{a as ce,b as L,e as _e}from"./project.bccf4059.js";import{g as fe}from"./projecttype.f974a874.js";import{_ as be}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.5a767364.js";import Ee from"./detail.c463a281.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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.291052e3.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.13e75d58.js";import"./index.9492d03b.js";import"./index.a7758114.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./Overview.fc219c3b.js";import"./Business.8e006ccb.js";import"./project_follow_up.7ff756b1.js";import"./customer_demand.1a367ec5.js";import"./customer_demand_solution.c617eb7f.js";import"./project_estimate.38ab2776.js";import"./competitor.63c8f08c.js";import"./edit.vue_vue_type_script_setup_true_name_projectFollowUpEdit_lang.6ca1b76a.js";import"./index.vue_vue_type_script_setup_true_lang.5a5f706a.js";import"./tender.9cd5b0a2.js";import"./bid_bidding_decision.94b455e2.js";import"./bid_buy_bidding_document.b63574f0.js";import"./bid_document_examination.3ecf1ccf.js";import"./bid_result.87d2a38b.js";import"./bidbbond.0932c876.js";import"./refundbidDeposit.3a278599.js";import"./contract.5ec63062.js";import"./contract.4f8a540d.js";import"./contract_negotiation.1907410e.js";import"./budget.57a8f99c.js";import"./myTable.a7ceae37.js";import"./project_cost_budget.d3163e55.js";import"./project_material_budget_detail.8f7a9994.js";import"./project_subpackage_budget_detail.b29b14e4.js";import"./project_equipment_budget_detail.b63030b4.js";import"./project_labor_budget_detail.60680db0.js";import"./procurement.834d6138.js";import"./procurement_contract.b71ab69f.js";import"./subcontract.ecd938f9.js";import"./subcontracting_contract.654d8771.js";import"./subcontractor.3d3161e3.js";import"./manpower.2d5b546a.js";import"./project_personnel.09fb588e.js";import"./project_labor_contract.62b5248b.js";import"./project_insurance_management.82214213.js";import"./project_attendance_record.41d82014.js";import"./project_attendance_detail.a5256573.js";import"./project_salary_detail.57d1cdc6.js";import"./Collection.a5781155.js";import"./InvoicingRequests.ffa42549.js";import"./remittance.3fda3ff0.js";import"./recordsPayment.151d9a50.js";import"./refund.d7927da2.js";import"./payment.8ef1aae4.js";import"./receiptrecord.fd1ec468.js";import"./paymentplan.26c1cb62.js";import"./paymentrequest.166f3439.js";import"./refundrecord.12b16dcd.js";import"./documentation.913b279a.js";import"./project_document_set.994e683e.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};
|