engineering/public/admin/assets/index.3093c409.js
2024-03-04 15:04:21 +08:00

2 lines
7.0 KiB
JavaScript

import{I as Z,y as ee,G as oe,H as te,w as ae,D as le,C as ie,L as ne,M as ue,N as re}from"./element-plus.258bf9e7.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as pe,a as ce}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 _e}from"./useDictOptions.c644f395.js";import{a as L,d as R,e as fe}from"./receiptrecord.fd1ec468.js";import"./lodash.1d82ee7c.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.8968c6e5.js";import we from"./detail.3c49d55c.js";import{u as he}from"./vue-router.87ebc608.js";import{d as j,a0 as P,s as S,r as k,ai as Ce,o as u,c as I,V as e,M as t,O as f,u as n,L as s,S as N,n as g,W as be,a8 as De,a as T,k as ye,T as m}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"./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.ad39d63c.js";import"./suppler_list.25198ddd.js";import"./index.vue_vue_type_script_setup_true_lang.6abe3f82.js";import"./procurement_contract.b71ab69f.js";import"./subcontracting.vue_vue_type_script_setup_true_lang.34474773.js";import"./subcontracting_contract.654d8771.js";import"./projecttype.f974a874.js";import"./index.a91b9a2c.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./custom.13e75d58.js";import"./flowSet.6e7dc427.js";const Fe=m("\u67E5\u8BE2"),Ee=m("\u91CD\u7F6E"),ke=m(" \u65B0\u589E "),ge=m(" \u5220\u9664 "),Be={class:"mt-4"},xe=m(" \u7F16\u8F91 "),Ve=m(" \u5220\u9664 "),$e=m(" \u8BE6\u60C5 "),Ae={class:"flex justify-end mt-4"},Le=j({name:"projectLists"}),Po=j({...Le,setup(Re){var $;P([]);const B=he(),D=S(),w=S(),h=k(!1),y=k(!1),p=P({invoice_no:"",invoice_type:""}),F=k([]),q=i=>{F.value=i.map(({id:o})=>o)},{dictData:E}=_e("invoice_type,contract_type,tax_rate"),{pager:_,getLists:C,resetParams:z,resetPage:U}=me({fetchFun:R,params:p}),M=async()=>{var i;h.value=!0,await g(),(i=w.value)==null||i.open("add")},O=async i=>{var c,r;console.log(i.id);let o=await L({id:i.id});h.value=!0,await g(),(c=w.value)==null||c.open("edit"),(r=w.value)==null||r.setFormData(o)},x=async i=>{await pe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:i}),C()},V=async i=>{var c,r;let o=await L({id:i.id});y.value=!0,await g(),(c=D.value)==null||c.open(),(r=D.value)==null||r.setFormData(o)};return($=B.query)!=null&&$.listId&&V({id:B.query.listId}),C(),(i,o)=>{const c=Z,r=ee,G=oe,H=te,d=ae,W=de,J=le,A=ie,K=ce,a=ne,Q=ue,X=se,v=Ce("perms"),Y=re;return u(),I("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(J,{class:"mb-[-16px]",model:p,inline:""},{default:t(()=>[e(r,{label:"\u53D1\u7968\u7F16\u53F7",prop:"invoice_no"},{default:t(()=>[e(c,{class:"w-[280px]",modelValue:p.invoice_no,"onUpdate:modelValue":o[0]||(o[0]=l=>p.invoice_no=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type"},{default:t(()=>[e(H,{class:"w-[280px]",modelValue:p.invoice_type,"onUpdate:modelValue":o[1]||(o[1]=l=>p.invoice_type=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u53D1\u7968\u7C7B\u578B"},{default:t(()=>[(u(!0),I(be,null,De(n(E).invoice_type,(l,b)=>(u(),s(G,{key:b,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:t(()=>[e(d,{type:"primary",onClick:n(U)},{default:t(()=>[Fe]),_:1},8,["onClick"]),e(d,{onClick:n(z)},{default:t(()=>[Ee]),_:1},8,["onClick"]),e(W,{class:"ml-2.5","fetch-fun":n(R),params:p,"page-size":n(_).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((u(),s(A,{class:"!border-none",shadow:"never"},{default:t(()=>[f((u(),s(d,{type:"primary",onClick:M},{icon:t(()=>[e(K,{name:"el-icon-Plus"})]),default:t(()=>[ke]),_:1})),[[v,["refund.refund/add"]]]),f((u(),s(d,{disabled:!F.value.length,onClick:o[2]||(o[2]=l=>x(F.value))},{default:t(()=>[ge]),_:1},8,["disabled"])),[[v,["refund.refund/delete"]]]),T("div",Be,[e(Q,{data:n(_).lists,onSelectionChange:q},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type","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_text","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_amount","show-overflow-tooltip":""}),e(a,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type_text","show-overflow-tooltip":""}),e(a,{label:"\u53D1\u7968\u7F16\u53F7",prop:"invoice_no","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:t(({row:l})=>[f((u(),s(d,{type:"primary",link:"",onClick:b=>O(l)},{default:t(()=>[xe]),_:2},1032,["onClick"])),[[v,["refund.refund/edit"]]]),f((u(),s(d,{type:"danger",link:"",onClick:b=>x(l.id)},{default:t(()=>[Ve]),_:2},1032,["onClick"])),[[v,["refund.refund/delete"]]]),f((u(),s(d,{link:"",onClick:b=>V(l)},{default:t(()=>[$e]),_:2},1032,["onClick"])),[[v,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),T("div",Ae,[e(X,{modelValue:n(_),"onUpdate:modelValue":o[3]||(o[3]=l=>ye(_)?_.value=l:null),onChange:n(C)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,n(_).loading]]),h.value?(u(),s(ve,{key:0,ref_key:"editRef",ref:w,"dict-data":n(E),onSuccess:n(C),onClose:o[4]||(o[4]=l=>h.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0),y.value?(u(),s(we,{key:1,ref_key:"detailRef",ref:D,"dict-data":n(E),onClose:o[5]||(o[5]=l=>y.value=!1)},null,8,["dict-data"])):N("",!0)])}}});export{Po as default};