(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ec2713d"],{"0dbe":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAF9JREFUSEtj1NXV/c9AQ8AIsuDy5cuMtLADZPaoBXhDdjSICCa80SCiPIjEpW0LGP8z8uMz6T/j/48vnx6egE0NwTiguQUEw4CAAoI+GLVgNIgIpoHRICI+iAiqpEABAGgkjKmyjchzAAAAAElFTkSuQmCC"},"322c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAIZJREFUSEtj1NXV/c9AQ8AIsuDy5cuMtLADZPaoBXhDdgQGkbi0bQEoTF4+PTyBmFRHchBJSNnVgwx+8exQ46gF4BAAhTnjf0Z+eHAw/ncAs/8zHoCJ/Wf8/xFXnBCMA5pbgB6Ro5FMMGnTPKMRdAGaAoKpiFQD0dWPWkAwBOkXRASdQoECAKH4sqlQLnDEAAAAAElFTkSuQmCC"},"54e0":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkBAMAAAATLoWrAAAAElBMVEUAAAD///////////////////8+Uq06AAAABnRSTlMA/lfiUEinok6OAAAAgUlEQVQoz23S0Q2AIAxFUeIGRQfAEUx0AOMI7r+LkGAv5NUPaB7HBNKm90zT91zpsDImi601ymO01+i2xkC2tSWPyEpfQZkN1HeQFyAqzmAcwUA/A8EcwRzBHMFAMJBG+iMIJpfQq+qD4meDYJQwKpi2Q5umrQXBdEyiYdKRCwbzA21wFUE6DvK8AAAAAElFTkSuQmCC"},"6d4a":function(t,e,n){"use strict";var s=n("7f02"),i=n.n(s);i.a},7602:function(t,e,n){"use strict";n.d(e,"h",(function(){return r})),n.d(e,"g",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return o})),n.d(e,"j",(function(){return u})),n.d(e,"i",(function(){return p})),n.d(e,"e",(function(){return l})),n.d(e,"d",(function(){return b})),n.d(e,"k",(function(){return m})),n.d(e,"b",(function(){return d})),n.d(e,"f",(function(){return A}));var s=n("e13e"),i=n("fde9");function r(t){return Object(s["a"])({url:"api-customer/agent-stock/convert-list",method:"get",params:t})}function a(t){return Object(s["a"])({url:"api-customer/agent-stock/order-list",method:"get",params:t})}function c(t){return Object(s["a"])({url:"api-customer/agent-stock/my-info",method:"get",params:t})}function o(t){return Object(s["a"])({url:"api-customer/agent-stock/convert-apply",method:"post",data:JSON.stringify(t)})}function u(t){return Object(i["a"])({url:"api-shop/order/agent/self-pickup",method:"post",data:JSON.stringify(t)})}function p(t){return Object(i["a"])({url:"api-shop/order/cart/repeat-code",method:"post",data:JSON.stringify(t)})}function l(t){return Object(i["a"])({url:"api-shop/order/agent/self",method:"post",data:JSON.stringify(t)})}function b(t){return Object(i["a"])({url:"api-shop/order/agent/pick-promotion",method:"get",params:t})}function m(t){return Object(i["a"])({url:"api-shop/order/manage/update-remark",method:"post",data:JSON.stringify(t)})}function d(t){return Object(i["a"])({url:"api-shop/order/agent/cancel",method:"get",params:t})}function A(t){return Object(i["a"])({url:"api-shop/order-logistics-trace/list",method:"get",params:t})}},"7f02":function(t,e,n){},"890f":function(t,e,n){t.exports=n.p+"img/tips.0a041b76.png"},b6f0:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"ui-page"},[s("div",{staticClass:"ui-content stockAgentPage"},[s("div",{staticClass:"stock-panel"},[t._m(0),s("div",{staticClass:"stock-card"},[s("div",{staticClass:"count-panel ui-flex ui-flex-between ui-items-center"},[s("div",[s("div",{staticClass:"value"},[t._v(t._s(t.stockInfo.v3))]),s("div",{staticClass:"label wid"},[t._v("3.0经典版(盒)")])]),s("div",{staticClass:"line"}),s("div",[s("div",{staticClass:"value"},[t._v(t._s(t.stockInfo.v3pro))]),s("div",{staticClass:"label wid"},[t._v("3.0旗舰版")])]),s("div",{staticClass:"line"}),s("div",[s("div",{staticClass:"value"},[t._v(t._s(t.stockInfo.wjp))]),s("div",{staticClass:"label wid"},[t._v("温灸片")])])]),s("div",{staticClass:"btn",on:{click:t.goOutStock}},[t._v("自提出货")])])]),s("div",{staticClass:"lineMox"}),s("mt-navbar",{staticClass:"paddingBox",model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},[s("mt-tab-item",{attrs:{id:"v3"}},[t._v("3.0经典版")]),s("mt-tab-item",{attrs:{id:"v3pro"}},[t._v("3.0旗舰版")]),s("mt-tab-item",{attrs:{id:"wjp"}},[t._v("温灸片")])],1),s("div",{staticClass:"exchange-panel"},[s("div",{staticClass:"exchange ui-flex ui-flex-between ui-items-center"},[s("div",{staticClass:"label"},[t._v("兑换")]),s("div",{staticClass:"ui-flex ui-items-center"},[s("div",{staticClass:"counter ui-flex ui-item-center"},[s("img",{staticClass:"counter__icon",attrs:{src:n("0dbe")},on:{click:function(e){return t.decrement()}}}),"v3"==t.currentTab?s("input",{directives:[{name:"model",rawName:"v-model",value:t.number3,expression:"number3"}],staticClass:"counter__value",attrs:{type:"number"},domProps:{value:t.number3},on:{input:function(e){e.target.composing||(t.number3=e.target.value)}}}):"v3pro"==t.currentTab?s("input",{directives:[{name:"model",rawName:"v-model",value:t.number3pro,expression:"number3pro"}],staticClass:"counter__value",attrs:{type:"number"},domProps:{value:t.number3pro},on:{input:function(e){e.target.composing||(t.number3pro=e.target.value)}}}):"wjp"==t.currentTab?s("input",{directives:[{name:"model",rawName:"v-model",value:t.numberWjp,expression:"numberWjp"}],staticClass:"counter__value",attrs:{type:"number"},domProps:{value:t.numberWjp},on:{input:function(e){e.target.composing||(t.numberWjp=e.target.value)}}}):t._e(),s("img",{staticClass:"counter__icon",attrs:{src:n("322c")},on:{click:function(e){return t.increment()}}})]),"wjp"==t.currentTab?s("div",{staticClass:"unit"},[t._v("盒")]):s("div",{staticClass:"unit"},[t._v("箱")])])]),"v3"==t.currentTab?s("div",{staticClass:"tips"},[t._v("\n 温馨提示:每兑换一箱唯蜜瘦3.0经典版,可增加10盒库存数量。\n ")]):"v3pro"==t.currentTab?s("div",{staticClass:"tips"},[t._v("\n 温馨提示:每兑换一箱唯蜜瘦3.0旗舰版,可增加8盒库存数量。\n ")]):"wjp"==t.currentTab?s("div",{staticClass:"tips"},[t._v("\n 温馨提示:兑换成功的温灸片暂只能用于呼啦鸽商城的线上销售,不能自提,如需自提请前往经销商系统进行云仓发货申请,请仔细核对业务用途。\n ")]):t._e(),s("div",{staticClass:"commit-btn",on:{click:function(e){return t.submit()}}},[t._v("提交")]),s("div",{staticClass:"record-btn",on:{click:t.goStockRecord}},[t._v("我的库存记录")])]),s("mt-popup",{staticClass:"tipsModel",attrs:{"popup-transition":"popup-fade",closeOnClickModal:!1},model:{value:t.tipsVisible,callback:function(e){t.tipsVisible=e},expression:"tipsVisible"}},[s("section",{staticClass:"tipsMain"},[s("div",{staticClass:"allInfo flexc"},[s("img",{staticClass:"tipsImg",attrs:{src:n("890f"),alt:""}}),s("span",{staticClass:"cor0 mart10"},[t._v("温馨提示")]),s("div",{staticClass:"cor9 mart10 lineH"},[t._v("\n 您是否确认兑换"),s("b",[t._v(t._s(t.tipsNumber))]),t._v(t._s(t.tipsbrand)+"\n "),"wjp"==t.currentTab?s("span",[t._v(",请注意,兑换一旦完成,不可逆转。请仔细确认您的兑换请求,请谨慎操作。")]):t._e()]),s("div",{staticClass:"btnrow flex mart30"},[s("span",{staticClass:"btn",on:{click:function(e){return t.closeModel()}}},[t._v("取消")]),s("span",{staticClass:"btn sure",on:{click:function(e){return t.submitConvert()}}},[t._v("确定")])])]),s("img",{staticClass:"closeImg",attrs:{src:n("54e0")},on:{click:function(e){return t.closeModel()}}})])])],1)])},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"label"},[n("span",[t._v("我的库存总数")]),n("span",{staticClass:"danwei"},[t._v("(单位:盒)")])])}],r=(n("c5f6"),n("76a0")),a=n("aadd"),c=n("5f87"),o=n("7602"),u={data:function(){return{tipsVisible:!1,currentTab:"v3",number3:1,number3pro:1,numberWjp:1,stockInfo:{},tipsNumber:0,tipsbrand:"箱唯蜜瘦3.0经典版"}},watch:{currentTab:{handler:function(t,e){"v3"==this.currentTab?(this.number3pro=1,this.numberWjp=1):"v3pro"==this.currentTab?(this.number3=1,this.numberWjp=1):"wjp"==this.currentTab&&(this.number3=1,this.number3pro=1)}}},mounted:function(){},created:function(){var t=this;this.getAgentStock(),Object(a["a"])("source")&&"buyV3"==Object(a["a"])("source")&&(Object(c["b"])(),Object(c["b"])()?this.$store.dispatch("loginFlag",{}).then((function(t){})).catch((function(e){t.$store.dispatch("loginFlag",{}).then((function(t){}))})):Object(c["b"])())},methods:{getAgentStock:function(){var t=this;r["Indicator"].open("加载中..."),Object(o["c"])({}).then((function(e){if(r["Indicator"].close(),console.log(e),0!=e.resp_code)return Object(r["Toast"])({message:e.resp_msg,duration:4e3,className:"toastFail"});t.stockInfo=e.datas})).catch((function(t){return r["Indicator"].close(),Object(r["Toast"])({message:t.resp_msg,duration:4e3,className:"toastFail"})}))},submit:function(){this.tipsVisible=!0,"v3"==this.currentTab?(this.tipsNumber=Number(this.number3),this.tipsbrand="箱唯蜜瘦3.0经典版"):"v3pro"==this.currentTab?(this.tipsNumber=Number(this.number3pro),this.tipsbrand="箱唯蜜瘦3.0旗舰版"):"wjp"==this.currentTab&&(this.tipsNumber=Number(this.numberWjp),this.tipsbrand="盒温灸片")},submitConvert:function(){var t=this,e={type:"convert",brand:this.currentTab};"v3"==this.currentTab?e.number=Number(this.number3):"v3pro"==this.currentTab?e.number=Number(this.number3pro):"wjp"==this.currentTab&&(e.number=Number(this.numberWjp)),r["Indicator"].open("兑换中..."),Object(o["a"])(e).then((function(e){if(r["Indicator"].close(),console.log(e),0!=e.resp_code)return Object(r["Toast"])({message:e.resp_msg,duration:4e3,className:"toastFail"});Object(r["Toast"])("兑换成功!"),t.number3pro=1,t.number3=1,t.tipsVisible=!1})).catch((function(t){return r["Indicator"].close(),Object(r["Toast"])({message:t.resp_msg,duration:4e3,className:"toastFail"})}))},increment:function(){"v3"==this.currentTab?(this.number3++,this.number3pro=1,this.numberWjp=1):"v3pro"==this.currentTab?(this.number3=1,this.numberWjp=1,this.number3pro++):"wjp"==this.currentTab&&(this.number3=1,this.number3pro=1,this.numberWjp++)},decrement:function(){"v3"==this.currentTab&&this.number3>1?(this.number3--,this.number3pro=1):"v3pro"==this.currentTab&&this.number3pro>1?(this.number3=1,this.number3pro--):"wjp"==this.currentTab&&this.numberWjp>1&&(this.number3=1,this.number3pro=1,this.numberWjp--)},closeModel:function(){this.tipsVisible=!1},goOutStock:function(){this.$router.push("/member/user/agent/stock/out")},goStockRecord:function(){this.$router.push("/member/user/agent/stock/record")},back:function(){this.$router.go(-1)}}},p=u,l=(n("6d4a"),n("2877")),b=Object(l["a"])(p,s,i,!1,null,"307940b5",null);e["default"]=b.exports}}]);