chunk-54f0b961.edab6100.js 8.5 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-54f0b961"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,n){var i=a(),s=t-i,u=20,c=0;e="undefined"===typeof e?500:e;var d=function t(){c+=u;var a=Math.easeInOutQuad(c,i,s,e);o(a),c<e?r(t):n&&"function"===typeof n&&n()};d()}},2543:function(t,e,n){"use strict";n.d(e,"k",(function(){return s})),n.d(e,"l",(function(){return u})),n.d(e,"o",(function(){return c})),n.d(e,"i",(function(){return d})),n.d(e,"m",(function(){return l})),n.d(e,"j",(function(){return f})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return g})),n.d(e,"h",(function(){return h})),n.d(e,"n",(function(){return b})),n.d(e,"f",(function(){return v})),n.d(e,"d",(function(){return y})),n.d(e,"e",(function(){return _})),n.d(e,"g",(function(){return O}));var r=n("b775"),o=n("4328"),a=n.n(o),i="/api-web";function s(t){return Object(r["a"])({url:i+"/goods/queryPage",method:"get",params:t})}function u(t){return Object(r["a"])({url:i+"/goods/get/".concat(t),method:"get"})}function c(t){return Object(r["a"])({url:i+"/goods/updateGoodsStatus",method:"post",data:a.a.stringify(t)})}function d(t){return Object(r["a"])({url:i+"/goods/add",method:"post",data:a.a.stringify(t)})}function l(t){return Object(r["a"])({url:i+"/goods/update",method:"post",data:a.a.stringify(t)})}function f(t){return Object(r["a"])({url:i+"/goods/del/".concat(t),method:"post"})}function p(t){return Object(r["a"])({url:i+"/category/queryPage",method:"get",params:t})}function m(t){return Object(r["a"])({url:i+"/category/upset",method:"post",data:t})}function g(t){return Object(r["a"])({url:i+"/category/del",method:"post",data:a.a.stringify(t)})}function h(t){return Object(r["a"])({url:i+"/subjectChange/queryPage",method:"get",params:t})}function b(t){return Object(r["a"])({url:i+"/subjectChange/updateCostMargin",method:"post",data:a.a.stringify(t)})}function v(t){return Object(r["a"])({url:i+"/goodsProcurement/queryGoodsProcurements",method:"get",params:t})}function y(t){return Object(r["a"])({url:i+"/goods/addGoodsProcurement",method:"post",params:t})}function _(t){return Object(r["a"])({url:i+"/swTempJc/queryPageForCourseSchedule",method:"get",params:t})}function O(t){return Object(r["a"])({url:i+"/swTempJc/queryPageForExtensionOrder",method:"get",params:t})}},e29f:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[n("el-form-item",{attrs:{prop:"courseStatus"}},[n("el-input",{attrs:{placeholder:"请输入订单编号"},model:{value:t.searchForm.orderNo,callback:function(e){t.$set(t.searchForm,"orderNo",e)},expression:"searchForm.orderNo"}})],1),t._v(" "),n("el-form-item",{attrs:{prop:"extensionUserId"}},[n("remote-search",{attrs:{ariaPlaceholder:"请选择推广人员",commit:"setTeachers",demissionFlag:!0,isForzenWithQueryCondition:!0},model:{value:t.searchForm.extensionUserId,callback:function(e){t.$set(t.searchForm,"extensionUserId",e)},expression:"searchForm.extensionUserId"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1)],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"orderNo",label:"订单编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"orderType",label:"订单类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.getOrderType(e.row.orderType))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"orderAmount",label:"订单金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyFormat")(e.row.orderAmount))+"元\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"orderAmount",label:"支付时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.payTime)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"extensionUser",label:"推广人员"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.extensionUser)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"extensionFee",label:"绩效金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyFormat")(e.row.extensionFee))+"元\n ")]}}])})],1),t._v(" "),n("pagination",{attrs:{sync:"",total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1)])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("\n 推广订单\n ")])}],a=n("c80c"),i=n("db72"),s=n("a8db"),u=(n("96cf"),n("3b8d")),c=(n("bc3a"),n("5f87"),n("333d")),d=n("2543"),l=(n("1cc7"),n("ed08"),n("3908"),["timer"]),f={COURSE_SALE:"课包销售",MUSICAL_SALE:"乐器销售",REPAIR:"维修订单",GROUP_SALE:"开团销售","":"--"},p={components:{pagination:c["a"]},data:function(){return{searchForm:{extensionUserId:null,orderNo:""},soundLists:[],organList:[],tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},categoryList:[]}},created:function(){},mounted:function(){this.$store.dispatch("setBranchs"),this.init(),this.getList()},methods:{init:function(){},search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.pageInfo.page=1,this.searchForm={search:null,organId:"",teacherIdList:"",timer:[],courseStatus:"",teachMode:""},this.getList()},getList:function(){var t=Object(u["a"])(Object(a["a"])().mark((function t(){var e,n,r,o;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.searchForm,e.timer,n=Object(s["a"])(e,l),r=Object(i["a"])({page:this.pageInfo.page,rows:this.pageInfo.limit},n),t.next=5,Object(d["g"])(r);case 5:o=t.sent,this.tableList=o.data.rows,this.pageInfo.total=o.data.total,t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),console.log(t.t0);case 13:case"end":return t.stop()}}),t,this,[[0,10]])})));function e(){return t.apply(this,arguments)}return e}(),getOrderType:function(t){return t?f[t]:"--"}}},m=p,g=n("2877"),h=Object(g["a"])(m,r,o,!1,null,"d0a434ac",null);e["default"]=h.exports},ed08:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return u}));var r=n("bd86"),o=(n("c5f6"),n("28a5"),n("a481"),n("6b54"),n("7618"),n("5a0c")),a=n.n(o);var i=function(t){var e=[];for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],o=n.toLocaleUpperCase();e.push({label:r,value:"TRUE"===o||"FALSE"===o?"TRUE"===o:n})}return e},s=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return t&&t.length?(e={},Object(r["a"])(e,n[0]||"start",a()(t[0]).isValid()?a()(t[0]).format(o):""),Object(r["a"])(e,n[1]||"end",a()(t[1]).isValid()?a()(t[1]).format(o):""),e):{}},u=function(t){var e,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return t&&t.length?"YYYY-MM-DD"===i?(e={},Object(r["a"])(e,o[0]||"start",a()(t[0]).isValid()?a()(t[0]).format(i)+" 00:00:00":""),Object(r["a"])(e,o[1]||"end",a()(t[1]).isValid()?a()(t[1]).format(i)+" 23:59:59":""),e):(n={},Object(r["a"])(n,o[0]||"start",a()(t[0]).isValid()?a()(t[0]).format(i):""),Object(r["a"])(n,o[1]||"end",a()(t[1]).isValid()?a()(t[1]).format(i):""),n):{}}}}]);