zx/public/mer/js/chunk-197a4d8b.67e12f4d.js

1 line
8.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-197a4d8b"],{"193b":function(t,e,a){"use strict";a("b0fe")},a02b:function(t,e,a){},b0fe:function(t,e,a){},c7de:function(t,e,a){t.exports=a.p+"mer/img/ren.c7bc0d99.png"},e652:function(t,e,a){"use strict";a("a02b")},f28d:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"divBox"},[t.isShowList?a("el-card",[a("div",{staticClass:"clearfix"},[t.accountInfo.info?a("div",{staticClass:"acea-row header-count row-middle"},[a("div",{staticClass:"header-extra"},[a("div",{staticClass:"mb-5"},[a("span",[t._v("采集次数")])]),t._v(" "),a("div",[a("div",[t._v(t._s(t.copy.num||0))]),t._v(" "),a("el-button",{staticClass:"mt10",attrs:{size:"small",type:"primary",disabled:t.copy.open<=0},on:{click:function(e){return t.mealPay("copy")}}},[t._v("套餐购买")])],1)]),t._v(" "),a("div",{staticClass:"header-extra"},[a("div",{staticClass:"mb-5"},[a("span",[t._v("面单打印次数")])]),t._v(" "),a("div",[a("div",[t._v(t._s(t.dump.num||0))]),t._v(" "),a("el-button",{staticClass:"mt10",attrs:{size:"small",type:"primary",disabled:1!=t.dump.open},on:{click:function(e){return t.mealPay("dump")}}},[t._v("套餐购买")])],1)])]):a("div",{staticClass:"demo-basic--circle acea-row row-middle"},[a("span",{staticStyle:{color:"red"}},[t._v("平台未登录一号通!")])])])]):t._e()],1),t._v(" "),a("el-card",{staticClass:"mt14"},[t.isShowList?a("table-list",{ref:"tableLists",attrs:{copy:t.copy,dump:t.dump,"account-info":t.accountInfo}}):t._e()],1)],1)},i=[],o=a("c80c"),s=(a("96cf"),a("3b8d")),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-tabs",{on:{"tab-click":t.onChangeType},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},[a("el-tab-pane",{attrs:{label:"商品采集",name:"copy"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"电子面单打印",name:"mer_dump"}})],1),t._v(" "),a("el-row",[a("el-col",{staticClass:"record_count",attrs:{span:24}},[a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:t.getPurchase}},[t._v("购买记录")])],1)],1),t._v(" "),a("div",[a("el-table",{staticClass:"table",attrs:{data:t.tableList,loading:t.loading,size:"small"}},[a("el-table-column",{key:"7",attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),"mer_dump"==t.tableFrom.type?a("el-table-column",{key:"1",attrs:{prop:"info.order_sn",label:"订单号","min-width":"200"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?a("el-table-column",{key:"2",attrs:{prop:"info.from_name",label:"发货人","min-width":"90"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?a("el-table-column",{attrs:{label:"收货人","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.info&&e.row.info.to_name?e.row.info.to_name:""))])]}}],null,!1,396801068)}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?a("el-table-column",{key:"3",attrs:{prop:"info.delivery_id",label:"快递单号","min-width":"90"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?a("el-table-column",{key:"4",attrs:{prop:"info.delivery_name",label:"快递公司编码","min-width":"90"}}):t._e(),t._v(" "),"copy"==t.tableFrom.type?a("el-table-column",{key:"6",attrs:{prop:"info",label:"复制URL","min-width":"300"}}):t._e(),t._v(" "),a("el-table-column",{key:"8",attrs:{prop:"create_time",label:"copy"!=t.tableFrom.type?"打印时间":"添加时间","min-width":"90"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?a("el-dialog",{attrs:{title:"copy"==t.tableFrom.type?"商品采集购买记录":"电子面单购买记录",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-table",{attrs:{data:t.tableData,loading:t.loading,size:"small"}},[a("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.purchaseForm.page-1)*t.purchaseForm.limit+1))])]}}],null,!1,2493257592)}),t._v(" "),a("el-table-column",{attrs:{prop:"order_sn",label:"订单号","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"购买记录","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.order_info?a("span",[t._v(t._s(e.row.order_info.price)+"元 / "+t._s(e.row.order_info.num)+"次")]):t._e()]}}],null,!1,3496719446)}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"购买时间","min-width":"90"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-size":t.purchaseForm.limit,"current-page":t.purchaseForm.page,layout:"prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChangeOther,"current-change":t.pageChangeOther}})],1)],1):t._e()],1)},l=[],c=a("c4c8"),u=a("90e7"),p={name:"TableList",props:{copy:{type:Object,default:null},dump:{type:Object,default:null},accountInfo:{type:Object,default:null}},data:function(){return{isChecked:"copy",tableFrom:{page:1,limit:20,type:"copy"},total:0,loading:!1,tableList:[],modals:!1,dialogVisible:!1,tableData:[],purchaseForm:{page:1,limit:10}}},watch:{},created:function(){this.getRecordList()},mounted:function(){},methods:{onChangeType:function(){this.getRecordList()},getRecordList:function(){var t=this;this.loading=!0,Object(c["gb"])(this.tableFrom).then(function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(a){var n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=a.data,t.tableList=n.list,t.total=a.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.message)}))},handleSizeChange:function(t){this.tableFrom.limit=t,this.getRecordList("")},handleSizeChangeOther:function(t){this.purchaseForm.limit=t,this.getPurchase()},pageChange:function(t){this.tableFrom.page=t,this.getRecordList()},pageChangeOther:function(t){this.purchaseForm.page=t,this.getPurchase()},getPurchase:function(){var t=this;this.dialogVisible=!0,this.purchaseForm.type="copy"==this.tableFrom.type?1:2,Object(u["z"])(this.purchaseForm).then(function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(a){var n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=a.data,t.tableData=n.list,t.total=a.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.message)}))}}},d=p,m=(a("e652"),a("2877")),b=Object(m["a"])(d,r,l,!1,null,"50de23dd",null),h=b.exports,f=a("83d6"),_={name:"SmsConfig",components:{tableList:h},data:function(){return{roterPre:f["roterPre"],imgUrl:a("c7de"),spinShow:!1,isShowList:!1,smsAccount:"",accountInfo:{},dump:{},copy:{}}},created:function(){this.getServeInfo()},methods:{onOpen:function(t){this.$refs.tableLists.onOpenIndex(t)},mealPay:function(t){this.$router.push({path:this.roterPre+"/setting/sms/sms_pay/index",query:{type:t}})},getServeInfo:function(){var t=this;this.spinShow=!0,Object(u["N"])().then(function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(a){var n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=a.data,t.isShowList=!0,t.dump={num:n.export_dump_num,open:n.crmeb_serve_dump},t.copy={num:n.copy_product_num,open:n.copy_product_status},t.spinShow=!1,t.smsAccount=n.account,t.accountInfo=n;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message),t.isShowLogn=!0,t.isShowList=!1,t.spinShow=!1}))}}},v=_,g=(a("193b"),Object(m["a"])(v,n,i,!1,null,"2eab99e8",null));e["default"]=g.exports}}]);