6c72795139d39bf62a8f.js 5.5 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[20],{402:function(t,e,r){},449:function(t,e,r){"use strict";var n=r(402);r.n(n).a},496:function(t,e,r){"use strict";r.r(e);r(31),r(11),r(7),r(4),r(22),r(174);var n=r(9),o=(r(30),r(3));function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var l=["项目名称","付款类型","用户昵称","银行卡号","税前应付","平台服务费","所得税费","开发者净收入","本次应付","实际到账","结算时间","付款流水号","付款时间","操作"],_=["projectName","payTypeShow","nickname","bankCode","prePay","servicePay","getPay","realGet","current_gongmall","amount","create_time","gongmall_order_id","pay_timeShow","state"],f={data:function(){return{titleInfo:{},totalCount:0,currentPage:1,tableHeaders:l,tableProps:_,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(i){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("/api/admin/gongmall/confirm_pay",{id:i.id,amount:i.current_gongmall,nickname:i.nickname});case 2:e.sent&&t.getTableData();case 4:case"end":return e.stop()}}),e)})))()},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="--",r="",o="",l="",_="";return"3"===i.entity_type?(e=t.periodList[i.entity_id].pro_name,r=((t.periodList[i.entity_id].origin_price||0)/100).toFixed(2),o=((t.periodList[i.entity_id].person_platform_fee||0)/100).toFixed(2),l=t.periodList[i.entity_id].total_person_tax_fee||0,_=t.periodList[i.entity_id].developer_fee||0):("1"===i.entity_type&&(e=t.projectList[i.entity_id].pro_name),r=((t.projectList[i.entity_id].origin_price||0)/100).toFixed(2),o=((t.projectList[i.entity_id].person_platform_fee||0)/100).toFixed(2),l=t.projectList[i.entity_id].total_person_tax_fee||0,_=t.projectList[i.entity_id].developer_fee||0),function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},i,{projectName:e,payTypeShow:"1"===i.pay_type?"首付款":"解冻款",bankCode:t.bankAccounts[i.uid]||"--",prePay:r,servicePay:o,getPay:l,realGet:_,pay_timeShow:i.pay_time>0?new Date(i.pay_time).toLocaleDateString():"--"})}))},getTableData:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var p,r,data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.tableData=[],p=t.currentPage,e.next=4,t.$post("/api/admin/gongmall/orders",{p:p});case 4:r=e.sent,data=r.data,n=data.list,t.tableData=t.formatTableData(n,data),t.totalCount=Number(data.total),t.totalPage=data.totalPage;case 10:case"end":return e.stop()}}),e)})))()}}},y=(r(449),r(2)),component=Object(y.a)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"cloud-job"}},[r("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(" "),r("div",{staticClass:"table"},[t.tableData.length?r("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.tableData}},t._l(t.tableProps,(function(e,n){return r("el-table-column",{key:n,attrs:{prop:e,label:t.tableHeaders[n]},scopedSlots:t._u([{key:"default",fn:function(n){return["projectName"===e?r("a",{attrs:{href:t._f("projectLink")(n.row),target:"_blank"}},[t._v(t._s(n.row[e]))]):"nickname"===e?r("a",{attrs:{href:"/rooter/user/"+n.row.uid,target:"_blank"}},[t._v(t._s(n.row[e]))]):"create_time"===e?r("span",[t._v(t._s(t._f("toDate")(n.row[e])))]):"state"===e?["1"===n.row[e]?r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.confirmPay(n.row)}}},[t._v("确认付款")]):"4"===n.row[e]?r("span",[t._v("已提交")]):"8"===n.row[e]?r("span",[t._v("已成功")]):"16"===n.row[e]?r("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.rePay(n.row)}}},[t._v("失败重试")]):r("span",[t._v("--")])]:r("span",[t._v(t._s(n.row[e]))])]}}],null,!0)})})),1):t._e()],1),t._v(" "),r("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,"7fed341b",null);e.default=component.exports}}]);