62c7e9d.js 7.5 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[23],{480:function(t,e,n){},622:function(t,e,n){"use strict";n(480)},757:function(t,e,n){"use strict";n.r(e);n(18),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=["项目ID","核定价格","托管费用","押金","次月托管","结算周期","结算金额","退回金额","预计发薪","发薪日期","状态","负责人","操作","备注","项目状态","账单ID","企业方","开发者","试用天数"],_=["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"],f=["80","80","100","80","100","120","80","80","90","80","80","100","80","180","80","80","100","100","80"],m={data:function(){return{totalData:{},jobID:"",period:"",status:"",jobStatusList:[],checkUser:"",periodStatusList:[],totalCount:0,currentPage:1,currentPageSize:20,tableWidths:f,tableHeaders:d,tableProps:_,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(o.a)(regeneratorRuntime.mark((function e(){var n,data,r,o;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:n=e.sent,data=n.data,console.log(data),data&&(r=data.jobStatusList,o=data.periodStatusList,t.jobStatusList=r,t.periodStatusList=o);case 6:case"end":return e.stop()}}),e)})))()},clickOperate:function(t){var e=t.job_id,n=t.id;window.open(this.$store.state.domainConfig.rooterUrl+"/main/wage_settlement?job_id=".concat(e,"&period_id=").concat(n))},clickOrder:function(i){window.open(this.$store.state.domainConfig.rooterUrl+"/main/wage_details?job_id=".concat(i.job_id,"&period_id=").concat(i.id))},clickDev:function(t){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/user/".concat(t))},clickCompany:function(t){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/user/".concat(t))},clickJobID:function(t){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/cloudjobitem/".concat(t))},clickRetry:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.$post("/api/admin/payment/redoDraw",{id:t});case 2:n.sent;case 3:case"end":return n.stop()}}),n)})))()},tableRowClassName:function(t){var e=t.row,n=(t.rowIndex,"");return"结束合作"===e.j_status_name&&(n="end-row"),n},formatTableData:function(data){return data.map((function(i){return l(l({},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(o.a)(regeneratorRuntime.mark((function e(){var body,n,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:n=e.sent,data=n.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)})))()}}},w=(n(622),n(4)),component=Object(w.a)(m,(function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"cloud-balance"}},[e("section",{staticClass:"top"},[e("h3",[t._v("云端财务列表")]),t._v(" "),e("section",[e("span",[t._v("\n 托管总金额:\n "),e("b",[t._v(t._s(t.totalFee))])]),t._v(" "),e("span",[t._v("\n 押金总金额:\n "),e("b",[t._v(t._s(t.totalDeposit))])])])]),t._v(" "),e("section",{staticClass:"selector-box"},[e("section",{staticClass:"selector-box-left"},[e("el-select",{attrs:{placeholder:"项目状态"},model:{value:t.status,callback:function(e){t.status=e},expression:"status"}},t._l(t.jobStatusList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),t._v(" "),e("el-select",{attrs:{placeholder:"账单状态"},model:{value:t.period,callback:function(e){t.period=e},expression:"period"}},t._l(t.periodStatusList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),t._v(" "),e("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"负责人"},model:{value:t.checkUser,callback:function(e){t.checkUser=e},expression:"checkUser"}}),t._v(" "),e("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"项目ID"},model:{value:t.jobID,callback:function(e){t.jobID=e},expression:"jobID"}}),t._v(" "),e("el-button",{on:{click:t.clickSearchConfirm}},[t._v("确认")])],1),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:t.clickExport}},[t._v("导出")])],1),t._v(" "),e("div",{staticClass:"table"},[t.tableData.length?e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.tableData,"row-class-name":t.tableRowClassName}},t._l(t.tableProps,(function(n,r){return e("el-table-column",{key:r,attrs:{width:t.tableWidths[r],prop:n,label:t.tableHeaders[r]},scopedSlots:t._u([{key:"default",fn:function(r){return["id"===n?e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickOrder(r.row)}}},[t._v(t._s(r.row[n]))]):"job_id"===n?e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickJobID(r.row[n])}}},[t._v(t._s(r.row[n]))]):"company"===n?e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickCompany(r.row.uid)}}},[t._v(t._s(r.row[n]))]):"operate"===n?e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickOperate(r.row)}}},[t._v(t._s(r.row[n]))]):"dev_realname"===n?e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickDev(r.row.developer_uid)}}},[t._v(t._s(r.row[n]))]):e("span","payAround"===n?{domProps:{innerHTML:t._s(r.row[n])}}:[t._v(t._s(r.row[n]))])]}}],null,!0)})})),1):t._e()],1),t._v(" "),e("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,"68e86021",null);e.default=component.exports}}]);