engineering/public/admin/assets/detail.777895c7.js
2024-02-27 10:28:16 +08:00

2 lines
5.4 KiB
JavaScript

import{_ as I,a as M}from"./index.011c79f0.js";import{R as W,_ as q,S as G,L as H,M as J,O as K}from"./element-plus.517d4382.js";import{a as Q}from"./project_cost_budget_detail.54c499c8.js";import{A as X,B as Y}from"./flowSet.6da79e1c.js";import{P as Z}from"./index.b17dae19.js";import{a as ee}from"./custom.99349afc.js";import{d as F,s as x,a0 as m,r as E,o as p,c as u,V as o,M as s,T as c,U as _,W as te,a8 as oe,a as D,L as C,u as ae}from"./@vue.ab566ce7.js";import{_ as le}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 se={class:"detail-popup"},ne={key:0},ie={style:{"margin-left":"5px",display:"block"}},pe={key:1},re={style:{margin:"10px 0"}},ue=F({name:"customdetail"}),ce=F({...ue,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(_e,{expose:k,emit:j}){x();const d=x(),z=m([]),n=m({page_size:10,page_no:1,customer_demand_id:""}),v=E(0);m({provinceOptions:[],cityOptions:[],areaOptions:[]});const w=E([]),e=m({}),B=t=>{n.page_size=t,f(e.id)},O=t=>{console.log(`current page: ${t}`),n.page_no=t,f(e.id)},f=t=>{Q({page_no:n.page_no,page_size:n.page_size,cost_budget_id:t}).then(a=>{w.value=a.lists,v.value=a.count})},h=async t=>{if(Object.assign(e,t),f(t.id),t.annex&&t.annex.length>0){const a=t.annex.map((i,b)=>({name:`\u6587\u4EF6${b+1}`,uri:i}));Object.assign(z,a)}S()},A=async t=>{const a=await ee({id:t.id});h(a)},L=async()=>{var t;(t=d.value)==null||t.close()},P=()=>{var t;console.log("1111111"),(t=d.value)==null||t.open()},g=()=>{j("close")},y=E([]),S=async()=>{if(e!=null&&e.approve_id)return;let t=await X();y.value=t};return k({open:P,setFormData:h,getDetail:A}),(t,a)=>{const i=W,b=q,R=G,l=H,T=J,V=K,$=I,N=M;return p(),u("div",se,[o(Z,{ref_key:"popupRef",ref:d,title:"\u4EBA\u5DE5\u9884\u7B97\u8BE6\u60C5",async:!0,width:"80%",onConfirm:L,onClose:g},{default:s(()=>[o(R,{column:2,border:""},{default:s(()=>[o(i,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:s(()=>[c(_(e.project_name),1)]),_:1}),o(i,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:s(()=>[c(_(e.project_code),1)]),_:1}),o(i,{label:"\u8D39\u7528\u9884\u7B97\u5355\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:s(()=>[c(_(e.cost_budget_code),1)]),_:1}),o(i,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:s(()=>[c(_(e.remark),1)]),_:1}),o(i,{label:"\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:s(()=>[e.annex&&e.annex.length>0?(p(),u("div",ne,[(p(!0),u(te,null,oe(e.annex,(r,U)=>(p(),u("div",ie,[o(b,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:r.uri,target:"_blank"},{default:s(()=>[c("\u6587\u4EF6"+_(U+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(p(),u("div",pe," \u6682\u65E0\u9644\u4EF6 "))]),_:1})]),_:1}),D("div",null,[o(T,{data:w.value,stripe:"",style:{width:"100%"}},{default:s(()=>[o(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),o(l,{label:"\u8D39\u7528\u9884\u7B97\u5355\u53F7",prop:"cost_budget_code","show-overflow-tooltip":""}),o(l,{label:"\u4E00\u7EA7\u79D1\u76EE",prop:"first_level_subject","show-overflow-tooltip":""}),o(l,{label:"\u4E8C\u7EA7\u79D1\u76EE",prop:"second_level_subject","show-overflow-tooltip":""}),o(l,{label:"\u4E09\u7EA7\u79D1\u76EE",prop:"third_level_subject","show-overflow-tooltip":""}),o(l,{label:"\u662F\u5426\u5DEE\u65C5\u79D1\u76EE",prop:"is_travel_text","show-overflow-tooltip":""}),o(l,{label:"\u5355\u4F4D",prop:"unit","show-overflow-tooltip":""}),o(l,{label:"\u9884\u7B97\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),o(l,{label:"\u7F16\u5236\u6807\u51C6",prop:"standard","show-overflow-tooltip":""})]),_:1},8,["data"])]),D("div",re,[o(V,{"current-page":n.page_no,"onUpdate:current-page":a[0]||(a[0]=r=>n.page_no=r),"page-size":n.page_size,"onUpdate:page-size":a[1]||(a[1]=r=>n.page_size=r),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:v.value,onSizeChange:B,onCurrentChange:O},null,8,["current-page","page-size","total"])]),!(e!=null&&e.approve_id)||e.approve_check_status==4?(p(),C($,{key:0,flows:y.value,submitApi:ae(Y),id:e==null?void 0:e.id,onOff:g},null,8,["flows","submitApi","id"])):(p(),C(N,{key:1,approve_id:e==null?void 0:e.approve_id,onOff:g},null,8,["approve_id"]))]),_:1},512)])}}});const Ze=le(ce,[["__scopeId","data-v-d51d2acf"]]);export{Ze as default};