import{az as S,aa as v,D as V,d as x,a6 as w,b as F,r as N,c as l,e as m,f,g as T,h as e,i as o,u as s,F as E,j as k,k as Q,m as g,t as O,E as Y,_ as M}from"./index.0308b213.js";const q=n=>S.post("adminapi/setting.web.web_setting/LogisticsQuery",n),P=n=>v.post("agent/setting.web.web_setting/LogisticsQuery",n),U=n=>V.post("merchant/shopping.MallOrder/LogisticsQuery",n),$={class:"filter-form"},J=g("\u67E5\u8BE2"),Z=x({setup(n){const{OpPlatform:d}=w(),u=F({LogisticCode:"",ShipperCode:"",CustomerName:""}),r=F({traces:[]}),B=N([{code:"ZTO",name:"\u4E2D\u901A\u5FEB\u9012"},{code:"YTO",name:"\u5706\u901A\u901F\u9012"},{code:"YD",name:"\u97F5\u8FBE\u901F\u9012"},{code:"STO",name:"\u7533\u901A\u5FEB\u9012"},{code:"SF",name:"\u987A\u4E30\u901F\u8FD0"},{code:"JD",name:"\u4EAC\u4E1C\u5FEB\u9012"},{code:"YZPY",name:"\u90AE\u653F\u5FEB\u9012\u5305\u88F9"},{code:"EMS",name:"EMS"},{code:"JTSD",name:"\u6781\u5154\u901F\u9012"},{code:"DBL",name:"\u5FB7\u90A6\u5FEB\u9012"},{code:"FWX",name:"\u4E30\u7F51\u901F\u8FD0"},{code:"HTKY",name:"\u767E\u4E16\u5FEB\u9012"}]),b=()=>{if(u.ShipperCode=="SF"&&!u.CustomerName)return Y.error("\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u540E\u56DB\u4F4D");d.value=="shangpu"?q(u).then(c=>{r.traces=c.data||[]}).catch(()=>{}):d.value=="agent"?P(u).then(c=>{r.traces=c.data||[]}).catch(()=>{}):U(u).then(c=>{r.traces=c.data||[]}).catch(()=>{})};return(c,a)=>{const C=l("el-option"),D=l("el-select"),i=l("el-form-item"),p=l("el-input"),A=l("el-button"),h=l("el-form"),_=l("el-table-column"),y=l("el-table");return m(),f(E,null,[T("div",$,[e(h,{"label-width":"80px"},{default:o(()=>[e(i,{class:"tn-el-form-item",label:"\u7269\u6D41\u540D\u79F0"},{default:o(()=>[e(D,{modelValue:s(u).ShipperCode,"onUpdate:modelValue":a[0]||(a[0]=t=>s(u).ShipperCode=t),filterable:"",clearable:""},{default:o(()=>[(m(!0),f(E,null,k(B.value,(t,L)=>(m(),Q(C,{key:L,value:t.code,label:t.name},{default:o(()=>[g(O(t.name),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{class:"tn-el-form-item",label:"\u7269\u6D41\u5355\u53F7"},{default:o(()=>[e(p,{modelValue:s(u).LogisticCode,"onUpdate:modelValue":a[1]||(a[1]=t=>s(u).LogisticCode=t),style:{width:"500px"},placeholder:"\u514D\u8D39\u7248\u4EC5\u652F\u6301\u7533\u901A\u5FEB\u9012\u3001\u5706\u901A\u901F\u9012\u3001\u767E\u4E16\u5FEB\u9012 \uFF0C\u6781\u5154\u5FEB\u9012"},null,8,["modelValue"])]),_:1}),e(i,{class:"tn-el-form-item",label:"\u624B\u673A\u5C3E\u53F7"},{default:o(()=>[e(p,{modelValue:s(u).CustomerName,"onUpdate:modelValue":a[2]||(a[2]=t=>s(u).CustomerName=t),type:"number","max-length":9999,style:{width:"500px"},placeholder:"\u5F53\u7269\u6D41\u4E3A\u987A\u4E30\u5FEB\u9012\u65F6\uFF0C\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u540E\u56DB\u4F4D"},null,8,["modelValue"])]),_:1}),e(i,{width:"100"},{default:o(()=>[e(A,{type:"primary",onClick:a[3]||(a[3]=t=>b())},{default:o(()=>[J]),_:1})]),_:1})]),_:1})]),e(y,{data:s(r).traces},{default:o(()=>[e(_,{label:"\u5FEB\u9012\u72B6\u6001",prop:"AcceptStation"}),e(_,{label:"\u65F6\u95F4",prop:"AcceptTime"})]),_:1},8,["data"])],64)}}});const z=M(Z,[["__scopeId","data-v-c120f198"]]);export{z as default};
