engineering/public/admin/assets/index.9531c849.js
2024-02-27 10:28:16 +08:00

2 lines
7.9 KiB
JavaScript

import{I as oe,y as te,G as le,H as ae,w as ue,D as ne,C as ie,L as re,M as se,N as pe}from"./element-plus.517d4382.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as me,a as _e}from"./index.8b1962e9.js";import{u as fe}from"./usePaging.f6660143.js";import{u as ve}from"./useDictOptions.b5854a9e.js";import{_ as be,t as we,a as N,b as Ce}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.7372f07b.js";import"./lodash.1d82ee7c.js";import{b as Fe}from"./custom.99349afc.js";import{d as he}from"./procurement_contract.97fa9110.js";import ye from"./detail.e084e7c9.js";import{d as I,s as T,r as w,a0 as Ee,ai as ke,o as n,c as E,V as e,M as l,O as f,u as r,L as s,S as U,W as x,a8 as L,a as j,k as Be,T as _,n as $}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.vue_vue_type_script_setup_true_lang.6f6d98ba.js";import"./suppler_list.28d1ed14.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.41973a5f.js";import"./acceptance.4d2103f4.js";import"./index.vue_vue_type_script_setup_true_lang.5c2d4339.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";const ge=_("\u67E5\u8BE2"),De=_("\u91CD\u7F6E"),Ve=_(" \u65B0\u589E "),xe=_(" \u5220\u9664 "),Le={class:"mt-4"},$e=_(" \u7F16\u8F91 "),Ae=_(" \u5220\u9664 "),Pe=_(" \u8BE6\u60C5 "),Re={class:"flex justify-end mt-4"},Se=I({name:"projectLists"}),Po=I({...Se,setup(Ne){const k=T(),C=T(),F=w(!1),B=w(!1),A=w([]),P=w([]),p=Ee({bill_sn:"",customer_id:"",contract_id:"",bill_type:""}),g=w([]),z=u=>{g.value=u.map(({id:t})=>t)},{dictData:h}=ve("pay_type,invoice_type,tax_rate,invoice_form,bill_type,contract_type"),{pager:v,getLists:y,resetParams:M,resetPage:O}=fe({fetchFun:we,params:p}),q=async()=>{var u;F.value=!0,await $(),(u=C.value)==null||u.open("add")},G=async u=>{var c,i;console.log(u.id);const t=await N({id:u.id});F.value=!0,await $(),(c=C.value)==null||c.open("edit"),(i=C.value)==null||i.setFormData(t)},R=async u=>{await me.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ce({id:u}),y()},H=async u=>{var c,i;const t=await N({id:u.id});B.value=!0,await $(),(c=k.value)==null||c.open(),(i=k.value)==null||i.setFormData(t)},W=()=>{Fe({page_no:1,page_size:9999}).then(u=>{P.value=u.lists})},J=()=>{he({page_no:1,page_size:9999,all:1}).then(u=>{A.value=u.lists})};return W(),J(),y(),(u,t)=>{const c=oe,i=te,D=le,V=ae,m=ue,K=ne,S=ie,Q=_e,a=re,X=ce,Y=se,Z=de,b=ke("perms"),ee=pe;return n(),E("div",null,[e(S,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(K,{class:"mb-[-16px]",model:p,inline:""},{default:l(()=>[e(i,{label:"\u7968\u636E\u7F16\u53F7",prop:"bill_sn"},{default:l(()=>[e(c,{class:"w-[280px]",modelValue:p.bill_sn,"onUpdate:modelValue":t[0]||(t[0]=o=>p.bill_sn=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7968\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5BA2\u6237",prop:"customer_id"},{default:l(()=>[e(V,{class:"w-[280px]",modelValue:p.customer_id,"onUpdate:modelValue":t[1]||(t[1]=o=>p.customer_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237"},{default:l(()=>[(n(!0),E(x,null,L(P.value,(o,d)=>(n(),s(D,{key:d,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u5408\u540C",prop:"contract"},{default:l(()=>[e(V,{class:"w-[280px]",modelValue:p.contract_id,"onUpdate:modelValue":t[2]||(t[2]=o=>p.contract_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:l(()=>[(n(!0),E(x,null,L(A.value,(o,d)=>(n(),s(D,{key:d,label:o.contract_name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u6C47\u7968\u7C7B\u578B",prop:"bill_type"},{default:l(()=>[e(V,{class:"w-[280px]",modelValue:p.bill_type,"onUpdate:modelValue":t[3]||(t[3]=o=>p.bill_type=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6C47\u7968\u7C7B\u578B"},{default:l(()=>[(n(!0),E(x,null,L(r(h).bill_type,(o,d)=>(n(),s(D,{key:d,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,null,{default:l(()=>[e(m,{type:"primary",onClick:r(O)},{default:l(()=>[ge]),_:1},8,["onClick"]),e(m,{onClick:r(M)},{default:l(()=>[De]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((n(),s(S,{class:"!border-none",shadow:"never"},{default:l(()=>[f((n(),s(m,{type:"primary",onClick:q},{icon:l(()=>[e(Q,{name:"el-icon-Plus"})]),default:l(()=>[Ve]),_:1})),[[b,["refund.refund/add"]]]),f((n(),s(m,{disabled:!g.value.length,onClick:t[4]||(t[4]=o=>R(g.value))},{default:l(()=>[xe]),_:1},8,["disabled"])),[[b,["refund.refund/delete"]]]),j("div",Le,[e(Y,{data:r(v).lists,onSelectionChange:z},{default:l(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u6D41\u7A0B\u6B65\u9AA4",prop:"project_code","show-overflow-tooltip":""}),e(a,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(a,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"contract_name","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(a,{label:"\u6536\u7968\u65E5\u671F",prop:"receipt_date","show-overflow-tooltip":""}),e(a,{label:"\u7968\u636E\u7F16\u53F7",prop:"bill_sn","show-overflow-tooltip":""}),e(a,{label:"\u5F00\u6237\u94F6\u884C",prop:"account_name","show-overflow-tooltip":""}),e(a,{label:"\u8D26\u6237\u7F16\u7801",prop:"account","show-overflow-tooltip":""}),e(a,{label:"\u6C47\u7968\u7C7B\u578B",prop:"invoice_amount","show-overflow-tooltip":""},{default:l(({row:o})=>[e(X,{options:r(h).bill_type,value:o.bill_type},null,8,["options","value"])]),_:1}),e(a,{label:"\u6C47\u7968\u627F\u5151\u94F6\u884C",prop:"draft_acceptance_bank","show-overflow-tooltip":""}),e(a,{label:"\u6C47\u7968\u5230\u671F\u65E5\u671F",prop:"bill_due_date","show-overflow-tooltip":""}),e(a,{label:"\u4ED8\u6B3E\u65E5\u671F",prop:"payment_date","show-overflow-tooltip":""}),e(a,{label:"\u4F59\u989D",prop:"amount","show-overflow-tooltip":""}),e(a,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:l(({row:o})=>[f((n(),s(m,{type:"primary",link:"",onClick:d=>G(o)},{default:l(()=>[$e]),_:2},1032,["onClick"])),[[b,["refund.refund/edit"]]]),f((n(),s(m,{type:"danger",link:"",onClick:d=>R(o.id)},{default:l(()=>[Ae]),_:2},1032,["onClick"])),[[b,["refund.refund/delete"]]]),f((n(),s(m,{link:"",onClick:d=>H(o)},{default:l(()=>[Pe]),_:2},1032,["onClick"])),[[b,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),j("div",Re,[e(Z,{modelValue:r(v),"onUpdate:modelValue":t[5]||(t[5]=o=>Be(v)?v.value=o:null),onChange:r(y)},null,8,["modelValue","onChange"])])]),_:1})),[[ee,r(v).loading]]),F.value?(n(),s(be,{key:0,ref_key:"editRef",ref:C,"dict-data":r(h),onSuccess:r(y),onClose:t[6]||(t[6]=o=>F.value=!1)},null,8,["dict-data","onSuccess"])):U("",!0),B.value?(n(),s(ye,{key:1,ref_key:"detailRef",ref:k,"dict-data":r(h),onClose:t[7]||(t[7]=o=>B.value=!1)},null,8,["dict-data"])):U("",!0)])}}});export{Po as default};