(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17df9043"],{"0b65":function(t,e,n){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,n=new Date;n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[n,e])}},{text:"昨天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[n,e])}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[n,e])}},{text:"本年",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[n,e])}}]}},"57cd":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"selCard"},[n("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small","label-width":"90px",inline:""}},[n("el-form-item",{attrs:{label:"时间选择:"}},[n("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions,clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"订单号:",prop:"order_sn"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.order_sn,callback:function(e){t.$set(t.tableFrom,"order_sn",e)},expression:"tableFrom.order_sn"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"发货点名称:",prop:"station_id"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.station_id,callback:function(e){t.$set(t.tableFrom,"station_id",e)},expression:"tableFrom.station_id"}},t._l(t.storeList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"订单状态:",prop:"status"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},t._l(t.statusList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"配送单号:",prop:"keyword"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入配送单号",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),n("el-card",{staticClass:"mt14"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small"}},[n("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"station.station_name",label:"发货点名称","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"order_sn",label:"配送订单号","min-width":"80"}}),t._v(" "),n("el-table-column",{attrs:{prop:"storeOrder.order_sn",label:"订单号","min-width":"60"}}),t._v(" "),n("el-table-column",{attrs:{label:"配送起点","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.station&&e.row.station.station_address))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"配送终点","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(" "+t._s(e.row.to_address))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"状态","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(" "+t._s(t._f("runErrandStatus")(e.row.status)))]),t._v(" "),-1==e.row.status&&e.row.reason?n("span",{staticStyle:{display:"block","font-size":"12px",color:"red"}},[t._v("原因: "+t._s(e.row.reason))]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"distance",label:"配送距离","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"fee",label:"配送费用","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"消费时间","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"mark",label:"备注","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1!=e.row.status?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.toCancle(e.row.delivery_order_id)}}},[t._v("取消")]):t._e()]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},o=[],a=n("f8b7"),i=n("0b65"),u={components:{},data:function(){return{pickerOptions:i["a"],tableData:{data:[],total:0},listLoading:!0,loading:!0,tableFrom:{keyword:"",order_sn:"",date:"",station_id:"",page:1,limit:20},timeVal:[],storeList:[],statusList:[{label:"已取消",value:"-1"},{label:"待接单",value:"0"},{label:"待取货",value:"2"},{label:"配送中",value:"3"},{label:"已完成",value:"4"},{label:"物品返回中",value:"9"},{label:"物品返回完成",value:"10"},{label:"骑士到店",value:"100"}]}},mounted:function(){this.getList(1),this.getStoreList()},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},getStoreList:function(){var t=this;Object(a["w"])(this.tableFrom).then((function(e){t.storeList=e.data})).catch((function(e){t.$message.error(e.message)}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(a["g"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},toCancle:function(t){var e=this;this.$modalForm(Object(a["f"])(t)).then((function(){return e.getList("")}))},onDetails:function(t){}}},l=u,c=n("2877"),s=Object(c["a"])(l,r,o,!1,null,"9af59dd2",null);e["default"]=s.exports},f8b7:function(t,e,n){"use strict";n.d(e,"I",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return i})),n.d(e,"M",(function(){return u})),n.d(e,"F",(function(){return l})),n.d(e,"G",(function(){return c})),n.d(e,"q",(function(){return s})),n.d(e,"J",(function(){return d})),n.d(e,"L",(function(){return f})),n.d(e,"E",(function(){return m})),n.d(e,"K",(function(){return p})),n.d(e,"T",(function(){return g})),n.d(e,"R",(function(){return b})),n.d(e,"W",(function(){return v})),n.d(e,"V",(function(){return h})),n.d(e,"U",(function(){return _})),n.d(e,"Q",(function(){return w})),n.d(e,"e",(function(){return k})),n.d(e,"t",(function(){return y})),n.d(e,"S",(function(){return D})),n.d(e,"n",(function(){return F})),n.d(e,"m",(function(){return x})),n.d(e,"l",(function(){return L})),n.d(e,"k",(function(){return C})),n.d(e,"D",(function(){return T})),n.d(e,"x",(function(){return $})),n.d(e,"H",(function(){return S})),n.d(e,"Z",(function(){return O})),n.d(e,"ab",(function(){return z})),n.d(e,"Y",(function(){return M})),n.d(e,"B",(function(){return V})),n.d(e,"A",(function(){return j})),n.d(e,"y",(function(){return Y})),n.d(e,"z",(function(){return E})),n.d(e,"C",(function(){return W})),n.d(e,"j",(function(){return J})),n.d(e,"h",(function(){return R})),n.d(e,"i",(function(){return B})),n.d(e,"P",(function(){return N})),n.d(e,"p",(function(){return q})),n.d(e,"o",(function(){return A})),n.d(e,"a",(function(){return G})),n.d(e,"s",(function(){return H})),n.d(e,"w",(function(){return I})),n.d(e,"r",(function(){return K})),n.d(e,"g",(function(){return P})),n.d(e,"f",(function(){return Q})),n.d(e,"O",(function(){return U})),n.d(e,"N",(function(){return X})),n.d(e,"v",(function(){return Z})),n.d(e,"u",(function(){return tt})),n.d(e,"X",(function(){return et})),n.d(e,"d",(function(){return nt}));var r=n("0c6d");function o(t){return r["a"].get("store/order/lst",t)}function a(){return r["a"].get("store/order/chart")}function i(t){return r["a"].get("store/order/title",t)}function u(t,e){return r["a"].post("store/order/update/".concat(t),e)}function l(t,e){return r["a"].post("store/order/delivery/".concat(t),e)}function c(t){return r["a"].get("store/order/detail/".concat(t))}function s(t){return r["a"].get("store/order/children/".concat(t))}function d(t,e){return r["a"].get("store/order/log/".concat(t),e)}function f(t){return r["a"].get("store/order/remark/".concat(t,"/form"))}function m(t){return r["a"].post("store/order/delete/".concat(t))}function p(t){return r["a"].get("store/order/printer/".concat(t))}function g(t){return r["a"].get("store/refundorder/lst",t)}function b(t){return r["a"].get("store/refundorder/detail/".concat(t))}function v(t){return r["a"].get("store/refundorder/status/".concat(t,"/form"))}function h(t){return r["a"].get("store/refundorder/mark/".concat(t,"/form"))}function _(t){return r["a"].get("store/refundorder/log/".concat(t))}function w(t){return r["a"].get("store/refundorder/delete/".concat(t))}function k(t){return r["a"].post("store/refundorder/refund/".concat(t))}function y(t){return r["a"].get("store/order/express/".concat(t))}function D(t){return r["a"].get("store/refundorder/express/".concat(t))}function F(t){return r["a"].get("store/order/excel",t)}function x(t){return r["a"].get("store/order/delivery_export",t)}function L(t){return r["a"].get("excel/lst",t)}function C(t){return r["a"].get("excel/download/".concat(t))}function T(t){return r["a"].get("store/order/verify/".concat(t))}function $(t,e){return r["a"].post("store/order/verify/".concat(t),e)}function S(){return r["a"].get("store/order/filtter")}function O(){return r["a"].get("store/order/takechart")}function z(t){return r["a"].get("store/order/takelst",t)}function M(t){return r["a"].get("store/order/take_title",t)}function V(t){return r["a"].get("store/receipt/lst",t)}function j(t){return r["a"].get("store/receipt/set_recipt",t)}function Y(t){return r["a"].post("store/receipt/save_recipt",t)}function E(t){return r["a"].get("store/receipt/detail/".concat(t))}function W(t,e){return r["a"].post("store/receipt/update/".concat(t),e)}function J(t){return r["a"].get("store/import/lst",t)}function R(t,e){return r["a"].get("store/import/detail/".concat(t),e)}function B(t,e){return r["a"].get("store/import/excel/".concat(t),e)}function N(t){return r["a"].get("store/refundorder/excel",t)}function q(){return r["a"].get("expr/options")}function A(t){return r["a"].get("expr/temps",t)}function G(t){return r["a"].post("store/order/delivery_batch",t)}function H(){return r["a"].get("serve/config")}function I(){return r["a"].get("delivery/station/select")}function K(){return r["a"].get("delivery/station/options")}function P(t){return r["a"].get("delivery/order/lst",t)}function Q(t){return r["a"].get("delivery/order/cancel/".concat(t,"/form"))}function U(t){return r["a"].get("delivery/station/payLst",t)}function X(t){return r["a"].get("delivery/station/code",t)}function Z(t){return r["a"].get("store/refundorder/check/".concat(t))}function tt(){return r["a"].get("store/refundorder/refund_message")}function et(t){return r["a"].post("store/refundorder/create",t)}function nt(t){return r["a"].post("store/refundorder/compute",t)}}}]);