(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/edit-logisitics/edit-logisitics"],{257:function(e,n,t){"use strict";(function(e,n){var s=t(4);t(26);s(t(25));var o=s(t(258));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},258:function(e,n,t){"use strict";t.r(n);var s=t(259),o=t(261);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t(263);var i,a=t(32),c=Object(a["default"])(o["default"],s["render"],s["staticRenderFns"],!1,null,"1d58abe4",null,!1,s["components"],i);c.options.__file="pages/edit-logisitics/edit-logisitics.vue",n["default"]=c.exports},259:function(e,n,t){"use strict";t.r(n);var s=t(260);t.d(n,"render",(function(){return s["render"]})),t.d(n,"staticRenderFns",(function(){return s["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return s["recyclableRender"]})),t.d(n,"components",(function(){return s["components"]}))},260:function(e,n,t){"use strict";var s;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return s}));var o=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.showGuide=!1})},r=!1,i=[];o._withStripped=!0},261:function(e,n,t){"use strict";t.r(n);var s=t(262),o=t.n(s);for(var r in s)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(r);n["default"]=o.a},262:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=t(71),o={data:function(){return{num:"",logs:[],order_no:"",index:0,startDay:"2020-01-01",date:"",express_phone:"",express_company:"",express_code:"",express_no:"",img:"",showGuide:!0}},onLoad:function(e){var n=JSON.parse(decodeURIComponent(e.data));this.order_no=n.order_no,this.img=n.img,this.express_company=n.express_company,this.express_code=n.express_code,this.express_no=n.express_no,this.express_phone=n.express_phone,this.date=n.express_time,this.getCode()},methods:{getExpress:function(n){var t=this;(0,s.getExpress)({expressCode:n}).then((function(n){if(200==n.code){if(!n.data.Success)return e.showModal({content:"请重新扫码或手动选择输入",showCancel:!1}),!1;if(t.express_no=n.data.LogisticCode,n.data.Shippers){var s=n.data.Shippers[0],o=s.ShipperName,r=s.ShipperCode;t.express_company=o,t.express_code=r}else e.showModal({content:"请重新扫码或手动选择输入",showCancel:!1}),t.logsName=t.logsCode=""}else e.showModal({content:n.data||"获取数据失败",showCancel:!1})}))},getCode:function(){var n=this;(0,s.getLogsCode)().then((function(t){if(200==t.code){var s=t.data;for(var o in s)n.logs.push({code:o,name:s[o]})}else e.showModal({content:t.data||"获取物流公司失败",showCancel:!1})}))},bindPickerChange:function(e){var n=e.detail.value;this.index=n,this.express_company=this.logs[n].name,this.express_code=this.logs[n].code,console.log(this.express_code)},bindDateChange:function(e){this.date=e.target.value},submit:function(){var n=this;return this.express_no?"请选择物流公司"==this.express_company?(e.showModal({content:"物流名称不能为空",showCancel:!1}),!1):"顺丰速运"!=this.express_company||this.express_phone?this.date?void(0,s.editLog)({order_no:this.order_no,express_no:this.express_no,express_code:this.express_code,express_company:this.express_company,express_time:this.date,express_phone:this.express_phone}).then((function(t){200==t.code?e.showModal({content:"修改成功",showCancel:!1,success:function(t){t.confirm&&e.reLaunch({url:"../logistics-detail/logistics-detail?order_no="+n.order_no+"&img="+n.img})}}):e.showModal({content:t.data||"修改失败",showCancel:!1})})):(e.showModal({content:"发货日期不能为空",showCancel:!1}),!1):(e.showModal({content:"请输入收货人手机号",showCancel:!1}),!1):(e.showModal({content:"物流单号不能为空",showCancel:!1}),!1)}}};n.default=o}).call(this,t(2)["default"])},263:function(e,n,t){"use strict";t.r(n);var s=t(264),o=t.n(s);for(var r in s)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(r);n["default"]=o.a},264:function(e,n,t){}},[[257,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/edit-logisitics/edit-logisitics.js.map