WokerTask/public/admin/assets/contractDetil.ee8ec7af.js

2 lines
17 KiB
JavaScript
Raw Normal View History

2024-01-12 14:06:13 +08:00
import{K as le,k as S,L as ue,C as ae,D as oe,O as te,F as re,J as ne,b as de,N as se,w as ie}from"./element-plus.ff90c99c.js";import{u as O,a as pe}from"./vue-router.6d4cf914.js";import{a as me}from"./contract.1b4d754a.js";import{e as _e,a as ce,d as fe}from"./index.c5585224.js";import{e as ve}from"./consumer.5fc9ff11.js";import{d as be,E as ye,$ as Fe,r as b,i as Be,aq as Ve,o as s,c as B,W as e,Q as u,P as f,T as m,a as p,F as z,a9 as T,R as J,u as M,U as j,V as Ee,bg as Ce,bf as he}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.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.79024f1a.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"},ze=["src"],Ie=C(()=>p("span",null,"\u4E2A\u4EBA\u8D44\u8D28\u4FE1\u606F",-1)),Ne=["src"],Oe=["src"],Te=["src"],Je=["src"],Me=["src"],je=["src"],Le=C(()=>p("span",null,"\u7535\u5B50\u5408\u540C",-1)),Ke=["href"],Pe=["href"],Qe=be({__name:"contractDetil",setup(D){const{query:L}=O(),{removeTab:K}=_e(),P=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),Q=O(),W=ce();async function $(){const o=await me({id:L.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 G=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),H=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:Q.query.id}),K(),Y.back()};return Be(async()=>{await $()}),(