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