| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[83],{517:function(t,e,r){},634:function(t,e,r){"use strict";r(517)},748:function(t,e,r){"use strict";r.r(e);var n=r(7),o=(r(40),{name:"user_cards_list",data:function(){return{catetype:2,page:1,total:0,status:0,type:"0",keywords:"",listData:[],loading:!1,count:{},logList:[],labelPosition:"left",editRate:{sale_order_rate:0,sale_workfile_rate:0,sale_skill_rate:0,sale_video_rate:0},editDialog:!1}},mounted:function(){this.getList()},methods:{addDialogEvent:function(t){this.add_form.parent_id=t.category_id,this.addDialog=!0},sale_order_rate:function(){var t=this;this.$prompt("请输入服务比例X%","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(e){var r=e.value;t.change_sale_order_rate(r)})).catch((function(){t.loading=!1,t.$message({type:"info",message:"取消输入"})}))},editDialogEvent:function(){this.editDialog=!0},rateUpdate:function(){var t=this;this.$post("/api/admin/sale/saleOrderRate",this.editRate).then((function(e){e&&1===e.status&&(t.getList(),t.$message.success("设置成功"),t.editDialog=!1)}))},addmemo:function(t){var e=this;this.$prompt("请输入备注","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(r){var n=r.value;e.change_sale_order_memo(t,n)})).catch((function(){e.loading=!1,e.$message({type:"info",message:"取消输入"})}))},change_sale_order_memo:function(t,e){var r=this;return Object(n.a)(regeneratorRuntime.mark((function n(){var o,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.id,r.loading=!0,n.next=4,r.$post("/api/admin/sale/sale_order_memo",{order_id:o,memo:e});case 4:(l=n.sent)&&1===l.status?(r.$message({type:"success",message:"操作成功!"}),r.loading=!1,r.getList()):r.loading=!1;case 6:case"end":return n.stop()}}),n)})))()},pay_func:function(t,e){var r=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r.loading=!0,e.next=4,r.$post("/api/admin/sale/order_pay",{order_id:n});case 4:(o=e.sent)&&1===o.status?(r.$message({type:"success",message:"操作成功!"}),r.loading=!1,r.getList()):r.loading=!1;case 6:case"end":return e.stop()}}),e)})))()},pay:function(t,e){var r=this;return Object(n.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定付款后将不可逆, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){r.pay_func(t,e)})).catch((function(){r.$message({type:"info",message:"已取消"})}));case 2:case"end":return n.stop()}}),n)})))()},tk_func:function(t,e){var r=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r.loading=!0,e.next=4,r.$post("/api/admin/sale/order_tk",{order_id:n});case 4:(o=e.sent)&&1===o.status?(r.$message({type:"success",message:"操作成功!"}),r.loading=!1,r.getList()):r.loading=!1;case 6:case"end":return e.stop()}}),e)})))()},tk:function(t,e){var r=this;return Object(n.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r.$confirm("确定退款后将不可逆, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){r.tk_func(t,e)})).catch((function(){r.$message({type:"info",message:"已取消"})}));case 1:case"end":return n.stop()}}),n)})))()},change_sale_order_rate:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.loading=!0,r.next=3,e.$post("/api/admin/sale/sale_order_rate",{rate:t});case 3:(n=r.sent)&&1===n.status?(e.$message({type:"success",message:"操作成功!"}),e.rate=t,e.loading=!1):e.loading=!1;case 5:case"end":return r.stop()}}),r)})))()},isRemind:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.loading=!0,e.logListFunc(t.id),r.next=4,e.$post("/api/admin/sale/orderRemind",{id:t.id});case 4:(n=r.sent)&&1===n.status?(e.getList(),e.loading=!1):e.loading=!1;case 6:case"end":return r.stop()}}),r)})))()},typechange:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.page=1,e.type=t,e.keywords="",e.getList();case 4:case"end":return r.stop()}}),r)})))()},statuschange:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.page=1,e.status=t,e.keywords="",e.getList();case 4:case"end":return r.stop()}}),r)})))()},searchkeywords:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.page=1,t.keywords=t.keywords,t.getList();case 3:case"end":return e.stop()}}),e)})))()},logListFunc:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var n,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={sale_id:t},r.next=3,e.$post("/api/admin/sale/logList",n);case 3:o=r.sent,e.logList=o.data;case 5:case"end":return r.stop()}}),r)})))()},getList:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var data,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return data={page:t.page,status:t.status,type:t.type,keywords:t.keywords},e.next=3,t.$post("/api/admin/sale/order_list",data);case 3:(r=e.sent)&&1===r.status&&(t.listData=r.data.list||[],t.total=1*r.data.total,t.count=r.data.count,t.editRate=r.data.rate);case 5:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page=t,this.getAuditList()},viewDetail:function(t){var e=this.$store.state.domainConfig.siteUrl;1==t.type?e+="/l/".concat(t.project_id):2==t.type?e+="/c/".concat(t.sale_uid):3==t.type&&(e+="/w/".concat(t.project_id)),window.open(e)}}}),l=(r(634),r(4)),component=Object(l.a)(o,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("el-radio-group",{staticStyle:{"margin-top":"15px"},attrs:{size:"medium"},on:{change:t.typechange},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("el-radio-button",{attrs:{label:0}},[t._v("全部("+t._s(t.count.type_total)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:1}},[t._v("技能服务("+t._s(t.count.type1)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:2}},[t._v("咨询服务("+t._s(t.count.type2)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:3}},[t._v("资源下载("+t._s(t.count.type3)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:4}},[t._v("视频购买("+t._s(t.count.type4)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:5}},[t._v("开源充电("+t._s(t.count.type5)+")")])],1),t._v(" "),e("el-button",{staticStyle:{"margin-top":"15px","margin-right":"30px",float:"right"},attrs:{type:"success"},on:{click:function(e){return t.editDialogEvent()}}},[t._v("服务费配置")]),t._v(" "),e("div",{staticStyle:{clear:"both"}}),t._v(" "),e("el-radio-group",{staticStyle:{"margin-top":"15px"},attrs:{size:"medium"},on:{change:t.statuschange},model:{value:t.status,callback:function(e){t.status=e},expression:"status"}},[e("el-radio-button",{attrs:{label:0}},[t._v("全部("+t._s(t.count.status_total)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:1}},[t._v("待接单("+t._s(t.count.status1)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:2}},[t._v("进行中("+t._s(t.count.status2)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:3}},[t._v("已完成("+t._s(t.count.status3)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:4}},[t._v("待结薪("+t._s(t.count.status4)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:5}},[t._v("已拒绝("+t._s(t.count.status5)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:6}},[t._v("已结薪("+t._s(t.count.status6)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:7}},[t._v("退款中("+t._s(t.count.status7)+")")]),t._v(" "),e("el-radio-button",{attrs:{label:8}},[t._v("已退款("+t._s(t.count.status8)+")")])],1),t._v(" "),e("div",{staticStyle:{clear:"both"}}),t._v(" "),e("div",{staticStyle:{"margin-top":"15px","margin-bottom":"15px"}},[e("div",{staticStyle:{float:"left",width:"200px","margin-right":"15px"}},[e("el-input",{attrs:{placeholder:"UID搜索"},model:{value:t.keywords,callback:function(e){t.keywords=e},expression:"keywords"}})],1),t._v(" "),e("div",{staticStyle:{float:"left",width:"200px","margin-right":"15px"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.searchkeywords}},[t._v("搜索")])],1),t._v(" "),e("div",{staticStyle:{clear:"both"}})]),t._v(" "),e("div",[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.listData,border:""}},[e("el-table-column",{attrs:{prop:"type_text",label:"服务类型"}}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"购买方"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",{staticClass:"lblue point"},[e("a",{attrs:{target:"_blank",href:r.row.host+"/rooter/user/"+r.row.buy_uid}},[t._v(t._s(r.row.buy_nickname)+"("+t._s(r.row.buy_uid)+")")])])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"服务方"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",{staticClass:"lblue point"},[e("a",{attrs:{target:"_blank",href:r.row.host+"/rooter/user/"+r.row.sale_uid}},[t._v(t._s(r.row.sale_nickname)+"("+t._s(r.row.sale_uid)+")")])])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"pay_price",label:"购买金额"}}),t._v(" "),e("el-table-column",{attrs:{prop:"real_price",label:"实收金额"}}),t._v(" "),e("el-table-column",{attrs:{prop:"paytime",label:"付款时间"}}),t._v(" "),e("el-table-column",{attrs:{prop:"version",label:"购买来源"}}),t._v(" "),e("el-table-column",{attrs:{prop:"status_text",label:"服务状态"}}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"购买服务"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",{staticClass:"lblue point"},[e("a",{attrs:{target:"_blank"},on:{click:function(e){return t.viewDetail(r.row)}}},[t._v(t._s(r.row.title))])])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"memo",label:"备注"}}),t._v(" "),e("el-table-column",{attrs:{prop:"uid",label:"操作","min-width":"120px"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-button",{staticClass:"status",attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.addmemo(r.row)}}},[t._v("添加备注")]),t._v(" "),1==r.row.status&&0==r.row.is_remind?e("el-button",{staticClass:"status",attrs:{type:"danger",size:"mini"},on:{click:function(e){return t.isRemind(r.row)}}},[t._v("提醒接单")]):t._e(),t._v(" "),1==r.row.status&&1==r.row.is_remind?e("el-button",{staticClass:"status",attrs:{type:"info",size:"mini",plain:"",disabled:""}},[t._v("已提醒")]):t._e(),t._v(" "),4==r.row.status?e("el-button",{staticClass:"status",attrs:{type:"success",size:"mini"},on:{click:function(e){return t.pay(r.row)}}},[t._v("结算酬劳")]):t._e(),t._v(" "),7==r.row.status?e("el-button",{staticClass:"status",attrs:{type:"warning",size:"mini"},on:{click:function(e){return t.tk(r.row)}}},[t._v("去退款")]):t._e(),t._v(" "),8==r.row.status?e("el-button",{staticClass:"status",attrs:{type:"info",size:"mini",plain:"",disabled:""}},[t._v("已退款")]):t._e()]}}])})],1)],1),t._v(" "),e("div",{staticStyle:{"padding-top":"5px"}},[e("el-pagination",{staticClass:"order-footer",attrs:{background:"",layout:"total, prev, pager, next","page-size":20,total:t.total,"current-page":t.page},on:{"update:currentPage":function(e){t.page=e},"update:current-page":function(e){t.page=e},"current-change":t.handleCurrentChange}})],1),t._v(" "),e("el-dialog",{attrs:{title:"设置服务费",visible:t.editDialog,width:"500px"},on:{"update:visible":function(e){t.editDialog=e}}},[e("el-form",{attrs:{model:t.editRate,"label-position":t.labelPosition,"label-width":"120px"}},[e("el-form-item",{attrs:{label:"资源购买服务费"}},[e("el-input",{attrs:{autocomplete:"off"},model:{value:t.editRate.sale_workfile_rate,callback:function(e){t.$set(t.editRate,"sale_workfile_rate",e)},expression:"editRate.sale_workfile_rate"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"技能培训服务费"}},[e("el-input",{attrs:{autocomplete:"off"},model:{value:t.editRate.sale_skill_rate,callback:function(e){t.$set(t.editRate,"sale_skill_rate",e)},expression:"editRate.sale_skill_rate"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"咨询服务服务费"}},[e("el-input",{attrs:{autocomplete:"off"},model:{value:t.editRate.sale_order_rate,callback:function(e){t.$set(t.editRate,"sale_order_rate",e)},expression:"editRate.sale_order_rate"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"课程视频服务费"}},[e("el-input",{attrs:{autocomplete:"off"},model:{value:t.editRate.sale_video_rate,callback:function(e){t.$set(t.editRate,"sale_video_rate",e)},expression:"editRate.sale_video_rate"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"开源充电服务费"}},[e("el-input",{attrs:{autocomplete:"off"},model:{value:t.editRate.sale_recharge_rate,callback:function(e){t.$set(t.editRate,"sale_recharge_rate",e)},expression:"editRate.sale_recharge_rate"}})],1)],1),t._v(" "),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"medium"},on:{click:function(e){t.editDialog=!1}}},[t._v("取消")]),t._v(" "),e("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.rateUpdate}},[t._v("确定")])],1)],1)],1)}),[],!1,null,"70e573ba",null);e.default=component.exports}}]);
|