WokerTask/public/admin/assets/company.797ed914.js

2 lines
12 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{k as Be,B as be,C as he,M as ke,N as we,w as Ve,D as ge,I as De,O as Ae,P as xe,a1 as Le,a2 as Ue,L as Pe,Q as Te}from"./element-plus.10e48c93.js";import{_ as Ie}from"./index.vue_vue_type_script_setup_true_lang.579ca8f7.js";import{d as ee,r as m,$ as X,a4 as Se,af as $e,o as l,c as E,U as e,L as t,u,M as _,V as N,T as R,a7 as Y,K as y,R as p,a as C,Q as j,k as P}from"./@vue.51d7f2d8.js";import{u as qe}from"./vue-router.9f65afb1.js";import{u as ze}from"./usePaging.60d02673.js";import{u as Me}from"./useDictOptions.0cd6f35c.js";import{a as Ne,k as O,f as Re}from"./index.8604d989.js";import{i as je,f as Oe,s as Qe,j as Ge,a as Ke,c as He,k as Je}from"./company.820d8c81.js";import"./lodash.08438971.js";import{d as Z}from"./dict.f873732c.js";import{d as We}from"./dict.070e6995.js";import{_ as Xe}from"./dialog_index.vue_vue_type_script_setup_true_name_companyLists_lang.d17e7e8b.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"./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 Ye={class:"mt-4"},Ze={key:0,style:{color:"#67c23a"}},ea={key:1,style:{color:"#fe0000"}},aa={style:{display:"flex"}},ta={class:"flex mt-4 justify-end"},ua=C("h1",null,"\u91CD\u8981\u63D0\u9192",-1),oa=C("div",{class:"content"},"\u8BF7\u786E\u8BA4\u4FE1\u606F\u662F\u5426\u6709\u8BEF",-1),la={class:"btn_menu"},na=C("h1",null,"\u91CD\u8981\u63D0\u9192",-1),sa={key:0,class:"content"},ra={key:1,class:"content"},ia={class:"btn_menu"},pa=ee({name:"companyLists"}),et=ee({...pa,setup(ca){var H;const w=m(!1),ae=s=>{n.value.party_a=s.id,n.value.party_a_name=s.company_name,w.value=!1},D=Ne();console.log(D.userInfo.company_id);const Q=qe(),A=m(!0),v=m(!1),x=m(!1),L=()=>{v.value=!1,x.value=!1},G=m(!1),V=m(!1),T=()=>{V.value=!1,G.value=!1},B=m(""),n=m({party_a:"",party_a_name:"",party_b:"",party_b_name:"",contract_type:"",contract_no:""}),te=m([]),K=m([]),ue=async s=>{const o=await Ke({id:s});He().then(d=>{te.value=d}),Z({type_id:7}).then(d=>{K.value=d.lists.filter(c=>We.find(h=>h==c.id))}),n.value.party_b=o.id,n.value.party_b_name=o.company_name,D.userInfo.company.id?(n.value.party_a=D.userInfo.company.id,n.value.party_a_name=D.userInfo.company.company_name):(n.value.party_a="",n.value.party_a_name="")},oe=s=>{B.value=s.id,ue(s.id),le()},le=()=>{G.value=!0,V.value=!0},ne=s=>{v.value=!0,x.value=!0,B.value=s.id},se=async()=>{await je({id:B.value,...n.value}),b(),T()},re=async()=>{await Oe({id:B.value}),b(),L()},ie=async()=>{await Qe({id:B.value}),b(),L()},r=X({company_name:"",area:"",street:"",company_type:"",area_manager:"",is_contract:""});Q.query.company_type&&(A.value=!1,r.company_type=((H=Q.query.company_type)==null?void 0:H.toString())||"");const I=X({dictTypeLists:[]});(async()=>{const s=await Z({type_id:6});I.dictTypeLists=s.lists})();const pe=m([]),ce=s=>{pe.value=s.map(({id:o})=>o)};Me("");const{pager:g,getLists:b,resetParams:de,resetPage:me}=ze({fetchFun:Je,params:r}),_e=async s=>{await Re.confirm("\u786E\u5B9A\u8981\u8BA4\u8BC1\uFF1F"),await Ge({id:s}),b()},ye=()=>{Be.warning("\u8BF7\u7B49\u5F85\u5408\u540C\u5BA1\u6838\u5B8C\u6210!")};return b(),(s,o)=>{const d=be,c=he,h=ke,S=we,i=Ve,fe=ge,$=De,q=Se("router-link"),f=Ae,Ce=xe,Ee=Ie,U=Le,Fe=Ue,z=Pe,F=$e("perms"),ve=Te;return l(),E("div",null,[e($,{class:"!border-none mb-4",shadow