80cdf13a46111fd293f6.js 8.8 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[14],{422:function(t,e,o){var content=o(478);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(4).default)("58916070",content,!0,{sourceMap:!1})},477:function(t,e,o){"use strict";var n=o(422);o.n(n).a},478:function(t,e,o){(e=o(3)(!1)).push([t.i,"#cloud-balance[data-v-0e0a7fee]{white-space:nowrap;overflow-x:scroll}.top[data-v-0e0a7fee]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:60px}.selector-box[data-v-0e0a7fee]{margin-top:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.table[data-v-0e0a7fee]{margin-top:10px;height:calc(100% - 160px)}.end-row[data-v-0e0a7fee]{background:rgba(0,0,0,.1)}",""]),t.exports=e},547:function(t,e,o){"use strict";o.r(e);o(28),o(14),o(9),o(6),o(22),o(172);var n=o(11),r=(o(32),o(5));function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}var l=["项目ID","核定价格","托管费用","押金","次月托管","结算周期","结算金额","退回金额","预计发薪","发薪日期","状态","负责人","操作","备注","项目状态","账单ID","企业方","开发者","试用天数"],d=["job_id","salary","company_pay","p_company_deposit","next_period_pay","payAround","pay_to_dev","return_money","pre_send_salary_timeShow","send_salary_time","p_status_name","chk_user","operate","settle_msg","j_status_name","id","company","dev_realname","probation_days"],_=["80","80","100","80","100","120","80","80","90","80","80","100","80","180","80","80","100","100","80"],w={data:function(){return{totalData:{},jobID:"",period:"",status:"",jobStatusList:[],checkUser:"",periodStatusList:[],totalCount:0,currentPage:1,currentPageSize:20,tableWidths:_,tableHeaders:l,tableProps:d,tableData:[],localData:{env:"test"}}},computed:{isTest:function(){return"test"===this.localData.env},whole:function(){return this.totalData.whole||{}},totalDeposit:function(){return this.whole.total_deposit},totalFee:function(){return this.whole.total_fee}},mounted:function(){this.getTableData(),this.getEnum()},methods:{clickExport:function(){window.open("/api/admin/job/get_all_periods?action=export")},getEnum:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var o,data,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$get("/api/admin/job/getEnum");case 2:o=e.sent,data=o.data,console.log(data),data&&(n=data.jobStatusList,r=data.periodStatusList,t.jobStatusList=n,t.periodStatusList=r);case 6:case"end":return e.stop()}}),e)})))()},clickOperate:function(t){var e=t.job_id,o=t.id;this.isTest?window.open("https://dev.test-rooter.proginn.com/main/wage_settlement?job_id=".concat(e,"&period_id=").concat(o)):window.open("https://rooter.proginn.com/main/wage_settlement?job_id=".concat(e,"&period_id=").concat(o))},clickOrder:function(i){this.isTest?window.open("https://dev.test-rooter.proginn.com/main/wage_details?job_id=".concat(i.job_id,"&period_id=").concat(i.id)):window.open("https://rooter.proginn.com/main/wage_details?job_id=".concat(i.job_id,"&period_id=").concat(i.id))},clickDev:function(t){this.isTest?window.open("https://dev.test.proginn.com/rooter/user/".concat(t)):window.open("https://www.proginn.com/rooter/user/".concat(t))},clickCompany:function(t){this.isTest?window.open("https://dev.test.proginn.com/rooter/user/".concat(t)):window.open("https://www.proginn.com/rooter/user/".concat(t))},clickJobID:function(t){this.isTest?window.open("https://dev.test.proginn.com/rooter/cloudjobitem/".concat(t)):window.open("https://www.proginn.com/rooter/cloudjobitem/".concat(t))},clickRetry:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,e.$post("/api/admin/payment/redoDraw",{id:t});case 2:o.sent;case 3:case"end":return o.stop()}}),o)})))()},tableRowClassName:function(t){var e=t.row,o=(t.rowIndex,"");return"结束合作"===e.j_status_name&&(o="end-row"),o},formatTableData:function(data){return data.map((function(i){return 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,{payAround:"".concat(i.start_time,"<br>").concat(i.end_time),pre_send_salary_timeShow:new Date(1e3*i.pre_send_salary_time).toLocaleDateString()})}))},clickSearchConfirm:function(){this.currentPage=1,this.getTableData()},changePageSize:function(t){this.currentPageSize=t,this.getTableData()},getTableData:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var body,o,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.tableData=[],"/api/admin/job/get_all_periods",body={page:t.currentPage,page_size:t.currentPageSize},t.status&&(body.j_status=t.status),t.period&&(body.p_status=t.period),t.checkUser&&(body.chk_user=t.checkUser),t.jobID&&(body.job_id=t.jobID),e.next=9,t.$post("/api/admin/job/get_all_periods",body);case 9:o=e.sent,data=o.data,t.tableData=t.formatTableData(data.list),t.totalData=data,t.totalCount=Number(data.total),t.totalPage=data.totalPage,t.localData.env=data.current_env;case 16:case"end":return e.stop()}}),e)})))()}}},f=(o(477),o(2)),component=Object(f.a)(w,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"cloud-balance"}},[o("section",{staticClass:"top"},[o("h3",[t._v("云端财务列表")]),t._v(" "),o("section",[o("span",[t._v("托管总金额: "),o("b",[t._v(t._s(t.totalFee))])]),t._v(" "),o("span",[t._v("押金总金额: "),o("b",[t._v(t._s(t.totalDeposit))])])])]),t._v(" "),o("section",{staticClass:"selector-box"},[o("section",{staticClass:"selector-box-left"},[o("el-select",{attrs:{placeholder:"项目状态"},model:{value:t.status,callback:function(e){t.status=e},expression:"status"}},t._l(t.jobStatusList,(function(t){return o("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),t._v(" "),o("el-select",{attrs:{placeholder:"账单状态"},model:{value:t.period,callback:function(e){t.period=e},expression:"period"}},t._l(t.periodStatusList,(function(t){return o("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),t._v(" "),o("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"负责人"},model:{value:t.checkUser,callback:function(e){t.checkUser=e},expression:"checkUser"}}),t._v(" "),o("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"项目ID"},model:{value:t.jobID,callback:function(e){t.jobID=e},expression:"jobID"}}),t._v(" "),o("el-button",{on:{click:t.clickSearchConfirm}},[t._v("确认")])],1),t._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:t.clickExport}},[t._v("导出")])],1),t._v(" "),o("div",{staticClass:"table"},[t.tableData.length?o("el-table",{staticStyle:{width:"100%"},attrs:{height:"100%",border:"",data:t.tableData,"row-class-name":t.tableRowClassName}},t._l(t.tableProps,(function(e,n){return o("el-table-column",{key:n,attrs:{width:t.tableWidths[n],prop:e,label:t.tableHeaders[n]},scopedSlots:t._u([{key:"default",fn:function(n){return["id"===e?o("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickOrder(n.row)}}},[t._v(t._s(n.row[e]))]):"job_id"===e?o("el-button",{attrs:{type:"text"},on:{click:function(o){return t.clickJobID(n.row[e])}}},[t._v(t._s(n.row[e]))]):"company"===e?o("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickCompany(n.row.uid)}}},[t._v(t._s(n.row[e]))]):"operate"===e?o("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickOperate(n.row)}}},[t._v(t._s(n.row[e]))]):"dev_realname"===e?o("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickDev(n.row.developer_uid)}}},[t._v(t._s(n.row[e]))]):o("span","payAround"===e?{domProps:{innerHTML:t._s(n.row[e])}}:[t._v(t._s(n.row[e]))])]}}],null,!0)})})),1):t._e()],1),t._v(" "),o("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":20,layout:"total, sizes, prev, pager, next, jumper",total:t.totalCount},on:{"current-change":t.getTableData,"size-change":t.changePageSize,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}})],1)}),[],!1,null,"0e0a7fee",null);e.default=component.exports}}]);