/*! * build: Hopaheal * copyright: Mead * time: 2023-3-13 15:21:04 */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e4761ec"],{"0f9ff":function(t,e,s){"use strict";s("75c1")},1103:function(t,e,s){"use strict";s.r(e),s.d(e,"getOrderList",(function(){return i})),s.d(e,"addOrderList",(function(){return l})),s.d(e,"eidtOrderList",(function(){return o})),s.d(e,"uploadOrderPrint",(function(){return n})),s.d(e,"orderDetail",(function(){return r})),s.d(e,"orderDelete",(function(){return c})),s.d(e,"orderPause",(function(){return d})),s.d(e,"orderCheckOut",(function(){return u})),s.d(e,"orderCheckDetail",(function(){return p})),s.d(e,"getSetting",(function(){return m})),s.d(e,"getDepartmentTree",(function(){return h})),s.d(e,"getCalendar",(function(){return f})),s.d(e,"getRoomaList",(function(){return _})),s.d(e,"downPrint",(function(){return b}));var a=s("b775");function i(t){return Object(a["default"])({url:"/lab/open-appointment",method:"get",params:t})}function l(t){return Object(a["default"])({url:"/lab/open-appointment",method:"post",data:t})}function o(t){return Object(a["default"])({url:"/lab/open-appointment/info/"+t.id,method:"put",data:t})}function n(t){return Object(a["default"])({url:"/lab/open-appointment/upload-print",method:"post",data:t})}function r(t){return Object(a["default"])({url:"/lab/open-appointment/info/"+t,method:"get"})}function c(t){return Object(a["default"])({url:"/lab/open-appointment/info/"+t,method:"delete"})}function d(t){return Object(a["default"])({url:"/lab/open-appointment/pause",method:"get",params:t})}function u(t){return Object(a["default"])({url:"/lab/open-appointment/check",method:"post",data:t})}function p(t){return Object(a["default"])({url:"/lab/open-appointment/check-progress",method:"get",params:t})}function m(t){return Object(a["default"])({url:"/base/setting-key",method:"get",params:t})}function h(t){return Object(a["default"])({url:"/base/department-tree",method:"get",params:t})}function f(t){return Object(a["default"])({url:"/school/schedule/calendar-simple",method:"post",data:t})}function _(t){return Object(a["default"])({url:"/school/room-select-options",method:"get",params:t})}function b(t){return Object(a["default"])({url:"/lab/open-appointment/down-print",method:"get",params:t})}},"269b":function(t,e,s){"use strict";s("518d")},"341f":function(t,e,s){"use strict";s("e3eb")},"38e8":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{"append-to-body":"","before-close":t.handleClose,title:t.title,visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("div",{staticClass:"content_1"},[s("ul",{staticClass:"infinite-list img-list",staticStyle:{"overflow-y":"scroll"}},t._l(t.imgList,(function(t,e){return s("li",{key:e,staticClass:"infinite-list-item"},[s("img",{attrs:{salt:"",src:t.url,srcset:""}})])})),0)]),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("关 闭")])],1)])},i=[],l={name:"TemplateClassdialog",data(){return{dialogVisible:!1,imgList:[],title:""}},methods:{handleClose(){this.imgList=[],this.dialogVisible=!1},showEdit(t,e){this.imgList=t,this.dialogVisible=!0,1==e&&(this.title="附件详情"),2==e&&(this.title="回执详情")}}},o=l,n=(s("0f9ff"),s("0b56")),r=Object(n["a"])(o,a,i,!1,null,"c3fd9c22",null);e["default"]=r.exports},"42ff":function(t,e,s){"use strict";s("dad0")},"518d":function(t,e,s){},"5c7e":function(t,e,s){"use strict";s("63d0")},"63d0":function(t,e,s){},"64b9":function(t,e,s){"use strict";s("8083")},"6f19":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"content"},[s("vab-query-form",[s("vab-query-form-left-panel",{attrs:{span:6}},[t.transformAuth("100103")?s("el-button",{attrs:{icon:"el-icon-plus",type:"primary"},on:{click:t.handleEdit}},[t._v(" 实验室开放预约申请 ")]):t._e(),s("div",{staticClass:"liucheng",on:{click:t.checkOutLiu}},[s("i",{staticClass:"el-icon-warning"}),t._v(" 审核流程 ")])],1),s("vab-query-form-right-panel",{attrs:{span:18}},[s("el-form",{attrs:{inline:!0,model:t.queryForm},nativeOn:{submit:function(t){t.preventDefault()}}},[s("el-form-item",[s("el-input",{attrs:{clearable:"",placeholder:"请输入申请人姓名"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.queryData(e)}},model:{value:t.queryForm.applicant_name,callback:function(e){t.$set(t.queryForm,"applicant_name","string"===typeof e?e.trim():e)},expression:"queryForm.applicant_name"}})],1),s("el-form-item",[s("el-input",{attrs:{clearable:"",placeholder:"请输入负责教师联系方式"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.queryData(e)}},model:{value:t.queryForm.applicant_mobile,callback:function(e){t.$set(t.queryForm,"applicant_mobile","string"===typeof e?e.trim():e)},expression:"queryForm.applicant_mobile"}})],1),s("el-form-item",[s("el-input",{attrs:{clearable:"",placeholder:"请输入部门"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.queryData(e)}},model:{value:t.queryForm.department,callback:function(e){t.$set(t.queryForm,"department","string"===typeof e?e.trim():e)},expression:"queryForm.department"}})],1),s("el-form-item",{attrs:{prop:"status"}},[s("el-select",{attrs:{clearable:"",placeholder:"请选择审核状态"},on:{change:t.queryData},model:{value:t.queryForm.status,callback:function(e){t.$set(t.queryForm,"status",e)},expression:"queryForm.status"}},t._l(t.statusList,(function(t){return s("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),s("el-form-item",[s("el-button",{attrs:{icon:"el-icon-search",type:"primary"},on:{click:t.queryData}},[t._v(" 查询 ")])],1)],1)],1)],1),s("div",[s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:t.list}},[s("el-table-column",{attrs:{align:"center",label:"序号",prop:"date",type:"index",width:"50"}}),s("el-table-column",{attrs:{align:"center",label:"部门","min-width":"150",prop:"department"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[t._v(" "+t._s(s.branch?s.branch.name:"--")+" ")]}}])}),s("el-table-column",{attrs:{align:"center",label:"申请人","min-width":"100",prop:"applicant_name"}}),s("el-table-column",{attrs:{align:"center",label:"申请人联系方式","min-width":"150",prop:"applicant_mobile"}}),s("el-table-column",{attrs:{align:"center",label:"使用人数","min-width":"80",prop:"use_people_nums"}}),s("el-table-column",{attrs:{align:"center",label:"申请类型","min-width":"150",prop:"migrate_data"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[1==a.template?s("span",[t._v("正常上班时间使用")]):t._e(),2==a.template?s("span",[t._v("非正常上班时间使用")]):t._e(),3==a.template?s("span",[t._v("信息技术学院教师")]):t._e()]}}])}),s("el-table-column",{attrs:{align:"center",label:"申请时间","min-width":"310",prop:"migrate_data"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[s("div",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.orderTimeList(a.use_data)}}},[t._l(a.use_data,(function(e,a){return s("div",{key:a,staticStyle:{"margin-bottom":"5px"}},[0==a||1==a?s("el-tag",{attrs:{type:"primary"}},[t._v(" "+t._s(e.room_name)+" / "+t._s(e.day)+" / "+t._s(e.time_name)+" ")]):t._e()],1)})),a.use_data.length>2?s("div",{staticClass:"click-more"},[t._v(" 点击查看更多 "),s("i",{staticClass:"el-icon-d-arrow-right"})]):t._e()],2)]}}])}),s("el-table-column",{attrs:{align:"center",fixed:"right",label:"附件","min-width":"100",prop:"enclosure"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[0!==a.status?s("div",[a.enclosure.length>0?s("div",{staticClass:"status_text",on:{click:function(e){return t.lookEnclosure(a.enclosure_resource,"1")}}},[t._v(" 查看附件 ")]):s("div",{staticClass:"loading",on:{click:function(e){return t.uploadEnclosure(a)}}},[t._v(" 立即上传 ")])]):s("div",[s("span",{staticClass:"fail"},[t._v("申请已关闭")])])]}}])}),s("el-table-column",{attrs:{align:"center",label:"状态","min-width":"150",prop:"class"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[7==a.status?s("span",{staticClass:"status_text",on:{click:function(e){return t.lookStep(a)}}},[t._v(" "+t._s(a.status_text)+" ")]):t._e(),1==a.status||2==a.status||5==a.status||3==a.status?s("span",{staticClass:"loading",on:{click:function(e){return t.lookStep(a)}}},[t._v(" "+t._s(a.status_text)+" ")]):t._e(),6==a.status||8==a.status||4==a.status?s("span",{staticClass:"fail",on:{click:function(e){return t.lookStep(a)}}},[t._v(" "+t._s(a.status_text)+" ")]):t._e(),0==a.status?s("span",{staticClass:"fail"},[t._v(" "+t._s(a.status_text)+" ")]):t._e()]}}])}),s("el-table-column",{attrs:{align:"center",label:"申请原因","min-width":"130",prop:"use_reason"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[s("el-popover",{attrs:{placement:"top-start",trigger:"hover",width:"200"}},[s("div",{domProps:{innerHTML:t._s(a.use_reason)}}),s("div",{staticClass:"use_reason",attrs:{slot:"reference"},domProps:{innerHTML:t._s(a.use_reason)},slot:"reference"})])]}}])}),s("el-table-column",{attrs:{align:"center",label:"申请时间","min-width":"180",prop:"created_at"}}),s("el-table-column",{attrs:{align:"center",fixed:"right",label:"操作","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[s("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleDetail(a)}}},[t._v("详情")]),7===a.status||2!=a.status&&4!=a.status&&6!=a.status&&8!=a.status||t.user_id!=a.admin.id?t._e():s("el-button",{staticStyle:{color:"#0ba526"},attrs:{type:"text"},on:{click:function(e){return t.handleEdit(a)}}},[t._v(" 编辑 ")]),(2==a.status||5==a.status||3==a.status)&&t.transformAuth("100101")&&t.transformAuth("100102")?s("el-button",{staticStyle:{color:"#ff6e27"},attrs:{type:"text"},on:{click:function(e){return t.handleCheckout(a)}}},[t._v(" 审核 ")]):t._e(),s("el-tooltip",{staticClass:"item",attrs:{content:"等待实验中心审核",effect:"dark",placement:"top"}},[t.transformAuth("100101")&&!t.transformAuth("100102")&&2==a.status?s("span",{staticStyle:{color:"#c0c4cc",cursor:"pointer"}},[t._v(" 审核 ")]):t._e()]),t.transformAuth("100101")&&!t.transformAuth("100102")&&3==a.status?s("el-button",{staticStyle:{color:"#ff6e27"},attrs:{type:"text"},on:{click:function(e){return t.handleCheckout(a)}}},[s("span",[t._v("审核")])]):t._e(),7!==a.status&&8!==a.status&&0!==a.status&&t.user_id==a.admin.id?s("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(e){return t.handlePause(a)}}},[t._v(" 取消申请 ")]):t._e(),0!==a.status&&a.enclosure.length>0?s("el-button",{attrs:{type:"text"},on:{click:function(e){return t.downLoadApply(a)}}},[t._v(" 下载申请单 ")]):t._e(),7!==a.status&&t.transformAuth("*")?s("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(e){return t.handleDelete(a)}}},[t._v(" 删除 ")]):t._e()]}}])})],1),s("el-pagination",{attrs:{background:"","current-page":t.queryForm.page,layout:t.layout,"page-size":t.queryForm.per_page,"page-sizes":[15,20,30,40,50,100],total:t.total},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1),s("checkOut",{ref:"check-out",on:{"fetch-data":t.getList}}),s("uploadFile",{ref:"upload-file",on:{"fetch-data":t.getList}}),s("detailDialog",{ref:"detail"}),s("checkStep",{ref:"check-step"}),s("enclosureDetail",{ref:"enclosure-detil"}),s("liuCheng",{ref:"liu-cheng"}),s("orderRoomList",{ref:"order-detail"})],1)},i=[],l=s("f121"),o=s("7736"),n=s("4ff3c"),r=s.n(n),c=s("cb35"),d=s("dc4f"),u=s("d12b"),p=s("8521"),m=s("1103"),h=s("7523"),f=s("fcda"),_=s("38e8"),b=s("a7d3"),v={components:{checkOut:h["default"],uploadFile:f["default"],detailDialog:p["default"],checkStep:c["default"],liuCheng:d["default"],enclosureDetail:_["default"],orderRoomList:b["default"]},data(){return{base_url:l["base_url"],listLoading:!0,layout:"total, sizes, prev, pager, next, jumper",total:1,queryForm:{page:1,per_page:15},statusList:[{id:0,name:"申请已关闭"},{id:1,name:"待上传实验室开放申请单"},{id:2,name:"待实验中心审核"},{id:3,name:"实验中心审核通过,待院系审核"},{id:4,name:"实验中心审核失败"},{id:5,name:"审核成功"},{id:6,name:"院系审核失败"},{id:7,name:"已完成"}],selectRows:[],list:[],user_id:""}},computed:{...Object(o["c"])({token:"user/token"})},created(){this.user_id=this.$store.state.user.user_id,this.getList()},methods:{downLoadApply(t){let e=t.enclosure_resource;e.map(t=>{this.downloadByUrl(t.url,"开放预约申请单")})},downloadByUrl(t,e){const s=document.createElement("a");s.download=e,s.href=t,s.target="_blank",document.body.appendChild(s),s.click(),document.body.removeChild(s)},orderTimeList(t){this.$refs["order-detail"].showEdit(t)},checkOutLiu(){this.$refs["liu-cheng"].showEdit({tips:this.tips})},transformWeek:u["transformWeek"],transformAuth:u["transformAuth"],async getList(){this.listLoading=!0;const{data:t}=await Object(m["getOrderList"])(this.queryForm);this.list=t.list;const{pagination:e}=t.meta;this.total=e.total,this.listLoading=!1},handleSizeChange(t){this.queryForm.per_page=t,this.getList()},handleCurrentChange(t){this.queryForm.page=t,this.getList()},queryData(){this.queryForm.page=1,this.getList()},handleDetail(t){this.$refs["detail"].showEdit(t.id)},handleEdit(t){t.id?this.$router.push({path:"/openOrder/orderApply",query:{id:t.id}}):this.$router.push("/openOrder/orderApply")},handleCheckout(t){this.$refs["check-out"].showEdit(t)},setSelectRows(t){this.selectRows=t},handleDelete(t){this.$baseConfirm("您确定要删除当前申请吗?",null,async()=>{const{message:e}=await Object(m["orderDelete"])(t.id);this.$baseMessage(e,"success",!1,"vab-hey-message-success"),await this.getList()})},batchImport(){this.$refs["upload-file"].showEdit()},uploadEnclosure(t){this.$refs["upload-file"].showEdit(t.id)},lookStep(t){this.$refs["check-step"].showEdit({id:t.id,time:t.created_at,tips:this.tips,apply_name:t.applicant_name,enclosure:t.enclosure})},handlePause(t,e){this.$baseConfirm("您确定要取消当前申请吗",null,async()=>{const{message:s}=await Object(m["orderPause"])({id:t.id,type:e});this.$baseMessage(s,"success",!1,"vab-hey-message-success"),await this.getList()})},lookEnclosure(t,e){this.$refs["enclosure-detil"].showEdit(t,e)},handlePrint(t){console.log(t,"ppppppppppppppp"),r()({baseURL:l["baseURL"],timeout:5e3,method:"get",url:"/lab/open-appointment/down-print",headers:{Authorization:"Bearer "+this.token},params:{id:t.id},responseType:"blob"}).then(e=>{this.convertRes2Blob(e,t)})},convertRes2Blob(t,e){let s=e.applicant_name+"--实验室开放预约申请",a=s;console.log(a,"fileNamefileNamefileName");const i=new Blob([t.data],{type:"application/msword"});if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(i,decodeURI(a));else{const t=window.URL.createObjectURL(i),e=document.createElement("a");e.style.display="none",e.href=t,e.setAttribute("download",decodeURI(a)),"undefined"===typeof e.download&&e.setAttribute("target","_blank"),document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(t)}}}},g=v,y=(s("64b9"),s("0b56")),k=Object(y["a"])(g,a,i,!1,null,"0039dede",null);e["default"]=k.exports},7523:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{"before-close":t.handleClose,title:"审核",visible:t.dialogVisible,width:"950px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("div",{staticClass:"content_1"},[s("div",{staticClass:"left"},[s("div",{staticClass:"form-title"},[t._v("基础信息")]),s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("申请人:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.applicant_name)+"("+t._s(t.detail.applicant_mobile)+")( "+t._s(t.detail.branch?t.detail.branch.name:"--")+") ")])])]),s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("使用人数:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.use_people_nums)+" ")])]),s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("申请节数:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.use_data?t.detail.use_data.length:"--")+" ")])])]),s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("申请原因:")]),s("div",{staticClass:"text text1"},[s("div",{domProps:{innerHTML:t._s(t.detail.use_reason)}})])])]),s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("使用需求:")]),s("div",{staticClass:"text text1"},[s("div",{domProps:{innerHTML:t._s(t.detail.use_need)}})])])]),s("div",{staticClass:"line"}),s("div",{staticClass:"form-title"},[t._v("使用时间")]),s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"text"},[s("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.detail.use_data}},[s("el-table-column",{attrs:{label:"实验室名称","min-width":"200",prop:"room_name"}}),s("el-table-column",{attrs:{label:"日期","min-width":"100",prop:"day"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[t._v(" "+t._s(s.day)+" ")]}}])}),s("el-table-column",{attrs:{label:"节次","min-width":"100",prop:"address"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[t._v(t._s(s.time_name))]}}])})],1)],1)])])]),s("div",{staticClass:"right"},[s("el-form",{ref:"form",attrs:{"label-width":"90px",model:t.checkForm,rules:t.rules}},[t.transformAuth("100101")&&t.transformAuth("100102")?s("el-form-item",{attrs:{label:"审核角色:"}},[s("el-radio-group",{model:{value:t.checkForm.type,callback:function(e){t.$set(t.checkForm,"type",e)},expression:"checkForm.type"}},[s("el-radio",{attrs:{label:2}},[t._v("实验中心审核")]),s("el-radio",{attrs:{label:1}},[t._v("院系审核")]),s("el-radio",{attrs:{label:3}},[t._v("全部角色")])],1)],1):t._e(),s("el-form-item",{attrs:{label:"审核意见:",prop:"check_status"}},[s("el-radio-group",{model:{value:t.checkForm.check_status,callback:function(e){t.$set(t.checkForm,"check_status",e)},expression:"checkForm.check_status"}},[s("el-radio",{attrs:{label:1}},[t._v("通过")]),s("el-radio",{attrs:{label:2}},[t._v("驳回")])],1)],1),2!==t.checkForm.type&&1==t.checkForm.check_status?s("el-form-item",{attrs:{label:"上传回执:",prop:"check_status"}},[s("el-upload",{staticClass:"upload-demo",attrs:{action:t.action,data:t.uploadData,"file-list":t.fileList,limit:t.limit,multiple:"","on-error":t.uploadError,"on-remove":t.handleRemove,"on-success":t.uploadSuccess,type:"primary"}},[s("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传回执")])],1)],1):t._e(),s("el-form-item",{attrs:{label:"备注:"}},[2==t.checkForm.check_status?s("span",{staticClass:"star"},[t._v("*")]):t._e(),s("el-input",{attrs:{rows:8,type:"textarea"},model:{value:t.checkForm.check_result,callback:function(e){t.$set(t.checkForm,"check_result",e)},expression:"checkForm.check_result"}})],1)],1),s("div",{staticStyle:{"text-align":"center"}},[s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:t.handleClose}},[t._v("取 消")]),s("el-button",{attrs:{type:"primary"},on:{click:t.doCheckOut}},[t._v("确 定")])],1)])],1)])])},i=[],l=s("d12b"),o=s("1103"),n=s("f121"),r={name:"TemplateClassdialog",data(){return{detail:"",dialogVisible:!1,checkForm:{type:2,check_status:1,receipt:[],check_result:"",id:""},action:"",uploadData:{file_type:"file",type:"receipt"},fileList:[],limit:10,rules:{check_status:[{required:!0,trigger:"blur",message:"请选择审核状态"}]}}},methods:{transformAuth:l["transformAuth"],uploadError(){this.fileList=[],this.$message.error("文件上传失败,请重新上传")},uploadSuccess(t,e,s){console.log(s,"文件上传成功"),this.fileList=s},handleRemove(t,e){console.log(e,"文件上传成功"),this.fileList=e},showEdit(t){this.action=n["baseURL"]+"/common/upload",this.fileList=[];let e=JSON.parse(localStorage.getItem("permissions")),s=e.indexOf("100101"),a=e.indexOf("100102");-1!==s&&(this.checkForm.type=1),-1!==a&&(this.checkForm.type=2),this.checkForm.id=t.id,this.recordDetail(t.id),this.dialogVisible=!0},async recordDetail(t){const{data:e}=await Object(o["orderDetail"])(t);this.detail=e},handleClose(){this.checkForm={check_status:1,id:"",type:2,receipt:[],check_result:""},this.dialogVisible=!1},doCheckOut(){this.$refs["form"].validate(async t=>{if(t){if(2==this.checkForm.check_status&&!this.checkForm.check_result)return void this.$message.warning("请填写驳回原因!");var e=[];if(this.fileList.map(t=>{e.push(t.response.data.id)}),0==e.length&&2!=this.checkForm.type&&1==this.checkForm.check_status)return void this.$message.warning("请上传回执单!");this.checkForm.receipt=e,console.log(this.checkForm);const{message:t}=await Object(o["orderCheckOut"])(this.checkForm);this.$baseMessage(t,"success",!1,"vab-hey-message-success"),this.$emit("fetch-data"),this.$refs["form"].resetFields(),this.handleClose()}})}}},c=r,d=(s("5c7e"),s("0b56")),u=Object(d["a"])(c,a,i,!1,null,"f5824b98",null);e["default"]=u.exports},"75c1":function(t,e,s){},8083:function(t,e,s){},8521:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{"before-close":t.handleClose,center:"",title:"开放预约申请详情",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("div",{staticClass:"content"},[s("div",{staticClass:"form",on:{click:t.handlePrint}},[s("div",{staticClass:"label"},[s("span",{staticStyle:{color:"red","font-weight":"550"}},[t._v("点击下载:")])]),s("div",{staticClass:"text"},[s("span",{staticStyle:{color:"red","font-weight":"550"}},[t._v(" 实验室开放预约申请表 "),s("i",{staticClass:"el-icon-download"})])])]),7==t.detail.status?s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[s("span",{staticStyle:{color:"red","font-weight":"550"}},[t._v("查看回执:")])]),s("div",{staticClass:"text"},[s("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.lookEnclosure(t.detail.receipt_resource,"2")}}},[t._v(" 查看回执 ")])],1)]):t._e(),s("div",{staticClass:"item"},[s("div",{staticClass:"form",staticStyle:{flex:"1"}},[s("div",{staticClass:"label"},[t._v("申请人:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.applicant_name)+"(人数:"+t._s(t.detail.use_people_nums)+"人 ) ")])]),s("div",{staticClass:"form",staticStyle:{flex:"0 0 250px"}},[s("div",{staticClass:"label"},[t._v("申请时间:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.created_at)+" ")])])]),s("div",{staticClass:"item"},[s("div",{staticClass:"form",staticStyle:{flex:"1"}},[s("div",{staticClass:"label"},[t._v("申请人部门:")]),s("div",{staticClass:"text",staticStyle:{display:"flex"}},[s("div",[t._v(" "+t._s(null!=t.detail.branch?t.detail.branch.name:t.detail.department)+" ")]),t.detail.department&&null!=t.detail.branch?s("div",{staticStyle:{"margin-left":"5px"}},[t._v(" (所属科室:"+t._s(t.detail.department)+") ")]):t._e()])]),s("div",{staticClass:"form",staticStyle:{flex:"0 0 200px"}},[s("div",{staticClass:"label"},[t._v("联系方式:")]),s("div",{staticClass:"text"},[t._v(" "+t._s(t.detail.applicant_mobile)+" ")])])]),s("div",{staticClass:"line"}),s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("申请信息:")]),s("div",{staticClass:"text"},[s("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.detail.use_data}},[s("el-table-column",{attrs:{label:"实验室名称","min-width":"200",prop:"room_name"}}),s("el-table-column",{attrs:{label:"日期","min-width":"100",prop:"day"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[t._v(" "+t._s(s.day)+" ")]}}])}),s("el-table-column",{attrs:{label:"节次","min-width":"100",prop:"address"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[t._v(t._s(s.time_name))]}}])})],1)],1)]),s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("申请原因:")]),s("div",{staticClass:"text text1"},[s("div",{domProps:{innerHTML:t._s(t.detail.use_reason)}})])])]),s("div",{staticClass:"item"},[s("div",{staticClass:"form"},[s("div",{staticClass:"label"},[t._v("使用需求:")]),s("div",{staticClass:"text text1"},[s("div",{domProps:{innerHTML:t._s(t.detail.use_need)}})])])])]),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("确 定")])],1),s("enclosureDetail",{ref:"enclosure-detil"})],1)},i=[],l=s("d12b"),o=s("38e8"),n=s("4ff3c"),r=s.n(n),c=s("7736"),d=s("f121"),u=s("1103"),p={name:"TemplateClassdialog",components:{enclosureDetail:o["default"]},data(){return{dialogVisible:!1,detail:""}},computed:{...Object(c["c"])({token:"user/token"})},methods:{lookEnclosure(t,e){this.$refs["enclosure-detil"].showEdit(t,e)},transformWeek:l["transformWeek"],async recordDetail(t){const{data:e}=await Object(u["orderDetail"])(t);this.detail=e},handleClose(){this.dialogVisible=!1},showEdit(t){this.recordDetail(t),this.dialogVisible=!0},handlePrint(){r()({baseURL:d["baseURL"],timeout:5e3,method:"get",url:"/lab/open-appointment/down-print",headers:{Authorization:"Bearer "+this.token},params:{id:this.detail.id},responseType:"blob"}).then(t=>{this.convertRes2Blob(t)})},convertRes2Blob(t){let e="实验室开放使用申请表";const s=new Blob([t.data],{type:"application/msword"});if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(s,decodeURI(e));else{const t=window.URL.createObjectURL(s),a=document.createElement("a");a.style.display="none",a.href=t,a.setAttribute("download",decodeURI(e)),"undefined"===typeof a.download&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(t)}}}},m=p,h=(s("afa9"),s("0b56")),f=Object(h["a"])(m,a,i,!1,null,"2b5e347e",null);e["default"]=f.exports},"9bff":function(t,e,s){},a7d3:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{"before-close":t.handleClose,title:"申请信息",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("div",{staticClass:"content_1"},[s("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.list}},[s("el-table-column",{attrs:{label:"实验室名称","min-width":"180",prop:"room_name"}}),s("el-table-column",{attrs:{label:"日期","min-width":"180",prop:"day"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[t._v(" "+t._s(s.day)+" ")]}}])}),s("el-table-column",{attrs:{label:"节次","min-width":"100",prop:"address"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[t._v(t._s(s.time_name))]}}])})],1)],1),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:t.handleClose}},[t._v("确 定")])],1)])},i=[],l=s("d12b"),o={name:"TemplateClassdialog",data(){return{dialogVisible:!1,checkForm:{type:2,check_status:1,remark:""},rules:{check_status:[{required:!0,trigger:"blur",message:"请选择审核状态"}]},list:[]}},methods:{transformWeek:l["transformWeek"],showEdit(t){this.list=t,this.dialogVisible=!0},handleClose(){this.list=[],this.dialogVisible=!1}}},n=o,r=(s("c81d"),s("0b56")),c=Object(r["a"])(n,a,i,!1,null,"4ea74140",null);e["default"]=c.exports},afa9:function(t,e,s){"use strict";s("e52b")},c81d:function(t,e,s){"use strict";s("9bff")},cb35:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{"before-close":t.handleClose,center:"",title:"审核流程",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"content_1"},[s("div",{staticClass:"block"},[s("el-timeline",[s("el-timeline-item",{attrs:{placement:"top",timestamp:"第一步",type:"success"}},[s("h4",[t._v("提交申请")]),s("p",[t._v("提交人员:"+t._s(t.apply_name))]),s("p",[t._v("提交时间:"+t._s(t.created_at))])]),t.enclosure&&t.enclosure.length>0?s("el-timeline-item",{attrs:{placement:"top",timestamp:"第二步",type:"success"}},[s("h4",[t._v("上传实验室开放申请表扫描件或照片(加盖部门公章")]),s("p",[s("span",{staticClass:"success"},[t._v("已上传")])])]):s("el-timeline-item",{attrs:{placement:"top",timestamp:"第二步"}},[s("h4",[t._v("上传实验室开放申请表扫描件或照片(加盖部门公章")]),s("p",[t._v("待上传")])]),t.stepDetail.syzx?t._e():s("el-timeline-item",{attrs:{placement:"top",timestamp:"第三步"}},[s("h4",[t._v(" 实验中心审核 "),s("span",{staticClass:"primary"},[t._v("等待实验中心审核")])])]),t.stepDetail.syzx&&1==t.stepDetail.syzx.check_status?s("el-timeline-item",{attrs:{placement:"top",timestamp:"第三步",type:"success"}},[s("h4",[t._v(" 实验中心审核 "),s("span",{staticClass:"success"},[t._v("(审核成功)")])]),s("p",[t._v(" 审核人:"+t._s(t.stepDetail.syzx.check_admin?t.stepDetail.syzx.check_admin.name:"--")+" ")]),s("p",[t._v("审核时间:"+t._s(t.stepDetail.syzx.check_time))]),s("p",[t._v(" 备注: "),s("span",{staticClass:"fail"},[t._v(" "+t._s(t.stepDetail.syzx.check_result||"无")+" ")])])]):t._e(),t.stepDetail.syzx&&2==t.stepDetail.syzx.check_status?s("el-timeline-item",{attrs:{placement:"top",timestamp:"第三步",type:"danger"}},[s("h4",[t._v(" 实验中心审核 "),s("span",{staticClass:"fail"},[t._v("(审核失败)")])]),s("p",[t._v(" 审核人:"+t._s(t.stepDetail.syzx.check_admin?t.stepDetail.syzx.check_admin.name:"--")+" ")]),s("p",[t._v("审核时间:"+t._s(t.stepDetail.syzx.check_time))]),s("p",[t._v(" 备注: "),s("span",{staticClass:"fail"},[t._v(" "+t._s(t.stepDetail.syzx.check_result||"无")+" ")])])]):t._e(),t.stepDetail.yx?t._e():s("el-timeline-item",{attrs:{placement:"top",timestamp:"第四步"}},[s("h4",[t._v(" 信息技术学院审核 "),s("span",{staticClass:"primary"},[t._v("等待信息技术学院审核")])]),s("p",[t._v(" 申请回执: "),s("span",{staticClass:"primary"},[t._v("待上传")])])]),t.stepDetail.yx&&1==t.stepDetail.yx.check_status?s("el-timeline-item",{attrs:{placement:"top",timestamp:"第四步",type:"success"}},[s("h4",[t._v(" 信息技术学院审核 "),s("span",{staticClass:"success"},[t._v("(审核成功)")])]),s("p",[t._v(" 申请回执: "),s("span",{staticClass:"success"},[t._v("已上传")])]),s("p",[t._v(" 审核人:"+t._s(t.stepDetail.yx.check_admin?t.stepDetail.yx.check_admin.name:"--")+" ")]),s("p",[t._v("审核时间:"+t._s(t.stepDetail.yx.check_time))]),s("p",[t._v(" 备注: "),s("span",{staticClass:"fail"},[t._v(t._s(t.stepDetail.yx.check_result||"无"))])])]):t._e(),t.stepDetail.yx&&2==t.stepDetail.yx.check_status?s("el-timeline-item",{attrs:{placement:"top",timestamp:"第四步",type:"danger"}},[s("h4",[t._v(" 信息技术学院审核 "),s("span",{staticClass:"fail"},[t._v("(审核失败)")])]),s("p",[t._v(" 审核人:"+t._s(t.stepDetail.yx.check_admin?t.stepDetail.yx.check_admin.name:"--")+" ")]),s("p",[t._v("审核时间:"+t._s(t.stepDetail.yx.check_time))]),s("p",[t._v(" 备注: "),s("span",{staticClass:"fail"},[t._v(t._s(t.stepDetail.yx.check_result))])])]):t._e(),t.stepDetail.syzx&&1==t.stepDetail.syzx.check_status?s("el-timeline-item",{attrs:{placement:"top",timestamp:"第五步",type:"success"}},[s("h4",{staticClass:"success"},[t._v("审核完成")])]):s("el-timeline-item",{attrs:{placement:"top",timestamp:"第四步"}},[s("h4",[t._v("审核完成")])])],1)],1)]),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("关 闭")])],1)])},i=[],l=s("1103"),o={name:"TemplateClassdialog",data(){return{dialogVisible:!1,loading:!0,stepDetail:"",created_at:"",tips:"",apply_name:"",enclosure:[]}},methods:{async checkSteps(t){const{data:e}=await Object(l["orderCheckDetail"])({id:t});this.stepDetail=e,this.loading=!1},handleClose(){this.dialogVisible=!1},showEdit(t){this.loading=!0,this.checkSteps(t.id),this.tips=t.tips,this.created_at=t.time,this.apply_name=t.apply_name,this.enclosure=t.enclosure,console.log(t.enclosure.length),this.dialogVisible=!0}}},n=o,r=(s("42ff"),s("0b56")),c=Object(r["a"])(n,a,i,!1,null,"a3159dec",null);e["default"]=c.exports},dad0:function(t,e,s){},dc4f:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{"before-close":t.handleClose,center:"",title:"审核流程",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("div",{staticClass:"content_1"},[s("div",{staticClass:"block"},[s("el-timeline",[s("el-timeline-item",{attrs:{placement:"top",timestamp:"第一步"}},[s("h4",[t._v("提交申请")])]),s("el-timeline-item",{attrs:{placement:"top",timestamp:"第二步"}},[s("h4",[t._v("上传实验室开放申请表扫描件或照片(加盖部门公章)")])]),s("el-timeline-item",{attrs:{placement:"top",timestamp:"第三步"}},[s("h4",[t._v("实验中心审核(审核实验室是否满足使用需求)")])]),s("el-timeline-item",{attrs:{placement:"top",timestamp:"第四步"}},[s("h4",[t._v("信息技术学院审核(加盖院系公章并上传回执)")])]),s("el-timeline-item",{attrs:{placement:"top",timestamp:"第五步"}},[s("h4",[t._v("审核完成")])])],1)],1),s("div",{staticClass:"tips"},[s("div",{staticClass:"tips-title"},[s("i",{staticClass:"el-icon-warning"}),t._v(" 审核规则 ")]),s("div",{domProps:{innerHTML:t._s(t.tips)}})])]),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("关 闭")])],1)])},i=[],l=s("1103"),o={name:"TemplateClassdialog",data(){return{dialogVisible:!1,tips:""}},methods:{async getSetting(){const{data:t}=await Object(l["getSetting"])({key:"OPEN_ORDER_LIUCHENG_TIP"});this.tips=t.value},handleClose(){this.dialogVisible=!1},showEdit(){this.getSetting(),this.dialogVisible=!0}}},n=o,r=(s("269b"),s("0b56")),c=Object(r["a"])(n,a,i,!1,null,"d3246ebe",null);e["default"]=c.exports},e3eb:function(t,e,s){},e52b:function(t,e,s){},fcda:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{"before-close":t.handleClose,title:"上传附件",visible:t.dialogVisible,width:"800px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("div",{staticClass:"content_1"},[s("div",{staticClass:"down-load",on:{click:t.handlePrint}},[s("span",{staticStyle:{color:"#1890ff"}},[t._v("点击下载:")]),s("span",{staticStyle:{color:"#1890ff"}},[t._v(" 实验室开放预约申请表 "),s("i",{staticClass:"el-icon-download"})])]),s("el-upload",{staticClass:"upload-demo",attrs:{accept:".jpg,.png",action:t.action,data:t.uploadData,drag:"","file-list":t.fileList,multiple:"","on-error":t.uploadError,"on-remove":t.handleRemove,"on-success":t.uploadSuccess}},[s("i",{staticClass:"el-icon-upload"}),s("div",{staticClass:"el-upload__text"},[t._v(" 将文件拖到此处,或 "),s("em",[t._v("点击上传")])])])],1),s("div",[s("div",{staticClass:"el-upload__text upload-tips"},[t._v(" 注意: "),s("div",{domProps:{innerHTML:t._s(t.tips)}})])]),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),s("el-button",{attrs:{type:"primary"},on:{click:t.sureUpload}},[t._v("确 定")])],1)])},i=[],l=s("f121"),o=s("1103"),n=s("4ff3c"),r=s.n(n),c=s("7736"),d={name:"TemplateClassdialog",data(){return{dialogVisible:!1,form:{id:"",enclosure:[]},action:"",uploadData:{file_type:"file",type:"enclosure"},fileList:[],limit:10,tips:""}},computed:{...Object(c["c"])({token:"user/token"})},methods:{async getSetting(){const{data:t}=await Object(o["getSetting"])({key:"OPEN_ORDER_UPLOAD_FILE_TIP"});this.tips=t.value},handleClose(){this.form={id:"",enclosure:""},this.fileList=[],this.dialogVisible=!1},showEdit(t){this.getSetting(),this.action=l["baseURL"]+"/common/upload",this.fileList=[],this.form.id=t,this.dialogVisible=!0},async sureUpload(){if(this.fileList.map(t=>{this.form.enclosure.push(t.response.data.id)}),0==this.form.enclosure.length)return void this.$message.warning("请上传附件!");const{message:t}=await Object(o["uploadOrderPrint"])(this.form);this.$baseMessage(t,"success",!1,"vab-hey-message-success"),this.$emit("fetch-data"),this.handleClose()},uploadError(){this.fileList=[],this.$message.error("文件上传失败,请重新上传")},uploadSuccess(t,e,s){console.log(s,"文件上传成功"),this.fileList=s},handleRemove(t,e){console.log(e,"文件上传成功"),this.fileList=e},handlePrint(){r()({baseURL:l["baseURL"],timeout:5e3,method:"get",url:"/lab/open-appointment/down-print",headers:{Authorization:"Bearer "+this.token},params:{id:this.form.id},responseType:"blob"}).then(t=>{this.convertRes2Blob(t)})},convertRes2Blob(t){let e="实验室开放使用申请表";const s=new Blob([t.data],{type:"application/msword"});if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(s,decodeURI(e));else{const t=window.URL.createObjectURL(s),a=document.createElement("a");a.style.display="none",a.href=t,a.setAttribute("download",decodeURI(e)),"undefined"===typeof a.download&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(t)}}}},u=d,p=(s("341f"),s("0b56")),m=Object(p["a"])(u,a,i,!1,null,"2dd0a5b8",null);e["default"]=m.exports}}]);