f65e7fd.js 2.6 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[59],{723:function(e,t,n){"use strict";n.r(t);var r=n(6);n(30);t.default={name:"user_bank_order",data:function(){return{catetype:2,page:1,total:0,status:0,type:"0",keywords:"",listData:[],loading:!1,count:{},options:[{value:"1",label:"待审核"},{value:"2",label:"审核通过"},{value:"3",label:"已取消"}],order_status_val:"1",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:{pay_func:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,t.loading=!0,n.next=4,t.$post("/uapi/enterprise/user_bank_order/pay",{id:r});case 4:(o=n.sent)&&1===o.status?(t.$message({type:"success",message:"操作成功!"}),t.loading=!1,t.getList()):t.loading=!1;case 6:case"end":return n.stop()}}),n)})))()},pay:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$confirm("确定付款后将不可逆, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.pay_func(e)})).catch((function(){t.$message({type:"info",message:"已取消"})}));case 2:case"end":return n.stop()}}),n)})))()},qx:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!0,n.next=3,t.$post("/uapi/enterprise/user_bank_order/qx",{id:e.id});case 3:(r=n.sent)&&1===r.status?(t.getList(),t.loading=!1,t.$message({type:"info",message:"已拒绝"})):t.loading=!1;case 5:case"end":return n.stop()}}),n)})))()},getList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var data,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return data={page:e.page,order_status:e.order_status_val,keywords:e.keywords},t.next=3,e.$post("/uapi/enterprise/user_bank_order/list_admin",data);case 3:(n=t.sent)&&1===n.status&&(e.listData=n.data.list||[],e.total=1*n.data.total);case 5:case"end":return t.stop()}}),t)})))()},searchkeywords:function(){this.page=0,this.getList()},handleCurrentChange:function(e){this.page=e,this.getList()},viewDetail:function(e){var t=this.$store.state.domainConfig.siteUrl;1==e.type?t+="/l/".concat(e.project_id):2==e.type?t+="/c/".concat(e.sale_uid):3==e.type&&(t+="/w/".concat(e.project_id)),window.open(t)}}}}}]);