chunk-06f81868.695e74a3.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06f81868"],{"1aad":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[a("h2",[a("div",{staticClass:"squrt"}),t._v("\n 乐团巡查\n "),a("auth",{attrs:{auths:"/musicInspection/abnormal"}},[a("filter-search",{attrs:{keys:["searchType"],moreKeys:["organId","start","end"]},on:{reload:t.reloadSearch}})],1)],1),t._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[a("el-form-item",{attrs:{prop:"search"}},[a("el-input",{attrs:{type:"text",placeholder:"请输入乐团名称",clearable:""},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search",e)},expression:"searchForm.search"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},on:{change:t.onBranchChange},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"cooperationOrganId"}},[a("el-select",{staticClass:"multiple",attrs:{disabled:!t.searchForm.organId,filterable:"",clearable:"",placeholder:"请选择合作单位"},model:{value:t.searchForm.cooperationOrganId,callback:function(e){t.$set(t.searchForm,"cooperationOrganId","string"===typeof e?e.trim():e)},expression:"searchForm.cooperationOrganId"}},t._l(t.cooperationList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"userId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择乐团主管"},model:{value:t.searchForm.userId,callback:function(e){t.$set(t.searchForm,"userId","string"===typeof e?e.trim():e)},expression:"searchForm.userId"}},t._l(t.selects.roles.EDUCATION,(function(e,n){return a("el-option",{key:n,attrs:{label:e.userName,value:e.userId}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.userName))]),t._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.userId))])])})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"conclusionStatus"}},[a("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"巡查项目是否异常"},model:{value:t.searchForm.conclusionStatus,callback:function(e){t.$set(t.searchForm,"conclusionStatus","string"===typeof e?e.trim():e)},expression:"searchForm.conclusionStatus"}},[a("el-option",{attrs:{label:"是",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"createTimer"}},[a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"巡查开始日期","end-placeholder":"巡查结束日期","picker-options":{firstDayOfWeek:1}},model:{value:t.searchForm.createTimer,callback:function(e){t.$set(t.searchForm,"createTimer","string"===typeof e?e.trim():e)},expression:"searchForm.createTimer"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[t._v("重置")])],1)],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"id",width:"120px",label:"巡查编号"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"所属分部"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.organName)+"("),a("copy-text",[t._v(t._s(e.row.organId))]),t._v(")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"cooperationName",label:"合作单位"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"巡查乐团"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.musicGroupName)+"("),a("copy-text",[t._v(t._s(e.row.musicGroupId))]),t._v(")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"乐团主管"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.realName)+"("),a("copy-text",[t._v(t._s(e.row.userId))]),t._v(")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"巡查项目是否异常"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.conclusionStatus?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subject",label:"巡查时间",width:"103px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.dayjs(e.row.planStart).format("YYYY-MM-DD HH:mm"))+"~"+t._s(t.dayjs(e.row.planEnd).format("HH:mm"))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"submitedTime",label:"提交时间",width:"103px"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"提交状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("statusFormat")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"处理方式"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("overflow-text",{attrs:{width:"100%",text:t.row.memo}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",width:"250px",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.status?a("auth",{attrs:{auths:"inspectionItemPlanConclusion/getPlanConclusion"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onLook(e.row)}}},[t._v("查看")])],1):t._e(),t._v(" "),0!=e.row.status?a("auth",{attrs:{auths:"inspectionItemPlanConclusion/GPS-INFO"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onGPS(e.row)}}},[t._v("GPS定位")])],1):t._e(),t._v(" "),0!=e.row.status?a("auth",{attrs:{auths:"inspectionItemPlanConclusion/exportPlanConclusion"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onExport(e.row)}}},[t._v("下载")])],1):t._e(),t._v(" "),1==e.row.conclusionStatus||0==e.row.status?a("auth",{attrs:{auths:"inspectionItemPlan/updateMemo"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleClick(e.row)}}},[t._v("立即处理")])],1):t._e()]}}])})],1),t._v(" "),a("pagination",{attrs:{total:t.pageInfo.total,sync:"",page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"乐团巡查表",visible:t.tableStatus,width:"1200px"},on:{"update:visible":function(e){t.tableStatus=e}}},[t.tableStatus?a("look-detail",{attrs:{detail:t.planDetail}}):t._e()],1),t._v(" "),a("el-dialog",{attrs:{title:"GPS定位",visible:t.gpsVisible,width:"1000px","append-to-body":""},on:{"update:visible":function(e){t.gpsVisible=e}}},[t.gpsVisible?a("gpsLoction",{attrs:{activeRow:t.activeRow}}):t._e()],1),t._v(" "),a("el-dialog",{attrs:{title:"处理方式",visible:t.handleStatus,width:"500px"},on:{"update:visible":function(e){t.handleStatus=e},close:function(e){return t.handleClose("ruleForm")}}},[a("el-form",{ref:"ruleForm",attrs:{model:t.handleForm,"label-position":"top"}},[a("el-form-item",{attrs:{label:"处理方式",prop:"memo",rules:[{required:!0,message:"请输入处理方式",trigger:"blur"}]}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.handleForm.memo,callback:function(e){t.$set(t.handleForm,"memo","string"===typeof e?e.trim():e)},expression:"handleForm.memo"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.handleStatus=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onHandleSubmit("ruleForm")}}},[t._v("确 定")])],1)],1)],1)},r=[],o=a("db72"),s=a("a8db"),l=a("c80c"),i=(a("c5f6"),a("96cf"),a("3b8d")),c=a("333d"),u=a("f903"),p=a("5a0c"),m=a.n(p),d=a("44ac"),h=a("92e3"),f=a("99b4"),b=(a("160b"),a("ed08")),v=a("adb21"),g=a("9be9"),_=["createTimer"],y={components:{pagination:c["a"],LookDetail:u["a"],gpsLoction:g["a"]},data:function(){return{conclusionList:h["p"],cooperationList:[],musicGroupList:[],activeRow:null,planDetail:null,searchForm:{search:null,organId:null,userId:null,conclusionStatus:null,cooperationOrganId:null,createTimer:[]},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},handleStatus:!1,handleForm:{id:null,memo:null},tableStatus:!1,gpsVisible:!1}},mounted:function(){var t=Object(i["a"])(Object(l["a"])().mark((function t(){var e;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(this.conclusionList),e=this.$route.query,e.organId&&(this.searchForm.organId=e.organId),e.conclusionStatus&&(this.searchForm.conclusionStatus=Number(e.conclusionStatus)),e.start&&e.end&&(this.searchForm.createTimer=[e.start,e.end]),this.getList(),t.next=8,this.$store.dispatch("setBranchs");case 8:return t.next=10,this.$store.dispatch("setOrganRole");case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{dayjs:m.a,getList:function(){var t=Object(i["a"])(Object(l["a"])().mark((function t(){var e,a,n,r,i;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.searchForm,a=e.createTimer,n=Object(s["a"])(e,_),r=Object(o["a"])(Object(o["a"])({},n),{},{page:this.pageInfo.page,rows:this.pageInfo.limit,searchType:this.$route.query.searchType},Object(b["b"])(a,["startTime","endTime"])),t.next=5,Object(d["b"])(r);case 5:i=t.sent,this.tableList=i.data.rows,this.pageInfo.total=i.data.total,t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](0);case 12:case"end":return t.stop()}}),t,this,[[0,10]])})));function e(){return t.apply(this,arguments)}return e}(),reloadSearch:function(){this.pageInfo.page=1,this.getList()},onLook:function(t){this.planDetail=t,this.tableStatus=!0},onGPS:function(t){this.activeRow={schoolLongitudeLatitude:t.schoolGps,signOutLongitudeLatitude:t.submitedGps},this.gpsVisible=!0},onExport:function(){var t=Object(i["a"])(Object(l["a"])().mark((function t(e){return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(v["a"])(this,{url:"/api-web/inspectionItemPlanConclusion/exportPlanConclusion",fileName:"巡查结果.xls",method:"get",params:{planId:e.id}},"您确定导出巡查结果?");case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onBranchChange:function(){var t=Object(i["a"])(Object(l["a"])().mark((function t(e){var a=this;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e){t.next=4;break}return this.cooperationList=[],this.searchForm.cooperationOrganId=null,t.abrupt("return");case 4:return t.next=6,Object(f["E"])({organId:e}).then((function(t){200==t.code&&(a.cooperationList=t.data)}));case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.$refs["searchForm"].resetFields(),this.pageInfo.page=1,this.getList()},handleClick:function(t){this.handleForm.id=t.id,this.handleForm.memo=t.memo,this.handleStatus=!0},onHandleSubmit:function(t){var e=this;this.$refs[t].validate(function(){var t=Object(i["a"])(Object(l["a"])().mark((function t(a){return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=12;break}return console.log(e.handleForm),t.prev=2,t.next=5,Object(d["c"])(e.handleForm);case 5:e.$message.success("处理成功"),e.getList(),e.handleStatus=!1,t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](2);case 12:case"end":return t.stop()}}),t,null,[[2,10]])})));return function(e){return t.apply(this,arguments)}}())},handleClose:function(t){this.$refs[t].resetFields()}},filters:{statusFormat:function(t){var e=["未提交","正常","异常"];return e[t]}}},w=y,I=(a("325b"),a("2877")),k=Object(I["a"])(w,n,r,!1,null,"473c83d0",null);e["default"]=k.exports},"325b":function(t,e,a){"use strict";a("c9f2")},c9f2:function(t,e,a){}}]);