1 line
44 KiB
JavaScript
1 line
44 KiB
JavaScript
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-malfunc-repair-malfunc-repair"],{"0804":function(t,e,a){"use strict";a.r(e);var i=a("6308"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"28ef":function(t,e,a){"use strict";a.r(e);var i=a("d537"),n=a("f929");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("7061");var r,d=a("f0c5"),s=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"debfdc22",null,!1,i["a"],r);e["default"]=s.exports},"474f":function(t,e,a){"use strict";a.r(e);var i=a("9b68"),n=a("cd59");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("7265");var r,d=a("f0c5"),s=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"16a0a3a8",null,!1,i["a"],r);e["default"]=s.exports},"4fc6":function(t,e,a){"use strict";a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"load-more",props:{loadingType:{type:Number,default:0},showImage:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=i},"50cd":function(t,e,a){var i=a("f514");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("0331203a",i,!0,{sourceMap:!1,shadowMode:!1})},6308:function(t,e,a){"use strict";(function(t){var i=a("4ea4");a("99af"),a("a434"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("d24f"),o=a("fb8c"),r=i(a("474f")),d=i(a("28ef")),s={components:{loadMore:r.default,contentNone:d.default},data:function(){return{formatDate:o.formatDate,page:1,pageSize:10,loadingType:0,contentText:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},places:[{id:"1",name:"科技楼"},{id:"2",name:"调度楼"},{id:"3",name:"后勤楼"},{id:"4",name:"会议中心"}],deptList:[],placeIndex:0,departmentIndex:0,userInfo:(0,o.getStorage)("userInfo"),entryOrderPic:[],showIndex:0,currentTabIndex:0,repair:[],formBxwz:"",formDesc:"",formName:(0,o.getStorage)("userInfo").userName,formTelp:(0,o.getStorage)("userInfo").telnumber,imgs:[],index:0,firstRepairItems:[],firstIndex:0,secondRepairItems:[],secondIndex:0,repairFloor:"",repairRoomNo:"",urgents:["不紧急","紧急"],urgentIndex:0,faultType:0,pageTitle:["报修","报事"],submitFlag:!0,showAlert:!1}},watch:{currentTabIndex:function(t,e){1==t?(this.page=1,this.loadingType=0,this.dataList()):this.getDepartment()}},onLoad:function(t){this.currentTabIndex=t.currentTabIndex||0,this.faultType=t.faultType||0},onShow:function(){this.getFirstRepairItems(),0==this.currentTabIndex||(this.page=1,this.loadingType=0,this.dataList())},methods:{getFirstRepairItems:function(){var t=this,e={method:n.getFaultRepairByParentCode,data:{parentCode:"0",itemType:this.faultType}};(0,o.callbackRequest)(e).then((function(e){e=e.data,1==e.returnCode?(t.firstRepairItems=e.returnData,t.getSecondRepairItems()):(0,o.alertTip)(e.returnMsg)}))},getSecondRepairItems:function(){var t=this;this.secondIndex=0;var e=this.firstRepairItems[this.firstIndex].code,a={method:n.getFaultRepairByParentCode,data:{parentCode:e,itemType:this.faultType}};(0,o.callbackRequest)(a).then((function(e){e=e.data,1==e.returnCode?e.returnData.length>0?t.secondRepairItems=e.returnData:t.secondRepairItems=[{id:"",name:"请直接描述"}]:(0,o.alertTip)(e.returnMsg)}))},dataList:function(){var t=this,e={method:n.getMyFaultRepairList,data:{userId:this.userInfo.id,pageNum:this.page,pageSize:this.pageSize,faultType:this.faultType,isInspection:0}};(0,o.callbackRequest)(e).then((function(e){e=e.data,1==e.returnCode?1==t.page?t.repair=e.returnData||[]:e.returnData.length>0?(t.repair=t.repair.concat(e.returnData),t.loadingType=0):t.loadingType=2:(0,o.alertTip)(e.returnMsg)}))},submit:function(){var t=this;if(!this.submitFlag)return!1;if(this.submitFlag=!1,!this.formDesc)return(0,o.alertTip)("请输入
|