2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{y as $,A as N,B as I,C as L,D as S}from"./element-plus.517d4382.js";import{_ as T,a as M}from"./index.011c79f0.js";import{P as U}from"./index.b17dae19.js";import{a as W}from"./custom.99349afc.js";import{d as x,s as E,a0 as c,r as q,o as u,c as m,V as e,M as t,T as p,U as s,W as z,a8 as G,L as F,u as H,a as v}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{o as J,p as K}from"./flowSet.6da79e1c.js";import{_ as Q}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"./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 X={class:"detail-popup"},Y={style:{"margin-left":"5px",display:"block"}},Z=["href"],ee=["onClick"],te=x({name:"customdetail"}),ae=x({...te,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(oe,{expose:C,emit:g}){const h=E(),i=E(),d=c([]);c({provinceOptions:[],cityOptions:[],areaOptions:[]});const a=c({}),f=async o=>{if(Object.assign(a,o),o.annex&&o.annex.length>0){const r=o.annex.map((l,n)=>({name:`\u6587\u4EF6${n+1}`,uri:l}));Object.assign(d,r)}D()},w=async o=>{const r=await W({id:o.id});f(r)},k=async()=>{var o;(o=i.value)==null||o.close()},B=()=>{var o;console.log("1111111"),(o=i.value)==null||o.open()},_=()=>{g("close")},b=q([]),D=async()=>{if(a!=null&&a.approve_id)return;let o=await J();b.value=o};return C({open:B,setFormData:f,getDetail:w}),(o,r)=>{const l=$,n=N,O=I,R=L,j=T,A=M,P=S;return u(),m("div",X,[e(U,{ref_key:"popupRef",ref:i,title:"\u9879\u76EE\u5408\u540C\u8BE6\u60C5",async:!0,width:"80%",onConfirm:k,onClose:_},{default:t(()=>[e(P,{ref_key:"formRef",ref:h,model:a,"label-width":"160px"},{default:t(()=>[e(R,{class:"mb-2"},{default:t(()=>[e(O,null,{default:t(()=>[e(n,{span:12},{default:t(()=>[e(l,{label:"\u4F9B\u5E94\u5546\u540D\u79F0"},{default:t(()=>[p(s(a.supplier_name),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u4F9B\u5E94\u5546\u7F16\u7801"},{default:t(()=>[p(s(a.supplier_code),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u5408\u540C\u540D\u79F0"},{default:t(()=>[p(s(a.contract_name),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u5408\u540C\u7F16\u7801"},{default:t(()=>[p(s(a.contract_no),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[p(s(a.project_name),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u9879\u76EE\u7F16\u7801"},{default:t(()=>[p(s(a.project_code),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u5408\u540C\u7C7B\u578B"},{default:t(()=>[p(s(a.contract_type_text),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u8BA1\u5212\u4ED8\u6B3E\u65E5\u671F"},{default:t(()=>[p(s(a.pay_date),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u91D1\u989D"},{default:t(()=>[p(s(a.amount),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u72B6\u6001"},{default:t(()=>[p(s(a.status_text),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u671F\u6B21"},{default:t(()=>[p(s(a.period_text),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u5916\u5E01\u5907\u6CE8"},{default:t(()=>[p(s(a.foreign_currency_remark),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u5907\u6CE8"},{default:t(()=>[p(s(a.remark),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(l,{label:"\u9644\u4EF6"},{default:t(()=>[(u(!0),m(z,null,G(d,(y,V)=>(u(),m("div",Y,[v("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:y.uri,target:"_blank"},s(y.name),9,Z),v("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:le=>o.delFileFn(V)},"x",8,ee)]))),256))]),_:1})]),_:1})]),_:1})]),_:1}),!(a!=null&&a.approve_id)||a.approve_check_status==4?(u(),F(j,{key:0,flows:b.value,submitApi:H(K),id:a==null?void 0:a.id,onOff:_},null,8,["flows","submitApi","id"])):(u(),F(A,{key:1,approve_id:a==null?void 0:a.approve_id,onOff:_},null,8,["approve_id"]))]),_:1},8,["model"])]),_:1},512)])}}});const qe=Q(ae,[["__scopeId","data-v-8156c7ad"]]);export{qe as default};
|