2 lines
4.9 KiB
JavaScript
2 lines
4.9 KiB
JavaScript
import{y as P,A as V,B as N,C as $,D as I}from"./element-plus.517d4382.js";import{_ as L,a as S}from"./index.011c79f0.js";import{P as T}from"./index.b17dae19.js";import{a as q}from"./custom.99349afc.js";import{q as M,r as U}from"./flowSet.6da79e1c.js";import{d as E,s as F,a0 as W,r as z,o as p,c as _,V as e,M as t,T as s,U as u,a as c,W as G,a8 as H,L as v,u as J}from"./@vue.ab566ce7.js";import{_ as K}from"./index.8b1962e9.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"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./vue-router.87ebc608.js";import"./lodash.1d82ee7c.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";const Q={class:"detail-popup"},X={style:{"margin-left":"5px",display:"block"}},Y=["href"],Z=["onClick"],ee=E({name:"customdetail"}),te=E({...ee,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(ae,{expose:y,emit:x}){const C=F(),i=F(),a=W({}),d=async n=>{Object.assign(a,n),h()},D=async n=>{const f=await q({id:n.id});d(f)},w=async()=>{var n;(n=i.value)==null||n.close()},g=()=>{var n;console.log("1111111"),(n=i.value)==null||n.open()},r=()=>{x("close")},m=z([]),h=async()=>{if(a!=null&&a.approve_id)return;let n=await M();m.value=n};return y({open:g,setFormData:d,getDetail:D}),(n,f)=>{const o=P,l=V,B=N,k=$,A=L,R=S,j=I;return p(),_("div",Q,[e(T,{ref_key:"popupRef",ref:i,title:"\u6536\u7968\u8BB0\u5F55\u8BE6\u60C5",async:!0,width:"80%",onConfirm:w,onClose:r},{default:t(()=>[e(j,{ref_key:"formRef",ref:C,model:a,"label-width":"160px"},{default:t(()=>[e(k,{class:"mb-2"},{default:t(()=>[e(B,null,{default:t(()=>[e(l,{span:12},{default:t(()=>[e(o,{label:"\u4F9B\u5E94\u5546\u540D\u79F0"},{default:t(()=>[s(u(a.supplier_name),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u4F9B\u5E94\u5546\u7F16\u7801"},{default:t(()=>[s(u(a.supplier_code),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u5408\u540C\u7F16\u53F7"},{default:t(()=>[s(u(a.contract_no),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u5408\u540C\u540D\u79F0"},{default:t(()=>[s(u(a.contract_name),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[s(u(a.project_name),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u9879\u76EE\u7F16\u7801"},{default:t(()=>[s(u(a.project_code),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u6536\u7968\u65E5\u671F"},{default:t(()=>[s(u(a.receipt_date),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u5F00\u7968\u65E5\u671F"},{default:t(()=>[s(u(a.invoicing_date),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u53D1\u7968\u7F16\u53F7"},{default:t(()=>[s(u(a.invoice_no),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u53D1\u7968\u91D1\u989D"},{default:t(()=>[s(u(a.invoice_amount),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D"},{default:t(()=>[s(u(a.amount_excluding_tax),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u7A0E\u989D"},{default:t(()=>[s(u(a.tax_amount),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u63D0\u4EA4\u4EBA"},{default:t(()=>[s(u(a.commitor),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u53D1\u7968\u7C7B\u578B"},{default:t(()=>[s(u(a.invoice_type_text),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u5907\u6CE8"},{default:t(()=>[s(u(a.remark),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u9644\u4EF6"},{default:t(()=>[c("div",null,[(p(!0),_(G,null,H(n.formDataannex,(b,O)=>(p(),_("div",X,[c("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:b.uri,target:"_blank"},u(b.name),9,Y),c("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:oe=>n.delFileFn(O)},"x",8,Z)]))),256))])]),_:1})]),_:1})]),_:1})]),_:1}),!(a!=null&&a.approve_id)||a.approve_check_status==4?(p(),v(A,{key:0,flows:m.value,submitApi:J(U),id:a==null?void 0:a.id,onOff:r},null,8,["flows","submitApi","id"])):(p(),v(R,{key:1,approve_id:a==null?void 0:a.approve_id,onOff:r},null,8,["approve_id"]))]),_:1},8,["model"])]),_:1},512)])}}});const Ue=K(te,[["__scopeId","data-v-8c9dca1e"]]);export{Ue as default};
|