2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
import{_ as U,a as I}from"./index.a91b9a2c.js";import{R as K,a2 as W,S as q,L as G,M as H,O as J}from"./element-plus.258bf9e7.js";import{M as Q}from"./project_material_budget_detail.8f7a9994.js";import{P as X}from"./index.9492d03b.js";import{a as Y}from"./custom.13e75d58.js";import{K as Z,L as ee}from"./flowSet.6e7dc427.js";import{d as k,s as x,a0 as c,r as y,o as p,c as u,V as a,M as n,T as _,U as m,W as te,a8 as ae,a as F,L as w,u as le}from"./@vue.ab566ce7.js";import{_ as oe}from"./index.ec401e3b.js";import"./@element-plus.b89f1627.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const ne={class:"detail-popup"},ie={key:0},se={style:{"margin-left":"5px",display:"block"}},pe={key:1},re={style:{margin:"10px 0"}},ue=k({name:"customdetail"}),_e=k({...ue,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(me,{expose:z,emit:B}){x();const d=x(),D=c([]),i=c({page_size:10,page_no:1,customer_demand_id:""}),v=y(0);c({provinceOptions:[],cityOptions:[],areaOptions:[]});const C=y([]),t=c({}),O=e=>{i.page_size=e,g(t.id)},j=e=>{console.log(`current page: ${e}`),i.page_no=e,g(t.id)},g=e=>{Q({page_no:i.page_no,page_size:i.page_size,material_budget_id:e}).then(o=>{C.value=o.lists,v.value=o.count})},h=async e=>{if(Object.assign(t,e),g(e.id),e.annex&&e.annex.length>0){const o=e.annex.map((s,f)=>({name:`\u6587\u4EF6${f+1}`,uri:s}));Object.assign(D,o)}M()},L=async e=>{const o=await Y({id:e.id});h(o)},P=async()=>{var e;(e=d.value)==null||e.close()},S=()=>{var e;console.log("1111111"),(e=d.value)==null||e.open()},b=()=>{B("close")},E=y([]),M=async()=>{if(t!=null&&t.approve_id)return;let e=await Z();E.value=e};return z({open:S,setFormData:h,getDetail:L}),(e,o)=>{const s=K,f=W,R=q,l=G,T=H,V=J,$=U,A=I;return p(),u("div",ne,[a(X,{ref_key:"popupRef",ref:d,title:"\u6750\u6599\u9884\u7B97\u8BE6\u60C5",async:!0,width:"80%",onConfirm:P,onClose:b},{default:n(()=>[a(R,{column:2,border:""},{default:n(()=>[a(s,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:n(()=>[_(m(t.project_name),1)]),_:1}),a(s,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:n(()=>[_(m(t.project_code),1)]),_:1}),a(s,{label:"\u6750\u6599\u9884\u7B97\u5355\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:n(()=>[_(m(t.material_budget_code),1)]),_:1}),a(s,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:n(()=>[_(m(t.remark),1)]),_:1}),a(s,{label:"\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:n(()=>[t.annex.length>0?(p(),u("div",ie,[(p(!0),u(te,null,ae(t.annex,(r,N)=>(p(),u("div",se,[a(f,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:r,target:"_blank"},{default:n(()=>[_("\u6587\u4EF6"+m(N+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(p(),u("div",pe," \u6682\u65E0\u9644\u4EF6 "))]),_:1})]),_:1}),F("div",null,[a(T,{data:C.value,stripe:"",style:{width:"100%"}},{default:n(()=>[a(l,{label:"\u7C7B\u578B",prop:"budget_type",width:"180"}),a(l,{label:"\u6750\u6599\u5927\u7C7B",prop:"material_first_level",width:"180"}),a(l,{label:"\u6750\u6599\u540D\u79F0",prop:"material_name"}),a(l,{label:"\u6750\u6599\u7F16\u7801",prop:"material_code"}),a(l,{label:"\u89C4\u683C\u578B\u53F7",prop:"material_specs"}),a(l,{label:"\u54C1\u724C",prop:"material_brand"}),a(l,{label:"\u53C2\u6570\u8BF4\u660E",prop:"material_parameter_description",width:"200px"}),a(l,{label:"\u5355\u4F4D",prop:"material_unit"}),a(l,{label:"\u6570\u91CF",prop:"num"}),a(l,{label:"\u5355\u4EF7",prop:"price"}),a(l,{label:"\u91D1\u989D",prop:"amount"}),a(l,{label:"\u5907\u6CE8",prop:"remark"})]),_:1},8,["data"])]),F("div",re,[a(V,{"current-page":i.page_no,"onUpdate:current-page":o[0]||(o[0]=r=>i.page_no=r),"page-size":i.page_size,"onUpdate:page-size":o[1]||(o[1]=r=>i.page_size=r),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:v.value,onSizeChange:O,onCurrentChange:j},null,8,["current-page","page-size","total"])]),!(t!=null&&t.approve_id)||t.approve_check_status==4?(p(),w($,{key:0,flows:E.value,submitApi:le(ee),id:t==null?void 0:t.id,onOff:b},null,8,["flows","submitApi","id"])):(p(),w(A,{key:1,approve_id:t==null?void 0:t.approve_id,onOff:b},null,8,["approve_id"]))]),_:1},512)])}}});const Ze=oe(_e,[["__scopeId","data-v-3d473b3b"]]);export{Ze as default};
|