(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b5c4fb1"],{"6b50":function(e,t,a){},d4ec:function(e,t,a){"use strict";a("6b50")},e8ca:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ids-waybill-scan-root"})},o=[],i=a("897d"),s=a.n(i),c=a("4532"),r={name:"iDS-WaybillScan",components:{PullTo:s.a},data:function(){return{}},computed:{height:function(){return"calc(".concat(window.innerHeight,"px - 48px - ").concat(c["a"].vm.getContentBottomHeight()," ")+")"}},methods:{scan:function(){var e=this;window.cordova&&window.cordova.plugins.barcodeScanner&&window.cordova.plugins.barcodeScanner.scan((function(t){if(t&&t.text){var a={quickResponseCodeID:t.text,relationResourceType:"prd_task_detail",action:"get"};c["a"].vm.dispatchQrcode({data:a,authorization:{Authorization:"Bearer "+c["a"].vm.getUserToken()},vm:c["a"].vm}).then((function(){var t=c["a"].vm.getQrcodeInfo(),a=t.relationResourceId;e.$router.push({name:"checkwaybill",params:{taskDetailID:a}})}),(function(){e.$router.push({name:"checkwaybill",params:{taskDetailID:""}})}))}else e.$router.push({name:"checkwaybill",params:{taskDetailID:""}})}),(function(t){e.$router.push({name:"checkwaybill",params:{taskDetailID:""}})}),{prompt:"请将二维码置于框内",resultDisplayDuration:0,showTorchButton:!0})},changeView:function(){c["a"].vm.setTitleList({visible:!1,list:[],change:function(){},curValue:""}),c["a"].vm.setTitle("货单对账"),c["a"].vm.setBackDisabled(!1),c["a"].vm.setBackIcon("arrow_back"),c["a"].vm.setBottomNavVisible(!1),c["a"].vm.setBottomBtnVisible(!1),c["a"].vm.setMsgInputVisible(!1),c["a"].vm.setContentHeight({value:"calc(".concat(window.innerHeight,"px - 48px ")+")"}),c["a"].vm.setMenuItems(this.menuButtons),c["a"].vm.setMenuIcon("menu"),c["a"].vm.setMenuDisabled(!1)}},created:function(){console.log("调试代码"),null!=c["a"].vm.getUserToken()&&null!=c["a"].vm.getUserId()?0!==Object.keys(this.$route.params).length?(this.$route.params.isScan?this.scan():this.$router.push({name:"checkwaybill",params:{taskDetailID:"nocode"}}),this.changeView()):this.$router.push(c["a"].vm.getHomePageRoute()):window.location.href="/"},mounted:function(){},beforeDestroy:function(){c["a"].vm.setMenuDisabled(!0),c["a"].vm.setMenuItems([]),c["a"].vm.setMenuIcon("")}},u=r,l=(a("d4ec"),a("2877")),m=Object(l["a"])(u,n,o,!1,null,null,null);t["default"]=m.exports}}]);