WokerTask/public/admin/assets/details.664ebb33.js

2 lines
13 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{J as Z,k as D,K as ee,B as le,C as ae,D as ue,I as oe,b as te,N as re,M as ne,w as de}from"./element-plus.9816852d.js";import{u as N,a as se}from"./vue-router.9f65afb1.js";import{a as ie,b as me}from"./shop_contract.17e1f644.js";import{e as pe,a as _e,d as fe}from"./index.fdc772f5.js";import{d as ce,C as ye,$ as ve,r as c,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 f,M as A,u as T,R as U,S as Fe,bf as Be,be as ge}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.675f209e.js";import"./axios.54f807ba.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.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 E=F=>(Be("data-v-7735eef5"),F=F(),ge(),F),Ce=E(()=>f("span",null,"\u7532\u65B9\u57FA\u672C\u4FE1\u606F",-1)),ke=E(()=>f("span",null,"\u4E59\u65B9\u57FA\u672C\u4FE1\u606F",-1)),Ae=E(()=>f("span",null,"\u4E59\u65B9\u8D44\u8D28\u4FE1\u606F",-1)),Ue=E(()=>f("span",null,"\u4E2A\u4EBA\u57FA\u672C\u4FE1\u606F",-1)),he={class:"persenal"},qe=["src"],De=E(()=>f("span",null,"\u4E2A\u4EBA\u8D44\u8D28\u4FE1\u606F",-1)),we=["src"],xe=["src"],Se=["src"],Re=["src"],Ie=["src"],ze=["src"],Ne=E(()=>f("span",null,"\u7535\u5B50\u5408\u540C",-1)),Me=E(()=>f("br",null,null,-1)),Te=["href"],Oe=["href"],je=ce({__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:""});c([]);const w=c({}),r=c({}),x=c([]),p=c([]),B=c([]),i=c([]),y=c([]),S=c(!0),h=c(!1),q=c(!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=c(null),$=o=>{g.value.clearFiles();const l=o[0];l.uid=ee(),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=le,t=ae,v=ue,V=oe,X=te,C=re,R=ne,I=de,Y=Z,k=be("perms");return s(),b(M,null,[e(V,{class:"box-card"},{header:a(()=>[Ce]),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:""},{