2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
|
import{J as le,k as S,K as ue,B as ae,C as oe,N as te,D as re,I as ne,b as de,M as se,w as ie}from"./element-plus.10e48c93.js";import{u as M,a as pe}from"./vue-router.9f65afb1.js";import{a as me}from"./contract.69e78ed1.js";import{e as _e,a as ce,d as fe}from"./index.c35b5194.js";import{b as ve}from"./consumer.2f2c41bb.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.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.08438971.js";import"./axios.105476b3.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";const C=D=>(Ce("data-v-7d71011d"),D=D(),he(),D),ge=C(()=>p("span",null,"\u7532\u65B9\u57FA\u672C\u4FE1\u606F",-1)),De=C(()=>p("span",null,"\u7532\u65B9\u8D44\u8D28\u4FE1\u606F",-1)),ke={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(D){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 k=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,k.value=o,(k.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=ue(),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 _=ae,t=oe,c=te,V=re,E=ne,h=de,w=se,z=ie,ee=le,N=Ve("perms");return s(),B(I,null,[e(E,{cl
|