engineering/public/admin/assets/index.621ddb48.js
shengchanzhe a2653dcd36 提交pc
2024-01-27 11:43:47 +08:00

2 lines
6.7 KiB
JavaScript

import{I as Q,y as X,G as Y,H as Z,w as ee,D as oe,C as te,L as le,M as ae,N as ie}from"./element-plus.4ff6f47d.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as se,a as re}from"./index.aaca920c.js";import{u as pe}from"./usePaging.f6660143.js";import{u as de}from"./useDictOptions.c83e2497.js";import{_ as ce,a as me,b as x,c as _e}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.b611c257.js";import"./lodash.8ea2174a.js";import fe from"./detail.d34b9c86.js";import{d as S,a0 as A,s as $,r as k,ai as ve,o as n,c as L,V as e,M as l,O as _,u,L as r,S as P,W as we,a8 as be,a as R,k as De,T as m,n as B}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.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.87ebc608.js";import"./pinia.b6700c26.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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.ff7c6188.js";import"./index.vue_vue_type_script_setup_true_lang.23fb9564.js";import"./administrative.a3e3990f.js";import"./department.a7058b70.js";import"./organization.f9ce12f7.js";import"./custom.01004c04.js";const Fe=m("\u67E5\u8BE2"),Ce=m("\u91CD\u7F6E"),Ee=m(" \u65B0\u589E "),he=m(" \u5220\u9664 "),ye={class:"mt-4"},ke=m(" \u7F16\u8F91 "),Be=m(" \u5220\u9664 "),ge=m(" \u8BE6\u60C5 "),Ve={class:"flex justify-end mt-4"},xe=S({name:"projectLists"}),ho=S({...xe,setup(Ae){A([]);const E=$(),w=$(),b=k(!1),h=k(!1),p=A({commitor:"",invoice_no:"",invoice_type:""}),y=k([]),N=i=>{y.value=i.map(({id:o})=>o)},{dictData:D}=de("invoice_type,contract_type"),{pager:f,getLists:F,resetParams:T,resetPage:U}=pe({fetchFun:me,params:p}),I=async()=>{var i;b.value=!0,await B(),(i=w.value)==null||i.open("add")},j=async i=>{var d,s;console.log(i.id);let o=await x({id:i.id});b.value=!0,await B(),(d=w.value)==null||d.open("edit"),(s=w.value)==null||s.setFormData(o)},g=async i=>{await se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _e({id:i}),F()},M=async i=>{var d,s;let o=await x({id:i.id});h.value=!0,await B(),(d=E.value)==null||d.open(),(s=E.value)==null||s.setFormData(o)};return F(),(i,o)=>{const d=Q,s=X,O=Y,q=Z,c=ee,G=oe,V=te,H=re,a=le,W=ue,z=ae,J=ne,v=ve("perms"),K=ie;return n(),L("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(G,{class:"mb-[-16px]",model:p,inline:""},{default:l(()=>[e(s,{label:"\u63D0\u4EA4\u4EBA",prop:"commitor"},{default:l(()=>[e(d,{class:"w-[280px]",modelValue:p.commitor,"onUpdate:modelValue":o[0]||(o[0]=t=>p.commitor=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4EBA"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u53D1\u7968\u7F16\u53F7",prop:"invoice_no"},{default:l(()=>[e(d,{class:"w-[280px]",modelValue:p.invoice_no,"onUpdate:modelValue":o[1]||(o[1]=t=>p.invoice_no=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type"},{default:l(()=>[e(q,{class:"w-[280px]",modelValue:p.invoice_type,"onUpdate:modelValue":o[2]||(o[2]=t=>p.invoice_type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u53D1\u7968\u7C7B\u578B"},{default:l(()=>[(n(!0),L(we,null,be(u(D).invoice_type,(t,C)=>(n(),r(O,{key:C,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,null,{default:l(()=>[e(c,{type:"primary",onClick:u(U)},{default:l(()=>[Fe]),_:1},8,["onClick"]),e(c,{onClick:u(T)},{default:l(()=>[Ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),r(V,{class:"!border-none",shadow:"never"},{default:l(()=>[_((n(),r(c,{type:"primary",onClick:I},{icon:l(()=>[e(H,{name:"el-icon-Plus"})]),default:l(()=>[Ee]),_:1})),[[v,["refund.refund/add"]]]),_((n(),r(c,{disabled:!y.value.length,onClick:o[3]||(o[3]=t=>g(y.value))},{default:l(()=>[he]),_:1},8,["disabled"])),[[v,["refund.refund/delete"]]]),R("div",ye,[e(z,{data:u(f).lists,onSelectionChange:N},{default:l(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name","show-overflow-tooltip":""}),e(a,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(a,{label:"\u6536\u7968\u65E5\u671F",prop:"receipt_date","show-overflow-tooltip":""}),e(a,{label:"\u5F00\u7968\u65E5\u671F",prop:"invoicing_date","show-overflow-tooltip":""}),e(a,{label:"\u63D0\u4EA4\u4EBA",prop:"commitor","show-overflow-tooltip":""}),e(a,{label:"\u53D1\u7968\u7A0E\u7387",prop:"invoice_tax_rate","show-overflow-tooltip":""}),e(a,{label:"\u53D1\u7968\u91D1\u989D",prop:"invoice_amount","show-overflow-tooltip":""}),e(a,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D",prop:"amount_excluding_tax","show-overflow-tooltip":""}),e(a,{label:"\u7A0E\u989D",prop:"tax","show-overflow-tooltip":""}),e(a,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type"},{default:l(({row:t})=>[e(W,{options:u(D).invoice_type,value:t.invoice_type},null,8,["options","value"])]),_:1}),e(a,{label:"\u53D1\u7968\u7F16\u53F7",prop:"invoice_no","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:l(({row:t})=>[_((n(),r(c,{type:"primary",link:"",onClick:C=>j(t)},{default:l(()=>[ke]),_:2},1032,["onClick"])),[[v,["refund.refund/edit"]]]),_((n(),r(c,{type:"danger",link:"",onClick:C=>g(t.id)},{default:l(()=>[Be]),_:2},1032,["onClick"])),[[v,["refund.refund/delete"]]]),_((n(),r(c,{link:"",onClick:C=>M(t)},{default:l(()=>[ge]),_:2},1032,["onClick"])),[[v,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),R("div",Ve,[e(J,{modelValue:u(f),"onUpdate:modelValue":o[4]||(o[4]=t=>De(f)?f.value=t:null),onChange:u(F)},null,8,["modelValue","onChange"])])]),_:1})),[[K,u(f).loading]]),b.value?(n(),r(ce,{key:0,ref_key:"editRef",ref:w,"dict-data":u(D),onSuccess:u(F),onClose:o[5]||(o[5]=t=>b.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0),h.value?(n(),r(fe,{key:1,ref_key:"detailRef",ref:E,"dict-data":u(D),onClose:o[6]||(o[6]=t=>h.value=!1)},null,8,["dict-data"])):P("",!0)])}}});export{ho as default};