WokerTask/public/admin/assets/subordinate.f8b6e2fc.js

2 lines
6.9 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{O as J,w as W,P as X,I as Y,L as Z,Q as tt}from"./element-plus.10e48c93.js";import{_ as et}from"./index.vue_vue_type_script_setup_true_lang.579ca8f7.js";import{u as ot}from"./vue-router.9f65afb1.js";import{u as at}from"./usePaging.60d02673.js";import{u as ut}from"./useDictOptions.df4cc64d.js";import{h as nt,l as it}from"./company.56193820.js";import{g as st,s as lt}from"./admin.afbf82be.js";import"./lodash.08438971.js";import{k as A,f as rt}from"./index.c35b5194.js";import{d as pt}from"./dict.a5451cbe.js";import{d as x,r as f,$ as T,a4 as ct,af as mt,o as a,c as _,M as p,u as r,K as s,L as e,a as C,U as o,R as n,Q as b,T as dt,k as $}from"./@vue.51d7f2d8.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 _t={class:"mt-4"},yt={key:0,style:{color:"#67c23a"}},ft={key:1,style:{color:"#fe0000"}},Ct={style:{display:"flex"}},Et={class:"flex mt-4 justify-end"},ht=C("h1",null,"\u91CD\u8981\u63D0\u9192",-1),kt={key:0,class:"content"},Ft={key:1,class:"content"},vt={class:"btn_menu"},Bt=x({name:"companyLists"}),_e=x({...Bt,setup(gt){var w,L;const E=ot(),S=f(!0),m=f(!1),h=f(!1),k=()=>{m.value=!1,h.value=!1},F=f(""),N=i=>{m.value=!0,h.value=!0,F.value=i.id},R=()=>{st({id:F.value}),k()},z=()=>{lt({id:F.value}),k()},B=T({company_name:"",area:"",street:"",company_type:"",area_manager:"",is_contract:"",company_id:""});E.query.company_type&&(S.value=!1,B.company_type=((w=E.query.company_type)==null?void 0:w.toString())||""),E.query.company_id&&(B.company_id=((L=E.query.company_id)==null?void 0:L.toString())||"");const M=T({dictTypeLists:[]});(async()=>{const i=await pt({type_id:6});M.dictTypeLists=i.lists})();const U=f([]),I=i=>{U.value=i.map(({id:d})=>d)};ut("");const{pager:y,getLists:g,resetParams:At,resetPage:bt}=at({fetchFun:it,params:B}),Q=async i=>{await rt.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await nt({id:i}),g()};return g(),(i,d)=>{const l=J,D=ct("router-link"),u=W,j=X,G=et,K=Y,O=Z,c=mt("perms"),H=tt;return a(),_("div",null,[p((a(),s(K,{class:"!border-none",shadow:"never"},{default:e(()=>[C("div",_t,[o(j,{data:r(y).lists,onSelectionChange:I},{default:e(()=>[o(l,{label:"id",prop:"id","show-overflow-tooltip":"",width:"60"}),o(l,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name","show-overflow-tooltip":""}),o(l,{label:"\u516C\u53F8\u7C7B\u578B",prop:"company_type","show-overflow-tooltip":""}),o(l,{label:"\u533A\u53BF",prop:"area_name","show-overflow-tooltip":""}),o(l,{label:"\u4E61\u9547",prop:"street_name","show-overflow-tooltip":""}),o(l,{label:"\u4E3B\u8054\u7CFB\u4EBA",prop:"master_name","show-overflow-tooltip":""}),o(l,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"master_phone","show-overflow-tooltip":""}),o(l,{label:"\u7247\u533A\u7ECF\u7406",prop:"area_manager_name","show-overflow-tooltip":""}),o(l,{label:"\u662F\u5426\u7B7E\u7EA6",prop:"is_contract","show-overflow-tooltip":""},{default:e(({row:t})=>[t.is_contract==1?(a(),_("span",yt,"\u5DF2\u7B7E\u7EA6")):(a(),_("span",ft,"\u672A\u7B7E\u7EA6"))]),_:1}),o(l,{label:"\u64CD\u4F5C",align:"center",width:"300",fixed:"right"},{default:e(({row:t})=>{var P,V,q;return[C("div",Ct,[o(u,{type:"primary",link:""},{default:e(()=>[o(D,{to:{path:r(A)("auth.admin/lists"),query:{company_id:t.id,read:!0}}},{