Files
PropertyDeployment/resources/Web/PropertyApp/html/static/js/pages-roomRenovationDetail-roomRenovationDetail.4f03563e.js
2025-12-09 20:22:03 +08:00

1 line
17 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-roomRenovationDetail-roomRenovationDetail"],{"035b":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,".btn-check[data-v-621d171c]{width:50%;margin:%?30?% auto;height:%?90?%;line-height:%?90?%;text-align:center;background-color:#0a0;border-radius:%?15?%;color:#fff;font-size:%?32?%}\n/* 弹出框 */.pop-bg[data-v-621d171c]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.4);display:flex;justify-content:center;align-items:center}.pop-box[data-v-621d171c]{position:relative;width:85%;height:%?700?%;background-color:#fff;border-radius:%?15?%}.pop-title[data-v-621d171c]{padding:%?30?% 0;text-align:center;font-size:%?32?%;font-weight:700}.pop-bottom[data-v-621d171c]{width:100%;position:absolute;bottom:0}.btn-box[data-v-621d171c]{width:90%;margin:0 auto;border-top:1px solid #f6f6f8;display:flex}.cancel[data-v-621d171c], .confirm[data-v-621d171c]{width:50%;height:%?100?%;line-height:%?100?%;text-align:center;font-size:%?40?%;font-weight:400}.cancel[data-v-621d171c]{color:#999}.confirm[data-v-621d171c]{color:#3488fe}",""]),t.exports=e},"123f":function(t,e,n){"use strict";n.r(e);var i=n("b695"),a=n("2fe6");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("9c37");var s=n("828b"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"621d171c",null,!1,i["a"],void 0);e["default"]=c.exports},"2fe6":function(t,e,n){"use strict";n.r(e);var i=n("8975"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},8975:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d4b5");i(n("4a01"));var a=n("e10e"),o={data:function(){return{renovationInfo:{},errorSwitch:!1,checkStateRange:[{state:3e3,name:"审核通过"},{state:2e3,name:"审核不通过"}],reviewStateRange:[{state:5e3,name:"验收通过"},{state:6e3,name:"验收不通过"}],checkState:{},reviewState:{},checkRemark:"",reviewRemark:""}},components:{},props:{},onLoad:function(t){this.java110Context.onLoad();this.renovationInfo=JSON.parse(t.apply)},onReady:function(){},onShow:function(){},methods:{onBlur:function(){uni.pageScrollTo({scrollTop:0})},switchShowModel:function(){this.errorSwitch=!this.errorSwitch},checkStateRangeChange:function(t){var e=t.detail.value;this.checkState=this.checkStateRange[e],this.checkRemark=this.checkState.name},reviewStateRangeChange:function(t){var e=t.detail.value;this.reviewState=this.reviewStateRange[e],this.reviewRemark=this.reviewState.name},submit:function(){uni.showLoading({title:"请稍候..."});var t=this,e={communityId:this.renovationInfo.communityId,rId:this.renovationInfo.rId,roomId:this.renovationInfo.roomId,roomName:this.renovationInfo.roomName,userId:this.renovationInfo.userId,startTime:this.renovationInfo.startTime,endTime:this.renovationInfo.endTime,remark:this.renovationInfo.remark,detailType:"1001"};if(1e3==this.renovationInfo.state){var n=this.checkState.state;if(null==n||!n)return uni.hideLoading(),void uni.showToast({title:"请选择审核状态"});var i=this.checkRemark;if(""==i||!i)return uni.hideLoading(),void uni.showToast({title:"请填写审核备注"});e.state=n,e.examineRemark=i,(0,a.updateRoomToExamine)(this,e).then((function(t){uni.hideLoading(),uni.showToast({title:"保存成功"}),setTimeout((function(){uni.navigateBack({})}),1e3)}))}else{var o=this.reviewState.state;if(null==o||!o)return uni.hideLoading(),void uni.showToast({title:"请选择验收状态"});var s=this.reviewRemark;if(""==s||!s)return uni.hideLoading(),void uni.showToast({title:"请填写验收备注"});e.state=o,e.examineRemark=s,(0,a.saveRoomRenovationDetail)(this,e).then((function(e){uni.hideLoading(),uni.showToast({title:"保存成功"}),setTimeout((function(){t.goBack()}),1e3)}))}},renovationComplete:function(){var t=this;uni.showModal({cancelText:"取消",confirmText:"确认",title:"确认操作",content:"是否完成房屋装修?",confirmColor:"#3B8BFF",cancelColor:"#222222",success:function(e){e.confirm?(0,a.updateRoomRenovationState)(t,t.renovationInfo).then((function(t){0==t.code&&uni.navigateBack({delta:1})})):e.cancel&&console.log("cancel")}})},goBack:function(){var t=getCurrentPages();if(t.length>1)uni.navigateBack(1);else{var e=this.$router.go(-1);void 0==e&&uni.reLaunch({url:"/pages/applyRoom/applyRoom"})}},showRenovationRecord:function(){uni.navigateTo({url:"/pages/roomRenovationRecord/roomRenovationRecord?apply="+JSON.stringify(this.renovationInfo)})},empty:function(){}}};e.default=o},"9c37":function(t,e,n){"use strict";var i=n("fbb3"),a=n.n(i);a.a},b695:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"cu-list menu margin-top"},[n("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showRenovationRecord()}}},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-time text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("装修跟踪记录")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v("查看")])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-time text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("申请房间")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.renovationInfo.roomName))])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-profile text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("申请人")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.renovationInfo.personName))])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-phone text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("联系方式")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.renovationInfo.personTel))])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-time text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("开始时间")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.renovationInfo.startTime))])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-time text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("结束时间")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.renovationInfo.endTime))])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-service text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("装修单位")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.renovationInfo.renovationCompany))])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-profile text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("装修负责人")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.renovationInfo.personMain))])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-phone text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("负责人电话")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.renovationInfo.personMainTel))])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-time text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("是否延期")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s("N"==t.renovationInfo.isPostpone?"否":"是"))])],1)],1),"Y"==t.renovationInfo.isPostpone?n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-time text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("延期日期")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.renovationInfo.postponeTime))])],1)],1):t._e(),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-footprint text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("申请备注")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.renovationInfo.remark))])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-time text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("当前状态")])],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.renovationInfo.stateName))])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[1e3==t.renovationInfo.state&&"N"==t.renovationInfo.isViolation&&this.java110Context.hasPrivilege("502021031698730003")?n("v-uni-button",{staticClass:"btn-check",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.switchShowModel()}}},[t._v("审核")]):t._e(),4e3==t.renovationInfo.state&&"N"==t.renovationInfo.isViolation&&this.java110Context.hasPrivilege("502021012701630060")?n("v-uni-button",{staticClass:"btn-check",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.switchShowModel()}}},[t._v("验收")]):t._e(),3e3==t.renovationInfo.state&&"N"==t.renovationInfo.isViolation?n("v-uni-button",{staticClass:"btn-check",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.renovationComplete()}}},[t._v("装修完成")]):t._e()],1)],1),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.errorSwitch,expression:"errorSwitch"}],staticClass:"pop-bg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.switchShowModel()}}},[n("v-uni-view",{staticClass:"pop-box",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.empty.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"pop-title"},[t._v(t._s(1e3==t.renovationInfo.state?"审核":"验收"))]),1e3==t.renovationInfo.state?n("v-uni-view",{staticClass:"cu-list menu margin-top"},[n("v-uni-view",{staticClass:"cu-item arrow"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-time text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("审核状态")])],1),n("v-uni-picker",{attrs:{mode:"selector",value:t.checkState.state,range:t.checkStateRange,"range-key":"name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.checkStateRangeChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"picker"},[t._v(" "+t._s(t.checkState.name?t.checkState.name:"请选择")+" ")])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-time text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("审核备注")])],1),n("v-uni-input",{attrs:{type:"text"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.onBlur()}},model:{value:t.checkRemark,callback:function(e){t.checkRemark=e},expression:"checkRemark"}})],1)],1):t._e(),4e3==t.renovationInfo.state?n("v-uni-view",{staticClass:"cu-list menu margin-top"},[n("v-uni-view",{staticClass:"cu-item arrow"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-time text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("验收状态")])],1),n("v-uni-picker",{attrs:{mode:"selector",value:t.reviewState.state,range:t.reviewStateRange,"range-key":"name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.reviewStateRangeChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"picker"},[t._v(" "+t._s(t.reviewState.name?t.reviewState.name:"请选择")+" ")])],1)],1),n("v-uni-view",{staticClass:"cu-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"cuIcon-time text-green"}),n("v-uni-text",{staticClass:"text-grey"},[t._v("验收备注")])],1),n("v-uni-input",{attrs:{type:"text"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.onBlur()}},model:{value:t.reviewRemark,callback:function(e){t.reviewRemark=e},expression:"reviewRemark"}})],1)],1):t._e(),n("v-uni-view",{staticClass:"pop-bottom"},[n("v-uni-view",{staticClass:"btn-box"},[n("v-uni-view",{staticClass:"cancel",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.switchShowModel()}}},[t._v("取消")]),n("v-uni-view",{staticClass:"confirm",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit()}}},[t._v("保存")])],1)],1)],1)],1)],1)},a=[]},e10e:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.deleteRoomRenovationRecord=function(t,e){return new Promise((function(n,i){t.context.post({url:a.default.deleteRoomRenovationRecord,data:e,success:function(t){0==t.data.code?n():wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryDictInfo=function(t,e){return new Promise((function(n,i){t.context.get({url:a.default.queryDictInfo,data:e,success:function(t){n(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryRoomRenovation=function(t,e){return new Promise((function(n,i){t.context.get({url:a.default.queryRoomRenovation,data:e,success:function(e){t.onoff=!0,0==e.data.code?n(e.data):wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryRoomRenovationRecord=function(t,e){return new Promise((function(n,i){t.context.get({url:a.default.queryRoomRenovationRecord,data:e,success:function(t){0==t.data.code?n(t.data):wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.queryRoomRenovationRecordDetail=function(t,e){return new Promise((function(n,i){t.context.get({url:a.default.queryRoomRenovationRecordDetail,data:e,success:function(t){0==t.data.code?n(t.data.data):wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.saveRoomRenovationDetail=function(t,e){return new Promise((function(n,i){t.context.post({url:a.default.saveRoomRenovationDetail,data:e,success:function(t){0==t.data.code?n():wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.updateRoomDecorationRecord=function(t,e){return new Promise((function(n,i){t.context.post({url:a.default.updateRoomDecorationRecord,data:e,success:function(t){0==t.data.code?n():wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.updateRoomRenovationState=function(t,e){return new Promise((function(n,i){t.context.post({url:a.default.updateRoomRenovationState,data:e,success:function(t){0==t.data.code?n(t.data):wx.showToast({title:t.data.msg,icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.updateRoomToExamine=function(t,e){return new Promise((function(n,i){t.context.post({url:a.default.updateRoomToExamine,data:e,success:function(t){0==t.data.code?n():wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e.uploadVideo=function(t,e){return new Promise((function(n,i){t.context.post({url:a.default.uploadVideo,data:e,header:{"Content-Type":"multipart/form-data"},success:function(t){0==t.data.code?n():wx.showToast({title:"服务器异常了1",icon:"none",duration:2e3})},fail:function(t){console.log(t),wx.showToast({title:"服务器异常了2",icon:"none",duration:2e3})}})}))},n("bf0f");var a=i(n("9494"))},fbb3:function(t,e,n){var i=n("035b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("2b06f89a",i,!0,{sourceMap:!1,shadowMode:!1})}}]);