2 lines
9.2 KiB
JavaScript
2 lines
9.2 KiB
JavaScript
import{B as J,D as K,y as X,A as Y,w as Z,L as ee,C as ae,O as oe,P as le,Q as te}from"./element-plus.c5968462.js";import{_ as ne}from"./index.e9056132.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.963b6450.js";import{f as ue,a as pe}from"./index.9aa949ed.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.7a28b0a5.js";import{u as se}from"./usePaging.5a1a0ff2.js";import{u as ce}from"./useDictOptions.65204acf.js";import{v as me,r as $,w as _e}from"./dialogTableConfig.39c0aff5.js";import"./lodash.f060c5ce.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_financialInvoiceEdit_lang.a99c2920.js";import{e as ve}from"./cost_approved_project.d1646aac.js";import{d as L,s as fe,r as w,a0 as be,ai as ye,o as p,c as A,V as e,M as o,O as v,u as n,L as s,S as P,W as Fe,a8 as he,a as I,k as we,T as d,n as g}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.9bff6341.js";import"./dayjs.920ed704.js";import"./axios.fd7895df.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.4450cf90.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.89a2cd6d.js";import"./color.f7f12e1b.js";import"./clone.3f99ce25.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7ca60bdd.js";import"./ms.a9ae1d6d.js";import"./nprogress.2d805d1c.js";import"./vue-clipboard3.f9b015dd.js";import"./clipboard.84da4513.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./supervision_project.6b1210a3.js";import"./manage_project.9d7ac6d8.js";import"./task_type.c1bd483f.js";import"./consult_project.6aa0bc96.js";import"./subcontracting_contract.06fd0a4a.js";import"./suppler_list.7f44b8ca.js";import"./procurement_contract.20d7590f.js";import"./paymentplan.be0b26b3.js";import"./bank_account.3765577e.js";import"./financial_fee_application.4a308c0e.js";import"./financial_borrow_money.fdcba2cf.js";import"./marketing_custom_return_visit_template.4310bc92.js";import"./marketing_custom_return_visit.b564e531.js";import"./marketing_custom.7ccd0379.js";import"./project_attendance_record.93303a4a.js";import"./marketing_contract.20350977.js";import"./marketing_competitor.47f2b8b7.js";import"./index.vue_vue_type_script_setup_true_name_createUserLable_lang.412b36c1.js";const De={title:"\u8D22\u52A1\u7BA1\u7406--\u5F00\u7968\u53F0\u8D26",config:[{label:"\u5408\u540C\u540D\u79F0",value:"contract_name"},{label:"\u5408\u540C\u7C7B\u578B",value:"contract_type"},{label:"\u7532\u65B9\u7B7E\u7EA6\u5355\u4F4D",value:"part_a"},{label:"\u4E59\u65B9\u7B7E\u7EA6\u5355\u4F4D",value:"part_b"},{label:"\u7B7E\u8BA2\u91D1\u989D",value:"sign_money"},{label:"\u5408\u540C\u7B7E\u8BA2\u65E5\u671F",value:"sign_time"},{label:"\u7D2F\u8BA1\u5DF2\u5F00\u7968\uFF08\u5143\uFF09",value:"total_invoice_amount"},{label:"\u7D2F\u8BA1\u5DF2\u5230\u8D26\uFF08\u5143\uFF09",value:"total_refund_amount"},{label:"\u5F00\u7968\u7F16\u53F7",value:"invoice_code"},{label:"\u53D1\u7968\u7C7B\u578B",value:"invoice_type_text"},{label:"\u5F00\u7968\u7533\u8BF7\u91D1\u989D",value:"apply_amount"},{label:"\u5F00\u7968\u5355\u4F4D\u540D\u79F0",value:"apply_company"},{label:"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",value:"apply_company_number"},{label:"\u5F00\u7968\u5355\u4F4D\u6CE8\u518C\u5730\u5740",value:"apply_company_telephone"},{label:"\u5F00\u6237\u94F6\u884C",value:"apply_company_bank"},{label:"\u5F00\u6237\u8D26\u53F7",value:"apply_company_account"},{label:"\u5F00\u7968\u8054\u7CFB\u4EBA",value:"apply_contact"},{label:"\u53D1\u7968\u63A5\u6536\u90AE\u7BB1",value:"apply_email"},{label:"\u5BF9\u5E94\u4ED8\u6B3E\u65B9\u5F0F",value:"pay_type"},{label:"\u5F00\u7968\u5185\u5BB9",value:"invoice_content"},{label:"\u521B\u5EFA\u4EBA",value:"create_user"},{label:"\u521B\u5EFA\u65F6\u95F4",value:"create_time"}]},Ce=d("\u67E5\u8BE2"),Be=d("\u91CD\u7F6E"),ge=d(" \u65B0\u589E "),ke=d(" \u5220\u9664 "),Ee={class:"mt-4"},Ve=d(" \u7F16\u8F91 "),xe=d(" \u5220\u9664 "),$e=d(" \u8BE6\u60C5 "),Ae={class:"flex mt-4 justify-end"},Pe=L({name:"financialInvoiceLists"}),Na=L({...Pe,setup(Ie){const b=fe(),D=w(""),y=w(!1),C=w(!1),r=be({contract_id:"",invoice_code:"",invoice_type:"",apply_company:""}),B=w([]),S=i=>{B.value=i.map(({id:a})=>a)},{dictData:k}=ce("zjzx_invoice_type"),{pager:c,getLists:F,resetParams:R,resetPage:T}=se({fetchFun:me,params:r}),j=async()=>{var i;y.value=!0,await g(),(i=b.value)==null||i.open("add")},z=async i=>{var m,u;let a=await $({id:i.id});y.value=!0,await g(),(m=b.value)==null||m.open("edit"),(u=b.value)==null||u.setFormData(a)},E=async i=>{await ue.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _e({id:i}),F()},N=async i=>{var m,u;let a=await $({id:i});C.value=!0,await g(),(m=D.value)==null||m.open(),(u=D.value)==null||u.setFormData(a)};return F(),(i,a)=>{const m=re,u=J,V=K,U=X,O=Y,_=Z,W=ee,x=ae,q=pe,t=oe,M=le,Q=ie,G=ne,f=ye("perms"),H=te;return p(),A("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(W,{class:"mb-[-16px]",model:r,inline:""},{default:o(()=>[e(u,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_id"},{default:o(()=>[e(m,{model:"contract_id",formData:r,api:n(ve)},null,8,["formData","api"])]),_:1}),e(u,{label:"\u5F00\u7968\u7F16\u53F7",prop:"invoice_code"},{default:o(()=>[e(V,{class:"w-[280px]",modelValue:r.invoice_code,"onUpdate:modelValue":a[0]||(a[0]=l=>r.invoice_code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5F00\u7968\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type"},{default:o(()=>[e(O,{class:"flex-1",modelValue:r.invoice_type,"onUpdate:modelValue":a[1]||(a[1]=l=>r.invoice_type=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u53D1\u7968\u7C7B\u578B"},{default:o(()=>[(p(!0),A(Fe,null,he(n(k).zjzx_invoice_type,(l,h)=>(p(),s(U,{key:h,label:l.name,value:parseInt(l.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u5F00\u7968\u5355\u4F4D\u540D\u79F0",prop:"apply_company"},{default:o(()=>[e(V,{class:"w-[280px]",modelValue:r.apply_company,"onUpdate:modelValue":a[2]||(a[2]=l=>r.apply_company=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5F00\u7968\u5355\u4F4D\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(u,null,{default:o(()=>[e(_,{type:"primary",onClick:n(T)},{default:o(()=>[Ce]),_:1},8,["onClick"]),e(_,{onClick:n(R)},{default:o(()=>[Be]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((p(),s(x,{class:"!border-none",shadow:"never"},{default:o(()=>[v((p(),s(_,{type:"primary",onClick:j},{icon:o(()=>[e(q,{name:"el-icon-Plus"})]),default:o(()=>[ge]),_:1})),[[f,["financial.financial_invoice/add"]]]),v((p(),s(_,{disabled:!B.value.length,onClick:a[3]||(a[3]=l=>E(B.value))},{default:o(()=>[ke]),_:1},8,["disabled"])),[[f,["financial.financial_invoice/delete"]]]),I("div",Ee,[e(M,{data:n(c).lists,onSelectionChange:S,border:""},{default:o(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name","render-header":n(c).calcWidth},null,8,["render-header"]),e(t,{label:"\u5F00\u7968\u7F16\u53F7",prop:"invoice_code","render-header":n(c).calcWidth},null,8,["render-header"]),e(t,{label:"\u5F00\u7968\u7533\u8BF7\u91D1\u989D",prop:"apply_amount","show-overflow-tooltip":"",width:"120"}),e(t,{label:"\u5F00\u7968\u5355\u4F4D\u540D\u79F0",prop:"apply_company","show-overflow-tooltip":"",width:"120"}),e(t,{label:"\u7532\u65B9\u7B7E\u7EA6\u5355\u4F4D",prop:"part_a","show-overflow-tooltip":"",width:"120"}),e(t,{label:"\u4E59\u65B9\u7B7E\u7EA6\u5355\u4F4D",prop:"part_b","show-overflow-tooltip":"",width:"120"}),e(t,{label:"\u7B7E\u8BA2\u91D1\u989D\uFF08\u5143\uFF09",prop:"sign_money",width:"170"}),e(t,{label:"\u7B7E\u7EA6\u65F6\u95F4",prop:"sign_time","show-overflow-tooltip":"",width:"120"}),e(t,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type_text","show-overflow-tooltip":""}),e(t,{label:"\u5230\u8D26\u72B6\u6001",prop:"is_refund","show-overflow-tooltip":""}),e(t,{label:"\u5230\u8D26\u91D1\u989D",prop:"refund_amount","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:l})=>[v((p(),s(_,{type:"primary",link:"",onClick:h=>z(l)},{default:o(()=>[Ve]),_:2},1032,["onClick"])),[[f,["financial.financial_invoice/edit"]]]),v((p(),s(_,{type:"danger",link:"",onClick:h=>E(l.id)},{default:o(()=>[xe]),_:2},1032,["onClick"])),[[f,["financial.financial_invoice/delete"]]]),v((p(),s(_,{link:"",onClick:h=>N(l.id)},{default:o(()=>[$e]),_:2},1032,["onClick"])),[[f,["financial.financial_invoice/detail"]]])]),_:1})]),_:1},8,["data"])]),I("div",Ae,[e(Q,{modelValue:n(c),"onUpdate:modelValue":a[4]||(a[4]=l=>we(c)?c.value=l:null),onChange:n(F)},null,8,["modelValue","onChange"])])]),_:1})),[[H,n(c).loading]]),y.value?(p(),s(de,{key:0,ref_key:"editRef",ref:b,"dict-data":n(k),onSuccess:n(F),onClose:a[5]||(a[5]=l=>y.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0),C.value?(p(),s(G,{key:1,ref_key:"detailRef",ref:D,onClose:a[6]||(a[6]=l=>C.value=!1),detailConfig:n(De)},null,8,["detailConfig"])):P("",!0)])}}});export{Na as default};
|