2 lines
6.5 KiB
JavaScript
2 lines
6.5 KiB
JavaScript
import{y as Y,A as Z,B as ee,w as te,N as oe,C as ae,P as le,Q as ie,R as se}from"./element-plus.9aef85e6.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.3858ee22.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.23d19169.js";import{f as re,a as de}from"./index.5d64105b.js";import{u as pe}from"./usePaging.160b82b8.js";import{u as ce}from"./useDictOptions.7eefc7b1.js";import{_ as me,a as _e,b as fe,c as ve}from"./edit.vue_vue_type_script_setup_true_name_bidResultEdit_lang.92dc031e.js";import{d as be}from"./bid_document_examination.3abc444e.js";import"./lodash.8ea2174a.js";import{a as Ee}from"./project.6a20a7c2.js";import{_ as we}from"./detail.vue_vue_type_style_index_0_lang.b7515a98.js";import{d as T,s as L,r as E,$ as he,af as Ce,o as i,c as B,U as e,L as a,M as _,u as n,K as u,R as P,V as A,a7 as S,a as N,k as ke,S as p,n as x}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.92e7f918.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.fbc368c4.js";import"./custom.ee8be5f0.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 "),Re={class:"flex mt-4 justify-end"},$e=T({name:"bidResultLists"}),Ft=T({...$e,setup(Le){const k=L(),w=L(),h=E(!1),D=E(!1),V=E([]),j=E([]),c=he({bid_document_examination_id:"",project_id:""}),F=E([]),U=l=>{F.value=l.map(({id:o})=>o)},{dictData:y}=ce("whether_status"),{pager:f,getLists:C,resetParams:I,resetPage:z}=pe({fetchFun:_e,params:c}),q=async()=>{var l;h.value=!0,await x(),(l=w.value)==null||l.open("add")},K=async l=>{var o,r;h.value=!0,await x(),(o=w.value)==null||o.open("edit"),(r=w.value)==null||r.setFormData(l)},R=async l=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:l}),C()},M=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)},O=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})(),O(),C(),(l,o)=>{const r=Y,v=Z,g=ee,d=te,Q=oe,$=ae,G=de,s=le,H=ue,J=ie,W=ne,b=Ce("perms"),X=se;return i(),B("div",null,[e($,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(Q,{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(A,null,S(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(A,null,S(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(I)},{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:q},{icon:a(()=>[e(G,{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=>R(F.value))},{default:a(()=>[ge]),_:1},8,["disabled"])),[[b,["bid.bid_result/delete"]]]),N("div",Be,[e(J,{data:n(f).lists,onSelectionChange:U},{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(H,{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=>K(t)},{default:a(()=>[xe]),_:2},1032,["onClick"])),[[b,["bid.bid_result/edit"]]]),_((i(),u(d,{type:"danger",link:"",onClick:m=>R(t.id)},{default:a(()=>[Ve]),_:2},1032,["onClick"])),[[b,["bid.bid_result/delete"]]]),_((i(),u(d,{link:"",onClick:m=>M(t)},{default:a(()=>[je]),_:2},1032,["onClick"])),[[b,["bid.bid_result/detail"]]])]),_:1})]),_:1},8,["data"])]),N("div",Re,[e(W,{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};
|