2 lines
4.0 KiB
JavaScript
2 lines
4.0 KiB
JavaScript
import{_ as D,a as j}from"./index.011c79f0.js";import{R as x,S as O}from"./element-plus.517d4382.js";import{P}from"./index.b17dae19.js";import{a as R}from"./custom.99349afc.js";import{U as V,V as A}from"./flowSet.6da79e1c.js";import{d as g,s as f,a0 as u,r as d,o as c,c as S,V as a,M as t,T as i,U as s,L as b,u as I}from"./@vue.ab566ce7.js";import{_ as N}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 T={class:"detail-popup"},U=g({name:"customdetail"}),$=g({...U,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(L,{expose:y,emit:E}){f();const p=f();u([]),u({provinceOptions:[],cityOptions:[],areaOptions:[]}),d([]);const e=u({}),r=async l=>{Object.assign(e,l),k()},v=async l=>{const _=await R({id:l.id});r(_)},C=async()=>{var l;(l=p.value)==null||l.close()},w=()=>{var l;console.log("1111111"),(l=p.value)==null||l.open()},n=()=>{E("close")},m=d([]),k=async()=>{if(e!=null&&e.approve_id)return;let l=await V();m.value=l};return y({open:w,setFormData:r,getDetail:v}),(l,_)=>{const o=x,F=O,B=D,h=j;return c(),S("div",T,[a(P,{ref_key:"popupRef",ref:p,title:"\u5206\u5305\u9884\u7B97\u660E\u7EC6\u8BE6\u60C5",async:!0,width:"80%",onConfirm:C,onClose:n},{default:t(()=>[a(F,{column:2,border:""},{default:t(()=>[a(o,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[i(s(e.project_name),1)]),_:1}),a(o,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[i(s(e.project_code),1)]),_:1}),a(o,{label:"\u5206\u5305\u9884\u7B97\u660E\u7EC6\u5355\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[i(s(e.subpackage_budget_code),1)]),_:1}),a(o,{label:"\u5DE5\u4F5C\u7C7B\u578B","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[i(s(e.work_type),1)]),_:1}),a(o,{label:"\u5DE5\u4F5C\u5185\u5BB9","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[i(s(e.work_content),1)]),_:1}),a(o,{label:"\u9879\u76EE\u7279\u5F81","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[i(s(e.project_features),1)]),_:1}),a(o,{label:"\u5355\u4F4D","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[i(s(e.unit),1)]),_:1}),a(o,{label:"\u5DE5\u4F5C\u91CF","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[i(s(e.num),1)]),_:1}),a(o,{label:"\u5355\u4EF7","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[i(s(e.price),1)]),_:1}),a(o,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[i(s(e.remark),1)]),_:1})]),_:1}),!(e!=null&&e.approve_id)||e.approve_check_status==4?(c(),b(B,{key:0,flows:m.value,submitApi:I(A),id:e==null?void 0:e.id,onOff:n},null,8,["flows","submitApi","id"])):(c(),b(h,{key:1,approve_id:e==null?void 0:e.approve_id,onOff:n},null,8,["approve_id"]))]),_:1},512)])}}});const De=N($,[["__scopeId","data-v-0c3a898d"]]);export{De as default};
|