(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-821a4192"],{5944:function(t,s,e){"use strict";e.r(s);var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("div",{staticClass:"i-layout-page-header"},[e("el-card",{staticClass:"product_tabs"},[e("div",[e("router-link",{attrs:{to:{path:t.roterPre+"/setting/sms/sms_config/index"}}},[e("el-button",{staticClass:"mr20",attrs:{icon:"el-icon-arrow-left",size:"mini"}},[t._v("返回")])],1),t._v(" "),e("span",{staticClass:"mr20",domProps:{textContent:t._s(t.$route.meta.title)}})],1)])],1),t._v(" "),e("el-card",{staticClass:"ivu-mt"},[e("el-tabs",{on:{"tab-click":t.onChangeType},model:{value:t.isChecked,callback:function(s){t.isChecked=s},expression:"isChecked"}},[e("el-tab-pane",{attrs:{label:"商品采集",name:"copy"}}),t._v(" "),e("el-tab-pane",{attrs:{label:"电子面单打印",name:"dump"}})],1),t._v(" "),e("el-row",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}],staticClass:"mt50",attrs:{gutter:16}},[e("el-col",{staticClass:"ivu-text-left mb20",attrs:{span:24}},[e("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[e("span",{staticClass:"ivu-text-right ivu-block"},[t._v("当前剩余条数:")])]),t._v(" "),e("el-col",{attrs:{xs:11,sm:13,md:19,lg:20}},[e("span",[t._v(t._s(t.numbers))])])],1),t._v(" "),e("el-col",{staticClass:"ivu-text-left mb20",attrs:{span:24}},[e("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[e("span",{staticClass:"ivu-text-right ivu-block"},[t._v("选择套餐:")])]),t._v(" "),e("el-col",{attrs:{xs:11,sm:13,md:19,lg:20}},[e("el-row",{attrs:{gutter:20}},t._l(t.list,(function(s,a){return e("el-col",{key:a,attrs:{xxl:4,xl:8,lg:8,md:12,sm:24,xs:24}},[e("div",{staticClass:"list-goods-list-item mb15",class:{active:a===t.current},on:{click:function(e){return t.check(s,a)}}},[e("div",{staticClass:"list-goods-list-item-title",class:{active:a===t.current}},[t._v("¥ "),e("i",[t._v(t._s(s.price))])]),t._v(" "),e("div",{staticClass:"list-goods-list-item-price",class:{active:a===t.current}},[e("span",[t._v(t._s(t.all[t.isChecked])+"条数: "+t._s(s.num))])])])])})),1)],1)],1),t._v(" "),t.checkList?e("el-col",{staticClass:"ivu-text-left mb20",attrs:{span:24}},[e("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[e("span",{staticClass:"ivu-text-right ivu-block"},[t._v("充值条数:")])]),t._v(" "),e("el-col",{attrs:{xs:11,sm:13,md:19,lg:20}},[e("span",[t._v(t._s(t.checkList.num))])])],1):t._e(),t._v(" "),t.checkList?e("el-col",{staticClass:"ivu-text-left mb20",attrs:{span:24}},[e("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[e("span",{staticClass:"ivu-text-right ivu-block"},[t._v("支付金额:")])]),t._v(" "),e("el-col",{attrs:{xs:11,sm:13,md:19,lg:20}},[e("span",{staticClass:"list-goods-list-item-number"},[t._v("¥"+t._s(t.checkList.price))])])],1):t._e(),t._v(" "),e("el-col",{staticClass:"ivu-text-left mb20",attrs:{span:24}},[e("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:2}},[e("span",{staticClass:"ivu-text-right ivu-block"},[t._v("付款方式:")])]),t._v(" "),e("el-col",{attrs:{xs:11,sm:13,md:19,lg:20}},[e("span",{staticClass:"list-goods-list-item-pay"},[t._v("微信支付"),t.code.endtime?e("i",[t._v(t._s(" ( 支付码过期时间:"+t.code.endtime+" )"))]):t._e()])])],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-col",{staticClass:"mr20",attrs:{xs:12,sm:6,md:4,lg:3}},[t._v(" ")]),t._v(" "),e("el-col",{attrs:{xs:11,sm:13,md:19,lg:20}},[e("div",{staticClass:"list-goods-list-item-code mr20"},[e("vue-qr",{staticClass:"bicode",attrs:{text:t.codeUrl,size:310}})],1)])],1)],1)],1)],1)},c=[],i=e("c80c"),r=(e("96cf"),e("3b8d")),n=e("90e7"),l=e("83d6"),o=e("658f"),u=e.n(o),m={name:"CopyPay",components:{VueQr:u.a},data:function(){return{roterPre:l["roterPre"],all:{copy:"商品采集",dump:"电子面单打印"},isChecked:"copy",numbers:"",account:"",list:[],current:0,checkList:{},spinShow:!1,codeUrl:"",code:{}}},created:function(){this.isChecked=this.$route.query.type,this.getServeInfo(),this.getPrice()},methods:{getServeInfo:function(){var t=this;Object(n["N"])().then(function(){var s=Object(r["a"])(Object(i["a"])().mark((function s(e){var a;return Object(i["a"])().wrap((function(s){while(1)switch(s.prev=s.next){case 0:a=e.data,s.t0=t.isChecked,s.next="copy"===s.t0?4:"dump"===s.t0?6:8;break;case 4:return t.numbers=a.copy_product_num,s.abrupt("break",8);case 6:return t.numbers=a.export_dump_num,s.abrupt("break",8);case 8:case"end":return s.stop()}}),s)})));return function(t){return s.apply(this,arguments)}}()).catch((function(s){t.$message.error(s.message)}))},onChangeType:function(t){this.current=0,this.getPrice(),this.getServeInfo()},getPrice:function(){var t=this;this.spinShow=!0,Object(n["O"])({type:this.isChecked}).then(function(){var s=Object(r["a"])(Object(i["a"])().mark((function s(e){var a;return Object(i["a"])().wrap((function(s){while(1)switch(s.prev=s.next){case 0:setTimeout((function(){t.spinShow=!1}),800),a=e.data,t.list=a.list,t.checkList=t.list[0],t.checkList&&t.getCode(t.checkList);case 5:case"end":return s.stop()}}),s)})));return function(t){return s.apply(this,arguments)}}()).catch((function(s){t.spinShow=!1,t.$message.error(s.message),t.list=[]}))},check:function(t,s){var e=this;this.spinShow=!0,this.current=s,setTimeout((function(){e.getCode(t),e.checkList=t,e.spinShow=!1}),800)},getCode:function(t){var s=this,e={pay_type:1,meal_id:t.meal_id};Object(n["y"])(e).then(function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(e){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:s.code=e.data,s.codeUrl=e.data.config;case 2:case"end":return t.stop()}}),t)})));return function(s){return t.apply(this,arguments)}}()).catch((function(t){s.code="",s.$message.error(t.message)}))}}},d=m,p=(e("ff99"),e("2877")),v=Object(p["a"])(d,a,c,!1,null,"6107a8ec",null);s["default"]=v.exports},eff7:function(t,s,e){},ff99:function(t,s,e){"use strict";e("eff7")}}]);