data_center/public/admin/assets/subordinate.52df3d40.js

2 lines
6.8 KiB
JavaScript

import{O,w as H,P as J,I as W,L as X,Q as Y}from"./element-plus.9c2fdfa8.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as tt}from"./vue-router.e2f4a118.js";import{u as et}from"./usePaging.c22e2b6f.js";import{u as ot}from"./useDictOptions.773276bb.js";import{m as at,j as ut}from"./company.da0ac536.js";import{g as nt,s as it}from"./admin.bb6f7166.js";import"./lodash.5512e984.js";import{k as g,f as st}from"./index.b57b84f0.js";import{d as lt}from"./dict.3d59f58c.js";import{d as q,r as f,$ as T,a4 as rt,af as ct,o as a,c as _,M as c,u as r,K as s,L as e,U as o,k as $,a as C,R as n,Q as D,T as pt}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"./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 mt={class:"mt-4"},dt={key:0,style:{color:"#67c23a"}},_t={key:1,style:{color:"#fe0000"}},yt={style:{display:"flex"}},ft={class:"flex mt-4 justify-end"},Ct=C("h1",null,"\u91CD\u8981\u63D0\u9192",-1),Et={key:0,class:"content"},ht={key:1,class:"content"},kt={class:"btn_menu"},Ft=q({name:"companyLists"}),de=q({...Ft,setup(vt){var w;const A=tt();f(!0);const m=f(!1),E=f(!1),h=()=>{m.value=!1,E.value=!1},k=f(""),x=i=>{m.value=!0,E.value=!0,k.value=i.id},N=()=>{nt({id:k.value}),h()},R=()=>{it({id:k.value}),h()},b=T({id:""});A.query.company_id&&(b.id=((w=A.query.company_id)==null?void 0:w.toString())||"");const S=T({dictTypeLists:[]});(async()=>{const i=await lt({type_id:6});S.dictTypeLists=i.lists})();const z=f([]),M=i=>{z.value=i.map(({id:d})=>d)};ot("");const{pager:y,getLists:v,resetParams:gt,resetPage:Dt}=et({fetchFun:at,params:b}),U=async i=>{await st.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ut({id:i}),v()};return v(),(i,d)=>{const l=O,B=rt("router-link"),u=H,j=J,I=Z,Q=W,G=X,p=ct("perms"),K=Y;return a(),_("div",null,[c((a(),s(Q,{class:"!border-none",shadow:"never"},{default:e(()=>[C("div",mt,[o(j,{data:r(y).lists,onSelectionChange:M},{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",dt,"\u5DF2\u7B7E\u7EA6")):(a(),_("span",_t,"\u672A\u7B7E\u7EA6"))]),_:1}),o(l,{label:"\u64CD\u4F5C",align:"center",width:"300",fixed:"right"},{default:e(({row:t})=>{var L,P,V;return[C("div",yt,[o(u,{type:"primary",link:""},{default:e(()=>[o(B,{to:{path:r(g)("auth.admin/lists"),query:{company_id:t.id,read:!0}}},{default:e(()=>[n("\u67E5\u770B\u6210\u5458")]),_:2},1032,["to"])]),_:2},1024),c((a(),s(u,{type:"primary",link:""},{default:e(()=>[o(B,{to:{path:r(g)("company/add:edit"),query:{id:t.id,read:!0}}},{default:e(()=>[n("\u8BE6\u60C5")]),_:2},1032,["to"])]),_:2},1024)),[[p,["company/edit","company/add"]]]),c((a(),s(u,{type:"primary",link:""},{default:e(()=>[o(B,{to:{path:r(g)("company/add:edit"),query:{id:t.id,edit:!0}}},{default:e(()=>[n("\u7F16\u8F91")]),_:2},1032,["to"])]),_:2},1024)),[[p,["company/edit","company/add"]]]),c((a(),s(u,{type:"danger",link:"",onClick:F=>U(t.id)},{default:e(()=>[n("\u5220\u9664")]),_:2},1032,["onClick"])),[[p,["company/delete"]]]),t.is_authentication==0?c((a(),s(u,{key:0,type:"primary",link:"",onClick:F=>i.handleAuthentication(t.id)},{default:e(()=>[n("\u4F01\u4E1A\u8BA4\u8BC1")]),_:2},1032,["onClick"])),[[p,["company/authentication"]]]):D("",!0),t.is_authentication&&t.is_contract==0?(a(),_(pt,{key:1},[Array.isArray(t.contract)&&t.contract.length==0?c((a(),s(u,{key:0,type:"primary",link:"",onClick:F=>i.showChangeCompany(t)},{default:e(()=>[n("\u751F\u6210\u5408\u540C")]),_:2},1032,["onClick"])),[[p,["company/initiate_contract"]]]):((L=t.contract)==null?void 0:L.check_status)==1?c((a(),s(u,{key:1,type:"warning",link:"",onClick:i.auditing},{default:e(()=>[n("\u5BA1\u6838\u4E2D")]),_:1},8,["onClick"])),[[p,["company/initiate_contract"]]]):((P=t.contract)==null?void 0:P.check_status)==2?c((a(),s(u,{key:2,type:"primary",link:"",onClick:F=>x(t)},{default:e(()=>[n("\u53D1\u9001\u5408\u540C")]),_:2},1032,["onClick"])),[[p,["company/Draftingcontracts"]]]):((V=t.contract)==null?void 0:V.check_status)==3?c((a(),s(u,{key:3,type:"primary",link:"",onClick:F=>(m.value=!0,k.value=t.id)},{default:e(()=>[n("\u53D1\u9001\u77ED\u4FE1")]),_:2},1032,["onClick"])),[[p,["company/postsms"]]]):D("",!0)],64)):D("",!0)])]}),_:1})]),_:1},8,["data"])]),C("div",ft,[o(I,{modelValue:r(y),"onUpdate:modelValue":d[0]||(d[0]=t=>$(y)?y.value=t:null),onChange:r(v)},null,8,["modelValue","onChange"])])]),_:1})),[[K,r(y).loading]]),o(G,{modelValue:r(m),"onUpdate:modelValue":d[1]||(d[1]=t=>$(m)?m.value=t:null),onClose:h},{default:e(()=>[Ct,r(E)?(a(),_("div",Et," \u8BF7\u786E\u8BA4\u4FE1\u606F\u662F\u5426\u6709\u8BEF,\u53D1\u9001\u5408\u540C,\u8BF7\u786E\u8BA4\u4FE1\u606F\u662F\u5426\u6709\u8BEF,\u53D1\u9001\u7535\u5B50\u5408\u540C\u540E\u77ED\u65F6\u95F4\u5185\u5C06\u4E0D\u53EF\u518D\u6B21\u53D1\u9001. ")):(a(),_("div",ht," \u786E\u8BA4\u7B7E\u7EA6\u77ED\u4FE1\u5C06\u572860\u79D2\u540E\u53D1\u9001,\u8BF7\u6CE8\u610F\u67E5\u6536,\u5E76\u70B9\u51FB\u77ED\u4FE1\u94FE\u63A5\u8FDB\u884C\u7EBF\u4E0A\u5408\u540C\u7B7E\u7EA6 ")),C("p",kt,[r(E)?(a(),s(u,{key:0,type:"primary",size:"large",onClick:N},{default:e(()=>[n("\u786E\u8BA4\u521B\u5EFA")]),_:1})):(a(),s(u,{key:1,type:"primary",size:"large",onClick:R},{default:e(()=>[n("\u786E\u8BA4")]),_:1})),o(u,{type:"info",size:"large",onClick:h},{default:e(()=>[n("\u8FD4\u56DE")]),_:1})])]),_:1},8,["modelValue"])])}}});export{de as default};