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
20 KiB
2 lines
20 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7be5a0eb"],{"277d":function(e,t,r){},"36b8":function(e,t,r){"use strict";r("277d")},"48e8":function(e,t,r){"use strict";r.d(t,"O",(function(){return n})),r.d(t,"P",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"e",(function(){return s})),r.d(t,"Q",(function(){return u})),r.d(t,"R",(function(){return d})),r.d(t,"W",(function(){return l})),r.d(t,"Y",(function(){return c})),r.d(t,"X",(function(){return m})),r.d(t,"Z",(function(){return h})),r.d(t,"bb",(function(){return p})),r.d(t,"ab",(function(){return f})),r.d(t,"f",(function(){return T})),r.d(t,"l",(function(){return b})),r.d(t,"m",(function(){return y})),r.d(t,"g",(function(){return g})),r.d(t,"d",(function(){return v})),r.d(t,"b",(function(){return D})),r.d(t,"S",(function(){return C})),r.d(t,"V",(function(){return q})),r.d(t,"U",(function(){return k})),r.d(t,"T",(function(){return O})),r.d(t,"a",(function(){return w})),r.d(t,"G",(function(){return E})),r.d(t,"L",(function(){return F})),r.d(t,"I",(function(){return S})),r.d(t,"H",(function(){return _})),r.d(t,"i",(function(){return L})),r.d(t,"j",(function(){return B})),r.d(t,"M",(function(){return G})),r.d(t,"o",(function(){return P})),r.d(t,"N",(function(){return I})),r.d(t,"J",(function(){return $})),r.d(t,"q",(function(){return x})),r.d(t,"n",(function(){return A})),r.d(t,"p",(function(){return j})),r.d(t,"K",(function(){return N})),r.d(t,"D",(function(){return R})),r.d(t,"C",(function(){return V})),r.d(t,"F",(function(){return Q})),r.d(t,"E",(function(){return z})),r.d(t,"h",(function(){return J})),r.d(t,"u",(function(){return U})),r.d(t,"B",(function(){return W})),r.d(t,"t",(function(){return H})),r.d(t,"y",(function(){return K})),r.d(t,"v",(function(){return M})),r.d(t,"A",(function(){return X})),r.d(t,"w",(function(){return Y})),r.d(t,"x",(function(){return Z})),r.d(t,"z",(function(){return ee})),r.d(t,"gb",(function(){return te})),r.d(t,"ob",(function(){return re})),r.d(t,"mb",(function(){return ie})),r.d(t,"hb",(function(){return ne})),r.d(t,"jb",(function(){return ae})),r.d(t,"db",(function(){return oe})),r.d(t,"ib",(function(){return se})),r.d(t,"cb",(function(){return ue})),r.d(t,"fb",(function(){return de})),r.d(t,"kb",(function(){return le})),r.d(t,"lb",(function(){return ce})),r.d(t,"nb",(function(){return me})),r.d(t,"eb",(function(){return he})),r.d(t,"k",(function(){return pe})),r.d(t,"s",(function(){return fe})),r.d(t,"r",(function(){return Te}));var i=r("b775");r("2c37");function n(e){return i["a"].request({method:"GET",url:"/userArticleOut/countArticleOutNow",params:e})}function a(e){return i["a"].request({method:"GET",url:"/userArticleOut/countPerformed",params:e})}function o(e){return i["a"].request({method:"GET",url:"/complaintPraise/countComplaintNew",params:e})}function s(e){return i["a"].request({method:"GET",url:"/complaintPraise/countPraiseNew",params:e})}function u(e){return i["a"].request({method:"GET",url:"/userDecoration/countDecorationNow",params:e})}function d(e){return i["a"].request({method:"GET",url:"/userDecoration/countPerformed",params:e})}function l(e){return i["a"].request({method:"GET",url:"/vote/countVoteExpectedStart",params:e})}function c(e){return i["a"].request({method:"GET",url:"/vote/findDetailById",params:e})}function m(e){return i["a"].request({method:"GET",url:"/vote/findById",params:e})}function h(e){return i["a"].request({method:"POST",url:"/vote/insert",data:e})}function p(e){return i["a"].request({method:"POST",url:"/vote/update",data:e})}function f(e){return i["a"].request({method:"POST",url:"/vote/release",data:e})}function T(e){return i["a"].request({method:"GET",url:"/advice/findById",params:e})}function b(e){return i["a"].request({method:"GET",url:"/complaintPraise/findById",params:e})}function y(e){return i["a"].request({method:"POST",url:"/complaintPraise/insertDetail",data:e})}function g(e){return i["a"].request({method:"POST",url:"/advice/insertDetail",data:e})}function v(e){return i["a"].request({method:"GET",url:"/advice/countConsultNew",params:e})}function D(e){return i["a"].request({method:"GET",url:"/advice/countAdviceNew",params:e})}function C(e){return i["a"].request({method:"POST",url:"/visitors/cancel",data:e})}function q(e){return i["a"].request({method:"POST",url:"/visitors/update",data:e})}function k(e){return i["a"].request({method:"GET",url:"/visitors/listDetail",params:e})}function O(e){return i["a"].request({method:"GET",url:"/visitors/findById",params:e})}function w(e){return i["a"].request({method:"POST",url:"/doorQRCode/addQrCode",data:e})}function E(e){return i["a"].request({method:"POST",url:"/doorQRCode/removeQrCode",data:e})}function F(e){return i["a"].request({method:"GET",url:"/reportRepair/findRepairDetail",params:e})}function S(e){return i["a"].request({method:"POST",url:"/repairEngineering/insert",data:e})}function _(e){return i["a"].request({method:"GET",url:"/repairEngineering/findById",params:e})}function L(e){return i["a"].request({method:"POST",url:"/article/insert",data:e})}function B(e){return i["a"].request({method:"POST",url:"/article/update",data:e})}function G(e){return i["a"].request({method:"POST",url:"/reportRepair/insert",data:e})}function P(e){return i["a"].request({method:"POST",url:"/dispatch/dispatch",data:e})}function I(e){return i["a"].request({method:"POST",url:"/reportRepair/update",data:e})}function $(e){return i["a"].request({method:"GET",url:"/dispatch/repairWorkOrderDetail",params:e})}function x(e){return i["a"].request({method:"POST",url:"/dispatch/revisit",data:e})}function A(e){return i["a"].request({method:"POST",url:"/dispatch/cancel",data:e})}function j(e){return i["a"].request({method:"GET",url:"/dispatch/findSysUserLikeActualName",params:e})}function N(e){return i["a"].request({method:"GET",url:"/reportRepair/findById",params:e})}function R(e){return i["a"].request({method:"POST",url:"/questionnaire/insert",data:e})}function V(e){return i["a"].request({method:"GET",url:"/questionnaire/findById",params:e})}function Q(e){return i["a"].request({method:"POST",url:"/questionnaire/update",data:e})}function z(e){return i["a"].request({method:"GET",url:"/questionnaire/reportAnalysis",params:e})}function J(e){return i["a"].request({method:"GET",url:"/article/findById",params:e})}function U(e){return i["a"].request({method:"POST",url:"/gambit/insert",data:e})}function W(e){return i["a"].request({method:"POST",url:"/gambit/update",data:e})}function H(e){return i["a"].request({method:"GET",url:"/gambit/findById",params:e})}function K(e){return i["a"].request({method:"GET",url:"/gambitTheme/findCommentByThemeId",params:e})}function M(e){return i["a"].request({method:"GET",url:"/gambitTheme/deleteCommentByCommentId",params:e})}function X(e){return i["a"].request({method:"POST",url:"/gambitTheme/recovery",data:e})}function Y(e){return i["a"].request({method:"GET",url:"/gambitTheme/enableComment",params:e})}function Z(e){return i["a"].request({method:"GET",url:"/gambitTheme/enableTheme",params:e})}function ee(e){return i["a"].request({method:"GET",url:"/gambitTheme/list",params:e})}function te(e){return i["a"].request({method:"GET",url:"/workOrderType/list",params:e})}function re(e){return i["a"].request({method:"POST",url:"/workOrderType/update",data:e})}function ie(e){return i["a"].request({method:"POST",url:"/workOrderType/insert",data:e})}function ne(e){return i["a"].request({method:"GET",url:"/workOrderType/delete",params:e})}function ae(e){return i["a"].request({method:"POST",url:"/workOrderTypeDetail/insert",data:e})}function oe(e){return i["a"].request({method:"POST",url:"/workOrderTimeLimit/insert",data:e})}function se(e){return i["a"].request({method:"POST",url:"/workOrderTypeDetail/delete",data:e})}function ue(e){return i["a"].request({method:"GET",url:"/workOrderTimeLimit/findById",params:e})}function de(e){return i["a"].request({method:"POST",url:"/workOrderTimeLimit/update",data:e})}function le(e){return i["a"].request({method:"POST",url:"/workOrderTypeDetail/update",data:e})}function ce(e){return i["a"].request({method:"GET",url:"/workOrderTypeDetail/findById",params:e})}function me(e){return i["a"].request({method:"GET",url:"/workOrderTypeDetail/list",params:e})}function he(e){return i["a"].request({method:"GET",url:"/workOrderTimeLimit/list",params:e})}function pe(e){return i["a"].request({method:"POST",url:"/borrow/remind",data:e})}function fe(e){return i["a"].request({method:"GET",url:"/gambit/enableGambit",params:e})}function Te(e){return i["a"].request({method:"GET",url:"/gambit/disableGambit",params:e})}},"871e":function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-content"},[e._m(0),t("div",{staticClass:"content"},[t("div",{},[t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"工单类型管理",name:"1"}},[t("div",{staticClass:"row_nav"},[t("div",{staticClass:"left_nav"},[t("div",{staticClass:"left-title"},[t("span",{staticClass:"title_text"},[e._v("工单大类")]),t("div",{staticClass:"title-icon"},[t("div",{staticClass:"icon-box",on:{click:function(t){return e.typeListAdd()}}},[t("span",{staticClass:"el-icon-plus"})]),t("div",{staticClass:"icon-box",on:{click:function(t){return e.typeListDelete()}}},[t("span",{staticClass:"el-icon-delete-solid"})])])]),t("div",{staticClass:"ul-list"},[t("ul",e._l(e.typeList,(function(r,i){return t("li",{key:r.id,class:i===e.typeActive?"active":"",on:{click:function(t){return e.typeChange(i,r.id)}}},[r.editBool?t("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticStyle:{flex:"1"},attrs:{size:"small"},on:{blur:t=>e.editInputBlur(t,r.name,r.id,i),focus:t=>e.editInputFocus(t,r.name)},model:{value:r.name,callback:function(t){e.$set(r,"name",t)},expression:"item.name"}}):t("span",[e._v(e._s(r.name))]),t("span",[t("i",{staticClass:"el-icon-edit",on:{click:function(t){return t.stopPropagation(),e.editType(i)}}}),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:r.remake?r.remake:r.name,placement:"right"}},[t("i",{staticClass:"el-icon-warning-outline"})])],1)],1)})),0)])]),t("div",{staticClass:"right_nav"},[t("div",{staticClass:"content-btn"},[t("el-button",{staticClass:"init-button",attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.orderTypeDetailAdd()}}},[e._v("新增工单类型")])],1),t("div",{staticClass:"content-table",staticStyle:{width:"574px"}},[t("tableData",{attrs:{config:e.orderTpeData},on:{clickrow:e.tableTypeRow}}),t("div",{staticClass:"table-footer"},[t("button",{on:{click:function(t){return e.orderTypeEidt(e.orderTypeCheckData)}}},[e._v("编辑")]),t("button",{on:{click:function(t){return e.orderTypeDetailDel(e.orderTypeCheckData)}}},[e._v("删除")])])],1)])])]),t("el-tab-pane",{attrs:{label:"工单限时管理",name:"2"}},[t("div",{staticClass:"right_nav"},[t("div",{staticClass:"content-btn"},[t("el-button",{staticClass:"init-button",attrs:{icon:"el-icon-plus"},on:{click:e.orderTimeAdd}},[e._v("新增工单时限")])],1),t("VueTable",{ref:"orderTimeTable",attrs:{config:e.orderTimeTable},on:{tableCheck:e.orderTimeCheck}},[t("template",{slot:"footer"},[t("div",{staticClass:"table-footer"},[t("button",{on:{click:function(t){return e.orderTimeEidt(e.orderTimeCheckData)}}},[e._v("编辑")]),t("button",{on:{click:function(t){return e.orderTimeDel(e.orderTimeCheckData)}}},[e._v(" 删除")])])])],2)],1)])],1)],1)]),t("Drawer",{attrs:{drawerTitle:e.orderDetailTitle,drawerVrisible:e.orderDetail_vrisible},on:{drawerClose:e.orderDetailClose}},[t("div",{staticStyle:{padding:"30px"}},[t("FromCard",[t("template",{slot:"title"},[e._v("基本信息")]),[t("VueForm",{ref:"orderDetailVueForm",attrs:{formObj:e.orderDetailForm},on:{ruleSuccess:e.orderDetailRuleSubmit}})]],2)],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"btn-orange",on:{click:function(t){return e.orderDetailSubmit()}}},[t("span",[t("i",{staticClass:"el-icon-circle-check"}),e._v("提交")])]),t("button",{staticClass:"btn-gray",on:{click:e.orderDetailClose}},[t("span",[e._v("取消")])])])]),t("Drawer",{attrs:{drawerTitle:e.orderTimeTitle,drawerVrisible:e.orderTime_vrisible},on:{drawerClose:e.orderTimeClose}},[t("div",{staticStyle:{padding:"30px"}},[t("FromCard",[t("template",{slot:"title"},[e._v("基本信息")]),[t("VueForm",{ref:"orderTimeVueForm",attrs:{formObj:e.orderTimeForm},on:{ruleSuccess:e.orderTimeRuleSubmit}},[t("template",{slot:"timeLimit"},[t("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择工单大类",size:"small"},model:{value:e.orderTimeForm.ruleForm.timeLimit,callback:function(t){e.$set(e.orderTimeForm.ruleForm,"timeLimit",e._n(t))},expression:"orderTimeForm.ruleForm.timeLimit"}},[t("span",{attrs:{slot:"suffix"},slot:"suffix"},[e._v("小时")])])],1)],2)]],2)],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"btn-orange",on:{click:function(t){return e.orderTimeSubmit()}}},[t("span",[t("i",{staticClass:"el-icon-circle-check"}),e._v("提交")])]),t("button",{staticClass:"btn-gray",on:{click:e.orderTimeClose}},[t("span",[e._v("取消")])])])])],1)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-titel"},[t("span",[e._v("工单设置")])])}],a=r("48e8"),o={data(){return{orderTimeTitle:"新增工单时限",orderTime_vrisible:!1,orderTimeForm:{ruleForm:{name:null,timeLimit:null,remake:null},form_item:[{type:"Input",label:"名称",placeholder:"请输入",width:"100%",prop:"name"},{type:"Slot",label:"工单处理时限",placeholder:"请输入",width:"100%",prop:"timeLimit",slotName:"timeLimit"},{type:"textarea",label:"备注",placeholder:"请输入备注信息",width:"100%",rows:5,prop:"remake"}],rules:{name:[{required:!0,message:"请填写工单名称",trigger:"blur"}],timeLimit:[{required:!0,message:"请输入工单处理时限",trigger:"blur"},{type:"number",message:"年工单处理时限必须为数字值"}]}},orderDetailTitle:"新增工单类型",orderDetail_vrisible:!1,orderDetailForm:{ruleForm:{name:null,workOrderTypeId:null},form_item:[{type:"Select",label:"工单大类",placeholder:"请选择",disabled:!0,options:[],width:"50%",prop:"workOrderTypeId"},{type:"Input",label:"工单类型名称",placeholder:"请输入",width:"100%",prop:"name"}],rules:{name:[{required:!0,message:"请填写工单名称",trigger:"blur"}],workOrderTypeId:[{required:!0,message:"请选择工单大类",trigger:"change"}]}},orderDetailEidtId:0,orderTypeCheckData:[],orderTpeData:{thead:[{label:"序号",type:"index",width:"80"},{label:"名称",prop:"name",width:"auto"}],table_data:[],loading:!0},typeListName:"",typeList:[],typeActive:0,orderTimeTable:{thead:[{label:"序号",type:"index",width:"80"},{label:"名称",prop:"name",width:"auto"},{label:"处理时限(小时)",prop:"timeLimit",width:"auto"},{label:"备注",prop:"remake",width:"auto"}],table_data:[],url:"workOrderTimeLimitList",data:{pageNum:1,size:10}},orderTimeEidtId:0,orderTimeCheckData:[],activeName:"1"}},mounted(){this.getType(),this.getOrderTypeData()},directives:{focus:{inserted:function(e){e.querySelector("input").focus()}}},methods:{getOrderTypeData(){Object(a["gb"])().then(e=>{let t=e.map(e=>({label:e.name,value:e.id}));this.orderDetailForm.form_item[0].options=t})},orderTypeDetailAdd(){this.orderDetail_vrisible=!0,this.orderDetailForm.ruleForm.workOrderTypeId=this.typeList[this.typeActive].id},tableTypeRow(e){this.orderTypeCheckData=e},orderTypeEidt(e){if(e.length){if(e.length>1)return void this.$message.error("不能批量编辑");let t={id:e[0].id};Object(a["lb"])(t).then(e=>{e&&(this.orderDetailEidtId=e.id,this.orderDetailForm.ruleForm.name=e.name,this.orderDetailForm.ruleForm.workOrderTypeId=this.typeList[this.typeActive].id,this.orderDetail_vrisible=!0),console.log(e)})}else this.$message.error("请选择需要编辑的数据")},orderTypeDetailDel(e){if(e.length){let e=[];for(let t=0;t<this.orderTypeCheckData.length;t++)e.push(this.orderTypeCheckData[t].id);this.$confirm("是否确认删除?删除不可恢复","删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{let t={ids:e};Object(a["ib"])(t).then(e=>{this.$message({type:"success",message:e.message}),this.getType(),this.typeActive=0,this.orderDetailClose()})}).catch(e=>{})}else this.$message.error("请选中需要删除的数据")},orderDetailSubmit(){this.$refs.orderDetailVueForm.submitForm()},orderDetailRuleSubmit(){if(this.orderDetailEidtId){let e={id:this.orderDetailEidtId,name:this.orderDetailForm.ruleForm.name};Object(a["kb"])(e).then(e=>{this.$message({type:"success",message:e.message}),this.getType(),this.orderDetailClose()})}else{let e={name:this.orderDetailForm.ruleForm.name,workOrderTypeId:this.orderDetailForm.ruleForm.workOrderTypeId};Object(a["jb"])(e).then(e=>{this.$message({type:"success",message:e.message}),this.getType(),this.orderDetailClose()})}},orderDetailClose(){this.$refs.orderDetailVueForm.reset(),this.orderDetailEidtId=0,this.orderDetail_vrisible=!1},orderTimeAdd(){this.orderTime_vrisible=!0},orderTimeEidt(e){if(e.length){if(e.length>1)return void this.$message.error("不能批量编辑");let t={id:e[0].id};Object(a["cb"])(t).then(e=>{e&&(this.orderTimeEidtId=e.id,this.orderTimeForm.ruleForm.name=e.name,this.orderTimeForm.ruleForm.timeLimit=e.timeLimit,this.orderTimeForm.ruleForm.remake=e.remake,this.orderTime_vrisible=!0)})}else this.$message.error("请选择需要编辑的数据")},orderTimeSubmit(){this.$refs.orderTimeVueForm.submitForm()},orderTimeRuleSubmit(){let e={name:this.orderTimeForm.ruleForm.name,timeLimit:this.orderTimeForm.ruleForm.timeLimit,remake:this.orderTimeForm.ruleForm.remake};this.orderTimeEidtId?(e.id=this.orderTimeEidtId,console.log(e),Object(a["fb"])(e).then(e=>{e.status&&this.$message({type:"success",message:e.message}),this.orderTimeClose(),this.$refs.orderTimeTable.loadData()})):Object(a["db"])(e).then(e=>{this.$message({type:"success",message:e.message}),this.orderTimeClose(),this.$refs.orderTimeTable.loadData()})},orderTimeClose(){this.orderTime_vrisible=!1,this.orderTimeEidtId=0,this.$refs.orderTimeVueForm.reset()},getType(){Object(a["gb"])().then(e=>{this.typeList=e,this.typeList.map(e=>{this.$set(e,"editBool",!1)}),this.TypeList(this.typeList[this.typeActive].id)})},typeListAdd(){this.$prompt("请输入工单名称","添加工单大类",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(({value:e})=>{let t={name:e};Object(a["mb"])(t).then(e=>{console.log(e),this.$message({type:"success",message:e.message}),this.getType(),this.getOrderTypeData(),this.typeActive=0})}).catch(()=>{})},typeListDelete(){this.$confirm("是否确认删除工单大类?删除不可恢复","工单大类删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{let e={id:this.typeList[this.typeActive].id};Object(a["hb"])(e).then(e=>{e.status&&(this.$message({type:"success",message:e.message}),this.getType(),this.typeActive=0)})}).catch(e=>{})},editType(e){this.$set(this.typeList[e],"editBool",!0)},editInputBlur(e,t,r,i){if(this.$set(this.typeList[i],"editBool",!1),this.typeListName===t)return;if(""===t)return this.typeList[i].name=this.typeListName,void this.$message.error("内容不能为空");let n={id:r,name:t};Object(a["ob"])(n).then(e=>{console.log(e)})},editInputFocus(e,t){this.typeListName=t},TypeList(e){let t={id:e};Object(a["nb"])(t).then(e=>{this.orderTpeData.table_data=e,this.orderTpeData.loading=!1})},typeChange(e,t){this.typeActive=e,this.TypeList(t)},orderTimeCheck(e){this.orderTimeCheckData=e},orderTimeDel(e){if(e.length){let e=[];for(let t=0;t<this.orderTimeCheckData.length;t++)e.push(this.orderTimeCheckData[t].id);this.$confirm("是否确认删除?删除不可恢复","删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{this.$refs.orderTimeTable.tableDelete(e)}).catch(e=>{})}else this.$message.error("请选中需要删除的数据")}}},s=o,u=(r("36b8"),r("2877")),d=Object(u["a"])(s,i,n,!1,null,"ace8f2c0",null);t["default"]=d.exports}}]);
|
|
//# sourceMappingURL=chunk-7be5a0eb.fd3ef76f.js.map
|