engineering/public/admin/assets/index.7b80eb76.js
2024-03-21 17:05:40 +08:00

2 lines
7.2 KiB
JavaScript

import{B as Z,D as ee,y as oe,A as te,w as ae,L as le,C as ie,S as ne,T as ue,U as se}from"./element-plus.0c562719.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.1ae1e14d.js";import{f as de,a as me}from"./index.a53ef25c.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.45b69313.js";import{u as ce}from"./usePaging.f6660143.js";import{u as _e}from"./useDictOptions.0fa8a4dd.js";import{a as $,d as fe,e as be}from"./bid_document_examination.a6a52aad.js";import{d as ve}from"./bid_buy_bidding_document.8d49a3df.js";import{a as De}from"./project.ee22fa03.js";import{_ as Fe}from"./edit.vue_vue_type_script_setup_true_name_bidDocumentExaminationEdit_lang.74798569.js";import we from"./detail.da8a444d.js";import{u as Ee}from"./vue-router.87ebc608.js";import{d as A,s as R,r as E,a0 as he,ai as Ce,o as s,c as S,V as e,M as t,O as f,u,L as d,S as P,n as B,W as ye,a8 as Be,a as j,k as ke,T as c}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.9bff6341.js";import"./dayjs.b71ea374.js";import"./axios.a47df6c5.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.cf6c933b.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.7fa42df6.js";import"./color.33bf1982.js";import"./clone.a41dca03.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.2a4540f4.js";import"./ms.a9ae1d6d.js";import"./nprogress.efca4817.js";import"./vue-clipboard3.24161810.js";import"./clipboard.c8fd8745.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./index.vue_vue_type_script_setup_true_lang.4961e887.js";import"./index.79ed28eb.js";import"./index.vue_vue_type_script_setup_true_lang.41703b82.js";import"./material_list.bda53a4a.js";import"./index.vue_vue_type_script_setup_true_lang.740efb4a.js";import"./bid_document_examination_detail.a1b94ce9.js";import"./index.a861c1cf.js";import"./approve.3f1b6377.js";import"./flow.78e76b61.js";const ge=c("\u67E5\u8BE2"),xe=c("\u91CD\u7F6E"),Ve=c(" \u65B0\u589E "),Le={class:"mt-4"},$e=c(" \u7F16\u8F91 "),Re=c(" \u5220\u9664 "),Se=c(" \u8BE6\u60C5 "),Pe={class:"flex justify-end mt-4"},je=A({name:"bidDocumentExaminationLists"}),jo=A({...je,setup(Ae){var x;const h=R(),b=R(),v=E(!1),C=E(!1),T=E([]),r=he({bid_document_no:"",code:"",is_need_deposit:""}),I=E([]),U=l=>{I.value=l.map(({id:o})=>o)},{dictData:y}=_e("whether_status,tax_rate,pay_type,construction_funds_sources,bidding_method"),{pager:_,getLists:D,resetParams:N,resetPage:q}=ce({fetchFun:fe,params:r}),O=async()=>{var l;v.value=!0,await B(),(l=b.value)==null||l.open("add")},z=async l=>{var m,n;let o=await $({id:l.id});v.value=!0,await B(),(m=b.value)==null||m.open("edit"),(n=b.value)==null||n.setFormData(o)},M=async l=>{await de.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await be({id:l}),D()},k=async l=>{var m,n;let o=await $({id:l.id});C.value=!0,await B(),(m=h.value)==null||m.open(),(n=h.value)==null||n.setFormData(o)},W=async()=>{let l=await ve({page_no:1,page_size:9999});T.value=l.lists},g=Ee();return(x=g.query)!=null&&x.listId&&k({id:g.query.listId}),W(),D(),(l,o)=>{const m=pe,n=Z,V=ee,G=oe,H=te,p=ae,J=le,L=ie,K=me,i=ne,Q=ue,X=re,F=Ce("perms"),Y=se;return s(),S("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(J,{class:"mb-[-16px]",model:r,inline:""},{default:t(()=>[e(n,{label:"\u6240\u5C5E\u9879\u76EE",prop:"project_id"},{default:t(()=>[e(m,{formData:r,model:"project_id",api:u(De)},null,8,["formData","api"])]),_:1}),e(n,{label:"\u6807\u4E66\u7F16\u53F7",prop:"bid_document_no"},{default:t(()=>[e(V,{class:"w-[250px]",modelValue:r.bid_document_no,"onUpdate:modelValue":o[0]||(o[0]=a=>r.bid_document_no=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u4E66\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA1\u67E5\u7F16\u53F7",prop:"code"},{default:t(()=>[e(V,{class:"w-[250px]",modelValue:r.code,"onUpdate:modelValue":o[1]||(o[1]=a=>r.code=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u67E5\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1",prop:"is_need_deposit"},{default:t(()=>[e(H,{modelValue:r.is_need_deposit,"onUpdate:modelValue":o[2]||(o[2]=a=>r.is_need_deposit=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1"},{default:t(()=>[(s(!0),S(ye,null,Be(u(y).whether_status,(a,w)=>(s(),d(G,{key:w,label:a.name,value:parseInt(a.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(n,null,{default:t(()=>[e(p,{type:"primary",onClick:u(q)},{default:t(()=>[ge]),_:1},8,["onClick"]),e(p,{onClick:u(N)},{default:t(()=>[xe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),d(L,{class:"!border-none",shadow:"never"},{default:t(()=>[f((s(),d(p,{type:"primary",onClick:O},{icon:t(()=>[e(K,{name:"el-icon-Plus"})]),default:t(()=>[Ve]),_:1})),[[F,["bid.bid_document_examination/add"]]]),j("div",Le,[e(Q,{data:u(_).lists,onSelectionChange:U},{default:t(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(i,{label:"\u5BA1\u67E5\u7F16\u53F7",prop:"code","show-overflow-tooltip":""}),e(i,{label:"\u6807\u4E66\u7F16\u53F7",prop:"bid_document_no","show-overflow-tooltip":""}),e(i,{label:"\u62DB\u6807\u516C\u53F8\u540D\u79F0",prop:"invite_tenders_company_name","show-overflow-tooltip":""}),e(i,{label:"\u6295\u6807\u516C\u53F8\u540D\u79F0",prop:"bid_company_name","show-overflow-tooltip":""}),e(i,{label:"\u62DB\u6807\u9879\u76EE\u8D44\u91D1\u6765\u6E90",width:"150",prop:"bidding_project_fund_source","show-overflow-tooltip":""}),e(i,{label:"\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1",prop:"is_margin","show-overflow-tooltip":""}),e(i,{label:"\u4FDD\u8BC1\u91D1\u91D1\u989D ",prop:"margin_amount","show-overflow-tooltip":""}),e(i,{label:"\u5F00\u6807\u65E5\u671F",prop:"bid_opening_date","show-overflow-tooltip":""}),e(i,{label:"\u603B\u91D1\u989D",prop:"total_amount","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:t(({row:a})=>[f((s(),d(p,{type:"primary",link:"",onClick:w=>z(a)},{default:t(()=>[$e]),_:2},1032,["onClick"])),[[F,["bid.bid_document_examination/edit"]]]),f((s(),d(p,{type:"danger",link:"",onClick:w=>M(a.id)},{default:t(()=>[Re]),_:2},1032,["onClick"])),[[F,["bid.bid_document_examination/delete"]]]),f((s(),d(p,{link:"",onClick:w=>k(a)},{default:t(()=>[Se]),_:2},1032,["onClick"])),[[F,["bid.bid_document_examination/detail"]]])]),_:1})]),_:1},8,["data"])]),j("div",Pe,[e(X,{modelValue:u(_),"onUpdate:modelValue":o[3]||(o[3]=a=>ke(_)?_.value=a:null),onChange:u(D)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,u(_).loading]]),C.value?(s(),d(we,{key:0,ref_key:"detailRef",ref:h,"dict-data":u(y),onClose:o[4]||(o[4]=a=>C.value=!1)},null,8,["dict-data"])):P("",!0),v.value?(s(),d(Fe,{key:1,ref_key:"editRef",ref:b,"dict-data":u(y),onSuccess:u(D),onClose:o[5]||(o[5]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0)])}}});export{jo as default};