edd2fdb9929c60e49a7e.js 7.3 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[7],{404:function(t,e,r){},455:function(t,e,r){"use strict";var n=r(404);r.n(n).a},506:function(t,e,r){"use strict";r.r(e);r(31),r(11),r(7),r(4),r(22),r(187),r(30);var n=r(3),o=r(9);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var c=["项目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"],d=["80","80","100","80","100","120","80","80","90","80","80","100","80","180","80","80","100","100","80"],f={data:function(){return{hasAuth:1,tradeList:[{id:0,type:"全部"},{id:1,type:"充值"},{id:2,type:"提现"},{id:3,type:"购买"},{id:4,type:"购买"}],finaceList:[],totalData:{},jobID:"",period:"",status:"",checkUser:"",periodStatusList:[],totalCount:1,currentPage:1,currentPageSize:20,tableWidths:d,tableHeaders:c,tableProps:_,tableData:[],localData:{env:"test"}}},computed:{isTest:function(){return"test"===this.localData.env}},mounted:function(){this.getFinanceList()},methods:{clickDev:function(t){this.$router.push({path:"/main/orders_detail",params:{id:t}})},changePageSize:function(t){this.getFinanceList()},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?l(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):l(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()})}))},formatDate:function(time){var t=new Date(1e3*time),e=t.getFullYear(),r=t.getMonth()+1,n=t.getDate(),o=t.getHours(),l=t.getMinutes(),c=t.getSeconds();return o<10&&(o="0"+o),l<10&&(l="0"+l),c<10&&(c="0"+c),e+"-"+r+"-"+n+" "+o+":"+l+":"+c},getFinanceList:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var body,r,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return body={page:t.currentPage,page_size:t.currentPageSize,artificial_mark:1,channel:"admin_confirm"},e.next=3,t.$post("/api/admin/order/get_orders",body);case 3:0===(r=e.sent).status&&(t.hasAuth=0),r.status&&(data=r.data,t.finaceList=data.orders,t.totalCount=Number(data.count));case 6:case"end":return e.stop()}}),e)})))()},downFinanceList:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:({page:t.currentPage,page_size:t.currentPageSize,artificial_mark:1}),r=window.location.host+"/api/admin/order/export?artificial_mark=1",window.location.href="http://"+r;case 3:case"end":return e.stop()}}),e)})))()},createOrder:function(){this.$router.push({path:"artificial_order/",query:{type:"create"}})}}},m=(r(455),r(2)),component=Object(m.a)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.hasAuth?r("div",{staticStyle:{height:"100%"},attrs:{id:"cloud-balance"}},[r("div",{staticClass:"type-boxs"},[r("div",{staticClass:"clear"},[r("div",{staticClass:"floatr"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.createOrder()}}},[t._v("新增订单")]),t._v(" "),r("el-button",{on:{click:t.downFinanceList}},[t._v("导出报表")])],1)])]),t._v(" "),r("div",{staticClass:"trcenter",staticStyle:{height:"100%","padding-bottom":"60px"}},[r("el-table",{staticStyle:{width:"100%",height:"100%"},attrs:{data:t.finaceList,border:""}},[r("el-table-column",{attrs:{label:"订单名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{staticClass:"lblue point"},[r("nuxt-link",{attrs:{to:{path:"/main/orders_detail?id="+e.row.order_no}}},[t._v(t._s(e.row.product_title))])],1)]}}],null,!1,2502854992)}),t._v(" "),r("el-table-column",{attrs:{label:"用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.user_info.nickname)+"("+t._s(e.row.uid)+")")]}}],null,!1,3824359460)}),t._v(" "),r("el-table-column",{attrs:{label:"实际金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[parseInt(e.row.real_amount)>=0?r("span",{staticClass:"green"},[t._v("+"+t._s((e.row.real_amount/100).toFixed(2)))]):r("span",{staticClass:"orange"},[t._v(t._s((e.row.real_amount/100).toFixed(2)))])]}}],null,!1,1108794154)}),t._v(" "),r("el-table-column",{attrs:{label:"收支类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(parseInt(e.row.real_amount)>=0?"收入":"支出"))])]}}],null,!1,553908888)}),t._v(" "),r("el-table-column",{attrs:{prop:"channel",label:"支付方式"}}),t._v(" "),r("el-table-column",{attrs:{prop:"order_state_name",label:"交易状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.order_type_name))])]}}],null,!1,2133816791)}),t._v(" "),r("el-table-column",{attrs:{prop:"order_state_name",width:"100",label:"订单状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.order_state_name)+"\n ")]}}],null,!1,250347331)}),t._v(" "),r("el-table-column",{attrs:{label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t.formatDate(e.row.created_at)))])]}}],null,!1,1539279802)}),t._v(" "),r("el-table-column",{attrs:{prop:"operator_uid",label:"创建者"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.operator_info.nickname))])]}}],null,!1,3595169489)}),t._v(" "),r("el-table-column",{attrs:{prop:"order_no",label:"订单编号"}}),t._v(" "),r("el-table-column",{attrs:{prop:"out_order_id",label:"支付编号"}}),t._v(" "),r("el-table-column",{attrs:{label:"关联项目"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("a",{attrs:{href:e.row.related_project.url?e.row.related_project.url:"#"}},[r("span",{staticClass:"lblue"},[t._v(t._s(e.row.related_project.name?e.row.related_project.name:"--"))])])]}}],null,!1,771921106)}),t._v(" "),r("el-table-column",{attrs:{label:"编辑"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("nuxt-link",{attrs:{to:{path:"/main/artificial_order/?type=edit&id="+e.row.order_no}}},[0==e.row.status?r("span",{staticClass:"lblue point"},[t._v("编辑")]):t._e()])]}}],null,!1,569008988)})],1)],1),t._v(" "),r("div",{staticClass:"order-footer"},[r("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.getFinanceList,"size-change":t.changePageSize,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}})],1)]):t._e()}),[],!1,null,"73b3a189",null);e.default=component.exports}}]);