You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
19 KiB
2 lines
19 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-55fdc44d"],{"662b":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return u}));r("f2d9");var n=r("2b74");async function a(e,t){let r=[];const a=await Object(n["b"])(e);if(r.push(...a.tableList),a.pageCount>1)for(let u=1;u<a.pageCount;u++){e.pageNum=u+1;const i=await Object(n["b"])(e);t.ExcelLoading(u,a.pageCount),r.push(...i.tableList)}return r}async function u(e){let t=[];const r=await Object(n["b"])(e);return console.log(r),t.push(...r.tableList),t}},"8adb":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"main-content"},[e._m(0),t("div",{staticClass:"content"},[t("div",{staticClass:"content-btn"},[t("el-button",{staticClass:"init-button",attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.add()}}},[e._v("新增计划")])],1),t("div",{},[t("VueTable",{ref:"table",attrs:{config:e.config},on:{tableCheck:e.tableCheck}},[t("template",{slot:"tabs"},[t("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"全部",name:"0"}}),t("el-tab-pane",{attrs:{label:"已修复",name:"1"}}),t("el-tab-pane",{attrs:{label:"部分损坏",name:"2"}}),t("el-tab-pane",{attrs:{label:"未修复",name:"3"}})],1)],1),t("template",{slot:"footer"},[t("div",{staticClass:"table-footer"},[t("button",{on:{click:function(t){return e.edit(e.table_row)}}},[e._v("编辑")]),t("button",{on:{click:function(t){return e.del(e.table_row)}}},[e._v("删除")])])])],2)],1),t("Drawer",{attrs:{drawerTitle:e.drawerTitle,drawerVrisible:e.add_vrisible},on:{drawerClose:e.addClose}},[t("div",{staticStyle:{padding:"30px"}},[t("FromCard",[t("template",{slot:"title"},[e._v("信息")]),[t("VueForm",{ref:"addForm",attrs:{formObj:e.addForm},scopedSlots:e._u([{key:"date",fn:function(){return[t("el-time-picker",{attrs:{"is-range":"","range-separator":"至","value-format":"HH:MM:SS","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},on:{change:e.dateTimeChange},model:{value:e.addDate,callback:function(t){e.addDate=t},expression:"addDate"}})]},proxy:!0},{key:"sysOrganization",fn:function(){return[t("el-select",{staticStyle:{width:"240px"},attrs:{"remote-method":e.remoteMethod,loading:e.loading,remote:"",filterable:"",placeholder:"请选择"},on:{change:e.sChange,focus:e.sefocus},model:{value:e.addForm.ruleForm.organizationId,callback:function(t){e.$set(e.addForm.ruleForm,"organizationId",t)},expression:"\n addForm.ruleForm.organizationId\n "}},e._l(e.sysOptions,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)]},proxy:!0}])})]],2)],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"btn-orange",on:{click:function(t){return e.addSubmit()}}},[t("span",[t("i",{staticClass:"el-icon-circle-check"}),e._v("提交")])]),t("button",{staticClass:"btn-gray",on:{click:e.addClose}},[t("span",[e._v("取消")])])])])],1)])])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-titel"},[t("span",[e._v("运维管理")])])}],u=r("662b"),i=r("d63a"),o={data(){return{thatId:null,drawerTitle:"",add_vrisible:!1,addDate:null,options:[],ids:[],sysOptions:[],loading:!1,addForm:{ruleForm:{equipment:null,type:null,people:null,materials:null,costs:null,department:null,results:null,times:null,remakes:null,maintenanceDate:null},form_item:[{type:"Input",label:"维修设备",placeholder:"请输入",width:"50%",prop:"equipment"},{type:"Select",label:"维修类别",placeholder:"请选择",width:"50%",prop:"type",options:[{value:1,label:"大修"},{value:2,label:"小修"},{value:3,label:"项修"}]},{type:"Input",label:"维修人姓名",placeholder:"请输入",width:"50%",prop:"people"},{type:"Input",label:"维修用料",placeholder:"请输入",width:"50%",prop:"materials"},{type:"Input",label:"维修费用(元)",placeholder:"请输入",width:"50%",prop:"costs"},{type:"Input",label:"维修单位(公司)",placeholder:"请输入",width:"50%",prop:"department"},{type:"Select",label:"维修类别",placeholder:"请选择",width:"50%",prop:"results",options:[{value:1,label:"已修复"},{value:2,label:"部分损坏"},{value:3,label:"未修复"}]},{type:"Int",label:"维修用时(时)",placeholder:"请输入",width:"50%",prop:"times"},{type:"textarea",label:"备注",placeholder:"请输入",width:"50%",prop:"remakes"},{type:"DateTime",label:"维修时间",placeholder:"请输入",width:"50%",prop:"maintenanceDate"}],rules:{equipment:[{required:!0,message:"请输入维修设备",trigger:"blur"}],type:[{required:!0,message:"请输入维修类型",trigger:"blur"}],people:[{required:!0,message:"请输入维修人姓名",trigger:"blur"}],materials:[{required:!0,message:"请输入维修用料",trigger:"blur"}],costs:[{required:!0,message:"请选择维修费用",trigger:"blur"}],department:[{required:!0,message:"请输入维修单位",trigger:"blur"}],results:[{required:!0,message:"请选择维修类别",trigger:"blur"}],times:[{required:!0,message:"请填写维修用时",trigger:"blur"}],maintenanceDate:[{required:!0,message:"请填写维修时间",trigger:"blur"}]}},table_row:[],activeName:"0",json_fields:{"设施设备检查计划编号":"code","设施/设备名称":"facilitiesName","检查人姓名":"examinerName","检查人联系方式":"examinerTel","任务状态":{field:"status",callback:e=>{switch(e){case 1:return"开启";case 2:return"停用"}}},"计划开始时间":"planBeginDate","单次持续时间(单位分钟)":"spaceTime","检查频率":{field:"checkRateType",callback:e=>{switch(e){case 1:return"每天";case 2:return"每周";case 3:return"每月";default:break}}},"创建人":"createName"},config:{thead:[{label:"序号",type:"index",width:"80"},{label:"记录编号",prop:"code",width:"auto"},{label:"维修设备",prop:"equipment",width:"auto"},{label:"维修类别",prop:"type",width:"auto",type:"function",callback:(e,t)=>{switch(e.type){case 1:return"消防";case 2:return"弱电";case 3:return"强电";case 4:return"排风";default:break}}},{label:"维修人姓名",prop:"people",width:"auto"},{label:"维修用料",prop:"materials",width:"auto"},{label:"维修费用(元)",prop:"costs",width:"auto"},{label:"维修单位",prop:"department",width:"auto"},{label:"维修结果",prop:"results",width:"auto",type:"function",callback(e,t){switch(e.results){case 1:return"已修复";case 2:return"部分损坏";case 3:return"未修复";case 4:return"已更换";default:break}}},{label:"维修用时(时)",prop:"times",width:"auto"},{label:"备注",prop:"remakes",width:"auto"},{label:"维修时间",prop:"maintenanceDate",width:"auto"},{label:"登记人",prop:"createName",width:"auto"},{label:"创建时间",prop:"createDate",width:"auto"}],table_data:[],url:"sysOperationsList",search_item:[{type:"select",label:"类型",placeholder:"请输入",prop:"type",options:[{value:1,label:"大修"},{value:2,label:"小修"},{value:3,label:"项修"}]},{type:"select",label:"维修结果",placeholder:"请输入",prop:"results",options:[{value:1,label:"已修复"},{value:2,label:"部分损坏"},{value:3,label:"未修复"}]},{type:"Input",label:"维修设备",placeholder:"请输入",prop:"equipment"},{type:"Input",label:"记录编号",placeholder:"请输入",prop:"code"}],data:{pageNum:1,size:10}}}},methods:{async fetchData(){let e={url:"sysOperationsList",data:{pageNum:1,size:100}};const t=await Object(u["a"])(e,this);return t},add(){this.drawerTitle="新增计划",this.add_vrisible=!0},edit(e){1!=e.length?this.$message({message:"请编辑一条数据",type:"error"}):(this.drawerTitle="修改计划",this.add_vrisible=!0,this.addForm.ruleForm.equipment=e[0].equipment,this.addForm.ruleForm.type=e[0].type,this.addForm.ruleForm.people=e[0].people,this.addForm.ruleForm.materials=e[0].materials,this.addForm.ruleForm.costs=e[0].costs,this.addForm.ruleForm.department=e[0].department,this.addForm.ruleForm.results=e[0].results,this.addForm.ruleForm.times=e[0].times,this.addForm.ruleForm.remakes=e[0].remakes,this.addForm.ruleForm.maintenanceDate=e[0].maintenanceDate,this.thatId=e[0].id)},addClose(){this.$refs.addForm.reset(),this.add_vrisible=!1},addSubmit(){if("修改计划"==this.drawerTitle){let e={...this.addForm.ruleForm,id:this.thatId};Object(i["rb"])(e).then(e=>{e.status&&(this.$message({message:e.message,type:"success"}),this.$refs.table.loadData(),this.addClose())})}else if("新增计划"==this.drawerTitle){let e={...this.addForm.ruleForm};Object(i["qb"])(e).then(e=>{e.status&&(this.$message({message:e.message,type:"success"}),this.$refs.table.loadData(),this.addClose())})}},dateTimeChange(e){this.addForm.ruleForm.openStartDate=e[0],this.addForm.ruleForm.openEndDate=e[1]},handleClick(e,t){let r=null;r=0!=this.activeName?this.activeName:null;const n={pageNum:1,size:10,results:r};this.$refs.table.requestData(n)},tableCheck(e){this.table_row=e},del(e){if(e.length){let e=[];for(let t=0;t<this.table_row.length;t++)e.push(this.table_row[t].id);this.$confirm("是否确认删除?删除不可恢复","删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{this.$refs.table.tableDelete(e)}).catch(e=>{})}else this.$message.error("请选中需要删除的数据")}}},l=o,s=r("2877"),d=Object(s["a"])(l,n,a,!1,null,null,null);t["default"]=d.exports},d63a:function(e,t,r){"use strict";r.d(t,"n",(function(){return a})),r.d(t,"e",(function(){return u})),r.d(t,"qb",(function(){return i})),r.d(t,"rb",(function(){return o})),r.d(t,"q",(function(){return l})),r.d(t,"r",(function(){return s})),r.d(t,"s",(function(){return d})),r.d(t,"h",(function(){return c})),r.d(t,"o",(function(){return m})),r.d(t,"p",(function(){return p})),r.d(t,"l",(function(){return f})),r.d(t,"k",(function(){return h})),r.d(t,"j",(function(){return b})),r.d(t,"m",(function(){return g})),r.d(t,"f",(function(){return q})),r.d(t,"i",(function(){return T})),r.d(t,"g",(function(){return y})),r.d(t,"vb",(function(){return w})),r.d(t,"ub",(function(){return O})),r.d(t,"bb",(function(){return v})),r.d(t,"cb",(function(){return S})),r.d(t,"ab",(function(){return P})),r.d(t,"G",(function(){return k})),r.d(t,"I",(function(){return F})),r.d(t,"F",(function(){return C})),r.d(t,"D",(function(){return E})),r.d(t,"K",(function(){return I})),r.d(t,"N",(function(){return G})),r.d(t,"J",(function(){return _})),r.d(t,"M",(function(){return D})),r.d(t,"H",(function(){return B})),r.d(t,"sb",(function(){return M})),r.d(t,"tb",(function(){return x})),r.d(t,"L",(function(){return N})),r.d(t,"E",(function(){return R})),r.d(t,"W",(function(){return j})),r.d(t,"X",(function(){return A})),r.d(t,"T",(function(){return $})),r.d(t,"Z",(function(){return z})),r.d(t,"Y",(function(){return L})),r.d(t,"V",(function(){return V})),r.d(t,"U",(function(){return H})),r.d(t,"R",(function(){return J})),r.d(t,"P",(function(){return U})),r.d(t,"Q",(function(){return K})),r.d(t,"S",(function(){return Q})),r.d(t,"eb",(function(){return W})),r.d(t,"db",(function(){return X})),r.d(t,"fb",(function(){return Y})),r.d(t,"O",(function(){return Z})),r.d(t,"u",(function(){return ee})),r.d(t,"v",(function(){return te})),r.d(t,"x",(function(){return re})),r.d(t,"t",(function(){return ne})),r.d(t,"w",(function(){return ae})),r.d(t,"z",(function(){return ue})),r.d(t,"A",(function(){return ie})),r.d(t,"C",(function(){return oe})),r.d(t,"y",(function(){return le})),r.d(t,"B",(function(){return se})),r.d(t,"hb",(function(){return de})),r.d(t,"ib",(function(){return ce})),r.d(t,"gb",(function(){return me})),r.d(t,"jb",(function(){return pe})),r.d(t,"ob",(function(){return fe})),r.d(t,"pb",(function(){return he})),r.d(t,"nb",(function(){return be})),r.d(t,"c",(function(){return ge})),r.d(t,"d",(function(){return qe})),r.d(t,"a",(function(){return Te})),r.d(t,"b",(function(){return ye})),r.d(t,"kb",(function(){return we})),r.d(t,"mb",(function(){return Oe})),r.d(t,"lb",(function(){return ve})),r.d(t,"wb",(function(){return Se}));var n=r("b775");r("2c37");function a(e){return n["a"].request({method:"POST",url:"/facilitiesManage/insert",data:e})}function u(e){return n["a"].request({method:"POST",url:"facilitiesAppointment/update",data:e})}function i(e){return n["a"].request({method:"POST",url:"sysOperations/insert",data:e})}function o(e){return n["a"].request({method:"POST",url:"sysOperations/update",data:e})}function l(e){return n["a"].request({method:"POST",url:"facilitiesPlan/insert",data:e})}function s(e){return n["a"].request({method:"POST",url:"facilitiesPlan/open",data:e})}function d(e){return n["a"].request({method:"POST",url:"facilitiesPlan/stop",data:e})}function c(e){return n["a"].request({method:"GET",url:"/facilitiesCategory/list",params:e})}function m(e){return n["a"].request({method:"GET",url:"/facilitiesManage/list",params:e})}function p(e){return n["a"].request({method:"POST",url:"/facilitiesManage/update",data:e})}function f(e){return n["a"].request({method:"GET",url:"/facilitiesMaintenanceRecord/list",params:e})}function h(e){return n["a"].request({method:"POST",url:"/facilitiesMaintenanceRecord/insert",data:e})}function b(e){return n["a"].request({method:"POST",url:"/facilitiesMaintenanceRecord/delete",data:e})}function g(e){return n["a"].request({method:"GET",url:"/facilitiesManage/findDetailById",params:e})}function q(e){return n["a"].request({method:"GET",url:"/facilitiesCategory/findDetailById",params:e})}function T(e){return n["a"].request({method:"POST",url:"/facilitiesCategory/update",data:e})}function y(e){return n["a"].request({method:"POST",url:"/facilitiesCategory/insert",data:e})}function w(e){return n["a"].request({method:"POST",url:"/userDecorationNew/examine",data:e})}function O(e){return n["a"].request({method:"POST",url:"/userDecorationNew/assign",data:e})}function v(e){return n["a"].request({method:"POST",url:"/ownersCommittee/insert",data:e})}function S(e){return n["a"].request({method:"POST",url:"/ownersCommittee/update",data:e})}function P(e){return n["a"].request({method:"GET",url:"/ownersCommittee/findById",params:e})}function k(e){return n["a"].request({method:"POST",url:"/inspectionPoint/insert",data:e})}function F(e){return n["a"].request({method:"POST",url:"/inspectionPoint/update",data:e})}function C(e){return n["a"].request({method:"GET",url:"/inspectionPoint/findById",params:e})}function E(e){return n["a"].request({method:"POST",url:"/inspectionPlan/insert",data:e})}function I(e){return n["a"].request({method:"POST",url:"/inspectionRoute/insert",data:e})}function G(e){return n["a"].request({method:"POST",url:"/inspectionRoute/update",data:e})}function _(e){return n["a"].request({method:"GET",url:"/inspectionRoute/findById",params:e})}function D(e){return n["a"].request({method:"GET",url:"/inspectionRoute/list",params:e})}function B(e){return n["a"].request({method:"GET",url:"/inspectionPoint/list",params:e})}function M(e){return n["a"].request({method:"GET",url:"/sysOrganization/findAllDepartment",params:e})}function x(e){return n["a"].request({method:"GET",url:"/sysUser/list",params:e})}function N(e){return n["a"].request({method:"GET",url:"/inspectionRoute/isEnable",params:e})}function R(e){return n["a"].request({method:"GET",url:"/inspectionPlan/isEnable",params:e})}function j(e){return n["a"].request({method:"GET",url:"/material/list",params:e})}function A(e){return n["a"].request({method:"GET",url:"/materialRecord/findById",params:e})}function $(e){return n["a"].request({method:"POST",url:"/material/insert",data:e})}function z(e){return n["a"].request({method:"POST",url:"/material/update",data:e})}function L(e){return n["a"].request({method:"POST",url:"/materialRecord/insert",data:e})}function V(e){return n["a"].request({method:"POST",url:"/materialInventory/insert",data:e})}function H(e){return n["a"].request({method:"GET",url:"/materialInventory/findById",params:e})}function J(e){return n["a"].request({method:"POST",url:"/keyManagement/insert",data:e})}function U(e){return n["a"].request({method:"POST",url:"/keyBorrow/examine",data:e})}function K(e){return n["a"].request({method:"GET",url:"/keyManagement/findById",params:e})}function Q(e){return n["a"].request({method:"POST",url:"/keyManagement/update",data:e})}function W(e){return n["a"].request({method:"POST",url:"/packageCollection/insert",data:e})}function X(e){return n["a"].request({method:"GET",url:"/packageCollection/findById",params:e})}function Y(e){return n["a"].request({method:"POST",url:"/packageCollection/update",data:e})}function Z(e){return n["a"].request({method:"POST",url:"/interview/insert",data:e})}function ee(e){return n["a"].request({method:"POST",url:"/greenArea/insert",data:e})}function te(e){return n["a"].request({method:"GET",url:"/greenArea/list",params:e})}function re(e){return n["a"].request({method:"POST",url:"/greenTask/insert",data:e})}function ne(e){return n["a"].request({method:"GET",url:"/greenArea/findById",params:e})}function ae(e){return n["a"].request({method:"POST",url:"/greenArea/update",data:e})}function ue(e){return n["a"].request({method:"POST",url:"/hygieneArea/insert",data:e})}function ie(e){return n["a"].request({method:"GET",url:"/hygieneArea/list",params:e})}function oe(e){return n["a"].request({method:"POST",url:"/hygieneTask/insert",data:e})}function le(e){return n["a"].request({method:"GET",url:"/hygieneArea/findById",params:e})}function se(e){return n["a"].request({method:"POST",url:"/hygieneArea/update",data:e})}function de(e){return n["a"].request({method:"POST",url:"/regulationManagement/insert",data:e})}function ce(e){return n["a"].request({method:"GET",url:"/regulationManagement/release",params:e})}function me(e){return n["a"].request({method:"GET",url:"/regulationManagement/findById",params:e})}function pe(e){return n["a"].request({method:"POST",url:"/regulationManagement/update",data:e})}function fe(e){return n["a"].request({method:"POST",url:"/serviceBrowsing/insert",data:e})}function he(e){return n["a"].request({method:"POST",url:"/serviceBrowsing/update",data:e})}function be(e){return n["a"].request({method:"GET",url:"/serviceBrowsing/findById",params:e})}function ge(e){return n["a"].request({method:"POST",url:"/communityIntroduction/insert",data:e})}function qe(e){return n["a"].request({method:"POST",url:"/communityIntroduction/update",data:e})}function Te(e){return n["a"].request({method:"GET",url:"/communityIntroduction/enable",params:e})}function ye(e){return n["a"].request({method:"GET",url:"/communityIntroduction/findById",params:e})}function we(e){return n["a"].request({method:"POST",url:"/securityManagement/insert",data:e})}function Oe(e){return n["a"].request({method:"POST",url:"/securityManagement/update",data:e})}function ve(e){return n["a"].request({method:"GET",url:"/securityManagement/list",params:e})}function Se(e){return n["a"].request({method:"GET",url:"/userDecorationNew/list",params:e})}}}]);
|
|
//# sourceMappingURL=chunk-55fdc44d.ca3d3a14.js.map
|