191a6a2221d4a4a37bb6.js 8.3 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[14],{416:function(t,e,o){var content=o(459);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(4).default)("2e8174ba",content,!0,{sourceMap:!1})},458:function(t,e,o){"use strict";var n=o(416);o.n(n).a},459:function(t,e,o){(t.exports=o(3)(!1)).push([t.i,"#cloud-balance[data-v-1514603a]{white-space:nowrap;overflow-x:scroll}.top[data-v-1514603a]{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-1514603a]{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-1514603a]{margin-top:10px;height:calc(100% - 160px)}.end-row[data-v-1514603a]{background:rgba(0,0,0,.1)}",""])},505:function(t,e,o){"use strict";o.r(e);o(168);var n=o(5),r=(o(39),o(6)),c=["项目ID","核定价格","托管费用","押金","次月托管","结算周期","结算金额","退回金额","预计发薪","发薪日期","状态","负责人","操作","备注","项目状态","账单ID","企业方","开发者","试用天数"],l=["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"],d=["80","80","100","80","100","120","80","80","90","80","80","100","80","180","80","80","100","100","80"],_={data:function(){return{totalData:{},jobID:"",period:"",status:"",jobStatusList:[],checkUser:"",periodStatusList:[],totalCount:0,currentPage:1,currentPageSize:20,tableWidths:d,tableHeaders:c,tableProps:l,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=Object(r.a)(regeneratorRuntime.mark(function t(){var e,data,o,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$get("/api/admin/job/getEnum");case 2:e=t.sent,data=e.data,console.log(data),data&&(o=data.jobStatusList,n=data.periodStatusList,this.jobStatusList=o,this.periodStatusList=n);case 6:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),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(){var t=Object(r.a)(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$post("/api/admin/payment/redoDraw",{id:e});case 2:t.sent;case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),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 Object(n.a)({},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=Object(r.a)(regeneratorRuntime.mark(function t(){var body,e,data;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.tableData=[],"/api/admin/job/get_all_periods",body={page:this.currentPage,page_size:this.currentPageSize},this.status&&(body.j_status=this.status),this.period&&(body.p_status=this.period),this.checkUser&&(body.chk_user=this.checkUser),this.jobID&&(body.job_id=this.jobID),t.next=9,this.$post("/api/admin/job/get_all_periods",body);case 9:e=t.sent,data=e.data,this.tableData=this.formatTableData(data.list),this.totalData=data,this.totalCount=Number(data.total),this.totalPage=data.totalPage,this.localData.env=data.current_env;case 16:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}},h=(o(458),o(2)),component=Object(h.a)(_,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,"1514603a",null);e.default=component.exports}}]);