直播数据中心

38.6e81d745d19cff59f5f0.js 9.1KB

1
  1. webpackJsonp([38],{O9xh:function(t,i){},VnF6:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a={components:{applyDetail:e("14Px").a},name:"audit",data:function(){return{applyFlag:!1,loading:!1,live_status:0,list_data:[],total:0,page:1,pages:0,page_size:20,time:[],timeList:[{id:0,name:"不限",start_time:"",end_time:""},{id:1,name:"昨日",start_time:this.$getDay(-1,!1),end_time:this.$getDay(-1,!1)},{id:7,name:"近7日",start_time:this.$getDay(-7,!1),end_time:this.$getDay(0,!1)},{id:30,name:"近30日",start_time:this.$getDay(-30,!1),end_time:this.$getDay(0,!1)}],pickerTimes:{disabledDate:function(t){return t>Date.now()}},start_time:"",end_time:"",staffList:[],apply_id:"",staff_id:"",p_id:"",num_id:""}},created:function(){this.get_staffList(),this.init(1)},methods:{auditEvent:function(t,i){this.apply_id=t,this.p_id=i||"",this.applyFlag=!0},closeDetail:function(t){this.apply_id="",this.applyFlag=!1,t&&this.init(this.page)},init:function(t){var i=this;this.page=t||this.page,this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.examine_indexV2,{params:{start_time:this.start_time,end_time:this.end_time,staff_id:this.staff_id,is_view:0,is_examine:this.live_status,page:t,page_size:this.page_size,num_id:this.num_id}}).then(function(t){t=t.data;i.loading=!1,t&&0==t.errno?(i.list_data=t.rst.data,i.total=t.rst.pageInfo.total,i.pages=t.rst.pageInfo.pages):4002!=t.errno&&i.$message({message:t.err,type:"warning"})}).catch(function(t){i.loading=!1})},handleCurrentChange:function(t){this.init(t)},getTimeList:function(){var t=new Date,i=t.getDay(),e=t.getDate(),a=t.getMonth(),s=t.getFullYear(),n=new Date(s,a,e-i),l=new Date(s,a,e+(6-i));this.timeList=[{name:"今日",start_time:this.$getDay(0,!1),end_time:this.$getDay(0,!1)},{name:"本周",start_time:this.$day_format(n).split(" ")[0],end_time:this.$day_format(l).split(" ")[0]},{name:"本月",start_time:this.$day_format(new Date(s,a,1)).split(" ")[0],end_time:this.$day_format(new Date(s,a+1,0)).split(" ")[0]}],this.time=[this.timeList[2].start_time,this.timeList[2].end_time],this.start_time=this.time[0],this.end_time=this.time[1],this.init(1)},changeInit:function(t){this.start_time=t.start_time,this.end_time=t.end_time,0==t.id?this.time=[]:this.time=[t.start_time,t.end_time],this.init(1)},timeChange:function(t){t&&0!=t.length&&(this.start_time=t[0],this.end_time=t[1],this.init(1))},get_staffList:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.userListForFilter,{}).then(function(i){i=i.data;if(t.loading=!1,i&&0==i.errno){var e=i.rst;e.forEach(function(t){t.name=t.real_name}),t.staffList=e}else 4002!=i.errno&&t.$message({message:i.err,type:"warning"})}).catch(function(t){})}}},s={render:function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"pageCon"},[e("div",{staticClass:"operation_container flex",staticStyle:{"flex-wrap":"wrap","padding-bottom":"4px"}},[e("div",{staticClass:"switchButton MarB10"},[e("button",{class:["addButton",0==t.live_status?"active":""],on:{click:function(i){t.live_status=0,t.init(1)}}},[t._v("待审核")]),t._v(" "),e("button",{class:["addButton",1==t.live_status?"active":""],staticStyle:{"margin-left":"-10px"},on:{click:function(i){t.live_status=1,t.init(1)}}},[t._v("已审核")])]),t._v(" "),e("div",{staticClass:"commonInfoName lMar20 MarB10"},[t._v("时间筛选")]),t._v(" "),e("ul",{staticClass:"commonTimeList flex MarB10"},[t._l(t.timeList,function(i,a){return e("li",{key:"time"+a,class:t.start_time==i.start_time&&t.end_time==i.end_time?"active":"",on:{click:function(e){return t.changeInit(i)}}},[t._v("\n "+t._s(i.name)+"\n ")])}),t._v(" "),e("li",{staticClass:"commonTime_container"},[t._v("\n "+t._s(t.time&&0!=t.time.length?t.time[0]+"  ~  "+t.time[1]:"开始时间  -  结束时间")+"\n "),e("i",{staticClass:"iconfont icon-rili_icon"}),t._v(" "),e("el-date-picker",{staticClass:"commonTime_picker",attrs:{size:"small",clearable:!1,"picker-options":t.pickerTimes,"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.timeChange},model:{value:t.time,callback:function(i){t.time=i},expression:"time"}})],1)],2),t._v(" "),e("div",{staticClass:"flex lMar20 MarB10"},[e("div",{staticClass:"commonInfoName"},[t._v("人员筛选")]),t._v(" "),e("el-select",{staticClass:"self_list_input__inner",attrs:{size:"small",filterable:"",clearable:"",placeholder:"人员筛选"},on:{change:function(i){return t.init(1)}},model:{value:t.staff_id,callback:function(i){t.staff_id=i},expression:"staff_id"}},t._l(t.staffList,function(t,i){return e("el-option",{key:i,attrs:{label:t.name,value:t.id}})}),1)],1),t._v(" "),e("div",{staticClass:"flex lMar20 MarB10"},[e("div",{staticClass:"commonInfoName"},[t._v("序列号筛选")]),t._v(" "),e("div",{staticClass:"commonSearchBox flex",staticStyle:{width:"200px"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.num_id,expression:"num_id"}],staticClass:"commonSearchInput",attrs:{type:"text",placeholder:"请输入序列号搜索"},domProps:{value:t.num_id},on:{keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:t.init(1)},input:function(i){i.target.composing||(t.num_id=i.target.value)}}}),t._v(" "),e("i",{staticClass:"iconfont icon-sousuo_icon",on:{click:function(i){return t.init(1)}}})])])]),t._v(" "),e("div",{staticClass:"mingxi bMar15 applyList"},[e("div",{staticClass:"table_div"},[e("table",[t._m(0),t._v(" "),e("tbody",t._l(t.list_data,function(i,a){return e("tr",{key:i.p_id},[e("td",[t._v(t._s(i.s_id))]),t._v(" "),e("td",[t._v("\n "+t._s(i.submit_date?i.submit_date:"-")+"\n ")]),t._v(" "),e("td",[e("p",{staticStyle:{"line-height":"20px"}},[t._v(t._s(i.short_name?i.short_name:"-"))])]),t._v(" "),e("td",[t._v("\n "+t._s(i.department?i.department:"-")+"\n ")]),t._v(" "),e("td",[t._v(t._s(i.staff_name?i.staff_name:"-"))]),t._v(" "),e("td",[t._v(t._s(i.amount?i.amount:"-"))]),t._v(" "),e("td",[t._v(t._s(i.note?i.note:"-"))]),t._v(" "),e("td",[t._v("市内交通费用")]),t._v(" "),e("td",[e("el-tooltip",{attrs:{effect:"light",disabled:!(i.remark&&i.remark.length>20),content:i.remark,placement:"bottom"}},[e("p",{staticClass:"ellipsis_2"},[t._v(t._s(i.remark?i.remark:"-"))])])],1),t._v(" "),e("td",[-2==i.pass_level?e("span",[e("i",{staticClass:"el-icon-error c-F03F5C f14"}),t._v(" 已驳回")]):t._e(),t._v(" "),-1==i.pass_level?e("span",[e("i",{staticClass:"el-icon-success c-58BCA6 f14"}),t._v(" 已通过")]):t._e(),t._v(" "),0==i.pass_level?e("span",[e("i",{staticClass:"el-icon-warning c-ECBE64 f14"}),t._v(" 待审核")]):t._e(),t._v(" "),-2!=i.pass_level&&0!=i.pass_level&&-1!=i.pass_level?e("span",[t._v(t._s(i.pass_level)+"级审核已通过")]):t._e()]),t._v(" "),e("td",[e("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[e("div",{staticClass:"pointer statusBox"},[0==t.live_status?e("span",{staticClass:"c-4F7EFF",on:{click:function(e){return t.auditEvent(i.s_id?i.s_id:i.id,i.p_id)}}},[t._v("审核")]):t._e(),t._v(" "),1==t.live_status?e("span",{staticClass:"c-4F7EFF",on:{click:function(e){return t.auditEvent(i.s_id?i.s_id:i.id)}}},[t._v("查看")]):t._e()])])])])}),0)])]),t._v(" "),t.loading||0!=t.list_data.length?t._e():e("div",{staticClass:"noHaveDate"},[t._v("暂无数据")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"bottom"},[e("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1)]),t._v(" "),e("el-dialog",{attrs:{title:"",visible:t.applyFlag,width:"1080px",top:"80px","close-on-click-modal":!1,left:""},on:{"update:visible":function(i){t.applyFlag=i},close:function(i){return t.closeDetail()}}},[t.applyFlag?e("applyDetail",{attrs:{apply_id:t.apply_id,source:"audit",p_id:t.p_id},on:{closeDetail:t.closeDetail}}):t._e()],1)],1)},staticRenderFns:[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("thead",[e("tr",[e("th",[e("div",{staticClass:"th_title"},[t._v("序列号")])]),t._v(" "),e("th",{staticStyle:{width:"10%"}},[e("div",{staticClass:"th_title"},[t._v("提审时间")])]),t._v(" "),e("th",[e("div",{staticClass:"th_title"},[t._v("公司")])]),t._v(" "),e("th",[e("div",{staticClass:"th_title"},[t._v("部门")])]),t._v(" "),e("th",[e("div",{staticClass:"th_title"},[t._v("经手人")])]),t._v(" "),e("th",{staticStyle:{width:"10%"}},[e("div",{staticClass:"th_title"},[t._v("金额")])]),t._v(" "),e("th",[e("div",{staticClass:"th_title"},[t._v("报销内容摘要")])]),t._v(" "),e("th",[e("div",{staticClass:"th_title"},[t._v("费用类别")])]),t._v(" "),e("th",[e("div",{staticClass:"th_title"},[t._v("备注")])]),t._v(" "),e("th",[e("div",{staticClass:"th_title"},[t._v("审批情况")])]),t._v(" "),e("th",{staticStyle:{width:"10%"}},[e("div",{staticClass:"th_title"},[t._v("\n 操作\n ")])])])])}]};var n=e("VU/8")(a,s,!1,function(t){e("O9xh")},"data-v-c4e18dd6",null);i.default=n.exports}});