2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
|
import{k as D,K as Z,B as ee,C as le,D as ae,I as ue,b as oe,N as te,M as re,w as ne,J as de}from"./element-plus.9c2fdfa8.js";import{u as N,a as se}from"./vue-router.e2f4a118.js";import{a as ie,b as me}from"./shop_contract.e6a16b20.js";import{e as pe,a as _e,d as ce}from"./index.b57b84f0.js";import{d as fe,C as ye,$ as ve,r as f,j as Ve,af as be,o as s,c as b,U as e,L as a,K as _,Q as m,T as M,a7 as Ee,a as c,M as A,u as T,R as U,S as Fe,bf as Be,be as ge}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 E=F=>(Be("data-v-8ec72b37"),F=F(),ge(),F),ke=E(()=>c("span",null,"\u7532\u65B9\u57FA\u672C\u4FE1\u606F",-1)),Ce=E(()=>c("span",null,"\u4E59\u65B9\u57FA\u672C\u4FE1\u606F",-1)),Ae=E(()=>c("span",null,"\u4E59\u65B9\u8D44\u8D28\u4FE1\u606F",-1)),Ue=E(()=>c("span",null,"\u4E2A\u4EBA\u57FA\u672C\u4FE1\u606F",-1)),he={class:"persenal"},qe=["src"],De=E(()=>c("span",null,"\u4E2A\u4EBA\u8D44\u8D28\u4FE1\u606F",-1)),we=["src"],xe=["src"],Se=["src"],Re=["src"],Ie=["src"],ze=["src"],Ne=E(()=>c("span",null,"\u7535\u5B50\u5408\u540C",-1)),Me=E(()=>c("br",null,null,-1)),Te=["href"],Oe=["href"],je=fe({__name:"details",setup(F){const{query:O}=N(),{removeTab:j}=pe(),J=ye("base_url"),n=ve({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:"",notes:""});f([]);const w=f({}),r=f({}),x=f([]),p=f([]),B=f([]),i=f([]),y=f([]),S=f(!0),h=f(!1),q=f(!0),K=N(),L=_e();async function Q(){const o=await ie({id:O.id});Object.keys(n).forEach(l=>{o[l]!=null&&o[l]!=null&&(n[l]=o[l])}),r.value=o.party_a_info,w.value=o,(w.value.status==1||o.check_status==3||o.status==1)&&(q.value=!1);try{o.party_a_info.qualification.bank_account&&(o.party_a_info.qualification.bank_account=JSON.parse(o.party_a_info.qualification.bank_account),x.value=o.party_a_info.qualification),o.party_b_info.qualification.other_qualifications&&(o.party_b_info.qualification.other_qualifications=JSON.parse(o.party_b_info.qualification.other_qualifications),B.value=o.party_b_info.qualification)}catch{}x.value=o.party_a_info.qualification,p.value=o.party_b_info,B.value=o.party_b_info.qualification,h.value=!1}const W=o=>{var l;return((l=o==null?void 0:o.name)==null?void 0:l.substring(o.name.length-4,o.name.length))!=".pdf"?(D.error("\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u6587\u4EF6"),!1):!0},g=f(null),$=o=>{g.value.clearFiles();const l=o[0];l.uid=Z(),g.value.handleStart(l),g.value.submit()},G=(o,l)=>{if(o.code==0){D.error(o.msg);return}n.file=o.data.uri},H=se(),P=()=>{if(!n.file)return D.error("\u8BF7\u5148\u4E0A\u4F20\u5408\u540C!");me({file:n.file,id:K.query.id}),j(),H.back()};return Ve(async()=>{await Q()}),(o,l)=>{const d=ee,t=le,v=ae,V=ue,X=oe,k=te,R=re,I=ne,Y=de,C=be("perms");return s(),b(M,null,[e(V,{class:"box-card"},{header:a(()=>[ke]),default:a(()=>[e(v,{inline:!0,ref:"formRef",model:r.value,"label-width":"91.5px",rules:o.formRules,class:"select"},{default:a(()=>[e(t,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name",required:""},{
|