2 lines
7.6 KiB
JavaScript
2 lines
7.6 KiB
JavaScript
import{B as Z,D as ee,y as te,A as oe,w as ae,L as le,C as ne,O as ie,P as ue,Q as re}from"./element-plus.c5968462.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.963b6450.js";import{f as se,a as me}from"./index.9aa949ed.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.7a28b0a5.js";import{u as ce}from"./usePaging.5a1a0ff2.js";import{u as _e}from"./useDictOptions.65204acf.js";import{a as W,d as fe,e as he}from"./bid_document_examination.05193676.js";import{d as be}from"./bid_buy_bidding_document.210e89ea.js";import{a as De}from"./project.c361a2f6.js";import{_ as Fe}from"./edit.vue_vue_type_script_setup_true_name_bidDocumentExaminationEdit_lang.78de5da0.js";import ve from"./detail.ebe39779.js";import{u as Ee}from"./vue-router.87ebc608.js";import{d as j,s as $,r as E,a0 as we,ai as Ce,o as d,c as P,V as e,M as a,O as f,u as t,L as m,S as R,n as B,W as ye,a8 as Be,a as S,k as ke,T as _}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.9bff6341.js";import"./dayjs.920ed704.js";import"./axios.fd7895df.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.f060c5ce.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.89a2cd6d.js";import"./color.f7f12e1b.js";import"./clone.3f99ce25.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7ca60bdd.js";import"./ms.a9ae1d6d.js";import"./nprogress.2d805d1c.js";import"./vue-clipboard3.f9b015dd.js";import"./clipboard.84da4513.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.fb3c6a1b.js";import"./index.4450cf90.js";import"./index.vue_vue_type_script_setup_true_lang.e21c0518.js";import"./material_list.1ff03a1b.js";import"./index.vue_vue_type_script_setup_true_lang.97a3844e.js";import"./bid_document_examination_detail.a2a70aaa.js";import"./index.b5be9706.js";import"./approve.56505858.js";import"./flow.26316958.js";import"./index.vue_vue_type_script_setup_true_lang.8a7986ab.js";const ge=_("\u67E5\u8BE2"),xe=_("\u91CD\u7F6E"),Ve=_(" \u65B0\u589E "),Le={class:"mt-4"},We=_(" \u7F16\u8F91 "),$e=_(" \u5220\u9664 "),Pe=_(" \u8BE6\u60C5 "),Re={class:"flex justify-end mt-4"},Se=j({name:"bidDocumentExaminationLists"}),St=j({...Se,setup(je){var x;const w=$(),h=$(),b=E(!1),C=E(!1),A=E([]),s=we({bid_document_no:"",code:"",is_need_deposit:""}),I=E([]),T=i=>{I.value=i.map(({id:o})=>o)},{dictData:y}=_e("whether_status,tax_rate,pay_type,construction_funds_sources,bidding_method"),{pager:n,getLists:D,resetParams:N,resetPage:U}=ce({fetchFun:fe,params:s}),q=async()=>{var i;b.value=!0,await B(),(i=h.value)==null||i.open("add")},O=async i=>{var p,r;let o=await W({id:i.id});b.value=!0,await B(),(p=h.value)==null||p.open("edit"),(r=h.value)==null||r.setFormData(o)},z=async i=>{await se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await he({id:i}),D()},k=async i=>{var p,r;let o=await W({id:i.id});C.value=!0,await B(),(p=w.value)==null||p.open(),(r=w.value)==null||r.setFormData(o)},M=async()=>{let i=await be({page_no:1,page_size:9999});A.value=i.lists},g=Ee();return(x=g.query)!=null&&x.listId&&k({id:g.query.listId}),M(),D(),(i,o)=>{const p=pe,r=Z,V=ee,Q=te,G=oe,c=ae,H=le,L=ne,J=me,u=ie,K=ue,X=de,F=Ce("perms"),Y=re;return d(),P("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(H,{class:"mb-[-16px]",model:s,inline:""},{default:a(()=>[e(r,{label:"\u6240\u5C5E\u9879\u76EE",prop:"project_id"},{default:a(()=>[e(p,{formData:s,model:"project_id",api:t(De)},null,8,["formData","api"])]),_:1}),e(r,{label:"\u6807\u4E66\u7F16\u53F7",prop:"bid_document_no"},{default:a(()=>[e(V,{class:"w-[250px]",modelValue:s.bid_document_no,"onUpdate:modelValue":o[0]||(o[0]=l=>s.bid_document_no=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u4E66\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u5BA1\u67E5\u7F16\u53F7",prop:"code"},{default:a(()=>[e(V,{class:"w-[250px]",modelValue:s.code,"onUpdate:modelValue":o[1]||(o[1]=l=>s.code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u67E5\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1",prop:"is_need_deposit"},{default:a(()=>[e(G,{modelValue:s.is_need_deposit,"onUpdate:modelValue":o[2]||(o[2]=l=>s.is_need_deposit=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1"},{default:a(()=>[(d(!0),P(ye,null,Be(t(y).whether_status,(l,v)=>(d(),m(Q,{key:v,label:l.name,value:parseInt(l.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:a(()=>[e(c,{type:"primary",onClick:t(U)},{default:a(()=>[ge]),_:1},8,["onClick"]),e(c,{onClick:t(N)},{default:a(()=>[xe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((d(),m(L,{class:"!border-none",shadow:"never"},{default:a(()=>[f((d(),m(c,{type:"primary",onClick:q},{icon:a(()=>[e(J,{name:"el-icon-Plus"})]),default:a(()=>[Ve]),_:1})),[[F,["bid.bid_document_examination/add"]]]),S("div",Le,[e(K,{border:"",data:t(n).lists,onSelectionChange:T},{default:a(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(u,{"render-header":t(n).calcWidth,label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},null,8,["render-header"]),e(u,{"render-header":t(n).calcWidth,label:"\u5BA1\u67E5\u7F16\u53F7",prop:"code"},null,8,["render-header"]),e(u,{"render-header":t(n).calcWidth,label:"\u6807\u4E66\u7F16\u53F7",prop:"bid_document_no"},null,8,["render-header"]),e(u,{"render-header":t(n).calcWidth,label:"\u62DB\u6807\u516C\u53F8\u540D\u79F0",prop:"invite_tenders_company_name","show-overflow-tooltip":""},null,8,["render-header"]),e(u,{"render-header":t(n).calcWidth,label:"\u6295\u6807\u516C\u53F8\u540D\u79F0",prop:"bid_company_name","show-overflow-tooltip":""},null,8,["render-header"]),e(u,{label:"\u62DB\u6807\u9879\u76EE\u8D44\u91D1\u6765\u6E90",prop:"bidding_project_fund_source","show-overflow-tooltip":""}),e(u,{label:"\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1",prop:"is_margin","show-overflow-tooltip":""}),e(u,{"render-header":t(n).calcWidth,label:"\u4FDD\u8BC1\u91D1\u91D1\u989D",prop:"margin_amount","show-overflow-tooltip":""},null,8,["render-header"]),e(u,{"render-header":t(n).calcWidth,label:"\u5F00\u6807\u65E5\u671F",prop:"bid_opening_date","show-overflow-tooltip":""},null,8,["render-header"]),e(u,{"render-header":t(n).calcWidth,label:"\u603B\u91D1\u989D",prop:"total_amount","show-overflow-tooltip":""},null,8,["render-header"]),e(u,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:l})=>[f((d(),m(c,{type:"primary",link:"",onClick:v=>O(l)},{default:a(()=>[We]),_:2},1032,["onClick"])),[[F,["bid.bid_document_examination/edit"]]]),f((d(),m(c,{type:"danger",link:"",onClick:v=>z(l.id)},{default:a(()=>[$e]),_:2},1032,["onClick"])),[[F,["bid.bid_document_examination/delete"]]]),f((d(),m(c,{link:"",onClick:v=>k(l)},{default:a(()=>[Pe]),_:2},1032,["onClick"])),[[F,["bid.bid_document_examination/detail"]]])]),_:1})]),_:1},8,["data"])]),S("div",Re,[e(X,{modelValue:t(n),"onUpdate:modelValue":o[3]||(o[3]=l=>ke(n)?n.value=l:null),onChange:t(D)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,t(n).loading]]),C.value?(d(),m(ve,{key:0,ref_key:"detailRef",ref:w,"dict-data":t(y),onClose:o[4]||(o[4]=l=>C.value=!1)},null,8,["dict-data"])):R("",!0),b.value?(d(),m(Fe,{key:1,ref_key:"editRef",ref:h,"dict-data":t(y),onSuccess:t(D),onClose:o[5]||(o[5]=l=>b.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0)])}}});export{St as default};
|