import{u as h}from"./setting.644fa418.js";import{d as y,b as _,r as L,c as a,e as c,f as r,g as F,h as u,i as o,u as n,F as m,j as f,k as E,m as B,t as k,E as N,_ as T}from"./index.0308b213.js";const w={class:"filter-form"},Y=B("\u67E5\u8BE2"),M={class:"data"},O=y({setup(U){const t=_({LogisticCode:"",ShipperCode:"",CustomerName:""}),s=_({traces:[],index:0}),C=L([{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"}]),D=()=>{if(t.ShipperCode=="SF"&&!t.CustomerName)return N.error("\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u540E\u56DB\u4F4D");h(t).then(i=>{s.traces=i.data||[],s.index=s.traces.length||0}).catch(()=>{})};return(i,l)=>{const g=a("el-option"),A=a("el-select"),d=a("el-form-item"),p=a("el-input"),v=a("el-button"),b=a("el-form"),x=a("el-step"),S=a("el-steps");return c(),r(m,null,[F("div",w,[u(b,{"label-width":"80px"},{default:o(()=>[u(d,{class:"tn-el-form-item",label:"\u7269\u6D41\u540D\u79F0"},{default:o(()=>[u(A,{modelValue:n(t).ShipperCode,"onUpdate:modelValue":l[0]||(l[0]=e=>n(t).ShipperCode=e),filterable:"",clearable:""},{default:o(()=>[(c(!0),r(m,null,f(C.value,e=>(c(),E(g,{key:i.index,value:e.code,label:e.name},{default:o(()=>[B(k(e.name),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),u(d,{class:"tn-el-form-item",label:"\u7269\u6D41\u5355\u53F7"},{default:o(()=>[u(p,{modelValue:n(t).LogisticCode,"onUpdate:modelValue":l[1]||(l[1]=e=>n(t).LogisticCode=e),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}),u(d,{class:"tn-el-form-item",label:"\u624B\u673A\u5C3E\u53F7"},{default:o(()=>[u(p,{modelValue:n(t).CustomerName,"onUpdate:modelValue":l[2]||(l[2]=e=>n(t).CustomerName=e),type:"number",max:9999,style:{width:"500px"},placeholder:"\u5F53\u7269\u6D41\u4E3ASF\u65F6\uFF0C\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u540E\u56DB\u4F4D"},null,8,["modelValue"])]),_:1}),u(d,{width:"100"},{default:o(()=>[u(v,{type:"primary",onClick:l[3]||(l[3]=e=>D())},{default:o(()=>[Y]),_:1})]),_:1})]),_:1})]),F("div",M,[u(S,{direction:"vertical",active:n(s).index},{default:o(()=>[(c(!0),r(m,null,f(n(s).traces,(e,V)=>(c(),E(x,{key:V,title:e.AcceptStation,description:e.AcceptTime},null,8,["title","description"]))),128))]),_:1},8,["active"])])],64)}}});const j=T(O,[["__scopeId","data-v-f8252a78"]]);export{j as default};
