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

2 lines
5.1 KiB
JavaScript

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