engineering/public/admin/assets/detail.f5341cd8.js
2024-03-04 15:04:21 +08:00

2 lines
4.6 KiB
JavaScript

import{y as $,A as N,B as I,C as L,D as S}from"./element-plus.258bf9e7.js";import{_ as T,a as M}from"./index.a91b9a2c.js";import{P as U}from"./index.9492d03b.js";import{a as W}from"./custom.13e75d58.js";import{O as q,P as z}from"./flowSet.6e7dc427.js";import{d as F,s as E,a0 as d,r as G,o as p,c as i,V as e,M as t,T as u,U as l,W as H,a8 as J,L as v,u as K,a as D}from"./@vue.ab566ce7.js";import{_ as Q}from"./index.ec401e3b.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.4bfa22cd.js";import"./flow.825559ec.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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const X={class:"detail-popup"},Y={key:0},Z={style:{"margin-left":"5px",display:"block"}},ee=["href"],te=["onClick"],oe={key:1},ae=F({name:"customdetail"}),se=F({...ae,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(ne,{expose:h,emit:g}){const x=E(),_=E(),c=d([]);d({provinceOptions:[],cityOptions:[],areaOptions:[]});const o=d({}),f=async a=>{if(Object.assign(o,a),a.annex&&a.annex.length>0){const r=a.annex.map((s,n)=>({name:`\u6587\u4EF6${n+1}`,uri:s}));Object.assign(c,r)}B()},C=async a=>{const r=await W({id:a.id});f(r)},w=async()=>{var a;(a=_.value)==null||a.close()},k=()=>{var a;console.log("1111111"),(a=_.value)==null||a.open()},m=()=>{g("close")},b=G([]),B=async()=>{if(o!=null&&o.approve_id)return;let a=await q();b.value=a};return h({open:k,setFormData:f,getDetail:C}),(a,r)=>{const s=$,n=N,O=I,j=L,R=T,A=M,P=S;return p(),i("div",X,[e(U,{ref_key:"popupRef",ref:_,title:"\u7532\u65B9\u7ED3\u7B97\u8BE6\u60C5",async:!0,width:"80%",onConfirm:w,onClose:m},{default:t(()=>[e(P,{ref_key:"formRef",ref:x,model:o,"label-width":"120px"},{default:t(()=>[e(j,{class:"mb-2"},{default:t(()=>[e(O,null,{default:t(()=>[e(n,{span:12},{default:t(()=>[e(s,{label:"\u7ED3\u7B97\u5355\u53F7"},{default:t(()=>[u(l(o.settlement_code),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[u(l(o.project_name),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u5408\u540C\u7F16\u53F7"},{default:t(()=>[u(l(o.contract_name),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u5BA2\u6237\u540D\u79F0"},{default:t(()=>[u(l(o.custom_name),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u5408\u540C\u540D\u79F0"},{default:t(()=>[u(l(o.contract_code),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u7ED3\u7B97\u65E5\u671F"},{default:t(()=>[u(l(o.settlement_date),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u7ED3\u7B97\u91D1\u989D"},{default:t(()=>[u(l(o.settlement_amount),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u5408\u540C\u91D1\u989D"},{default:t(()=>[u(l(o.contract_amount),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u6D3D\u5546\u91D1\u989D"},{default:t(()=>[u(l(o.negotiation_amount),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u7ED3\u7B97\u5DEE\u5F02"},{default:t(()=>[u(l(o.settlement_difference),1)]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(s,{label:"\u5408\u540C\u9644\u4EF6"},{default:t(()=>[c.length>0?(p(),i("div",Y,[(p(!0),i(H,null,J(c,(y,V)=>(p(),i("div",Z,[D("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:y.uri,target:"_blank"},l(y.name),9,ee),D("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:le=>a.delFileFn(V)},"x",8,te)]))),256))])):(p(),i("div",oe,"\u6682\u65E0\u9644\u4EF6"))]),_:1})]),_:1})]),_:1})]),_:1}),!(o!=null&&o.approve_id)||o.approve_check_status==4?(p(),v(R,{key:0,flows:b.value,submitApi:K(z),id:o==null?void 0:o.id,onOff:m},null,8,["flows","submitApi","id"])):(p(),v(A,{key:1,approve_id:o==null?void 0:o.approve_id,onOff:m},null,8,["approve_id"]))]),_:1},8,["model"])]),_:1},512)])}}});const Ge=Q(se,[["__scopeId","data-v-f5aadba8"]]);export{Ge as default};