PageSourceSearch

https://www.caodui.com.cn/assets/MessageProcessList-87863e32.js

js caodui.com.cn collected 2026-10-02 01:20:25 UTC 10,663 bytes, 1 lines download raw bytes

1import{v as R,y as $,x as H,w as V,z as j,B,F as g,G as h,H as t,K as n,I as a,N as p,M as P,T as O,Z as G,O as K,W as f,Y as C}from"./head-ed4e7f32.js";import{g as W}from"./customer-1eea4db2.js";import{_ as Z}from"./WorkWxUserSelect.vue_vue_type_script_setup_true_lang-3106e6df.js";import{_ as q}from"./ModernPagination.vue_vue_type_script_setup_true_lang-83bd02cb.js";import{S as J}from"./search-5eabff58.js";import{F as Q}from"./funnel-fea3cd59.js";import{E as X}from"./eye-5ebc4f66.js";import"./index-deb9af84.js";import{I as ee}from"./Search-c0db9eeb.js";import{R as te}from"./dayjs-5813eca6.js";import{_ as se}from"./index-c7e3f455.js";import{_ as ae}from"./_plugin-vue_export-helper-c27b6911.js";import"./base-dd5e669f.js";import"./workWx-7daa0dbb.js";import"./index-16d6a390.js";import"./Trigger-436a39b1.js";import"./raf-9455150d.js";import"./motion-0e19555b.js";import"./vnode-b4a7ecfc.js";import"./isVisible-497559b3.js";import"./ResizeObserver.es-0f9f8adb.js";import"./_getTag-5472e518.js";import"./PortalWrapper-64a691b5.js";import"./KeyCode-5c67594e.js";import"./BaseInput-f36a8225.js";import"./css-19f43f0c.js";import"./pickAttrs-d30041ce.js";import"./Overflow-cd5fecc1.js";import"./index-d57df0c3.js";import"./List-8e980e6f.js";import"./isMobile-2f3de9bc.js";import"./initDefaultProps-bad985c9.js";import"./useMemo-a61f18f2.js";import"./omit-f99afd42.js";import"./useMergedState-b6cbf188.js";import"./useState-9ad6061e.js";import"./CheckOutlined-95cc321d.js";import"./FormItemContext-50ec7d32.js";import"./createContext-8aef1226.js";import"./statusUtils-dec60532.js";import"./Compact-81efd9dd.js";import"./move-d21f6311.js";import"./slide-2612db50.js";import"./compact-item-74413d7a.js";import"./cn-a580ed97.js";import"./chevron-left-e218a396.js";import"./createLucideIcon-1b00ea2d.js";import"./chevron-right-dc1333b6.js";import"./index-9092474a.js";import"./TextArea-d86400fd.js";import"./inputProps-e8fc663f.js";import"./EyeOutlined-0403c12d.js";import"./index-4e0d1533.js";import"./index-59b924b0.js";import"./devWarning-8733ffd3.js";import"./warning-9d898064.js";import"./index-842a8d7c.js";import"./dayjs.min-b049f6a1.js";import"./_commonjsHelpers-de833af9.js";import"./index-fe1b7847.js";import"./colors-e32a53a9.js";import"./shallowequal-454e21cf.js";import"./roundedArrow-e2771650.js";import"./styleChecker-fd83be20.js";import"./eagerComputed-41aba5e2.js";import"./class-b450cc59.js";import"./index-2fc78be4.js";import"./index-120a9cf5.js";import"./useBreakpoint-2d03a0a5.js";import"./responsiveObserve-2b249a83.js";import"./firstNotUndefined-29a740f3.js";import"./index-eeb640ca.js";import"./collapseMotion-2459bbcb.js";import"./index-80038f12.js";import"./debounce-e7ae1811.js";import"./toNumber-edb70f39.js";import"./isSymbol-8f1301cf.js";import"./index-e9bd8168.js";import"./Checkbox-916ab828.js";import"./index-05cdfc0c.js";import"./Dropdown-b26d7ff5.js";import"./index-0fe17723.js";import"./_arrayIncludesWith-a747419b.js";import"./index-75858bf8.js";import"./zoom-d029c3fc.js";import"./index-152073e9.js";const oe={class:"h-full flex flex-col space-y-4 animate-in fade-in slide-in-from-bottom-2 duration-300 p-6"},re={class:"px-6 pb-2 mb-2"},le={class:"flex flex-col gap-6"},ie={class:"flex flex-col md:flex-row md:items-center justify-between gap-4"},ne={class:"flex items-center gap-3"},de={class:"text-xl font-bold text-slate-900 tracking-tight"},me={class:"px-2 py-0.5 bg-slate-100 text-slate-500 text-xs font-semibold rounded-full"},pe={class:"flex items-center gap-3"},ce={class:"relative group"},ue={class:"grid grid-cols-1 md:grid-cols-4 gap-6 p-5 bg-slate-50/50 rounded-xl animate-in slide-in-from-top-2 duration-200"},ge={class:"space-y-1.5"},he={class:"text-[11px] font-bold text-slate-400 uppercase tracking-wider ml-1"},fe={class:"space-y-1.5"},ve={class:"text-[11px] font-bold text-slate-400 uppercase tracking-wider ml-1"},_e={class:"md:col-span-4 flex items-center justify-end gap-3 pt-2 border-t border-slate-100 mt-2"},xe={class:"flex-1 bg-white rounded-2xl border border-gray-100 shadow-xl shadow-gray-100/50 overflow-hidden flex flex-col relative mt-2"},be={class:"flex-1 overflow-auto custom-scrollbar relative"},ye={key:0,class:"text-slate-700"},Se={key:1,class:"inline-flex items-center"},we={key:2,class:"flex justify-center"},Pe=["title","onClick"],Ie={key:3,class:"text-xs text-slate-500"},ke={key:4,class:"text-sm text-slate-700"},Ue=R({__name:"MessageProcessList",setup(Te){const{t:e}=$(),z=H(),I=V(),y=z.path.includes("/pre-sale/"),k=f([]),S=f(!1),M=y?1:2,v=f(!1),d=f(null),m=f({internalUserId:void 0,customerName:"",salesType:y?1:2}),i=f({current:1,pageSize:10,total:0}),D=j(()=>[{title:e("dashboard.preSale.messageProcessList.colId"),dataIndex:"id",width:80},{title:e("dashboard.preSale.messageProcessList.colCustomerType"),dataIndex:"customerType",key:"customerType",width:120},{title:e("dashboard.preSale.messageProcessList.colExternalName"),dataIndex:"externalName"},{title:e("dashboard.preSale.messageProcessList.colInternalUser"),dataIndex:"internalUserName"},{title:e("dashboard.preSale.messageProcessList.colStatus"),dataIndex:"status",key:"status",width:100},{title:e("dashboard.preSale.messageProcessList.colFinishTime"),dataIndex:"finishTime",width:180},{title:e("dashboard.preSale.messageProcessList.colCreatedAt"),dataIndex:"createdAt",width:180},{title:e("dashboard.preSale.messageProcessList.colUpdatedAt"),dataIndex:"updatedAt",width:180},{title:e("dashboard.preSale.messageProcessList.colAction"),key:"action",fixed:"right",width:80,align:"center"}]),_=async()=>{var u;S.value=!0;try{const o={page:i.value.current-1,size:i.value.pageSize,internalUserId:m.value.internalUserId||void 0,customerName:m.value.customerName||void 0,salesType:m.value.salesType};d.value&&d.value[0]&&(o.createdAtStart=d.value[0].startOf("day").format("YYYY-MM-DD HH:mm:ss")),d.value&&d.value[1]&&(o.createdAtEnd=d.value[1].endOf("day").format("YYYY-MM-DD HH:mm:ss"));const c=await W(o);
1c.data&&c.data.code===0?(k.value=(c.data.content||[]).map(l=>{var x,s,b,r,w,T,L,N,A;return{id:(x=l.messageProcess)==null?void 0:x.id,customerType:(s=l.messageProcess)==null?void 0:s.customerType,externalId:(b=l.messageProcess)==null?void 0:b.externalId,internalUserId:(r=l.messageProcess)==null?void 0:r.internalUserId,finishTime:(w=l.messageProcess)==null?void 0:w.finishTime,status:(T=l.messageProcess)==null?void 0:T.status,salesType:(L=l.messageProcess)==null?void 0:L.salesType,createdAt:(N=l.messageProcess)==null?void 0:N.createdAt,updatedAt:(A=l.messageProcess)==null?void 0:A.updatedAt,externalName:l.externalName||"-",internalUserName:l.internalUserName||"-"}}),i.value.total=c.data.totalElements||0):C.error(((u=c.data)==null?void 0:u.message)||e("dashboard.preSale.messageProcessList.fetchFailMsg"))}catch{C.error(e("dashboard.preSale.messageProcessList.fetchFail"))}finally{S.value=!1}},F=()=>{m.value.internalUserId=void 0,m.value.customerName="",d.value=null,i.value.current=1,_()},U=()=>{i.value.current=1,_()},Y=()=>{_()},E=u=>{y?I.push(`/dashboard/pre-sale/message-process-list/detail/${u.id}`):I.push(`/dashboard/after-sale/message-process-list/detail/${u.id}`)};return B(()=>{_()}),(u,o)=>{const c=ee,l=te,x=se;return g(),h("div",oe,[t("div",re,[t("div",le,[t("div",ie,[t("div",ne,[t("h1",de,n(a(e)("dashboard.preSale.messageProcessList.title")),1),t("span",me,n(i.value.total),1)]),t("div",pe,[t("div",ce,[p(a(J),{class:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:text-emerald-500 transition-colors z-10",size:16}),p(c,{value:m.value.customerName,"onUpdate:value":o[0]||(o[0]=s=>m.value.customerName=s),placeholder:a(e)("dashboard.preSale.common.customerName"),class:"modern-input !w-64 pl-10","allow-clear":"",onPressEnter:U},null,8,["value","placeholder"])]),t("button",{onClick:o[1]||(o[1]=s=>v.value=!v.value),class:P(["flex items-center gap-2 px-3 py-2 border rounded-lg text-sm font-medium transition-colors",v.value?"bg-emerald-50 border-emerald-200 text-emerald-600":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"])},[p(a(Q),{class:"w-4 h-4"}),t("span",null,n(a(e)("dashboard.preSale.common.filter")),1)],2)])]),O(t("div",ue,[t("div",ge,[t("label",he,n(a(e)("dashboard.preSale.common.internalUser")),1),p(Z,{modelValue:m.value.internalUserId,"onUpdate:modelValue":o[2]||(o[2]=s=>m.value.internalUserId=s),placeholder:a(e)("dashboard.preSale.common.phInternalUser"),class:"w-full modern-select","customer-service-type":a(M)},null,8,["modelValue","placeholder","customer-service-type"])]),t("div",fe,[t("label",ve,n(a(e)("dashboard.preSale.common.createdAtRange")),1),p(l,{value:d.value,"onUpdate:value":o[3]||(o[3]=s=>d.value=s),class:"modern-range-picker w-full","allow-clear":!0},null,8,["value"])]),t("div",_e,[t("button",{onClick:U,class:"px-8 py-1.5 bg-emerald-500 text-white rounded-lg text-sm font-medium hover:bg-emerald-600 transition-colors shadow-sm"},n(a(e)("dashboard.preSale.common.apply")),1),t("button",{onClick:F,class:"px-4 py-1.5 text-slate-400 hover:text-slate-600 text-sm font-medium transition-colors"},n(a(e)("dashboard.preSale.common.reset")),1)])],512),[[G,v.value]])])]),t("div",xe,[t("div",be,[p(x,{dataSource:k.value,columns:D.value,rowKey:"id",pagination:!1,loading:S.value,class:"modern-table"},{bodyCell:K(({column:s,record:b,text:r})=>[s.key==="customerType"?(g(),h("span",ye,n(r===1?a(e)("dashboard.preSale.common.externalCustomer"):r===2?a(e)("dashboard.preSale.common.customerGroup"):"-"),1)):s.key==="status"?(g(),h("div",Se,[t("span",{class:P(["w-1.5 h-1.5 rounded-full mr-2",r===1?"bg-emerald-500":r===2?"bg-red-500":"bg-blue-500 animate-pulse"])},null,2),t("span",{class:P(["text-sm font-medium",r===1?"text-emerald-600":r===2?"text-red-600":"text-blue-600"])},n(r===0?a(e)("dashboard.preSale.common.msgInProgress"):r===1?a(e)("dashboard.preSale.common.msgCompleted"):r===2?a(e)("dashboard.preSale.common.msgFailed"):"-"),3)])):s.key==="action"?(g(),h("div",we,[t("button",{class:"p-1 h-8 w-8 flex items-center justify-center text-slate-400 hover:text-emerald-600 hover:bg-emerald-50 rounded-lg transition-colors",title:a(e)("dashboard.preSale.common.viewDetail"),onClick:w=>E(b)},[p(a(X),{class:"w-4 h-4"})],8,Pe)])):["createdAt","updatedAt","finishTime"].includes(s.dataIndex)?(g(),h("span",Ie,n(r?new Date(r).toLocaleStr
1ing():"-"),1)):(g(),h("span",ke,n(r??"-"),1))]),_:1},8,["dataSource","columns","loading"])]),p(q,{page:i.value.current,"onUpdate:page":o[4]||(o[4]=s=>i.value.current=s),size:i.value.pageSize,"onUpdate:size":o[5]||(o[5]=s=>i.value.pageSize=s),total:i.value.total,onChange:Y},null,8,["page","size","total"])])])}}});const is=ae(Ue,[["__scopeId","data-v-f60a5eda"]]);export{is as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.