2 lines
7.1 KiB
JavaScript
2 lines
7.1 KiB
JavaScript
import{I as Y,y as Z,G as ee,H as te,w as oe,D as le,C as ae,L as ie,M as se,N as ne}from"./element-plus.517d4382.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as re,a as de}from"./index.8b1962e9.js";import{u as ce}from"./usePaging.f6660143.js";import{u as me}from"./useDictOptions.b5854a9e.js";import{_ as _e,s as fe,a as R,b as ve}from"./edit.vue_vue_type_script_setup_true_name_bidBiddingDecisionEdit_lang.f1926193.js";import{a as be}from"./suppler_list.28d1ed14.js";import"./lodash.1d82ee7c.js";import we from"./detail.a0482b16.js";import{d as M,s as S,r as E,a0 as Ce,ai as he,o as s,c as g,V as e,M as o,O as v,u as n,L as p,S as N,W as T,a8 as I,a as U,k as ye,T as m,n as V}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"./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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.6f6d98ba.js";import"./custom.99349afc.js";const Ee=m("\u67E5\u8BE2"),Fe=m("\u91CD\u7F6E"),Be=m(" \u65B0\u589E "),ke=m(" \u5220\u9664 "),De={class:"mt-4"},ge=m(" \u7F16\u8F91 "),Ve=m(" \u5220\u9664 "),xe=m(" \u8BE6\u60C5 "),$e={class:"flex mt-4 justify-end"},Ae=M({name:"bidBiddingDecisionLists"}),Ft=M({...Ae,setup(Le){const F=S(),C=S(),h=E(!1),B=E(!1),x=E([]),r=Ce({name:"",supplier_id:"",contacts_type:""}),k=E([]),O=i=>{k.value=i.map(({id:l})=>l)},{dictData:_}=me("id_type,contacts_cate,contacts_type,sex"),{pager:b,getLists:y,resetParams:j,resetPage:q}=ce({fetchFun:fe,params:r}),z=async()=>{var i;h.value=!0,await V(),(i=C.value)==null||i.open("add")},G=async i=>{var d,u;let l=await R({id:i.id});h.value=!0,await V(),(d=C.value)==null||d.open("edit"),(u=C.value)==null||u.setFormData(l)},$=async i=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ve({id:i}),y()},H=async i=>{var d,u;let l=await R({id:i.id});B.value=!0,await V(),(d=F.value)==null||d.open(),(u=F.value)==null||u.setFormData(l)};return(async()=>{let i=await be({page_no:1,page_size:8888});x.value=i.lists})(),y(),(i,l)=>{const d=Y,u=Z,A=ee,L=te,c=oe,W=le,P=ae,J=de,a=ie,D=pe,K=se,Q=ue,w=he("perms"),X=ne;return s(),g("div",null,[e(P,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(W,{class:"mb-[-16px]",model:r,"label-width":"auto",inline:""},{default:o(()=>[e(u,{label:"\u59D3\u540D",prop:"name"},{default:o(()=>[e(d,{class:"w-[280px]",modelValue:r.name,"onUpdate:modelValue":l[0]||(l[0]=t=>r.name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u8054\u7CFB\u4EBA\u5206\u7C7B",prop:"contacts_type"},{default:o(()=>[e(L,{class:"w-[280px]",modelValue:r.contacts_type,"onUpdate:modelValue":l[1]||(l[1]=t=>r.contacts_type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8054\u7CFB\u4EBA\u5206\u7C7B"},{default:o(()=>[(s(!0),g(T,null,I(n(_).contacts_type,(t,f)=>(s(),p(A,{key:f,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:o(()=>[e(L,{class:"w-[280px]",modelValue:r.supplier_id,"onUpdate:modelValue":l[2]||(l[2]=t=>r.supplier_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546"},{default:o(()=>[(s(!0),g(T,null,I(x.value,(t,f)=>(s(),p(A,{key:f,label:t.supplier_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:o(()=>[e(c,{type:"primary",onClick:n(q)},{default:o(()=>[Ee]),_:1},8,["onClick"]),e(c,{onClick:n(j)},{default:o(()=>[Fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((s(),p(P,{class:"!border-none",shadow:"never"},{default:o(()=>[v((s(),p(c,{type:"primary",onClick:z},{icon:o(()=>[e(J,{name:"el-icon-Plus"})]),default:o(()=>[Be]),_:1})),[[w,["bid.bid_bidding_decision/add"]]]),v((s(),p(c,{disabled:!k.value.length,onClick:l[3]||(l[3]=t=>$(k.value))},{default:o(()=>[ke]),_:1},8,["disabled"])),[[w,["bid.bid_bidding_decision/delete"]]]),U("div",De,[e(K,{data:n(b).lists,onSelectionChange:O},{default:o(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u4F9B\u5E94\u5546\u7F16\u7801",prop:"supplier_code","show-overflow-tooltip":""}),e(a,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(a,{label:"\u59D3\u540D",prop:"name","show-overflow-tooltip":""}),e(a,{label:"\u6027\u522B",prop:"sex","show-overflow-tooltip":""},{default:o(({row:t})=>[e(D,{options:n(_).sex,value:t.sex},null,8,["options","value"])]),_:1}),e(a,{label:"\u51FA\u751F\u65E5\u671F",prop:"birthday","show-overflow-tooltip":""}),e(a,{label:"\u8054\u7CFB\u4EBA\u5206\u7C7B",prop:"contacts_type"},{default:o(({row:t})=>[e(D,{options:n(_).contacts_type,value:t.contacts_type},null,8,["options","value"])]),_:1}),e(a,{label:"\u8D1F\u8D23\u4E1A\u52A1",prop:"responsible","show-overflow-tooltip":""}),e(a,{label:"\u7C7B\u578B",prop:"contacts_cate"},{default:o(({row:t})=>[e(D,{options:n(_).contacts_cate,value:t.contacts_cate},null,8,["options","value"])]),_:1}),e(a,{label:"\u90E8\u95E8",prop:"department","show-overflow-tooltip":""}),e(a,{label:"\u804C\u52A1",prop:"duties","show-overflow-tooltip":""}),e(a,{label:"\u5DE5\u4F5C\u7535\u8BDD",prop:"work_phone","show-overflow-tooltip":""}),e(a,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:o(({row:t})=>[v((s(),p(c,{type:"primary",link:"",onClick:f=>G(t)},{default:o(()=>[ge]),_:2},1032,["onClick"])),[[w,["bid.bid_bidding_decision/edit"]]]),v((s(),p(c,{type:"danger",link:"",onClick:f=>$(t.id)},{default:o(()=>[Ve]),_:2},1032,["onClick"])),[[w,["bid.bid_bidding_decision/delete"]]]),v((s(),p(c,{link:"",onClick:f=>H(t)},{default:o(()=>[xe]),_:2},1032,["onClick"])),[[w,["bid.bid_bidding_decision/detail"]]])]),_:1})]),_:1},8,["data"])]),U("div",$e,[e(Q,{modelValue:n(b),"onUpdate:modelValue":l[4]||(l[4]=t=>ye(b)?b.value=t:null),onChange:n(y)},null,8,["modelValue","onChange"])])]),_:1})),[[X,n(b).loading]]),B.value?(s(),p(we,{key:0,ref_key:"detailRef",ref:F,"dict-data":n(_),onClose:l[5]||(l[5]=t=>B.value=!1)},null,8,["dict-data"])):N("",!0),h.value?(s(),p(_e,{key:1,ref_key:"editRef",ref:C,"dict-data":n(_),onSuccess:n(y),onClose:l[6]||(l[6]=t=>h.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0)])}}});export{Ft as default};
|