import{d as j,b7 as M,b as S,r as _,o as T,p as X,c as r,e as p,f as F,g as n,h as t,i as o,u as a,dG as y,F as D,j as B,k as A,m as f,t as i,a0 as q,C as G,A as O,y as w,_ as $}from"./index.0308b213.js";import{D as H,l as J,d as K}from"./PackageDetail.eba5fe08.js";const Q={class:"filter-form"},W=f("\u4E0D\u9650"),Y=f("\u7B5B\u9009"),Z={class:"data"},ee={class:"table"},te=f("\u8BE6\u60C5"),ae={class:"bottom"},le={class:"pagination"},ue=j({setup(oe){M();const l=S({page:1,page_size:20,tracking_no:"",create_time:[],storage_time:[],report_status:0});_({id:1,storage_id:0,tracking_no:"",express_com_code:"",express_com_name:"",report_remark:"",report_status:6,from:0,storage_time:"",create_time:"",update_time:"",itemList:[],member:{mobile:"",phone_area:""},report_status_text:"",package_weight:""});const E=_([]),V=_(0),v=()=>{J(l).then(d=>{E.value=d.list,V.value=d.total})};let C=_();const z=()=>{K().then(d=>{C.value=d.status_list})};T(()=>{z(),v()}),X(()=>[l.page,l.page_size],()=>{v()});const b=_(!1),c=_(!1),k=_(0),U=d=>{k.value=d,b.value=!0,w(()=>{c.value=!0})},I=()=>{k.value=0,b.value=!1,w(()=>{c.value=!1})};return(d,u)=>{const L=r("el-radio-group"),m=r("el-form-item"),h=r("el-date-picker"),x=r("el-button"),N=r("el-form"),s=r("el-table-column"),R=r("el-table"),P=r("el-pagination");return p(),F(D,null,[n("div",Q,[t(N,{model:a(l),onSubmit:u[4]||(u[4]=G(()=>{},["prevent"]))},{default:o(()=>[t(m,{label:"\u72B6\u6001:"},{default:o(()=>[t(L,{modelValue:a(l).report_status,"onUpdate:modelValue":u[0]||(u[0]=e=>a(l).report_status=e)},{default:o(()=>[t(a(y),{label:0},{default:o(()=>[W]),_:1}),(p(!0),F(D,null,B(a(C),(e,g)=>(p(),A(a(y),{key:g,label:e},{default:o(()=>[f(i(e),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(m,{label:"\u56FD\u5185\u7269\u6D41\u5355\u53F7:"},{default:o(()=>[t(a(q),{modelValue:a(l).tracking_no,"onUpdate:modelValue":u[1]||(u[1]=e=>a(l).tracking_no=e),placeholder:"\u8BF7\u8F93\u5165\u56FD\u5185\u7269\u6D41\u5355\u53F7\uFF0C\u591A\u4E2A\u7528\u82F1\u6587\u9017\u53F7\u9694\u5F00"},null,8,["modelValue"])]),_:1}),t(m,{label:"\u4E0A\u62A5\u65F6\u95F4:"},{default:o(()=>[t(h,{modelValue:a(l).create_time,"onUpdate:modelValue":u[2]||(u[2]=e=>a(l).create_time=e),type:"daterange",placeholder:"\u9009\u62E9\u65E5\u671F\u8303\u56F4","value-format":"X"},null,8,["modelValue"])]),_:1}),t(m,{label:"\u5165\u5E93\u65F6\u95F4:"},{default:o(()=>[t(h,{modelValue:a(l).storage_time,"onUpdate:modelValue":u[3]||(u[3]=e=>a(l).storage_time=e),type:"daterange",placeholder:"\u9009\u62E9\u65E5\u671F\u8303\u56F4","value-format":"X"},null,8,["modelValue"])]),_:1}),t(m,null,{default:o(()=>[t(x,{type:"primary",onClick:v},{default:o(()=>[Y]),_:1})]),_:1})]),_:1},8,["model"])]),n("div",Z,[n("div",ee,[t(R,{data:E.value},{default:o(()=>[t(s,{type:"selection",width:"55"}),t(s,{label:"ID",prop:"id",width:"100"}),t(s,{label:"\u7269\u6D41\u5355\u53F7",prop:"tracking_no",width:"200"}),t(s,{label:"\u7528\u6237",width:"200"},{default:o(({row:e})=>[n("div",null,"\u624B\u673A\u53F7\uFF1A"+i(e.member.phone_area)+i(e.member.mobile),1),n("div",null,"\u4ED3\u5E93ID\uFF1A"+i(e.storage_id),1)]),_:1}),t(s,{label:"\u5FEB\u9012\u516C\u53F8",prop:"express_com_name"}),t(s,{label:"\u72B6\u6001",prop:"report_status_text"}),t(s,{label:"\u5907\u6CE8",prop:"report_remark"}),t(s,{label:"\u7269\u54C1\u7C7B\u76EE",prop:"report_item"},{default:o(({row:e})=>[(p(!0),F(D,null,B(e.itemList,(g,se)=>(p(),F("div",null,i(g.item.item_name),1))),256))]),_:1}),t(s,{label:"\u65F6\u95F4"},{default:o(({row:e})=>[n("div",null,"\u4E0A\u62A5\u65F6\u95F4: "+i(e.create_time),1),n("div",null,"\u66F4\u65B0\u65F6\u95F4: "+i(e.update_time),1),n("div",null,"\u5165\u5E93\u65F6\u95F4\uFF1A"+i(e.storage_time),1)]),_:1}),t(s,{label:"\u64CD\u4F5C",width:"180"},{default:o(({row:e})=>[t(x,{type:"text",onClick:g=>U(e.id)},{default:o(()=>[te]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])]),n("div",ae,[n("div",le,[t(P,{currentPage:a(l).page,"onUpdate:currentPage":u[5]||(u[5]=e=>a(l).page=e),"page-size":a(l).limit,"onUpdate:page-size":u[6]||(u[6]=e=>a(l).limit=e),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:V.value},null,8,["currentPage","page-size","total"])])]),b.value?(p(),A(H,{key:0,modelValue:c.value,"onUpdate:modelValue":u[7]||(u[7]=e=>c.value=e),id:k.value,onOnClose:I},null,8,["modelValue","id"])):O("",!0)],64)}}});const ie=$(ue,[["__scopeId","data-v-6585dcfe"]]);export{ie as default};
