You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
5.4 KiB
1 lines
5.4 KiB
import{d as U,v as G,l as H,r as c,h as p,c as _,e,w as o,a as v,t as d,u as t,i as g,k as a,J,m as K,F as S,W as C,B as D,M as O,E as Q,G as q,H as A,K as X,O as Y,P as Z,Q as tt,L as et}from"./index-f5d841af.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{u as h}from"./dict-f88a0e26.js";import{d as at,f as it,b as ot,g as st}from"./six_speed-b22ab8bd.js";import{_ as lt}from"./six-speed-edit.vue_vue_type_style_index_0_lang-ddddfc7b.js";import{_ as nt}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css *//* empty css *//* empty css */const rt={class:"main-container"},ct={class:"flex justify-between items-center"},dt={class:"text-lg"},pt={class:"mt-[10px]"},ut={key:0},mt={key:0},_t={class:"mt-[16px] flex justify-end"},ft=U({__name:"six_speed",setup(wt){const k=G().meta.title;let i=H({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{}});const b=c();c([]);const E=c([]);(async()=>{E.value=await(await h("customer_purchasing_power")).data.dictionary})();const F=c([]);(async()=>{F.value=await(await h("cognitive_concept")).data.dictionary})();const y=c([]);(async()=>{y.value=await(await h("preliminarycustomerintention")).data.dictionary})();const x=c([]);(async()=>{x.value=await(await h("global_true_or_false")).data.dictionary})();const u=(r=1)=>{i.loading=!0,i.page=r,at({page:i.page,limit:i.limit,...i.searchParam}).then(s=>{i.loading=!1,i.data=s.data.data,i.total=s.data.total}).catch(()=>{i.loading=!1})};u();const f=c(null),T=()=>{f.value.setFormData(),f.value.showDialog=!0},B=r=>{f.value.setFormData(r),f.value.showDialog=!0},I=r=>{O.confirm(a("sixSpeedDeleteTips"),a("warning"),{confirmButtonText:a("confirm"),cancelButtonText:a("cancel"),type:"warning"}).then(()=>{it(r).then(()=>{u()}).catch(()=>{})})},V=c([]);(async()=>{V.value=await(await ot({})).data})();const z=c([]);(async()=>{z.value=await(await st({})).data})();const P=r=>{r&&(r.resetFields(),u())};return(r,s)=>{const w=Q,R=q,$=A,L=X,n=Y,N=Z,j=tt,W=et;return p(),_("div",rt,[e(L,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[v("div",ct,[v("span",dt,d(t(k)),1),e(w,{type:"primary",onClick:T},{default:o(()=>[g(d(t(a)("addSixSpeed")),1)]),_:1})]),e(L,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:o(()=>[e($,{inline:!0,model:t(i).searchParam,ref_key:"searchFormRef",ref:b},{default:o(()=>[e(R,null,{default:o(()=>[e(w,{type:"primary",onClick:s[0]||(s[0]=l=>u())},{default:o(()=>[g(d(t(a)("search")),1)]),_:1}),e(w,{onClick:s[1]||(s[1]=l=>P(b.value))},{default:o(()=>[g(d(t(a)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),v("div",pt,[J((p(),K(N,{data:t(i).data,size:"large"},{empty:o(()=>[v("span",null,d(t(i).loading?"":t(a)("emptyData")),1)]),default:o(()=>[e(n,{prop:"preferred_class_time",label:t(a)("preferredClassTime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(n,{prop:"distance",label:t(a)("distance"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(n,{prop:"communication",label:t(a)("communication"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(n,{prop:"promised_visit_time",label:t(a)("promisedVisitTime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(n,{prop:"actual_visit_time",label:t(a)("actualVisitTime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(n,{label:t(a)("callIntent"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:o(({row:l})=>[(p(!0),_(S,null,C(y.value,(m,M)=>(p(),_("div",null,[m.value==l.call_intent?(p(),_("div",ut,d(m.name),1)):D("",!0)]))),256))]),_:1},8,["label"]),e(n,{prop:"first_visit_status",label:t(a)("firstVisitStatus"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(n,{prop:"second_visit_status",label:t(a)("secondVisitStatus"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),e(n,{label:t(a)("isClosed"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:o(({row:l})=>[(p(!0),_(S,null,C(x.value,(m,M)=>(p(),_("div",null,[m.value==l.is_closed?(p(),_("div",mt,d(m.name),1)):D("",!0)]))),256))]),_:1},8,["label"]),e(n,{label:t(a)("operation"),fixed:"right","min-width":"120"},{default:o(({row:l})=>[e(w,{type:"primary",link:"",onClick:m=>B(l)},{default:o(()=>[g(d(t(a)("edit")),1)]),_:2},1032,["onClick"]),e(w,{type:"primary",link:"",onClick:m=>I(l.id)},{default:o(()=>[g(d(t(a)("delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[W,t(i).loading]]),v("div",_t,[e(j,{"current-page":t(i).page,"onUpdate:current-page":s[2]||(s[2]=l=>t(i).page=l),"page-size":t(i).limit,"onUpdate:page-size":s[3]||(s[3]=l=>t(i).limit=l),layout:"total, sizes, prev, pager, next, jumper",total:t(i).total,onSizeChange:s[4]||(s[4]=l=>u()),onCurrentChange:u},null,8,["current-page","page-size","total"])])]),e(lt,{ref_key:"editSixSpeedDialog",ref:f,onComplete:u},null,512)]),_:1})])}}});const Qt=nt(ft,[["__scopeId","data-v-23fdc672"]]);export{Qt as default};
|
|
|