2 lines
7.7 KiB
JavaScript
2 lines
7.7 KiB
JavaScript
import{G as te,B as oe,y as le,A as ae,w as ue,N as ne,C as ie,P as se,Q as re,R as pe}from"./element-plus.9aef85e6.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.3858ee22.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.23d19169.js";import{f as me,a as _e}from"./index.5d64105b.js";import{u as fe}from"./usePaging.160b82b8.js";import{u as ve}from"./useDictOptions.7eefc7b1.js";import{_ as be,r as we,a as U,b as Ce}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.c74120c9.js";import"./lodash.8ea2174a.js";import{b as ye}from"./custom.ee8be5f0.js";import{a as he}from"./procurement_contract.0aff844e.js";import{_ as Fe}from"./detail.vue_vue_type_style_index_0_lang.69e6a009.js";import{d as z,s as N,r as w,$ as Ee,af as ke,o as n,c as E,U as e,L as l,M as f,u as s,K as r,R as j,V as x,a7 as $,a as T,k as Be,S as _,n as L}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.92e7f918.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.12d45bc3.js";import"./pinia.dfca86b4.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.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.vue_vue_type_script_setup_true_lang.ce978b26.js";import"./acceptance.288730fc.js";import"./index.fbc368c4.js";import"./department.41716e87.js";import"./organization.8cc91524.js";const ge=_("\u67E5\u8BE2"),De=_("\u91CD\u7F6E"),Ve=_(" \u65B0\u589E "),xe=_(" \u5220\u9664 "),$e={class:"mt-4"},Le=_(" \u7F16\u8F91 "),Ae=_(" \u5220\u9664 "),Re=_(" \u8BE6\u60C5 "),Pe={class:"flex justify-end mt-4"},Se=z({name:"projectLists"}),xt=z({...Se,setup(Ue){const k=N(),C=N(),y=w(!1),B=w(!1),A=w([]),R=w([]),p=Ee({bill_type:"",customer_id:"",contract_id:"",bill_sn:""}),g=w([]),I=u=>{g.value=u.map(({id:o})=>o)},{dictData:h}=ve("pay_type,invoice_type,tax_rate,invoice_form,bill_type,contract_type"),{pager:v,getLists:F,resetParams:q,resetPage:G}=fe({fetchFun:we,params:p}),K=async()=>{var u;y.value=!0,await L(),(u=C.value)==null||u.open("add")},M=async u=>{var c,i;console.log(u.id);let o=await U({id:u.id});y.value=!0,await L(),(c=C.value)==null||c.open("edit"),(i=C.value)==null||i.setFormData(o)},P=async u=>{await me.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ce({id:u}),F()},O=async u=>{var c,i;let o=await U({id:u.id});B.value=!0,await L(),(c=k.value)==null||c.open(),(i=k.value)==null||i.setFormData(o)},Q=()=>{ye({page_no:1,page_size:9999}).then(u=>{R.value=u.lists})},H=()=>{he({page_no:1,page_size:9999,all:1}).then(u=>{A.value=u.lists})};return Q(),H(),F(),(u,o)=>{const c=te,i=oe,D=le,V=ae,m=ue,J=ne,S=ie,W=_e,a=se,X=ce,Y=re,Z=de,b=ke("perms"),ee=pe;return n(),E("div",null,[e(S,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(J,{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":o[0]||(o[0]=t=>p.bill_sn=t),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.contract_id,"onUpdate:modelValue":o[1]||(o[1]=t=>p.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237"},{default:l(()=>[(n(!0),E(x,null,$(R.value,(t,d)=>(n(),r(D,{key:d,label:t.name,value:t.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.customer_id,"onUpdate:modelValue":o[2]||(o[2]=t=>p.customer_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:l(()=>[(n(!0),E(x,null,$(A.value,(t,d)=>(n(),r(D,{key:d,label:t.contract_name,value:t.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":o[3]||(o[3]=t=>p.bill_type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6C47\u7968\u7C7B\u578B"},{default:l(()=>[(n(!0),E(x,null,$(s(h).bill_type,(t,d)=>(n(),r(D,{key:d,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,null,{default:l(()=>[e(m,{type:"primary",onClick:s(G)},{default:l(()=>[ge]),_:1},8,["onClick"]),e(m,{onClick:s(q)},{default:l(()=>[De]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((n(),r(S,{class:"!border-none",shadow:"never"},{default:l(()=>[f((n(),r(m,{type:"primary",onClick:K},{icon:l(()=>[e(W,{name:"el-icon-Plus"})]),default:l(()=>[Ve]),_:1})),[[b,["refund.refund/add"]]]),f((n(),r(m,{disabled:!g.value.length,onClick:o[4]||(o[4]=t=>P(g.value))},{default:l(()=>[xe]),_:1},8,["disabled"])),[[b,["refund.refund/delete"]]]),T("div",$e,[e(Y,{data:s(v).lists,onSelectionChange:I},{default:l(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index","show-overflow-tooltip":""}),e(a,{label:"\u5904\u7406\u6D41\u7A0B",prop:"project_code","show-overflow-tooltip":""}),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:"\u7968\u636E\u7F16\u53F7",prop:"bill_sn","show-overflow-tooltip":""}),e(a,{label:"\u6C47\u7968\u7C7B\u578B",prop:"bill_type","show-overflow-tooltip":""},{default:l(({row:t})=>[e(X,{options:s(h).bill_type,value:t.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:"\u6536\u7968\u8D26\u6237\u7F16\u7801",prop:"account","show-overflow-tooltip":""}),e(a,{label:"\u6536\u7968\u94F6\u884C",prop:"account_name","show-overflow-tooltip":""}),e(a,{label:"\u5151\u73B0\u65E5\u671F",prop:"maturity_date","show-overflow-tooltip":""}),e(a,{label:"\u5151\u73B0\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(a,{label:"\u5151\u73B0\u91D1\u989D\u5927\u5199",prop:"amount_daxie","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:t})=>[f((n(),r(m,{type:"primary",link:"",onClick:d=>M(t)},{default:l(()=>[Le]),_:2},1032,["onClick"])),[[b,["refund.refund/edit"]]]),f((n(),r(m,{type:"danger",link:"",onClick:d=>P(t.id)},{default:l(()=>[Ae]),_:2},1032,["onClick"])),[[b,["refund.refund/delete"]]]),f((n(),r(m,{link:"",onClick:d=>O(t)},{default:l(()=>[Re]),_:2},1032,["onClick"])),[[b,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),T("div",Pe,[e(Z,{modelValue:s(v),"onUpdate:modelValue":o[5]||(o[5]=t=>Be(v)?v.value=t:null),onChange:s(F)},null,8,["modelValue","onChange"])])]),_:1})),[[ee,s(v).loading]]),y.value?(n(),r(be,{key:0,ref_key:"editRef",ref:C,"dict-data":s(h),onSuccess:s(F),onClose:o[6]||(o[6]=t=>y.value=!1)},null,8,["dict-data","onSuccess"])):j("",!0),B.value?(n(),r(Fe,{key:1,ref_key:"detailRef",ref:k,"dict-data":s(h),onClose:o[7]||(o[7]=t=>B.value=!1)},null,8,["dict-data"])):j("",!0)])}}});export{xt as default};
|