data_center/public/admin/assets/dialog_index.82aeac19.js

2 lines
3.7 KiB
JavaScript

import{B as w,C as x,w as A,D,I as L,O as P,P as U,Q as I}from"./element-plus.9c2fdfa8.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as T}from"./usePaging.c22e2b6f.js";import"./index.6e8143ba.js";import{h as q}from"./company.4a587304.js";import{d as f,$ as R,o as d,c as $,U as e,L as t,M as j,u as o,K as z,R as y,a as C,k as K}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"./lodash.47b8af7d.js";import"./axios.96be3cef.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.efc99072.js";import"./color.e83714e9.js";import"./clone.fb54e01d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.b4b577c6.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 M={class:"mt-4"},O={class:"flex mt-4 justify-end"},Q=f({name:"companyLists"}),Le=f({...Q,emits:["customEvent"],setup(G,{emit:B}){const l=R({level_two:"",level_one:"",company_name:"",organization_code:"",city:"",area:"",street:"",company_type:"",master_name:"",master_position:"",master_phone:"",master_email:"",other_contacts:"",area_manager:"",is_contract:"",account:"",password:"",deposit:"",deposit_time:"",qualification:"",status:""}),F=B,E=u=>{F("customEvent",u)},{pager:n,getLists:s,resetParams:b,resetPage:g}=T({fetchFun:q,params:l});return s(),(u,r)=>{const i=w,p=x,c=A,v=D,_=L,a=P,h=U,V=N,k=I;return d(),$("div",null,[e(_,{class:"!border-none",shadow:"never"},{default:t(()=>[e(v,{class:"mb-[-16px]",model:o(l),inline:""},{default:t(()=>[e(p,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:o(l).company_name,"onUpdate:modelValue":r[0]||(r[0]=m=>o(l).company_name=m),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u516C\u53F8\u7C7B\u578B",prop:"company_type"},{default:t(()=>[e(i,{class:"w-[280px]",modelValue:o(l).company_type,"onUpdate:modelValue":r[1]||(r[1]=m=>o(l).company_type=m),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(p,null,{default:t(()=>[e(c,{type:"primary",onClick:o(g)},{default:t(()=>[y("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:o(b)},{default:t(()=>[y("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),j((d(),z(_,{class:"!border-none",shadow:"never"},{default:t(()=>[C("div",M,[e(h,{data:o(n).lists,onCellClick:E},{default:t(()=>[e(a,{label:"\u7B7E\u7EA6\u516C\u53F8",property:"company_name"}),e(a,{label:"\u516C\u53F8\u7C7B\u578B",property:"company_type"}),e(a,{label:"\u533A\u53BF",property:"area"}),e(a,{label:"\u4E61\u9547",property:"street"}),e(a,{label:"\u4E3B\u8054\u7CFB\u4EBA",property:"master_name"}),e(a,{label:"\u8054\u7CFB\u65B9\u5F0F",property:"master_phone"}),e(a,{label:"\u7247\u533A\u7ECF\u7406",property:"area_manager"}),e(a,{label:"\u662F\u5426\u7B7E\u7EA6",property:"is_contract"})]),_:1},8,["data"])]),C("div",O,[e(V,{modelValue:o(n),"onUpdate:modelValue":r[2]||(r[2]=m=>K(n)?n.value=m:null),onChange:o(s)},null,8,["modelValue","onChange"])])]),_:1})),[[k,o(n).loading]])])}}});export{Le as default};