| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[100],{548:function(t,e,r){},687:function(t,e,r){"use strict";r(548)},814:function(t,e,r){"use strict";r.r(e);var n=r(6),o=(r(30),{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(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=t.id,e.loading=!0,r.next=4,e.$post("/uapi/enterprise/user_bank_order/pay",{id:n});case 4:(o=r.sent)&&1===o.status?(e.$message({type:"success",message:"操作成功!"}),e.loading=!1,e.getList()):e.loading=!1;case 6:case"end":return r.stop()}}),r)})))()},pay: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:return r.next=2,e.$confirm("确定付款后将不可逆, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.pay_func(t)})).catch((function(){e.$message({type:"info",message:"已取消"})}));case 2:case"end":return r.stop()}}),r)})))()},qx: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("/uapi/enterprise/user_bank_order/qx",{id:t.id});case 3:(n=r.sent)&&1===n.status?(e.getList(),e.loading=!1,e.$message({type:"info",message:"已拒绝"})):e.loading=!1;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,order_status:t.order_status_val,keywords:t.keywords},e.next=3,t.$post("/uapi/enterprise/user_bank_order/list_admin",data);case 3:(r=e.sent)&&1===r.status&&(t.listData=r.data.list||[],t.total=1*r.data.total);case 5:case"end":return e.stop()}}),e)})))()},searchkeywords:function(){this.page=0,this.getList()},handleCurrentChange:function(t){this.page=t,this.getList()},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(687),r(4)),component=Object(l.a)(o,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[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-select",{attrs:{placeholder:"请选择"},model:{value:t.order_status_val,callback:function(e){t.order_status_val=e},expression:"order_status_val"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),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:"uid",label:"购买方"}}),t._v(" "),e("el-table-column",{attrs:{prop:"order_money",label:"订单金额"}}),t._v(" "),e("el-table-column",{attrs:{prop:"order_state_name",label:"买方信息"},scopedSlots:t._u([{key:"default",fn:function(r){return t._l(r.row.buy_memo,(function(r,n){return e("span",[e("span",{domProps:{innerHTML:t._s(n+":"+r)}}),e("br")])}))}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"收款账号"},scopedSlots:t._u([{key:"default",fn:function(r){return t._l(r.row.kz_memo,(function(r,n){return e("span",[e("span",{domProps:{innerHTML:t._s(n+":"+r)}}),e("br")])}))}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"order_status_text",label:"订单状态"}}),t._v(" "),e("el-table-column",{attrs:{prop:"uid",label:"操作","min-width":"120px"},scopedSlots:t._u([{key:"default",fn:function(r){return[1==r.row.order_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(" "),1==r.row.order_status?e("el-button",{staticClass:"status",attrs:{type:"warning",size:"mini"},on:{click:function(e){return t.qx(r.row)}}},[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":10,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)])}),[],!1,null,"fa0dab5c",null);e.default=component.exports}}]);
|