| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[21],{424:function(t,e,n){var content=n(482);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(4).default)("0e7d1569",content,!0,{sourceMap:!1})},481:function(t,e,n){"use strict";var r=n(424);n.n(r).a},482:function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".table[data-v-c370d694]{height:100%;height:calc(100% - 80px)}",""])},533:function(t,e,n){"use strict";n.r(e);n(168);var r=n(5),o=(n(39),n(6)),c=["项目名称","付款类型","用户昵称","银行卡号","税前应付","平台服务费","所得税费","开发者净收入","本次应付","实际到账","结算时间","付款流水号","付款时间","操作"],l=["projectName","payTypeShow","nickname","bankCode","prePay","servicePay","getPay","realGet","current_gongmall","amount","create_time","gongmall_order_id","pay_timeShow","state"],_={data:function(){return{titleInfo:{},totalCount:0,currentPage:1,tableHeaders:c,tableProps:l,tableData:[]}},mounted:function(){this.getTableData()},filters:{toDate:function(t){return new Date(1e3*t).toLocaleDateString()},projectLink:function(i){var t=i.entity_type,link="javascript:void(0);";return"1"===t?link="/rooter/outsourceitem/".concat(i.entity_id,">"):"3"===t&&(link="/rooter/wagedetails?job_id=".concat(i.entity_id)),link}},methods:{rePay:function(){var t=Object(o.a)(regeneratorRuntime.mark(function t(i){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$post("/api/admin/gongmall/confirm_pay",{id:i.id,amount:i.current_gongmall,nickname:i.nickname});case 2:t.sent&&this.getTableData();case 4:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),confirmPay:function(i){this.rePay(i)},changePagination:function(){this.getTableData()},formatTableData:function(data,t){return this.titleInfo={availableAmount:t.accountBalance.availableAmount,totalWaitConfirm:t.totalWaitConfirm?t.totalWaitConfirm/100:"--",amount:t.accountBalance.amount,totalWaitPay:t.totalWaitPay?t.totalWaitPay/100:"--",totalSuccessPay:t.totalSuccessPay?t.totalSuccessPay/100:"--"},data.map(function(i){var e="--",n="",o="",c="",l="";return"3"===i.entity_type?(e=t.periodList[i.entity_id].pro_name,n=((t.periodList[i.entity_id].origin_price||0)/100).toFixed(2),o=((t.periodList[i.entity_id].person_platform_fee||0)/100).toFixed(2),c=t.periodList[i.entity_id].total_person_tax_fee||0,l=t.periodList[i.entity_id].developer_fee||0):("1"===i.entity_type&&(e=t.projectList[i.entity_id].pro_name),n=((t.projectList[i.entity_id].origin_price||0)/100).toFixed(2),o=((t.projectList[i.entity_id].person_platform_fee||0)/100).toFixed(2),c=t.projectList[i.entity_id].total_person_tax_fee||0,l=t.projectList[i.entity_id].developer_fee||0),Object(r.a)({},i,{projectName:e,payTypeShow:"1"===i.pay_type?"首付款":"解冻款",bankCode:t.bankAccounts[i.uid]||"--",prePay:n,servicePay:o,getPay:c,realGet:l,pay_timeShow:i.pay_time>0?new Date(i.pay_time).toLocaleDateString():"--"})})},getTableData:function(){var t=Object(o.a)(regeneratorRuntime.mark(function t(){var p,e,data,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.tableData=[],p=this.currentPage,t.next=4,this.$post("/api/admin/gongmall/orders",{p:p});case 4:e=t.sent,data=e.data,n=data.list,this.tableData=this.formatTableData(n,data),this.totalCount=Number(data.total),this.totalPage=data.totalPage;case 10:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}},d=(n(481),n(2)),component=Object(d.a)(_,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"cloud-job"}},[n("div",{staticClass:"title"},[t._v("企业账户:可用余额"+t._s(t.titleInfo.availableAmount)+"元 待确认金额"+t._s(t.titleInfo.totalWaitConfirm)+"元 帐户总金额"+t._s(t.titleInfo.amount)+"元 待付款金额"+t._s(t.titleInfo.totalWaitPay)+"元 成功支付金额"+t._s(t.titleInfo.totalSuccessPay)+"元")]),t._v(" "),n("div",{staticClass:"table"},[t.tableData.length?n("el-table",{staticStyle:{width:"100%"},attrs:{height:"100%",border:"",data:t.tableData}},t._l(t.tableProps,function(e,r){return n("el-table-column",{key:r,attrs:{prop:e,label:t.tableHeaders[r]},scopedSlots:t._u([{key:"default",fn:function(r){return["projectName"===e?n("a",{attrs:{href:t._f("projectLink")(r.row),target:"_blank"}},[t._v(t._s(r.row[e]))]):"nickname"===e?n("a",{attrs:{href:"/rooter/user/"+r.row.uid,target:"_blank"}},[t._v(t._s(r.row[e]))]):"create_time"===e?n("span",[t._v(t._s(t._f("toDate")(r.row[e])))]):"state"===e?["1"===r.row[e]?n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.confirmPay(r.row)}}},[t._v("确认付款")]):"4"===r.row[e]?n("span",[t._v("已提交")]):"8"===r.row[e]?n("span",[t._v("已成功")]):"16"===r.row[e]?n("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.rePay(r.row)}}},[t._v("失败重试")]):n("span",[t._v("--")])]:n("span",[t._v(t._s(r.row[e]))])]}}],null,!0)})}),1):t._e()],1),t._v(" "),n("el-pagination",{attrs:{"current-page":t.currentPage,"page-size":10,layout:"total, prev, pager, next",total:t.totalCount},on:{"current-change":t.changePagination,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}})],1)},[],!1,null,"c370d694",null);e.default=component.exports}}]);
|