require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/delivery_confirm/index"],{"0911":function(e,i,t){"use strict";var r=t("480e"),n=t.n(r);n.a},"1ef8":function(e,i,t){"use strict";(function(e,i){var r=t("47a9");t("f076");r(t("3240"));var n=r(t("47f5"));e.__webpack_require_UNI_MP_PLUGIN__=t,i(n.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"47f5":function(e,i,t){"use strict";t.r(i);var r=t("cc38"),n=t("e62a");for(var u in n)["default"].indexOf(u)<0&&function(e){t.d(i,e,(function(){return n[e]}))}(u);t("0911");var d=t("828b"),a=Object(d["a"])(n["default"],r["b"],r["c"],!1,null,"43f49c59",null,!1,r["a"],void 0);i["default"]=a.exports},"480e":function(e,i,t){},a9fc:function(e,i,t){"use strict";(function(e){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=t("6af6"),n={data:function(){return{order_id:"",cartInfo:[],realName:"",userPhone:"",userAddress:"",delivery_id:"",delivery_voucher:"",delivery_voucher_img:[],delta:1}},onLoad:function(e){this.checkKefuAuth("kefu-order-delivery")&&(this.order_id=e.order_id,this.delivery_id=e.delivery_id,this.getOrderDetail())},onShow:function(){var e=getCurrentPages(),i=e.findIndex((function(e){return"pages/admin/distribution/index"==e.route}));-1!=i&&(this.delta=e.length-1-i)},methods:{getOrderDetail:function(){var e=this;this.checkKefuAuth("kefu-order-delivery")&&(0,r.getAdminOrderDetail)(this.order_id).then((function(i){var t=i.data,r=t.cartInfo,n=t.real_name,u=t.user_phone,d=t.user_address;e.cartInfo=r,e.realName=n,e.userPhone=u,e.userAddress=d}))},uploadImage:function(){var e=this;this.$util.uploadImageChange({count:8,url:"upload/image"},(function(i){e.delivery_voucher_img.push(i.data.url)}))},deleteImage:function(e){this.delivery_voucher_img.splice(e,1)},submitDelivery:function(){var i=this;this.checkKefuAuth("kefu-order-delivery")&&(this.delivery_voucher.trim()||this.delivery_voucher_img.length?(0,r.confirmDelivery)({order_id:this.order_id,delivery_id:this.delivery_id,delivery_voucher:this.delivery_voucher,delivery_voucher_img:this.delivery_voucher_img}).then((function(t){i.$util.Tips({title:t.msg},(function(){e.navigateBack({delta:i.delta})}))})):this.$util.Tips({title:"请上传送达凭证"}))}}};i.default=n}).call(this,t("df3c")["default"])},cc38:function(e,i,t){"use strict";t.d(i,"b",(function(){return r})),t.d(i,"c",(function(){return n})),t.d(i,"a",(function(){}));var r=function(){var e=this.$createElement,i=(this._self._c,this.delivery_voucher.length),t=this.delivery_voucher_img.length;this.$mp.data=Object.assign({},{$root:{g0:i,g1:t}})},n=[]},e62a:function(e,i,t){"use strict";t.r(i);var r=t("a9fc"),n=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(i,e,(function(){return r[e]}))}(u);i["default"]=n.a}},[["1ef8","common/runtime","common/vendor"]]]);