2 lines
4.9 KiB
JavaScript
2 lines
4.9 KiB
JavaScript
import{_ as P,a as L}from"./index.011c79f0.js";import{R as S,_ as V,S as $,D as I}from"./element-plus.517d4382.js";import{P as N}from"./index.b17dae19.js";import{a as T}from"./custom.99349afc.js";import{a6 as M,a7 as U}from"./flowSet.6da79e1c.js";import{d as y,s as b,a0 as _,r as W,o as i,c as u,V as l,M as a,T as n,U as s,W as q,a8 as z,L as g,u as G}from"./@vue.ab566ce7.js";import{_ as H}from"./index.8b1962e9.js";import"./@element-plus.b89f1627.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./vue-router.87ebc608.js";import"./@vueuse.8fcae4c2.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"./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 J={class:"detail-popup"},K={key:0},Q={style:{"margin-left":"5px",display:"block"}},X={key:1},Y=y({name:"customdetail"}),Z=y({...Y,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(ee,{expose:E,emit:F}){const v=b(),m=b(),x=_([]);_({provinceOptions:[],cityOptions:[],areaOptions:[]});const e=_({}),f=async t=>{if(Object.assign(e,t),t.annex&&t.annex.length>0){const r=t.annex.map((o,c)=>({name:`\u6587\u4EF6${c+1}`,uri:o}));Object.assign(x,r)}D()},h=async t=>{const r=await T({id:t.id});f(r)},k=async()=>{var t;(t=m.value)==null||t.close()},B=()=>{var t;(t=m.value)==null||t.open()},p=()=>{F("close")},d=W([]),D=async()=>{if(e!=null&&e.approve_id)return;let t=await M();d.value=t};return E({open:B,setFormData:f,getDetail:h}),(t,r)=>{const o=S,c=V,w=$,C=I,A=P,O=L;return i(),u("div",J,[l(N,{ref_key:"popupRef",ref:m,title:"\u56DE\u6B3E\u8BA1\u5212\u8BE6\u60C5",async:!0,width:"80%",onConfirm:k,onClose:p},{default:a(()=>[l(C,{ref_key:"formRef",ref:v,model:e,"label-width":"auto"},{default:a(()=>[l(w,{title:"\u57FA\u672C\u4FE1\u606F",column:2,border:""},{default:a(()=>[l(o,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(s(e.project_name),1)]),_:1}),l(o,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(s(e.project_code),1)]),_:1}),l(o,{label:"\u5408\u540C\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(s(e.contract_name),1)]),_:1}),l(o,{label:"\u5408\u540C\u7F16\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(s(e.contract_code),1)]),_:1}),l(o,{label:"\u5BA2\u6237\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(s(e.custom_name),1)]),_:1}),l(o,{label:"\u671F\u6B21","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(s(e.period),1)]),_:1}),l(o,{label:"\u8BA1\u5212\u56DE\u6B3E\u65E5\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(s(e.return_date),1)]),_:1}),l(o,{label:"\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(s(e.amount),1)]),_:1}),l(o,{label:"\u72B6\u6001","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(s(e.return_status_text),1)]),_:1}),l(o,{label:"\u56DE\u6B3E\u8D23\u4EFB\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(s(e.return_duty),1)]),_:1}),l(o,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(s(e.remark),1)]),_:1}),l(o,{label:"\u5408\u540C\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[e.annex.length>0?(i(),u("div",K,[(i(!0),u(q,null,z(e.annex,(R,j)=>(i(),u("div",Q,[l(c,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:R,target:"_blank"},{default:a(()=>[n("\u6587\u4EF6"+s(j+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(i(),u("div",X," \u6682\u65E0\u9644\u4EF6 "))]),_:1})]),_:1})]),_:1},8,["model"]),!(e!=null&&e.approve_id)||e.approve_check_status==4?(i(),g(A,{key:0,flows:d.value,submitApi:G(U),id:e==null?void 0:e.id,onOff:p},null,8,["flows","submitApi","id"])):(i(),g(O,{key:1,approve_id:e==null?void 0:e.approve_id,onOff:p},null,8,["approve_id"]))]),_:1},512)])}}});const Te=H(Z,[["__scopeId","data-v-3ece1e34"]]);export{Te as default};
|