2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{_ as k,a as D}from"./index.011c79f0.js";import{R as O,S as j}from"./element-plus.517d4382.js";import{M as P,N as R}from"./flowSet.6da79e1c.js";import{P as A}from"./index.b17dae19.js";import{a as N}from"./custom.99349afc.js";import{d as g,s as b,a0 as p,r as S,o as c,c as V,V as a,M as t,T as o,U as n,L as d,u as $}from"./@vue.ab566ce7.js";import{_ as I}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 M={class:"detail-popup"},T=g({name:"customdetail"}),L=g({...T,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(U,{expose:y,emit:v}){b();const u=b(),C=p([]);p({provinceOptions:[],cityOptions:[],areaOptions:[]});const l=p({}),_=async i=>{if(Object.assign(l,i),i.annex&&i.annex.length>0){const s=i.annex.map((e,r)=>({name:`\u6587\u4EF6${r+1}`,uri:e}));Object.assign(C,s)}x()},E=async i=>{const s=await N({id:i.id});_(s)},F=async()=>{var i;(i=u.value)==null||i.close()},w=()=>{var i;console.log("1111111"),(i=u.value)==null||i.open()},m=()=>{v("close")},f=S([]),x=async()=>{if(l!=null&&l.approve_id)return;let i=await P();f.value=i};return y({open:w,setFormData:_,getDetail:E}),(i,s)=>{const e=O,r=j,B=k,h=D;return c(),V("div",M,[a(A,{ref_key:"popupRef",ref:u,title:"\u9879\u76EE\u6750\u6599\u9884\u7B97\u8C03\u6574",async:!0,width:"80%",onConfirm:F,onClose:m},{default:t(()=>[a(r,{column:2,border:""},{default:t(()=>[a(e,{label:"\u9884\u7B97\u5355\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.material_budget_code),1)]),_:1}),a(e,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.project_name),1)]),_:1}),a(e,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.project_code),1)]),_:1}),a(e,{label:"\u7C7B\u578B","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.budget_type_text),1)]),_:1}),a(e,{label:"\u6750\u6599\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.material_name),1)]),_:1}),a(e,{label:"\u6750\u6599\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.material_code),1)]),_:1}),a(e,{label:"\u6750\u6599\u5927\u7C7B","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.material_first_level),1)]),_:1}),a(e,{label:"\u6750\u6599\u4E2D\u7C7B","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.material_second_level),1)]),_:1}),a(e,{label:"\u6750\u6599\u5C0F\u7C7B","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.material_three_level),1)]),_:1}),a(e,{label:"\u5355\u4F4D","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.material_unit),1)]),_:1}),a(e,{label:"\u5355\u4EF7","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.price),1)]),_:1}),a(e,{label:"\u6570\u91CF","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.num),1)]),_:1}),a(e,{label:"\u54C1\u724C","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.material_brand),1)]),_:1}),a(e,{label:"\u53C2\u6570\u8BF4\u660E","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.material_parameter_description),1)]),_:1}),a(e,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[o(n(l.remark),1)]),_:1})]),_:1}),!(l!=null&&l.approve_id)||l.approve_check_status==4?(c(),d(B,{key:0,flows:f.value,submitApi:$(R),id:l==null?void 0:l.id,onOff:m},null,8,["flows","submitApi","id"])):(c(),d(h,{key:1,approve_id:l==null?void 0:l.approve_id,onOff:m},null,8,["approve_id"]))]),_:1},512)])}}});const Dl=I(L,[["__scopeId","data-v-7f5a3370"]]);export{Dl as default};
|