2 lines
7.0 KiB
JavaScript
2 lines
7.0 KiB
JavaScript
import{P as K,w as O,Q as X,J as Y,M as Z,R as tt}from"./element-plus.ff90c99c.js";import{_ as et}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{u as ot}from"./vue-router.6d4cf914.js";import{u as at}from"./usePaging.bd7a7dec.js";import{u as ut}from"./useDictOptions.a98c8b94.js";import{h as nt,l as it}from"./company.a4eb2989.js";import{g as st,s as lt}from"./admin.70cd42d4.js";import"./lodash.3e731b89.js";import{k as A,f as rt}from"./index.c5585224.js";import{d as pt}from"./dict.12910a8a.js";import{d as x,r as f,$ as T,ag as ct,aq as mt,o as a,c as _,R as p,u as r,P as s,Q as e,a as C,W as o,U as n,T as b,F as dt,j as $}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"./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 _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"}),Ce=x({...Bt,setup(gt){var w,P;const E=ot(),R=f(!0),m=f(!1),h=f(!1),k=()=>{m.value=!1,h.value=!1},F=f(""),S=i=>{m.value=!0,h.value=!0,F.value=i.id},N=()=>{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&&(R.value=!1,B.company_type=((w=E.query.company_type)==null?void 0:w.toString())||""),E.query.company_id&&(B.company_id=((P=E.query.company_id)==null?void 0:P.toString())||"");const M=T({dictTypeLists:[]});(async()=>{const i=await pt({type_id:6});M.dictTypeLists=i.lists})();const U=f([]),j=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=K,D=ct("router-link"),u=O,G=X,I=et,J=Y,W=Z,c=mt("perms"),H=tt;return a(),_("div",null,[p((a(),s(J,{class:"!border-none",shadow:"never"},{default:e(()=>[C("div",_t,[o(G,{data:r(y).lists,onSelectionChange:j},{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 V,q,L;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}}},{default:e(()=>[n("\u67E5\u770B\u6210\u5458")]),_:2},1032,["to"])]),_:2},1024),p((a(),s(u,{type:"primary",link:""},{default:e(()=>[o(D,{to:{path:r(A)("company/add:edit"),query:{id:t.id,read:!0}}},{default:e(()=>[n("\u8BE6\u60C5")]),_:2},1032,["to"])]),_:2},1024)),[[c,["company/edit","company/add"]]]),p((a(),s(u,{type:"primary",link:""},{default:e(()=>[o(D,{to:{path:r(A)("company/add:edit"),query:{id:t.id,edit:!0}}},{default:e(()=>[n("\u7F16\u8F91")]),_:2},1032,["to"])]),_:2},1024)),[[c,["company/edit","company/add"]]]),p((a(),s(u,{type:"danger",link:"",onClick:v=>Q(t.id)},{default:e(()=>[n("\u5220\u9664")]),_:2},1032,["onClick"])),[[c,["company/delete"]]]),t.is_authentication==0?p((a(),s(u,{key:0,type:"primary",link:"",onClick:v=>i.handleAuthentication(t.id)},{default:e(()=>[n("\u4F01\u4E1A\u8BA4\u8BC1")]),_:2},1032,["onClick"])),[[c,["company/authentication"]]]):b("",!0),t.is_authentication&&t.is_contract==0?(a(),_(dt,{key:1},[Array.isArray(t.contract)&&t.contract.length==0?p((a(),s(u,{key:0,type:"primary",link:"",onClick:v=>i.showChangeCompany(t)},{default:e(()=>[n("\u751F\u6210\u5408\u540C")]),_:2},1032,["onClick"])),[[c,["company/initiate_contract"]]]):((V=t.contract)==null?void 0:V.check_status)==1?p((a(),s(u,{key:1,type:"warning",link:"",onClick:i.auditing},{default:e(()=>[n("\u5BA1\u6838\u4E2D")]),_:1},8,["onClick"])),[[c,["company/initiate_contract"]]]):((q=t.contract)==null?void 0:q.check_status)==2?p((a(),s(u,{key:2,type:"primary",link:"",onClick:v=>S(t)},{default:e(()=>[n("\u53D1\u9001\u5408\u540C")]),_:2},1032,["onClick"])),[[c,["company/Draftingcontracts"]]]):((L=t.contract)==null?void 0:L.check_status)==3?p((a(),s(u,{key:3,type:"primary",link:"",onClick:v=>(m.value=!0,F.value=t.id)},{default:e(()=>[n("\u53D1\u9001\u77ED\u4FE1")]),_:2},1032,["onClick"])),[[c,["company/postsms"]]]):b("",!0)],64)):b("",!0)])]}),_:1})]),_:1},8,["data"])]),C("div",Et,[o(I,{modelValue:r(y),"onUpdate:modelValue":d[0]||(d[0]=t=>$(y)?y.value=t:null),onChange:r(g)},null,8,["modelValue","onChange"])])]),_:1})),[[H,r(y).loading]]),o(W,{modelValue:r(m),"onUpdate:modelValue":d[1]||(d[1]=t=>$(m)?m.value=t:null),onClose:k},{default:e(()=>[ht,r(h)?(a(),_("div",kt," \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",Ft," \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",vt,[r(h)?(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:z},{default:e(()=>[n("\u786E\u8BA4")]),_:1})),o(u,{type:"info",size:"large",onClick:k},{default:e(()=>[n("\u8FD4\u56DE")]),_:1})])]),_:1},8,["modelValue"])])}}});export{Ce as default};
|