engineering/public/admin/assets/detail.e7949be2.js
2024-03-04 15:04:21 +08:00

2 lines
8.4 KiB
JavaScript

import{R as q,a2 as G,S as H,L as J,M as K,O as Q,D as X}from"./element-plus.258bf9e7.js";import{_ as Y,a as Z}from"./index.a91b9a2c.js";import{P as ll}from"./index.9492d03b.js";import{a as el}from"./custom.13e75d58.js";import{a as al}from"./remittance.3fda3ff0.js";import{i as tl,j as nl}from"./flowSet.6e7dc427.js";import{d as A,a0 as b,r as E,s as D,o as r,c,V as e,M as a,T as n,U as o,W as ol,a8 as sl,a as B,L as x,u as ul,b7 as il,b6 as rl}from"./@vue.ab566ce7.js";import{_ as pl}from"./index.ec401e3b.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.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"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./vue-router.87ebc608.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 cl=m=>(il("data-v-b509a09d"),m=m(),rl(),m),ml={class:"detail-popup"},_l={key:0},bl={style:{"margin-left":"5px",display:"block"}},fl={key:1},dl=cl(()=>B("div",{name:"demo-tabs-2",style:{margin:"20px 0"}}," \u56DE\u6B3E\u8BA1\u5212 ",-1)),gl={style:{margin:"10px 0"}},yl=A({name:"customdetail"}),El=A({...yl,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(m,{expose:w,emit:k}){const u=b({page_size:10,page_no:1,contract_id:""}),F=E(0),z=D(),f=D(),O=b([]);b({provinceOptions:[],cityOptions:[],areaOptions:[]});const h=E([]),l=b({}),S=s=>{u.page_size=s,d()},j=s=>{console.log(`current page: ${s}`),u.page_no=s,d()},d=()=>{al(u).then(s=>{h.value=s.lists,F.value=s.count})},v=async s=>{if(Object.assign(l,s),console.log(l,"formdata"),u.contract_id=s.id,s.annex&&s.annex.length>0){const i=s.annex.map((t,y)=>({name:`\u6587\u4EF6${y+1}`,uri:t}));Object.assign(O,i)}d(),P()},L=async s=>{const i=await el({id:s.id});v(i)},R=async()=>{var s;(s=f.value)==null||s.close()},I=()=>{var s;console.log("1111111"),(s=f.value)==null||s.open()},g=()=>{k("close")},C=E([]),P=async()=>{if(l!=null&&l.approve_id)return;let s=await tl();C.value=s};return w({open:I,setFormData:v,getDetail:L}),(s,i)=>{const t=q,y=G,T=H,_=J,V=K,$=Q,N=Y,U=Z,M=X;return r(),c("div",ml,[e(ll,{ref_key:"popupRef",ref:f,title:"\u9879\u76EE\u5408\u540C\u8BE6\u60C5",async:!0,width:"80%",onConfirm:R,onClose:g},{default:a(()=>[e(M,{ref_key:"formRef",ref:z,model:l,"label-width":"120px"},{default:a(()=>[e(T,{title:"\u57FA\u672C\u4FE1\u606F",column:2,border:""},{default:a(()=>[e(t,{label:"\u5BA2\u6237\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.custom_name),1)]),_:1}),e(t,{label:"\u6295\u6807\u7F16\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.bid_document_no),1)]),_:1}),e(t,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.project_name),1)]),_:1}),e(t,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.project_code),1)]),_:1}),e(t,{label:"\u5408\u540C\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.contract_name),1)]),_:1}),e(t,{label:"\u5408\u540C\u7F16\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.contract_code),1)]),_:1}),e(t,{label:"\u5408\u540C\u7C7B\u578B","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.contract_type_text),1)]),_:1}),e(t,{label:"\u5408\u540C\u8BA1\u4EF7\u65B9\u5F0F","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.contract_pricing_method_text),1)]),_:1}),e(t,{label:"\u7532\u65B9","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_a),1)]),_:1}),e(t,{label:"\u4E59\u65B9","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_b),1)]),_:1}),e(t,{label:"\u901A\u8BAF\u5730\u5740","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_a_contact_address),1)]),_:1}),e(t,{label:"\u901A\u8BAF\u5730\u5740","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_b_contact_address),1)]),_:1}),e(t,{label:"\u4E3B\u8981\u8D1F\u8D23\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_a_diretor),1)]),_:1}),e(t,{label:"\u4E3B\u8981\u8D1F\u8D23\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_b_diretor),1)]),_:1}),e(t,{label:"\u7535\u8BDD","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_a_phone),1)]),_:1}),e(t,{label:"\u7535\u8BDD","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_b_phone),1)]),_:1}),e(t,{label:"\u624B\u673A","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_a_mobile),1)]),_:1}),e(t,{label:"\u624B\u673A","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_b_mobile),1)]),_:1}),e(t,{label:"\u90AE\u7BB1","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_a_email),1)]),_:1}),e(t,{label:"\u90AE\u7BB1","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.party_b_email),1)]),_:1}),e(t,{label:"\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.amount),1)]),_:1}),e(t,{label:"\u4E1A\u52A1\u8D1F\u8D23\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.business_director_name),1)]),_:1}),e(t,{label:"\u72B6\u6001","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.contract_status_text),1)]),_:1}),e(t,{label:"\u5408\u540C\u6709\u6548\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.expire),1)]),_:1}),e(t,{label:"\u7B7E\u7EA6\u65E5\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.contract_date),1)]),_:1}),e(t,{label:"\u4E3B\u8981\u6761\u6B3E","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.main_content),1)]),_:1}),e(t,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[n(o(l.remark),1)]),_:1}),e(t,{label:"\u5408\u540C\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[l.annex.length>0?(r(),c("div",_l,[(r(!0),c(ol,null,sl(l.annex,(p,W)=>(r(),c("div",bl,[e(y,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:p,target:"_blank"},{default:a(()=>[n("\u6587\u4EF6"+o(W+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(r(),c("div",fl," \u6682\u65E0\u9644\u4EF6 "))]),_:1})]),_:1}),dl,B("div",null,[e(V,{data:h.value,stripe:"",style:{width:"100%"}},{default:a(()=>[e(_,{label:"\u671F\u6B21",prop:"period",width:"180"}),e(_,{label:"\u8BA1\u5212\u56DE\u6B3E\u65E5\u671F",prop:"return_date",width:"180"}),e(_,{label:"\u91D1\u989D",prop:"amount"}),e(_,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""})]),_:1},8,["data"])]),B("div",gl,[e($,{"current-page":u.page_no,"onUpdate:current-page":i[0]||(i[0]=p=>u.page_no=p),"page-size":u.page_size,"onUpdate:page-size":i[1]||(i[1]=p=>u.page_size=p),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:F.value,onSizeChange:S,onCurrentChange:j},null,8,["current-page","page-size","total"])]),!(l!=null&&l.approve_id)||l.approve_check_status==4?(r(),x(N,{key:0,flows:C.value,submitApi:ul(nl),id:l==null?void 0:l.id,onOff:g},null,8,["flows","submitApi","id"])):(r(),x(U,{key:1,approve_id:l==null?void 0:l.approve_id,onOff:g},null,8,["approve_id"]))]),_:1},8,["model"])]),_:1},512)])}}});const se=pl(El,[["__scopeId","data-v-b509a09d"]]);export{se as default};