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

2 lines
5.4 KiB
JavaScript

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