(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0bd57b"],{"2c1e":function(e,a,t){"use strict";t.r(a);var n=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"app-container"},[t("el-input",{staticStyle:{width:"250px"},attrs:{type:"text",placeholder:"所属人昵称 / 手机号"},model:{value:e.params.search_name,callback:function(a){e.$set(e.params,"search_name",a)},expression:"params.search_name"}}),e._v(" "),t("el-input",{staticStyle:{width:"400px"},attrs:{type:"text",placeholder:"防伪码",readonly:!0},model:{value:e.params.code,callback:function(a){e.$set(e.params,"code",a)},expression:"params.code"}},[t("template",{slot:"append"},[t("el-upload",{staticStyle:{display:"inline-block"},attrs:{action:"","show-file-list":!1,"http-request":e.uploadQrocdeDecode,accept:".jpeg, .jpg, .png"}},[t("span",{staticStyle:{cursor:"pointer"}},[e._v("上传图片")])])],1)],2),e._v(" "),t("el-select",{attrs:{placeholder:"请选择仓库"},model:{value:e.params.op_phone,callback:function(a){e.$set(e.params,"op_phone",a)},expression:"params.op_phone"}},e._l(e.opNames,(function(e){return t("el-option",{key:e.phone,attrs:{label:e.name,value:e.phone}})})),1),e._v(" "),t("el-select",{attrs:{placeholder:"请选择商品类型"},model:{value:e.params.good_select_id,callback:function(a){e.$set(e.params,"good_select_id",a)},expression:"params.good_select_id"}},e._l(e.goodSelects,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),t("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd hh:mm:ss"},model:{value:e.params.time,callback:function(a){e.$set(e.params,"time",a)},expression:"params.time"}}),e._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:e.toSearch}},[e._v("搜索")]),e._v(" "),t("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.list,"header-cell-style":{background:"#f8fbfc"},border:"",stripe:""}},[t("el-table-column",{attrs:{type:"index",label:"序号",width:"50",index:function(a){return(e.params.page_index-1)*e.params.page_size+a+1},align:"center"}}),e._v(" "),t("el-table-column",{attrs:{label:"发货仓库",align:"center",prop:"op_name"}}),e._v(" "),t("el-table-column",{attrs:{prop:"accept_name",label:"所属人昵称",align:"center"}}),e._v(" "),t("el-table-column",{attrs:{prop:"accept_phone",label:"所属人手机号",align:"center"}}),e._v(" "),t("el-table-column",{attrs:{label:"商品名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){var t=a.row.code;return[e._v("\n        "+e._s(t.get_goods.good_name)+"\n      ")]}}])}),e._v(" "),t("el-table-column",{attrs:{label:"防伪码类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){var t=a.row.code;return[e._v("\n        "+e._s(t.model)+"\n      ")]}}])}),e._v(" "),t("el-table-column",{attrs:{label:"发货时间",align:"center",prop:"created_at"}})],1),e._v(" "),t("pagination",{attrs:{total:e.total,limit:e.params.page_size,page:e.params.page_index},on:{pagination:e.changeTracePagination,"update:limit":e.changeTracePagination}})],1)},l=[],o=(t("28a5"),t("ba16"),t("5c8e")),s=t("b775");function r(e){return Object(s["a"])({url:"/index/GetSendGoodLog",method:"get",params:e})}var i={data:function(){return{opNames:[{phone:"15220141101",name:"公司仓库"},{phone:"17333738670",name:"吴桥体验店"},{phone:"13581056035",name:"临沭体验店"}],goodSelects:[{id:1,name:"精装版"},{id:2,name:"简约版"},{id:3,name:"老人版"},{id:4,name:"纯棉版"}],params:{page_index:1,page_size:20,search_name:"",op_phone:"",code:"",start_time:"",end_time:"",good_select_id:"",time:""},list:[],total:0}},mounted:function(){this.getSendList()},methods:{toSearch:function(){this.params.page_index=1,this.getSendList()},changeTracePagination:function(e){var a=e.page,t=e.limit;this.params.page_index=a,this.params.page_size=t,this.getSendList()},getSendList:function(){var e=this,a=this.params.time,t=Object.assign({},this.params);Reflect.deleteProperty(t,"time"),t.start_time=a?a[0]:"",t.end_time=a?a[1]:"";var n=this.$loading();r(t).then((function(a){n.close(),200===a.code?(e.list=a.data.list,e.total=a.data.total):e.$message.error(a.message||"获取发货日志失败")})).catch((function(a){n.close(),e.$message.error("获取发货日志失败")}))},uploadQrocdeDecode:function(e){var a=this,t=e.file,n=window.URL.createObjectURL(t),l=new o["a"];l.decodeFromImage(n).then((function(e){var t=e.data;if(t){var n=t.split("/"),l=n[n.length-1];a.params.code=l}else a.$message.error("该图片未解析出任何内容")}))}}},c=i,p=t("2877"),d=Object(p["a"])(c,n,l,!1,null,"1f3fa49b",null);a["default"]=d.exports}}]);