You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
crmeb_php/public/mer/js/chunk-3e2c114c.07fc2418.js

1 lines
11 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e2c114c"],{"147a":function(t,e,n){"use strict";n("8b6e")},5296:function(t,e,n){"use strict";n("6620")},6620:function(t,e,n){},"8b6e":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"m",(function(){return r})),n.d(e,"u",(function(){return o})),n.d(e,"x",(function(){return i})),n.d(e,"v",(function(){return s})),n.d(e,"w",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"f",(function(){return m})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return h})),n.d(e,"A",(function(){return b})),n.d(e,"B",(function(){return g})),n.d(e,"j",(function(){return v})),n.d(e,"k",(function(){return _})),n.d(e,"l",(function(){return y})),n.d(e,"y",(function(){return w})),n.d(e,"z",(function(){return C})),n.d(e,"n",(function(){return F})),n.d(e,"o",(function(){return k})),n.d(e,"i",(function(){return x})),n.d(e,"h",(function(){return O})),n.d(e,"C",(function(){return S})),n.d(e,"p",(function(){return j})),n.d(e,"r",(function(){return L})),n.d(e,"s",(function(){return z})),n.d(e,"t",(function(){return P})),n.d(e,"q",(function(){return $}));var a=n("0c6d");function r(t){return a["a"].get("system/role/lst",t)}function o(){return a["a"].get("system/role/create/form")}function i(t){return a["a"].get("system/role/update/form/".concat(t))}function s(t){return a["a"].delete("system/role/delete/".concat(t))}function c(t,e){return a["a"].post("system/role/status/".concat(t),{status:e})}function u(t){return a["a"].get("system/admin/lst",t)}function l(){return a["a"].get("/system/admin/create/form")}function d(t){return a["a"].get("system/admin/update/form/".concat(t))}function p(t){return a["a"].delete("system/admin/delete/".concat(t))}function m(t,e){return a["a"].post("system/admin/status/".concat(t),{status:e})}function f(t){return a["a"].get("system/admin/password/form/".concat(t))}function h(t){return a["a"].get("system/admin/log",t)}function b(){return a["a"].get("take/info")}function g(t){return a["a"].post("take/update",t)}function v(){return a["a"].get("margin/code")}function _(t){return a["a"].get("margin/lst",t)}function y(){return a["a"].post("financial/refund/margin")}function w(){return a["a"].get("serve/info")}function C(t){return a["a"].get("serve/meal",t)}function F(t){return a["a"].get("serve/code",t)}function k(t){return a["a"].get("serve/paylst",t)}function x(t){return a["a"].get("expr/temps",t)}function O(){return a["a"].get("serve/config")}function S(t){return a["a"].post("serve/config",t)}function j(){return a["a"].get("store/printer/create/form")}function L(t){return a["a"].get("store/printer/lst",t)}function z(t,e){return a["a"].post("store/printer/status/".concat(t),e)}function P(t){return a["a"].get("store/printer/update/".concat(t,"/form"))}function $(t){return a["a"].delete("store/printer/delete/".concat(t))}},c7de:function(t,e,n){t.exports=n.p+"mer/img/ren.c7bc0d99.png"},f28d:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"divBox"},[t.isShowList?n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t.accountInfo.info?n("div",{staticClass:"acea-row header-count row-middle"},[n("div",{staticClass:"header-extra"},[n("div",{staticClass:"mb-5"},[n("span",[t._v("采集次数")])]),t._v(" "),n("div",[n("div",[t._v(t._s(t.copy.num||0))]),t._v(" "),n("el-button",{staticClass:"mt3",attrs:{size:"small",type:"primary",disabled:2!=t.copy.open},on:{click:function(e){return t.mealPay("copy")}}},[t._v("套餐购买")])],1)]),t._v(" "),n("div",{staticClass:"header-extra"},[n("div",{staticClass:"mb-5"},[n("span",[t._v("面单打印次数")])]),t._v(" "),n("div",[n("div",[t._v(t._s(t.dump.num||0))]),t._v(" "),n("el-button",{staticClass:"mt3",attrs:{size:"small",type:"primary",disabled:1!=t.dump.open},on:{click:function(e){return t.mealPay("dump")}}},[t._v("套餐购买")])],1)])]):n("div",{staticClass:"demo-basic--circle acea-row row-middle"},[n("span",{staticStyle:{color:"red"}},[t._v("平台未登录一号通!")])])])]):t._e()],1),t._v(" "),n("el-card",{staticClass:"ivu-mt"},[t.isShowList?n("table-list",{ref:"tableLists",attrs:{copy:t.copy,dump:t.dump,"account-info":t.accountInfo}}):t._e()],1)],1)},r=[],o=n("c80c"),i=(n("96cf"),n("3b8d")),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{attrs:{bordered:!1,"dis-hover":""}},[n("el-tabs",{on:{"tab-click":t.onChangeType},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},[n("el-tab-pane",{attrs:{label:"商品采集",name:"copy"}}),t._v(" "),n("el-tab-pane",{attrs:{label:"电子面单打印",name:"mer_dump"}})],1),t._v(" "),n("el-row",[n("el-col",{staticClass:"record_count",attrs:{span:24}},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:t.getPurchase}},[t._v("购买记录")])],1)],1),t._v(" "),n("div",[n("el-table",{staticClass:"table",attrs:{data:t.tableList,loading:t.loading,size:"mini"}},[n("el-table-column",{key:"7",attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"1",attrs:{prop:"info.order_sn",label:"订单号","min-width":"200"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"2",attrs:{prop:"info.from_name",label:"发货人","min-width":"90"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{attrs:{label:"收货人","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("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?n("el-table-column",{key:"3",attrs:{prop:"info.delivery_id",label:"快递单号","min-width":"90"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"4",attrs:{prop:"info.delivery_name",label:"快递公司编码","min-width":"90"}}):t._e(),t._v(" "),"copy"==t.tableFrom.type?n("el-table-column",{key:"6",attrs:{prop:"info",label:"复制URL","min-width":"200"}}):t._e(),t._v(" "),n("el-table-column",{key:"8",attrs:{prop:"create_time",label:"copy"!=t.tableFrom.type?"打印时间":"添加时间","min-width":"90"}})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1),t._v(" "),t.dialogVisible?n("el-dialog",{attrs:{title:"copy"==t.tableFrom.type?"商品采集购买记录":"电子面单购买记录",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-table",{staticClass:"mt25",attrs:{data:t.tableData,loading:t.loading}},[n("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.purchaseForm.page-1)*t.purchaseForm.limit+1))])]}}],null,!1,2493257592)}),t._v(" "),n("el-table-column",{attrs:{prop:"order_sn",label:"订单号","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"购买记录","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.order_info?n("span",[t._v(t._s(e.row.order_info.price)+"元 / "+t._s(e.row.order_info.num)+"次")]):t._e()]}}],null,!1,3496719446)}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"购买时间","min-width":"90"}})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.purchaseForm.limit,"current-page":t.purchaseForm.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChangeOther,"current-change":t.pageChangeOther}})],1)],1):t._e()],1)},c=[],u=n("c4c8"),l=n("90e7"),d={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(u["Z"])(this.tableFrom).then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.tableList=a.list,t.total=n.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(l["o"])(this.purchaseForm).then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.tableData=a.list,t.total=n.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)}))}}},p=d,m=(n("5296"),n("2877")),f=Object(m["a"])(p,s,c,!1,null,"220c2673",null),h=f.exports,b=n("83d6"),g={name:"SmsConfig",components:{tableList:h},data:function(){return{roterPre:b["roterPre"],imgUrl:n("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(l["y"])().then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.isShowList=!0,t.dump={num:a.export_dump_num,open:a.crmeb_serve_dump},t.copy={num:a.copy_product_num,open:a.copy_product_status},t.spinShow=!1,t.smsAccount=a.account,t.accountInfo=a;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,_=(n("147a"),Object(m["a"])(v,a,r,!1,null,"cbe0a1ca",null));e["default"]=_.exports}}]);