1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-delivery-scan-code"],{"12c1":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("2634")),o=n(a("2fdc"));a("64aa");var r=n(a("c158")),s={name:"tn-nav-bar",mixins:[r.default],props:{zIndex:{type:Number,default:0},height:{type:Number,default:0},unit:{type:String,default:"px"},isBack:{type:Boolean,default:!0},backIcon:{type:String,default:"left"},backTitle:{type:String,default:"返回"},alpha:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},bottomShadow:{type:Boolean,default:!0},customBack:{type:Boolean,default:!1},beforeBack:{type:Function,default:null}},computed:{navBarStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.position="fixed"),t.zIndex=this.elZIndex,t},barClass:function(){var t="";return this.backgroundColorClass&&(t+=" ".concat(this.backgroundColorClass)),this.fontColorClass&&(t+="".concat(this.fontColorClass)),this.fixed&&(t+=" tn-custom-nav-bar__bar--fixed"),this.alpha&&(t+=" tn-custom-nav-bar__bar--alpha"),this.bottomShadow&&(t+=" tn-custom-nav-bar__bar--bottom-shadow"),t},barStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.paddingTop=this.statusBarHeight+"px"),this.backgroundColorClass||(t.backgroundColor=""!==this.backgroundColor?this.backgroundColor:"#FFFFFF"),!this.fontColorClass&&this.fontColor&&(t.color=this.fontColor),t.zIndex=this.elZIndex,t},contentStyle:function(){var t={};if(t.top=this.fixed?this.statusBarHeight+"px":"0px",t.height=0===this.height?this.customBarHeight-this.statusBarHeight+this.unit:this.height+this.unit,t.lineHeight=t.height,this.isBack)if(this.customBack){var e=2*(this.customBackStyleInfo.width+this.customBackStyleInfo.left);t.width="calc(100% - ".concat(e,"px)")}else t.width="calc(100% - 340rpx)";else t.width="100%";return t},elZIndex:function(){return this.zIndex?this.zIndex:this.$t.zIndex.navbar}},data:function(){return{statusBarHeight:0,customBarHeight:0,customBackStyleInfo:{width:86,height:32,left:15}}},mounted:function(){this.updateNavBarInfo()},created:function(){},methods:{updateNavBarInfo:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){var a,n,o;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.vuex_custom_bar_height,n=t.vuex_status_bar_height,a){e.next=15;break}return e.prev=3,e.next=6,t.$t.updateCustomBar();case 6:o=e.sent,a=o.customBarHeight,n=o.statusBarHeight,e.next=15;break;case 11:return e.prev=11,e.t0=e["catch"](3),setTimeout((function(){t.updateNavBarInfo()}),10),e.abrupt("return");case 15:t&&t.$t.vuex("vuex_status_bar_height",n),t&&t.$t.vuex("vuex_custom_bar_height",a),t.customBarHeight=a,t.statusBarHeight=n;case 19:case"end":return e.stop()}}),e,null,[[3,11]])})))()},handlerBack:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){var a;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.beforeBack||"function"!==typeof t.beforeBack){e.next=10;break}if(a=t.beforeBack.bind(t.$t.$parent.call(t))(),!a||"function"!==typeof a.then){e.next=7;break}return e.next=5,a.then((function(e){t.navBack()})).catch((function(t){}));case 5:e.next=8;break;case 7:!0===a&&t.navBack();case 8:e.next=11;break;case 10:t.navBack();case 11:case"end":return e.stop()}}),e)})))()},navBack:function(){var t=getCurrentPages();if(t&&t.length>0){var e=t[0];1!=t.length||e.route&&"pages/index/index"==e.route?uni.navigateBack({delta:1}):uni.reLaunch({url:"/pages/index"})}else uni.reLaunch({url:"/pages/index"})}}};e.default=s},"2a46":function(t,e,a){var n=a("daf3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("3f2277ba",n,!0,{sourceMap:!1,shadowMode:!1})},"2bed":function(t,e,a){"use strict";a.r(e);var n=a("5a09"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"2d75":function(t,e,a){"use strict";var n=a("865a"),i=a.n(n);i.a},"3e3d":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.updateBoxAreaApi=e.removeBoxApi=e.inBoxApi=e.getAreaListApi=e.checkBoxApi=e.changeBoxApi=void 0;var i=n(a("0ae0"));e.checkBoxApi=function(t){return i.default.post("api/delivery.pickupMeal.batch/checkBox",{id:t})};e.getAreaListApi=function(){return i.default.get("api/delivery.pickupMeal.batch/getAreaList")};e.updateBoxAreaApi=function(t){return i.default.post("api/delivery.pickupMeal.batch/updateBoxArea",t)};e.inBoxApi=function(t){return i.default.post("api/delivery.pickupMeal.batch/inBox",t)};e.removeBoxApi=function(t){return i.default.post("api/delivery.pickupMeal.batch/removeBox",t)};e.changeBoxApi=function(t){return i.default.post("api/delivery.pickupMeal.batch/changeBox",t)}},"4df5":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-custom-nav-bar[data-v-0c6fe6ee]{display:block;position:relative}.tn-custom-nav-bar__bar[data-v-0c6fe6ee]{display:flex;position:relative;align-items:center;min-height:%?100?%;justify-content:space-between;min-height:0;box-shadow:%?0?% %?0?% %?0?%;z-index:9999}.tn-custom-nav-bar__bar--fixed[data-v-0c6fe6ee]{position:fixed;width:100%;top:0;left:0}.tn-custom-nav-bar__bar--alpha[data-v-0c6fe6ee]{background:transparent!important;box-shadow:none!important}.tn-custom-nav-bar__bar--bottom-shadow[data-v-0c6fe6ee]{box-shadow:%?0?% %?0?% %?80?% %?0?% rgba(0,0,0,.05)}.tn-custom-nav-bar__bar__action[data-v-0c6fe6ee]{display:flex;align-items:center;height:100%;justify-content:center;max-width:100%}.tn-custom-nav-bar__bar__action--nav-back[data-v-0c6fe6ee]{\n /* position: absolute; */\n /* top: 50%; */\n /* left: 20rpx; */\n /* margin-top: -15rpx; */margin-left:%?20?%;font-size:%?38?%;line-height:100%}.tn-custom-nav-bar__bar__action--nav-back-text[data-v-0c6fe6ee]{margin-left:%?10?%}.tn-custom-nav-bar__bar__content[data-v-0c6fe6ee]{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:auto;font-size:%?32?%;cursor:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}',""]),t.exports=e},"5a09":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"Modal",data:function(){return{modalOpen:!1,modalVisible:!1,title:"",content:"",operationBtn:[]}},methods:{open:function(t){this.title=t.title||"操作提示",this.content=t.content||"",this.operationBtn=t.btns||[{title:"取消"},{title:"确认"}],this.openModal()},btnClickEvent:function(t){t.click&&t.click(),this.closeModal()},openModal:function(){var t=this;this.modalOpen=!0,setTimeout((function(){t.modalVisible=!0}),50)},closeModal:function(){var t=this;this.modalVisible=!1,setTimeout((function(){t.modalOpen=!1}),250)}}};e.default=n},"5c4b":function(t,e,a){"use strict";a.r(e);var n=a("12c1"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"6b94":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={tnNavBar:a("7a95").default},i=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"delivery-scan"},[e("tn-nav-bar",{attrs:{fixed:!0,bottomShadow:!0,backgroundColor:"#FFFFFF"}},[e("v-uni-view",{staticClass:"custom-nav tn-text-bold",attrs:{id:"navbar"}},[this._v(this._s(this.navTitle))])],1),e("custom-modal",{ref:"tModal"})],1)},o=[]},"7a95":function(t,e,a){"use strict";a.r(e);var n=a("9d12"),i=a("5c4b");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("7fa2");var r=a("828b"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"0c6fe6ee",null,!1,n["a"],void 0);e["default"]=s.exports},"7e2f":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.modalOpen?a("v-uni-view",{staticClass:"modal",class:{visible:t.modalVisible}},[a("v-uni-view",{staticClass:"modal--mask",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.closeModal.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"modal__wrapper"},[a("v-uni-view",{staticClass:"content__title"},[a("v-uni-view",{staticClass:"content__title--value"},[t._v(t._s(t.title))])],1),a("v-uni-view",{staticClass:"content__data"},[t._v(t._s(t.content))]),a("v-uni-view",{staticClass:"content__btns",class:["content__btns--"+t.operationBtn.length]},t._l(t.operationBtn,(function(e,n){return a("v-uni-view",{key:n,staticClass:"content__btns--item",class:[""+(e.type||"default")],attrs:{"hover-class":"tn-hover","hover-stay-time":150},on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.btnClickEvent(e)}}},[t._v(t._s(e.title))])})),1)],1)],1)],1):t._e()},i=[]},"7fa2":function(t,e,a){"use strict";var n=a("91cb"),i=a.n(n);i.a},"865a":function(t,e,a){var n=a("88ac");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("5c096423",n,!0,{sourceMap:!1,shadowMode:!1})},"88ac":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.modal[data-v-f1320542]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:99999;opacity:0;transition:all .25s ease}.modal.visible[data-v-f1320542]{opacity:1}.modal--mask[data-v-f1320542]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.4)}.modal__wrapper[data-v-f1320542]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);box-sizing:border-box;padding:%?50?%;border-radius:%?20?%;background-color:#fff;min-width:80%}.modal .content__title[data-v-f1320542]{display:flex;align-items:center;justify-content:center;line-height:1;font-size:%?46?%;color:#aaa}.modal .content__title--value[data-v-f1320542]{width:-webkit-fit-content;width:fit-content;position:relative}.modal .content__title--value[data-v-f1320542]::after, .modal .content__title--value[data-v-f1320542]::before{content:"";position:absolute;top:50%;width:%?60?%;height:%?1?%;background-color:#aaa;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.modal .content__title--value[data-v-f1320542]::before{left:%?-80?%}.modal .content__title--value[data-v-f1320542]::after{left:calc(100% + %?20?%)}.modal .content__data[data-v-f1320542]{margin-top:%?30?%;font-size:%?30?%}.modal .content__btns[data-v-f1320542]{margin-top:%?40?%;display:flex;align-items:center;justify-content:space-between}.modal .content__btns--item[data-v-f1320542]{display:flex;align-items:center;justify-content:center;padding:%?20?% %?24?%;border-radius:%?40?%;color:#fff;line-height:1;min-width:%?160?%}.modal .content__btns--item.default[data-v-f1320542]{background-color:#5aa7f5}.modal .content__btns--item.danger[data-v-f1320542]{background-color:#f74d35}.modal .content__btns--item.info[data-v-f1320542]{background-color:#1db4c7}.modal .content__btns--1[data-v-f1320542]{justify-content:center}.modal .content__btns--1 .content__btns--item[data-v-f1320542]{width:100%}.modal .content__btns--item + .content__btns--item[data-v-f1320542]{margin-left:%?20?%}',""]),t.exports=e},"91cb":function(t,e,a){var n=a("4df5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("e3174358",n,!0,{sourceMap:!1,shadowMode:!1})},9972:function(t,e,a){"use strict";a.r(e);var n=a("6b94"),i=a("ecf2");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("b4a4");var r=a("828b"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"c541b150",null,!1,n["a"],void 0);e["default"]=s.exports},"9d12":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"tn-custom-nav-bar-class tn-custom-nav-bar",style:[t.navBarStyle]},[a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar",class:[t.barClass],style:[t.barStyle]},[t.isBack?a("v-uni-view",[t.customBack?a("v-uni-view",[a("v-uni-view",{style:{width:t.customBackStyleInfo.width+"px",height:t.customBackStyleInfo.height+"px",marginLeft:t.customBackStyleInfo.left+"px"}},[t._t("back")],2)],1):a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handlerBack.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back",class:["tn-icon-"+t.backIcon]}),t.backTitle?a("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back-text"},[t._v(t._s(t.backTitle))]):t._e()],1)],1):t._e(),a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__content",style:[t.contentStyle]},[t._t("default")],2),a("v-uni-view",[t._t("right")],2)],1)],1)},i=[]},a453:function(t,e,a){"use strict";a.r(e);var n=a("7e2f"),i=a("2bed");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("2d75");var r=a("828b"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"f1320542",null,!1,n["a"],void 0);e["default"]=s.exports},aa18:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.updateTakeoutStatusReasonApi=e.updateTakeoutStatusApi=e.updateOnTheWayTakeoutStatusApi=e.updateManagerStatusApi=e.setChannelEmptyApi=e.printOrderApi=e.myAppealListApi=e.makeVoiceCallApi=e.makeMessageApi=e.maintenanceOpenLockApi=e.grabOrderWithQRCodeApi=e.grabOrderWithMobileEndOfNumberApi=e.getUpdatestatus2=e.getUpdatestatus=e.getTakeoutOrderNumApi=e.getTakeoutOrderListApi=e.getTakeoutOrderDetailByOrderSnApi=e.getTakeoutOrderDetailByMobileEndOfNumberApi=e.getTakeoutOrderDetailApi=e.getTakeoutOrderCanguiWeihaoApi=e.getTakeoutOpApi=e.getOnTheWayFeeApi=e.getMergeTakeoutOrderNumApi=e.getMergeTakeoutOrderListApi=e.getManagerTakeoutOrderNumApi=e.getManagerStoreListApi=e.getManagerOrderListApi=e.getLockListByOrderIdApi=e.getLockInfoApi=e.getIsLockMaintenanceApi=e.getChannelApi=e.getBiggerSizeChannelApi=e.getAssignList=e.getAllLockApi=e.getAllAreaApi=e.getAgentListApi=e.confirmByOrderIdApi=e.appealApi=void 0;var i=n(a("0ae0"));e.getTakeoutOrderListApi=function(t){return i.default.get("api/delivery.order.takeout/lists",{params:t})};e.getTakeoutOrderNumApi=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i.default.get("api/delivery.order.takeout/listsNum",{params:{only_platform:t,start_time:e,end_time:a}})};e.getMergeTakeoutOrderListApi=function(t){return i.default.get("api/delivery.order.takeout/getMergeOrderlists",{params:t})};e.getMergeTakeoutOrderNumApi=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i.default.get("api/delivery.order.takeout/getMergeOrderListsNum",{params:{only_platform:t,start_time:e,end_time:a}})};e.getOnTheWayFeeApi=function(t){return i.default.get("api/delivery.order.takeout/getOnTheWayFee",{params:t})};e.updateOnTheWayTakeoutStatusApi=function(t){return i.default.post("api/delivery.order.takeout/onTheWayDeliveryAssign",t)};e.getManagerStoreListApi=function(t){return i.default.get("api/delivery.order.takeout/getStoreList",{params:t})};e.getManagerOrderListApi=function(t){return i.default.get("api/delivery.order.takeout/getStoreOrderList",{params:t})};e.getManagerTakeoutOrderNumApi=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return i.default.get("api/delivery.order.takeout/getListsNum",{params:{only_platform:t,start_time:e,end_time:a,address:n,agentid:o}})};e.updateManagerStatusApi=function(t,e){return i.default.post("api/delivery.order.takeout/updateOrderStatus",{id:t,type:e})};e.printOrderApi=function(t){return i.default.post("api/delivery.order.takeout/printOrder",{id:t})};e.getTakeoutOrderDetailApi=function(t){return i.default.get("api/delivery.order.takeout/detail",{params:{id:t}})};e.updateTakeoutStatusApi=function(t,e){return i.default.get("api/delivery.order.takeout/status",{params:{id:t,type:e}})};e.getTakeoutOpApi=function(t,e){return i.default.get("api/delivery.order.takeout/op",{params:{id:t,type:e}})};e.updateTakeoutStatusReasonApi=function(t,e,a,n){return i.default.get("api/delivery.order.takeout/status",{params:{id:t,type:e,reason:a,deliveryer_id:n}})};e.makeVoiceCallApi=function(t,e,a,n){return i.default.get("api/delivery.order.takeout/makeVoiceCall",{params:{mobile:t,orderIdsStr:e,is_merge:a,is_lock:n}})};e.makeMessageApi=function(t,e,a,n){return i.default.get("api/delivery.order.takeout/makeMessage",{params:{mobile:t,orderIdsStr:e,is_merge:a,is_lock:n}})};e.grabOrderWithQRCodeApi=function(t){return i.default.get("api/delivery.order.takeout/status",{params:{ordersn:t,type:"delivery_assign",id:0}})};e.getTakeoutOrderCanguiWeihaoApi=function(t){return i.default.get("api/delivery.order.takeout/cankui_weihao_getorder",{params:t})};e.getAllAreaApi=function(t){return i.default.get("api/delivery.order.takeout/getAllArea",{params:t})};e.getAgentListApi=function(){return i.default.get("api/delivery.order.takeout/getAllAgent")};e.getTakeoutOrderDetailByOrderSnApi=function(t){return i.default.get("api/delivery.order.takeout/detailByOrderSn",{params:{ordersn:t}})};e.getTakeoutOrderDetailByMobileEndOfNumberApi=function(t){return i.default.get("api/delivery.order.takeout/detailByMobileEndOfNumber",{params:{weihao:t}})};e.grabOrderWithMobileEndOfNumberApi=function(t){return i.default.post("api/delivery.order.takeout/grabOrderWithMobileEndOfNumber",{ids:t})};e.getLockInfoApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i.default.get("api/delivery.order.lock/getLockByOrder",{params:{id:t,big:e}})};e.getBiggerSizeChannelApi=function(t){return i.default.get("api/delivery.order.lock/getBiggerSizeChannel",{params:{id:t}})};e.getAllLockApi=function(){return i.default.get("api/delivery.order.lock/getAllLock")};e.getChannelApi=function(t){return i.default.get("api/delivery.order.lock/getChannel",{params:t})};e.setChannelEmptyApi=function(t){return i.default.post("api/delivery.order.lock/setChannelEmpty",t)};e.getIsLockMaintenanceApi=function(){return i.default.get("api/delivery.order.lock/getIsLockMaintenance")};e.getAssignList=function(t){return i.default.get("api/delivery.order.takeout/op",{data:t})};e.getUpdatestatus=function(t){return i.default.get("api/delivery.order.takeout/status",{data:t})};e.getUpdatestatus2=function(t){return i.default.get("api/delivery.order.Errander/status",{data:t})};e.getLockListByOrderIdApi=function(t){return i.default.get("api/delivery.order.lock/getLockListByOrderId",{data:t})};e.confirmByOrderIdApi=function(t){return i.default.post("api/delivery.order.lock/confirmByOrderId",t)};e.appealApi=function(t){return i.default.post("api/delivery.order.appeal/apply",t)};e.myAppealListApi=function(t){return i.default.get("api/delivery.order.appeal/myAppealList",{params:t})};e.maintenanceOpenLockApi=function(t){return i.default.post("api/delivery.order.lock/maintenanceOpenLock",t)}},b4a4:function(t,e,a){"use strict";var n=a("2a46"),i=a.n(n);i.a},c158:function(t,e,a){a("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$t.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$t.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$t.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$t.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$t.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},daf3:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.delivery-scan[data-v-c541b150]{position:relative}',""]),t.exports=e},e4f1:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("5ef2");var i=a("aa18"),o=n(a("a453")),r=a("3e3d"),s=uni.requireNativePlugin?uni.requireNativePlugin("SeaFox-hwScan"):null,u={components:{CustomModal:o.default},data:function(){return{type:"",barcode:null,reScanButton:null,webView:null}},computed:{navTitle:function(){if("delivery"===this.type)return"扫码抢单"}},onLoad:function(t){var e=t.type||"";if(console.log(t,e),!e)return uni.showToast({title:"扫码类型错误, 请重试",icon:"none"}),void setTimeout((function(){uni.navigateBack()}),1e3);this.type=e},onReady:function(){var t=this;setTimeout((function(){t.new_scan()}),300)},onUnload:function(){this.webView&&plus.webview.close("barCodeBox"),this.barcode&&this.barcode.close(),this.reScanButton&&this.reScanButton.close(),uni.$emit("scan-end")},methods:{createCamera:function(){var t=uni.getSystemInfoSync(),e=t.screenHeight-this.vuex_custom_bar_height;this.webView||(this.webView=plus.webview.open("","barCodeBox",{top:"".concat(this.vuex_custom_bar_height,"px"),width:"100%",height:"".concat(e,"px")})),this.barcode||(this.barcode=plus.barcode.create("barcode",[plus.barcode.QR],{top:"0px",left:"0px",width:"100%",height:"".concat(e,"px"),position:"absolute",scanbarColor:"#f1c01f",frameColor:"#c0ff01"}),this.barcode.onmarked=this.onScanMarked,plus.webview.getWebviewById("barCodeBox").append(this.barcode)),this.barcode.start()},createReScanButton:function(){var t=this;this.reScanButton||(this.reScanButton=new plus.nativeObj.View("re-scan-button",{bottom:"20px",left:"5%",width:"90%",height:"40px",position:"absolute"}),this.reScanButton.drawRect({color:"#5AA7F5",radius:"5px"}),this.reScanButton.drawText("重新扫码",{top:"auto",left:"auto"},{color:"#FFFFFF"}),this.reScanButton.show(),this.reScanButton.interceptTouchEvent(!0),this.reScanButton.addEventListener("click",(function(e){t.barcode.cancel(),setTimeout((function(){t.barcode.start()}),50)})),plus.webview.getWebviewById("barCodeBox").append(this.reScanButton))},onScanMarked:function(t,e){this.handleScanEvent(e)},requestScanQRCodeApi:function(t){if("delivery"===this.type){var e=t;return-1!=e.indexOf("box_")?(0,r.removeBoxApi)({id:t}):(0,i.grabOrderWithQRCodeApi)(t)}},handleScanEvent:function(t){var e=this;t&&this.$refs.tModal.open({content:"确认".concat("delivery"===this.type?"抢单":"收单","吗?"),btns:[{title:"取消",type:"danger",click:function(){e.new_scan()}},{title:"确认",click:function(){e.requestScanQRCodeApi(t).then((function(t){uni.showToast({title:t.msg,icon:"none"}),setTimeout((function(){e.new_scan()}),1e3)})).catch((function(t){uni.showToast({title:t.msg,icon:"none"}),setTimeout((function(){e.new_scan()}),1e3)}))}}]})},new_scan:function(){var t=this,e={scanMode:"defaultMode",scanType:["QR","EAN-13"],scanResultImage:!1,pictureBase64:"",scanTypeOptions:{scanTitle:"华为扫描",showPhotoAlbum:!0,showLight:!0,showScanFrame:!0,showLine:!1,scanLineColor:"#FF00FF",lineAnimationDuration:3,sleep:3,showScanMessage:!0,scanMessage:"将码放入取景框,即可自动扫描",scanFrameSize:300,scanFrameBackgroudColor:"#1f00BCD4",scanFrameStrokeColor:"#e1ffff",scanContinue:!1,showToast:!0,toastTitle:"",scanFrameRoundedCorner:6},multiOptions:{oneCodeReturn:!0,multicodeReturn:!0,scanCancelBtnTitle:"取消",scanResultTips:"已扫描到码请选择",identificationNumber:3,identificationNumberReturn:!0,identificationMoreMax:!0}};s&&s.hwScan({scanOptions:e},(function(e){t.handleScanEvent(e.result)}))}}};e.default=u},ecf2:function(t,e,a){"use strict";a.r(e);var n=a("e4f1"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a}}]);
|