2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
|
import{k as S,K as le,B as ue,C as ae,N as oe,D as te,I as re,b as ne,M as de,w as se,J as ie}from"./element-plus.9c2fdfa8.js";import{u as M,a as pe}from"./vue-router.e2f4a118.js";import{a as me}from"./contract.e86c00a6.js";import{e as _e,a as ce,d as fe}from"./index.b57b84f0.js";import{u as ve}from"./consumer.ed84615b.js";import{d as be,C as ye,$ as Fe,r as b,j as Be,af as Ve,o as s,c as B,U as e,L as u,K as f,Q as m,a as p,T as I,a7 as T,M as O,u as j,R as J,S as Ee,bf as Ce,be as he}from"./@vue.53f8d7c3.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.5512e984.js";import"./axios.92474d72.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";const C=k=>(Ce("data-v-0f899843"),k=k(),he(),k),ge=C(()=>p("span",null,"\u7532\u65B9\u57FA\u672C\u4FE1\u606F",-1)),ke=C(()=>p("span",null,"\u7532\u65B9\u8D44\u8D28\u4FE1\u606F",-1)),De={class:"company"},Ae={class:"company"},we=C(()=>p("span",null,"\u4E59\u65B9\u57FA\u672C\u4FE1\u606F",-1)),Ue=C(()=>p("span",null,"\u4E59\u65B9\u8D44\u8D28\u4FE1\u606F",-1)),qe={class:"company"},xe={class:"company"},Re=C(()=>p("span",null,"\u4E2A\u4EBA\u57FA\u672C\u4FE1\u606F",-1)),Se={class:"persenal"},Ie=["src"],ze=C(()=>p("span",null,"\u4E2A\u4EBA\u8D44\u8D28\u4FE1\u606F",-1)),Ne=["src"],Me=["src"],Te=["src"],Oe=["src"],je=["src"],Je=["src"],Ke=C(()=>p("span",null,"\u7535\u5B50\u5408\u540C",-1)),Le=["href"],Qe=["href"],$e=be({__name:"contractDetil",setup(k){const{query:K}=M(),{removeTab:L}=_e(),Q=ye("base_url"),n=Fe({id:"",company_id:"",contract_type:"",contract_type_name:"",contract_no:"",file:"",status:"",check_status:"",party_a:"",party_a_name:"",party_b:"",party_b_name:"",area_manager:"",area_manager_name:"",type_name:"",url:"",status_name:"",signed_contract_url:""});b([]);const D=b({}),r=b({}),y=b([]),d=b([]),F=b([]),i=b([]),v=b([]),U=b(!0),q=b(!0),x=b(!0),$=M(),G=ce();async function H(){const o=await me({id:K.id});Object.keys(n).forEach(l=>{o[l]!=null&&o[l]!=null&&(n[l]=o[l])}),r.value=o.party_a_info,D.value=o,(D.value.status==1||o.check_status==3||o.status==1)&&(x.value=!1);try{o.party_a_info.qualification.bank_account=JSON.parse(o.party_a_info.qualification.bank_account),y.value=o.party_a_info.qualification,o.party_b_info.qualification.other_qualifications=JSON.parse(o.party_b_info.qualification.other_qualifications),F.value=o.party_b_info.qualification}catch{}y.value=o.party_a_info.qualification,o.type==2&&(U.value=!1,o.party_b_info.sex==1?o.party_b_info.sex="\u7537":o.party_b_info.sex="\u5973",i.value=o.party_b_info,v.value=o.party_b_info.qualification),o.type==1?(d.value=o.party_b_info,F.value=o.party_b_info.qualification,q.value=!1):d.value.company_name=o.party_b_info.nickname}const P=o=>{var l;return((l=o==null?void 0:o.name)==null?void 0:l.substring(o.name.length-4,o.name.length))!=".pdf"?(S.error("\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u6587\u4EF6"),!1):!0},A=b(null),W=o=>{A.value.clearFiles();const l=o[0];l.uid=le(),A.value.handleStart(l),A.value.submit()},X=(o,l)=>{if(o.code==0){S.error(o.msg);return}n.file=o.data.uri},Y=pe(),Z=()=>{if(!n.file)return S.error("\u8BF7\u5148\u4E0A\u4F20\u5408\u540C!");ve({file:n.file,id:$.query.id}),L(),Y.back()};return Be(async()=>{await H()}),(o,l)=>{const _=ue,t=ae,c=oe,V=te,E=re,h=ne,w=de,z=se,ee=ie,N=Ve("perm
|