| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[17],{420:function(t,e,n){var content=n(472);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(4).default)("7bc8d96c",content,!0,{sourceMap:!1})},471:function(t,e,n){"use strict";var r=n(420);n.n(r).a},472:function(t,e,n){(t.exports=n(3)(!1)).push([t.i,"#order-wrap .el-date-editor .el-range-separator[data-v-d0d39ed6]{width:auto}#order-wrap[data-v-d0d39ed6]{width:100%}#cloud-balance[data-v-d0d39ed6]{white-space:nowrap;overflow-x:scroll}.top[data-v-d0d39ed6]{-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:240px}.selector-box[data-v-d0d39ed6],.top[data-v-d0d39ed6]{display:-webkit-box;display:-ms-flexbox;display:flex}.selector-box[data-v-d0d39ed6]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.table[data-v-d0d39ed6]{margin-top:10px;height:calc(100% - 160px)}.order-table[data-v-d0d39ed6]{height:calc(100% - 300px)}.end-row[data-v-d0d39ed6]{background:rgba(0,0,0,.1)}.inlineb[data-v-d0d39ed6]{display:inline-block}.vsub[data-v-d0d39ed6]{vertical-align:sub}.type-boxs[data-v-d0d39ed6]{margin-bottom:10px}",""])},523:function(t,e,n){"use strict";n.r(e);n(168);var r=n(5),o=(n(39),n(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"],h={data:function(){return{orderType:[0],tradeType:[0],payType:[0],TypeList:[{id:0,type:"全部"},{id:1,type:"整包项目"},{id:2,type:"云端工作"},{id:3,type:"雇佣工作"}],tradeList:[{id:0,type:"全部"},{id:1,type:"充值"},{id:2,type:"提现"},{id:3,type:"购买"},{id:4,type:"购买"}],payList:[{id:0,type:"全部"},{id:1,type:"充值"},{id:2,type:"提现"},{id:3,type:"购买"},{id:4,type:"购买"}],pickerOptions2:{shortcuts:[{text:"全部",onClick:function(t){alert("获取全部数据")}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本周",onClick:function(t){var e=(new Date).getDay()-1;console.log(e),-1==e&&(e=6);var n=new Date,r=new Date;r.setTime(r.getTime()-864e5*e),t.$emit("pick",[r,n])}},{text:"本月",onClick:function(t){(new Date).getMonth,(new Date).getFullYear();var e=(new Date).getDate()-1;console.log(e);var n=new Date,r=new Date;r.setTime(r.getTime()-864e5*e),t.$emit("pick",[r,n])}},{text:"本年",onClick:function(t){(new Date).getMonth;var e=(new Date).getFullYear(),n=((new Date).getDate(),new Date(e,0,1)),r=new Date-n,o=Math.ceil(r/864e5)-1;console.log(o);var c=new Date,l=new Date;l.setTime(l.getTime()-864e5*o),t.$emit("pick",[l,c])}}]},timeRange:"",arriveTime:"",searchId:"",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:{changeOrder:function(){for(var t=!1,i=0;i<this.orderType.length;i++)0==this.orderType[i]&&(t=!0);if(0==this.orderType[0]&&1<this.orderType.length<this.TypeList.length){var e=[];for(i=0;i<this.orderType.length;i++)0!=this.orderType[i]&&e.push(this.orderType[i]);this.orderType=e}0==this.orderType[this.orderType.length-1]&&(this.orderType=[0]),t||this.orderType.length!=this.TypeList.length-1||(this.orderType=[0])},changeTrade:function(){for(var t=!1,i=0;i<this.tradeType.length;i++)0==this.tradeType[i]&&(t=!0);if(0==this.tradeType[0]&&1<this.tradeType.length<this.tradeList.length){var e=[];for(i=0;i<this.tradeType.length;i++)0!=this.tradeType[i]&&e.push(this.tradeType[i]);this.tradeType=e}0==this.tradeType[this.tradeType.length-1]&&(this.tradeType=[0]),t||this.tradeType.length!=this.tradeList.length-1||(this.tradeType=[0])},changePay:function(){for(var t=!1,i=0;i<this.payType.length;i++)0==this.payType[i]&&(t=!0);if(0==this.payType[0]&&1<this.payType.length<this.payList.length){var e=[];for(i=0;i<this.payType.length;i++)0!=this.payType[i]&&e.push(this.payType[i]);this.payType=e}0==this.payType[this.payType.length-1]&&(this.payType=[0]),t||this.payType.length!=this.payList.length-1||(this.payType=[0])},clickExport:function(){window.open("/api/admin/job/get_all_periods?action=export")},getEnum:function(){var t=Object(o.a)(regeneratorRuntime.mark(function t(){var e,data,n,r;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&&(n=data.jobStatusList,r=data.periodStatusList,this.jobStatusList=n,this.periodStatusList=r);case 6:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),clickOperate:function(t){var e=t.job_id,n=t.id;this.isTest?window.open("https://dev.test-rooter.proginn.com/main/wage_settlement?job_id=".concat(e,"&period_id=").concat(n)):window.open("https://rooter.proginn.com/main/wage_settlement?job_id=".concat(e,"&period_id=").concat(n))},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(o.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,n=(t.rowIndex,"");return"结束合作"===e.j_status_name&&(n="end-row"),n},formatTableData:function(data){return data.map(function(i){return Object(r.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(o.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)}}()}},y=(n(471),n(2)),component=Object(y.a)(h,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"cloud-balance order-wrap"}},[n("section",{staticClass:"top"},[n("h3",[t._v("交易订单中心")]),t._v(" "),n("section",[n("div",{staticClass:"type-boxs"},[n("span",{staticClass:"vsub"},[t._v("订单类型:")]),t._v(" "),n("div",{staticClass:"inlineb"},[n("el-checkbox-group",{attrs:{size:"mini"},on:{change:t.changeOrder},model:{value:t.orderType,callback:function(e){t.orderType=e},expression:"orderType"}},t._l(t.TypeList,function(e){return n("el-checkbox-button",{key:e.id,attrs:{label:e.id}},[t._v(t._s(e.type))])}),1)],1)]),t._v(" "),n("div",{staticClass:"type-boxs"},[n("span",{staticClass:"vsub"},[t._v("交易类型:")]),t._v(" "),n("div",{staticClass:"inlineb"},[n("el-checkbox-group",{attrs:{size:"mini"},on:{change:t.changeTrade},model:{value:t.tradeType,callback:function(e){t.tradeType=e},expression:"tradeType"}},t._l(t.tradeList,function(e){return n("el-checkbox-button",{key:e.id,attrs:{label:e.id}},[t._v(t._s(e.type))])}),1)],1)]),t._v(" "),n("div",{staticClass:"type-boxs"},[n("span",{staticClass:"vsub"},[t._v("支付方式:")]),t._v(" "),n("div",{staticClass:"inlineb"},[n("el-checkbox-group",{attrs:{size:"mini"},on:{change:t.changePay},model:{value:t.payType,callback:function(e){t.payType=e},expression:"payType"}},t._l(t.payList,function(e){return n("el-checkbox-button",{key:e.id,attrs:{label:e.id}},[t._v(t._s(e.type))])}),1)],1)]),t._v(" "),n("div",{staticClass:"type-boxs"},[n("div",{staticClass:"inlineb"},[n("span",{},[t._v("订单类型:")]),t._v(" "),n("el-date-picker",{attrs:{type:"daterange",align:"right","unlink-panels":"","range-separator":"到","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions2},model:{value:t.timeRange,callback:function(e){t.timeRange=e},expression:"timeRange"}})],1),t._v(" "),n("div",{staticClass:"inlineb"},[n("span",{},[t._v("时间类型:")]),t._v(" "),n("el-time-picker",{attrs:{ElementUIplaceholder:"到帐时间"},model:{value:t.arriveTime,callback:function(e){t.arriveTime=e},expression:"arriveTime"}})],1)]),t._v(" "),n("div",{staticClass:"type-boxs"},[n("div",{staticClass:"inlineb"},[n("span",{},[t._v("编号:")]),t._v(" "),n("div",{staticClass:"inlineb"},[n("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"订单编号/订单名称/支付编号"},model:{value:t.searchId,callback:function(e){t.searchId=e},expression:"searchId"}})],1)]),t._v(" "),n("div",{staticClass:"inlineb"},[n("span",{},[t._v("用户:")]),t._v(" "),n("div",{staticClass:"inlineb"},[n("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"uid/昵称/姓名"},model:{value:t.checkUser,callback:function(e){t.checkUser=e},expression:"checkUser"}})],1)]),t._v(" "),n("div",{staticClass:"inlineb"},[n("span",{},[t._v("项目:")]),t._v(" "),n("div",{staticClass:"inlineb"},[n("el-select",{attrs:{placeholder:"项目状态"},model:{value:t.status,callback:function(e){t.status=e},expression:"status"}},t._l(t.jobStatusList,function(t){return n("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1),t._v(" "),n("div",{staticClass:"inlineb"},[n("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:"项目ID"},model:{value:t.checkUser,callback:function(e){t.checkUser=e},expression:"checkUser"}})],1)]),t._v(" "),n("div",{staticClass:"inlineb"},[n("span",{},[t._v("状态:")]),t._v(" "),n("div",{staticClass:"inlineb"},[n("el-select",{attrs:{placeholder:"项目状态"},model:{value:t.status,callback:function(e){t.status=e},expression:"status"}},t._l(t.jobStatusList,function(t){return n("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1)])])])]),t._v(" "),n("div",{staticClass:"table",staticStyle:{width:"100%"}},[t.tableData.length?n("el-table",{staticStyle:{width:"100%"},attrs:{height:"100%",border:"",data:t.tableData,"row-class-name":t.tableRowClassName}},t._l(t.tableProps,function(e,r){return n("el-table-column",{key:r,attrs:{width:t.tableWidths[r],prop:e,label:t.tableHeaders[r]},scopedSlots:t._u([{key:"default",fn:function(r){return["id"===e?n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickOrder(r.row)}}},[t._v(t._s(r.row[e]))]):"job_id"===e?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.clickJobID(r.row[e])}}},[t._v(t._s(r.row[e]))]):"company"===e?n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickCompany(r.row.uid)}}},[t._v(t._s(r.row[e]))]):"operate"===e?n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickOperate(r.row)}}},[t._v(t._s(r.row[e]))]):"dev_realname"===e?n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickDev(r.row.developer_uid)}}},[t._v(t._s(r.row[e]))]):n("span","payAround"===e?{domProps:{innerHTML:t._s(r.row[e])}}:[t._v(t._s(r.row[e]))])]}}],null,!0)})}),1):t._e()],1),t._v(" "),n("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,"d0d39ed6",null);e.default=component.exports}}]);
|