2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{_ as U,a as I}from"./index.a91b9a2c.js";import{R as M,a2 as W,S as G,L as H,M as J,O as K}from"./element-plus.258bf9e7.js";import{m as Q}from"./material_purchase_request_detail.aec1c0eb.js";import{P as X}from"./index.9492d03b.js";import{a as Y}from"./custom.13e75d58.js";import{u as Z,v as ee}from"./flowSet.6e7dc427.js";import{d as w,s as D,a0 as c,r as v,o as p,c as u,V as a,M as n,T as _,U as m,W as ae,a8 as te,a as F,L as x,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"},se={key:0},ie={style:{"margin-left":"5px",display:"block"}},pe={key:1},re={style:{margin:"10px 0"}},ue=w({name:"customdetail"}),_e=w({...ue,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(me,{expose:k,emit:z}){D();const d=D(),B=c([]),s=c({page_size:10,page_no:1,customer_demand_id:""}),C=v(0);c({provinceOptions:[],cityOptions:[],areaOptions:[]});const h=v([]),t=c({}),O=e=>{s.page_size=e,f(t.id)},j=e=>{console.log(`current page: ${e}`),s.page_no=e,f(t.id)},f=e=>{Q({page_no:s.page_no,page_size:s.page_size,id:e}).then(o=>{h.value=o.lists,C.value=o.count})},y=async e=>{if(Object.assign(t,e),f(e.id),e.annex&&e.annex.length>0){const o=e.annex.map((i,b)=>({name:`\u6587\u4EF6${b+1}`,uri:i}));Object.assign(B,o)}q()},L=async e=>{const o=await Y({id:e.id});y(o)},P=async()=>{var e;(e=d.value)==null||e.close()},S=()=>{var e;console.log("1111111"),(e=d.value)==null||e.open()},g=()=>{z("close")},E=v([]),q=async()=>{if(t!=null&&t.approve_id)return;let e=await Z();E.value=e};return k({open:S,setFormData:y,getDetail:L}),(e,o)=>{const i=M,b=W,A=G,l=H,R=J,T=K,V=U,$=I;return p(),u("div",ne,[a(X,{ref_key:"popupRef",ref:d,title:"\u6750\u6599\u91C7\u8D2D\u7533\u8BF7\u8BE6\u60C5",async:!0,width:"80%",onConfirm:P,onClose:g},{default:n(()=>[a(A,{column:2,border:""},{default:n(()=>[a(i,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:n(()=>[_(m(t.project_name),1)]),_:1}),a(i,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:n(()=>[_(m(t.project_code),1)]),_:1}),a(i,{label:"\u91C7\u8D2D\u7533\u8BF7\u5355\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:n(()=>[_(m(t.material_purchase_request_code),1)]),_:1}),a(i,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:n(()=>[_(m(t.remark),1)]),_:1}),a(i,{label:"\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:n(()=>[t.annex.length>0?(p(),u("div",se,[(p(!0),u(ae,null,te(t.annex,(r,N)=>(p(),u("div",ie,[a(b,{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(R,{data:h.value,stripe:"",style:{width:"100%"}},{default:n(()=>[a(l,{label:"\u6750\u6599\u5927\u7C7B",prop:"material_first_level",width:"180"}),a(l,{label:"\u6750\u6599\u4E2D\u7C7B",prop:"material_second_level",width:"180"}),a(l,{label:"\u6750\u6599\u5C0F\u7C7B",prop:"material_three_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:"\u7533\u8D2D\u6570\u91CF",prop:"num"}),a(l,{label:"\u5DF2\u91C7\u8D2D",prop:"has_procure_num"}),a(l,{label:"\u672A\u91C7\u8D2D",prop:"not_procure_num"}),a(l,{label:"\u5907\u6CE8",prop:"remark"})]),_:1},8,["data"])]),F("div",re,[a(T,{"current-page":s.page_no,"onUpdate:current-page":o[0]||(o[0]=r=>s.page_no=r),"page-size":s.page_size,"onUpdate:page-size":o[1]||(o[1]=r=>s.page_size=r),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:C.value,onSizeChange:O,onCurrentChange:j},null,8,["current-page","page-size","total"])]),!(t!=null&&t.approve_id)||t.approve_check_status==4?(p(),x(V,{key:0,flows:E.value,submitApi:le(ee),id:t==null?void 0:t.id,onOff:g},null,8,["flows","submitApi","id"])):(p(),x($,{key:1,approve_id:t==null?void 0:t.approve_id,onOff:g},null,8,["approve_id"]))]),_:1},512)])}}});const Ze=oe(_e,[["__scopeId","data-v-a60574f6"]]);export{Ze as default};
|