WokerTask/public/admin/assets/details.5a0f0a97.js

2 lines
14 KiB
JavaScript
Raw Normal View History

2024-01-16 16:29:09 +08:00
import{K as Z,k as D,L as ee,C as le,D as ae,F as ue,J as oe,b as te,O as re,N as ne,w as de}from"./element-plus.ff90c99c.js";import{u as N,a as se}from"./vue-router.6d4cf914.js";import{a as ie,b as me}from"./shop_contract.3c0c712d.js";import{e as pe,a as _e,d as fe}from"./index.87cea444.js";import{d as ce,E as ye,$ as ve,r as c,i as Ve,aq as be,o as s,c as b,W as e,Q as a,P as _,T as m,F as O,a9 as Ee,a as f,R as A,u as T,U,V as Fe,bg as Be,bf as ge}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 E=F=>(Be("data-v-7735eef5"),F=F(),ge(),F),ke=E(()=>f("span",null,"\u7532\u65B9\u57FA\u672C\u4FE1\u606F",-1)),Ce=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"],Re=["src"],Se=["src"],Ie=["src"],ze=["src"],Ne=E(()=>f("span",null,"\u7535\u5B50\u5408\u540C",-1)),Oe=E(()=>f("br",null,null,-1)),Te=["href"],Je=["href"],Me=ce({__name:"details",setup(F){const{query:J}=N(),{removeTab:M}=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([]),R=c(!0),h=c(!1),q=c(!0),L=N(),W=_e();async function K(){const o=await ie({id:J.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 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"?(D.error("\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u6587\u4EF6"),!1):!0},g=c(null),Q=o=>{g.value.clearFiles();const l=o[0];l.uid=ee(),g.value.handleStart(l),g.value.submit()},$=(o,l)=>{if(o.code==0){D.error(o.msg);return}n.file=o.data.uri},G=se(),H=()=>{if(!n.file)return D.error("\u8BF7\u5148\u4E0A\u4F20\u5408\u540C!");me({file:n.file,id:L.query.id}),M(),G.back()};return Ve(async()=>{await K()}),(o,l)=>{const d=le,t=ae,v=ue,V=oe,X=te,k=re,S=ne,I=de,Y=Z,C=be("perms");return s(),b(O,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,{lab