(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19998848","chunk-5ab7e5aa"],{"03d2":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-row",{attrs:{align:"middle"}},[a("el-col",{attrs:{span:2}},[a("span",{staticStyle:{"font-weight":"bold"}},[e._v(" 单号: ")])]),a("el-col",{attrs:{span:8}},[a("el-input",{attrs:{rows:"10",type:"textarea",resize:"none"},model:{value:e.wayBillNoStr,callback:function(t){e.wayBillNoStr=t},expression:"wayBillNoStr"}})],1),a("el-col",{attrs:{span:14}},[a("div",{staticClass:"el_col_14_div"},[e._v(" 注意：请按照查询方式输入运单号，每个单号之间请用回车键隔开，最多输入10个单号 ")]),a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.queryByWaybillNo}},[e._v("查询")])],1)],1),a("YtoPage",{attrs:{title:"单号查询结果",showIcon:""}}),a("SimpleTable",{attrs:{data:e.tableData,loading:e.tableLoading,"highlight-current-row":"",columns:e.columns,isShowTable:e.tableVisible}})],1)},l=[],n=a("b85c"),o=(a("4d63"),a("ac1f"),a("25f0"),a("1276"),a("a15b"),a("fb6a"),a("72ac")),s=(a("1838"),{data:function(){return{wayBillNoStr:"",tableData:[],tableLoading:!1,tableVisible:!1,columns:[{label:"单号",prop:"waybillNo",minWidth:"11%"},{label:"操作码",prop:"opCode",minWidth:"11%"},{label:"下一网点",prop:"nextOrgCode",minWidth:"11%"},{label:"格口号",prop:"latticeNo",minWidth:"11%"},{label:"三段码",prop:"threeCode",minWidth:"11%"},{label:"消息",prop:"message",minWidth:"15%"}],url:{query:"/Yto_MonitorGateway/scanLattice/queryByWaybillNo"}}},created:function(){},methods:{queryByWaybillNo:function(){var e=this;this.tableData=[];var t=new RegExp;if(t=/^[A-Za-z0-9]+$/,0!==this.wayBillNoStr.length){var a,i=this.wayBillNoStr.split("\n"),l=Object(n["a"])(i);try{for(l.s();!(a=l.n()).done;){var s=a.value;if(""!=s&&!t.test(s))return void this.$message({message:"输入的单号有误:"+s,type:"error"})}}catch(u){l.e(u)}finally{l.f()}var r=i.slice(0,10).join(",");this.$http.post(o["b"]+this.url.query+"?wayBillNos="+r,{emulateJSON:!1}).then((function(e){if("000"==e.body.respCode){this.tableVisible=!0;var t=e.body.data;if(0==t.length)return;var a,i=Object(n["a"])(t);try{for(i.s();!(a=i.n()).done;){var l=a.value;l.opCode=this.opCodeFormatter(l.opCode),this.tableData.push(l)}}catch(u){i.e(u)}finally{i.f()}}else if("100"==e.body.respCode){var o=e.body.respMessage;this.$message({message:o,type:"error"})}})).catch((function(){e.$message({message:"出现错误",type:"error"})}))}else this.tableVisible=!1},opCodeFormatter:function(e){return 131===e?"131:上车操作":171===e?"171:下车操作":111===e?"111:建包操作":310===e?"310:揽收扫描":710===e?"710:派件扫描":334===e?"334:回流扫描":335===e?"335:快件粗分":336===e?"336:分拣扫描":e}}}),r=s,u=(a("0809"),a("2877")),c=Object(u["a"])(r,i,l,!1,null,null,null);t["default"]=c.exports},"0809":function(e,t,a){"use strict";a("aae4")},1838:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.flag,expression:"flag"}],staticClass:"tagsMenu",style:e.style},[e._t("default")],2)},l=[],n=(a("a9e3"),{name:"tagsMenu",props:{visible:{type:Boolean,default:!1},x:{type:Number,default:0},y:{type:Number,default:0}},computed:{flag:{get:function(){return this.visible&&window.addEventListener("mousedown",this.watchContextmenu),this.visible},set:function(e){this.$emit("update:visible",e)}},style:function(){return{left:this.x+"px",top:this.y+"px",display:this.visible?"block":"none "}}},methods:{watchContextmenu:function(e){this.$el.contains(e.target)&&0===e.button||(this.flag=!1),window.removeEventListener("mousedown",this.watchContextmenu)}},mounted:function(){document.querySelector("body").appendChild(this.$el)}}),o=n,s=(a("67f2"),a("2877")),r=Object(s["a"])(o,i,l,!1,null,null,null);t["default"]=r.exports},"67f2":function(e,t,a){"use strict";a("7b3c")},"7b3c":function(e,t,a){},aae4:function(e,t,a){}}]);