2 lines
6.0 KiB
JavaScript
2 lines
6.0 KiB
JavaScript
import{J as z,y as G,I as K,w as Q,D as W,C as X,L as Z,M as ee,N as te}from"./element-plus.e49c119c.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.8c9f8a22.js";import{f as ae,a as le}from"./index.f22ffba3.js";import{u as ne}from"./usePaging.f6660143.js";import{u as ue}from"./useDictOptions.738b0ea7.js";import{_ as ie,b as re,a as x,c as se}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.0167e0e7.js";import"./lodash.86334a69.js";import{_ as de}from"./detail.vue_vue_type_style_index_0_lang.f91f3d01.js";import{d as A,a0 as $,s as L,r as F,ai as pe,o as i,c as me,V as e,M as o,O as _,u as r,L as s,S as P,a as R,k as ce,T as m,n as D}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"./index.vue_vue_type_script_setup_true_lang.c5ff7951.js";import"./bid_bidding_decision.179c2e82.js";import"./index.vue_vue_type_script_setup_true_lang.447610c1.js";import"./custom.bdf64167.js";import"./projecttype.0a771c1d.js";const _e=m("\u67E5\u8BE2"),fe=m("\u91CD\u7F6E"),ve=m(" \u65B0\u589E "),be=m(" \u5220\u9664 "),we={class:"mt-4"},ke=m(" \u7F16\u8F91 "),he=m(" \u5220\u9664 "),Ce=m(" \u8BE6\u60C5 "),Ee={class:"flex justify-end mt-4"},Fe=A({name:"projectLists"}),ft=A({...Fe,setup(De){$([]);const h=L(),b=L(),w=F(!1),C=F(!1),c=$({bank_account_id:"",refund_date:""}),E=F([]),N=a=>{E.value=a.map(({id:t})=>t)},{dictData:y}=ue("refund_type,isaccrued,contract_type"),{pager:f,getLists:k,resetParams:S,resetPage:T}=ne({fetchFun:re,params:c}),j=async()=>{var a;w.value=!0,await D(),(a=b.value)==null||a.open("add")},M=async a=>{var d,u;console.log(a.id);let t=await x({id:a.id});w.value=!0,await D(),(d=b.value)==null||d.open("edit"),(u=b.value)==null||u.setFormData(t)},g=async a=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await se({id:a}),k()},Y=async a=>{var d,u;let t=await x({id:a.id});C.value=!0,await D(),(d=h.value)==null||d.open(),(u=h.value)==null||u.setFormData(t)};return k(),(a,t)=>{const d=z,u=G,I=K,p=Q,U=W,B=X,H=le,l=Z,q=ee,J=oe,v=pe("perms"),O=te;return i(),me("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(U,{class:"mb-[-16px]",model:c,inline:""},{default:o(()=>[e(u,{label:"\u9000\u6B3E\u65E5\u671F",prop:"refund_date"},{default:o(()=>[e(d,{class:"flex-1 !flex",modelValue:c.refund_date,"onUpdate:modelValue":t[0]||(t[0]=n=>c.refund_date=n),clearable:"",type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"\u9009\u62E9\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u94F6\u884C\u8D26\u53F7",prop:"bank_account_id"},{default:o(()=>[e(I,{class:"w-[280px]",modelValue:c.bank_account_id,"onUpdate:modelValue":t[1]||(t[1]=n=>c.bank_account_id=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7"},null,8,["modelValue"])]),_:1}),e(u,null,{default:o(()=>[e(p,{type:"primary",onClick:r(T)},{default:o(()=>[_e]),_:1},8,["onClick"]),e(p,{onClick:r(S)},{default:o(()=>[fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),s(B,{class:"!border-none",shadow:"never"},{default:o(()=>[_((i(),s(p,{type:"primary",onClick:j},{icon:o(()=>[e(H,{name:"el-icon-Plus"})]),default:o(()=>[ve]),_:1})),[[v,["refund.refund/add"]]]),_((i(),s(p,{disabled:!E.value.length,onClick:t[2]||(t[2]=n=>g(E.value))},{default:o(()=>[be]),_:1},8,["disabled"])),[[v,["refund.refund/delete"]]]),R("div",we,[e(q,{data:r(f).lists,onSelectionChange:N},{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:"supplier_name","show-overflow-tooltip":""}),e(l,{label:"\u5BA2\u6237\u540D\u79F0",prop:"customer_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u6295\u6807\u65F6\u95F4",prop:"refund_date","show-overflow-tooltip":""}),e(l,{label:"\u9000\u6B3E\u91D1\u989D",prop:"refund_amount","show-overflow-tooltip":""}),e(l,{label:"\u9000\u6B3E\u65E5\u671F",prop:"refund_date","show-overflow-tooltip":""}),e(l,{label:"\u6DFB\u52A0\u4EBA",prop:"remark","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:n})=>[_((i(),s(p,{type:"primary",link:"",onClick:V=>M(n)},{default:o(()=>[ke]),_:2},1032,["onClick"])),[[v,["refund.refund/edit"]]]),_((i(),s(p,{type:"danger",link:"",onClick:V=>g(n.id)},{default:o(()=>[he]),_:2},1032,["onClick"])),[[v,["refund.refund/delete"]]]),_((i(),s(p,{link:"",onClick:V=>Y(n)},{default:o(()=>[Ce]),_:2},1032,["onClick"])),[[v,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),R("div",Ee,[e(J,{modelValue:r(f),"onUpdate:modelValue":t[3]||(t[3]=n=>ce(f)?f.value=n:null),onChange:r(k)},null,8,["modelValue","onChange"])])]),_:1})),[[O,r(f).loading]]),w.value?(i(),s(ie,{key:0,ref_key:"editRef",ref:b,"dict-data":r(y),onSuccess:r(k),onClose:t[4]||(t[4]=n=>w.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0),C.value?(i(),s(de,{key:1,ref_key:"detailRef",ref:h,"dict-data":r(y),onClose:t[5]||(t[5]=n=>C.value=!1)},null,8,["dict-data"])):P("",!0)])}}});export{ft as default};
|