engineering/public/admin/assets/index.813bbc07.js
2024-01-06 14:42:59 +08:00

2 lines
6.5 KiB
JavaScript

import{G as Y,H as Z,y as ee,w as te,D as oe,C as ae,L as le,M as ie,N as se}from"./element-plus.e49c119c.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.8c9f8a22.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as re,a as de}from"./index.f22ffba3.js";import{u as pe}from"./usePaging.f6660143.js";import{u as ce}from"./useDictOptions.738b0ea7.js";import{_ as me,a as _e,b as fe,c as ve}from"./edit.vue_vue_type_script_setup_true_name_bidResultEdit_lang.1263d7ad.js";import{d as be}from"./bid_document_examination.d10bd99a.js";import"./lodash.86334a69.js";import{a as Ee}from"./project.f050944e.js";import{_ as we}from"./detail.vue_vue_type_style_index_0_lang.c1873652.js";import{d as T,s as R,r as E,a0 as he,ai as Ce,o as i,c as B,V as e,M as a,O as _,u as n,L as u,S as P,W as S,a8 as A,a as N,k as ke,T as p,n as x}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.5571e62a.js";import"./axios.9ce976cc.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.156d1593.js";import"./color.4188bfef.js";import"./clone.a0efef30.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ca37accd.js";import"./ms.a9ae1d6d.js";import"./nprogress.30953505.js";import"./vue-clipboard3.4e4a29c9.js";import"./clipboard.1a812829.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.2ebad864.js";import"./custom.bdf64167.js";const De=p("\u67E5\u8BE2"),Fe=p("\u91CD\u7F6E"),ye=p(" \u65B0\u589E "),ge=p(" \u5220\u9664 "),Be={class:"mt-4"},xe=p(" \u7F16\u8F91 "),Ve=p(" \u5220\u9664 "),je=p(" \u8BE6\u60C5 "),Le={class:"flex mt-4 justify-end"},$e=T({name:"bidResultLists"}),Ft=T({...$e,setup(Re){const k=R(),w=R(),h=E(!1),D=E(!1),V=E([]),j=E([]),c=he({bid_document_examination_id:"",project_id:""}),F=E([]),I=l=>{F.value=l.map(({id:o})=>o)},{dictData:y}=ce("whether_status"),{pager:f,getLists:C,resetParams:U,resetPage:z}=pe({fetchFun:_e,params:c}),M=async()=>{var l;h.value=!0,await x(),(l=w.value)==null||l.open("add")},O=async l=>{var o,r;h.value=!0,await x(),(o=w.value)==null||o.open("edit"),(r=w.value)==null||r.setFormData(l)},L=async l=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:l}),C()},q=async l=>{var r,v;let o=await ve({id:l.id});D.value=!0,await x(),(r=k.value)==null||r.open(),(v=k.value)==null||v.setFormData(o)},G=async()=>{let l=await Ee({page_no:1,page_size:9999});V.value=l.lists};return(async()=>{let l=await be({page_no:1,page_size:9999});j.value=l.lists})(),G(),C(),(l,o)=>{const r=Y,v=Z,g=ee,d=te,H=oe,$=ae,W=de,s=le,J=ue,K=ie,Q=ne,b=Ce("perms"),X=se;return i(),B("div",null,[e($,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(H,{class:"mb-[-16px]",model:c,inline:""},{default:a(()=>[e(g,{label:"\u6807\u4E66\u5BA1\u67E5",prop:"bid_document_examination_id"},{default:a(()=>[e(v,{modelValue:c.bid_document_examination_id,"onUpdate:modelValue":o[0]||(o[0]=t=>c.bid_document_examination_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6807\u4E66\u5BA1\u67E5"},{default:a(()=>[(i(!0),B(S,null,A(j.value,(t,m)=>(i(),u(r,{key:m,label:t.bid_document_no,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,{label:"\u9879\u76EE",prop:"project_id"},{default:a(()=>[e(v,{modelValue:c.project_id,"onUpdate:modelValue":o[1]||(o[1]=t=>c.project_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE"},{default:a(()=>[(i(!0),B(S,null,A(V.value,(t,m)=>(i(),u(r,{key:m,label:t.name,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,null,{default:a(()=>[e(d,{type:"primary",onClick:n(z)},{default:a(()=>[De]),_:1},8,["onClick"]),e(d,{onClick:n(U)},{default:a(()=>[Fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),u($,{class:"!border-none",shadow:"never"},{default:a(()=>[_((i(),u(d,{type:"primary",onClick:M},{icon:a(()=>[e(W,{name:"el-icon-Plus"})]),default:a(()=>[ye]),_:1})),[[b,["bid.bid_result/add"]]]),_((i(),u(d,{disabled:!F.value.length,onClick:o[2]||(o[2]=t=>L(F.value))},{default:a(()=>[ge]),_:1},8,["disabled"])),[[b,["bid.bid_result/delete"]]]),N("div",Be,[e(K,{data:n(f).lists,onSelectionChange:I},{default:a(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(s,{label:"\u6807\u4E66\u5BA1\u67E5id",prop:"bid_document_examination_id","show-overflow-tooltip":""}),e(s,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_id","show-overflow-tooltip":""}),e(s,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_id","show-overflow-tooltip":""}),e(s,{label:"\u6295\u6807\u65F6\u95F4",prop:"project_id","show-overflow-tooltip":""}),e(s,{label:"\u5F00\u6807\u65E5\u671F",prop:"project_id","show-overflow-tooltip":""}),e(s,{label:"\u662F\u5426\u4E2D\u6807",prop:"is_successful","show-overflow-tooltip":""},{default:a(({row:t})=>[e(J,{options:n(y).whether_status,value:t.is_successful},null,8,["options","value"])]),_:1}),e(s,{label:"\u4E2D\u6807\u5355\u4F4D",prop:"bidder","show-overflow-tooltip":""}),e(s,{label:"\u4E2D\u6807\u91D1\u989D",prop:"bidder_amount","show-overflow-tooltip":""}),e(s,{label:"\u4E2D\u6807\u91D1\u989D\u5927\u5199",prop:"bidder_amount_daxie","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:t})=>[_((i(),u(d,{type:"primary",link:"",onClick:m=>O(t)},{default:a(()=>[xe]),_:2},1032,["onClick"])),[[b,["bid.bid_result/edit"]]]),_((i(),u(d,{type:"danger",link:"",onClick:m=>L(t.id)},{default:a(()=>[Ve]),_:2},1032,["onClick"])),[[b,["bid.bid_result/delete"]]]),_((i(),u(d,{link:"",onClick:m=>q(t)},{default:a(()=>[je]),_:2},1032,["onClick"])),[[b,["bid.bid_result/detail"]]])]),_:1})]),_:1},8,["data"])]),N("div",Le,[e(Q,{modelValue:n(f),"onUpdate:modelValue":o[3]||(o[3]=t=>ke(f)?f.value=t:null),onChange:n(C)},null,8,["modelValue","onChange"])])]),_:1})),[[X,n(f).loading]]),D.value?(i(),u(we,{key:0,ref_key:"detailRef",ref:k,"dict-data":n(y),onClose:o[4]||(o[4]=t=>D.value=!1)},null,8,["dict-data"])):P("",!0),h.value?(i(),u(me,{key:1,ref_key:"editRef",ref:w,"dict-data":n(y),onSuccess:n(C),onClose:o[5]||(o[5]=t=>h.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0)])}}});export{Ft as default};