2 lines
6.5 KiB
JavaScript
2 lines
6.5 KiB
JavaScript
import{I as Y,y as Z,G as ee,H as te,w as oe,D as ae,C as le,L as ne,M as ue,N as ie}from"./element-plus.258bf9e7.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as re,a as pe}from"./index.ec401e3b.js";import{_ as de}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as me}from"./usePaging.f6660143.js";import{u as ce}from"./useDictOptions.c644f395.js";import{b as R,d as P,e as _e}from"./bidbbond.0932c876.js";import{_ as fe}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.97d502c3.js";import ve from"./detail.be532d3b.js";import{u as we}from"./vue-router.87ebc608.js";import{d as j,s as S,r as k,a0 as ye,ai as Fe,o as i,c as I,V as e,M as o,O as f,u,L as r,S as N,n as B,W as be,a8 as he,a as T,k as Ee,T as c}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"./lodash.1d82ee7c.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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.ca51d1e1.js";import"./bid_bidding_decision.94b455e2.js";import"./index.a91b9a2c.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./custom.13e75d58.js";import"./flowSet.6e7dc427.js";const De=c("\u67E5\u8BE2"),Ce=c("\u91CD\u7F6E"),ke=c(" \u65B0\u589E "),Be=c(" \u5220\u9664 "),ge={class:"mt-4"},Ve=c(" \u7F16\u8F91 "),xe=c(" \u5220\u9664 "),$e=c(" \u8BE6\u60C5 "),Ae={class:"flex justify-end mt-4"},Le=j({name:"projectLists"}),Vt=j({...Le,setup(Re){var $;const g=we(),h=S(),w=S(),y=k(!1),E=k(!1),p=ye({applier:"",pay_type:""}),D=k([]),q=n=>{D.value=n.map(({id:t})=>t)},{dictData:C}=ce("pay_type"),{pager:_,getLists:F,resetParams:z,resetPage:U}=me({fetchFun:P,params:p}),M=async()=>{var n;y.value=!0,await B(),(n=w.value)==null||n.open("add")},O=async n=>{var d,s;console.log(n.id);let t=await R({id:n.id});y.value=!0,await B(),(d=w.value)==null||d.open("edit"),(s=w.value)==null||s.setFormData(t)},V=async n=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _e({id:n}),F()},x=async n=>{var d,s;let t=await R({id:n.id});E.value=!0,await B(),(d=h.value)==null||d.open(),(s=h.value)==null||s.setFormData(t)};return($=g.query)!=null&&$.listId&&x({id:g.query.listId}),F(),(n,t)=>{const d=Y,s=Z,A=ee,G=te,m=oe,H=de,W=ae,L=le,J=pe,l=ne,K=ue,Q=se,v=Fe("perms"),X=ie;return i(),I("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(W,{class:"mb-[-16px]",model:p,inline:""},{default:o(()=>[e(s,{label:"\u7533\u8BF7\u4EBA",prop:"applier"},{default:o(()=>[e(d,{class:"w-[280px]",modelValue:p.applier,"onUpdate:modelValue":t[0]||(t[0]=a=>p.applier=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7533\u8BF7\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"project_content"},{default:o(()=>[e(G,{class:"w-[280px]",modelValue:p.pay_type,"onUpdate:modelValue":t[1]||(t[1]=a=>p.pay_type=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u65B9\u5F0F"},{default:o(()=>[e(A,{label:"\u5168\u90E8",value:""}),(i(!0),I(be,null,he(u(C).pay_type,(a,b)=>(i(),r(A,{key:b,label:a.name,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,null,{default:o(()=>[e(m,{type:"primary",onClick:u(U)},{default:o(()=>[De]),_:1},8,["onClick"]),e(m,{onClick:u(z)},{default:o(()=>[Ce]),_:1},8,["onClick"]),e(H,{class:"ml-2.5","fetch-fun":u(P),params:p,"page-size":u(_).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((i(),r(L,{class:"!border-none",shadow:"never"},{default:o(()=>[f((i(),r(m,{type:"primary",onClick:M},{icon:o(()=>[e(J,{name:"el-icon-Plus"})]),default:o(()=>[ke]),_:1})),[[v,["refund.refund/add"]]]),f((i(),r(m,{disabled:!D.value.length,onClick:t[2]||(t[2]=a=>V(D.value))},{default:o(()=>[Be]),_:1},8,["disabled"])),[[v,["refund.refund/delete"]]]),T("div",ge,[e(K,{data:u(_).lists,onSelectionChange:q},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:"\u6295\u6807\u7F16\u53F7",prop:"security_apply_code","show-overflow-tooltip":""}),e(l,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u6295\u6807\u65F6\u95F4",prop:"bidding_time","show-overflow-tooltip":""}),e(l,{label:"\u9884\u8BA1\u9000\u8FD8\u65F6\u95F4",prop:"refund_date","show-overflow-tooltip":""}),e(l,{label:"\u4FDD\u8BC1\u91D1\u91D1\u989D",prop:"margin_amount","show-overflow-tooltip":""}),e(l,{label:"\u7533\u8BF7\u4EBA",prop:"applier","show-overflow-tooltip":""}),e(l,{label:"\u5DF2\u9000\u91D1\u989D",prop:"has_refund_amount","show-overflow-tooltip":""}),e(l,{label:"\u672A\u9000\u91D1\u989D",prop:"not_refund_amount","show-overflow-tooltip":""}),e(l,{label:"\u521B\u5EFA\u65E5\u671F",prop:"create_time","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:a})=>[f((i(),r(m,{type:"primary",link:"",onClick:b=>O(a)},{default:o(()=>[Ve]),_:2},1032,["onClick"])),[[v,["refund.refund/edit"]]]),f((i(),r(m,{type:"danger",link:"",onClick:b=>V(a.id)},{default:o(()=>[xe]),_:2},1032,["onClick"])),[[v,["refund.refund/delete"]]]),f((i(),r(m,{link:"",onClick:b=>x(a)},{default:o(()=>[$e]),_:2},1032,["onClick"])),[[v,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),T("div",Ae,[e(Q,{modelValue:u(_),"onUpdate:modelValue":t[3]||(t[3]=a=>Ee(_)?_.value=a:null),onChange:u(F)},null,8,["modelValue","onChange"])])]),_:1})),[[X,u(_).loading]]),y.value?(i(),r(fe,{key:0,ref_key:"editRef",ref:w,"dict-data":u(C),onSuccess:u(F),onClose:t[4]||(t[4]=a=>y.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0),E.value?(i(),r(ve,{key:1,ref_key:"detailRef",ref:h,"dict-data":u(C),onClose:t[5]||(t[5]=a=>E.value=!1)},null,8,["dict-data"])):N("",!0)])}}});export{Vt as default};
|