1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-projectEnd-safeManage-rectificationReply"],{"087b":function(e,t,i){"use strict";i.r(t);var a=i("433c"),r=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t["default"]=r.a},"0912":function(e,t,i){"use strict";var a=i("7782"),r=i.n(a);r.a},"109f":function(e,t,i){var a=i("cbf66");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=i("4f06").default;r("7c6481c2",a,!0,{sourceMap:!1,shadowMode:!1})},"1f61":function(e,t,i){"use strict";i.r(t);var a=i("2bd9"),r=i("ad10");for(var n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);i("b6bd");var o,s=i("f0c5"),l=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,"106e38b2",null,!1,a["a"],o);t["default"]=l.exports},"2bd9":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return a}));var a={headers:i("3b61").default},r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"rectificationReply"},[i("headers",{staticClass:"fixedheader",attrs:{themeType:!0,showBack:!0}},[i("v-uni-view",{staticClass:"headerName"},[e._v("整改回复")])],1),i("v-uni-scroll-view",{staticClass:"smallHeight",style:{"padding-top":e.statusBarHeight+45+"px"},attrs:{"scroll-y":!0}},[i("v-uni-view",{staticClass:"reply-form"},[i("v-uni-view",{staticClass:"b-bottom"},[i("v-uni-view",{staticClass:"form-item flex"},[i("v-uni-view",{staticClass:"form-lable"},[i("v-uni-text",[e._v("整改人")])],1),i("v-uni-view",{staticClass:"form-text"},[i("v-uni-text",[e._v(e._s(e.userName))])],1)],1)],1),i("v-uni-view",{staticClass:"b-bottom"},[i("v-uni-view",{staticClass:"form-item flex f-column a-start"},[i("v-uni-view",{staticClass:"form-lable"},[i("v-uni-text",[e._v("整改内容")])],1),i("v-uni-view",{staticClass:"form-textarea"},[i("v-uni-textarea",{on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.bindTextAreaBlur.apply(void 0,arguments)}}})],1)],1)],1),i("v-uni-view",{staticClass:"form-item flex f-column a-start"},[i("v-uni-view",{staticClass:"form-lable"},[i("v-uni-text",[e._v("图片")])],1),i("v-uni-view",{staticClass:"uni-form-input imgBox_wrap"},[e.replyForm.imgFileList.length<5?i("v-uni-view",{staticClass:"addImgBox",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadImg.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"icon-add",attrs:{src:"/static/safeMange/upload_image.png",color:"#F56C6C"}})],1):e._e(),e._l(e.replyForm.imgFileList,(function(t,a){return i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.replyForm.imgFileList.length>0,expression:"replyForm.imgFileList.length>0"}],key:a,staticClass:"imgBox"},[i("v-uni-image",{staticClass:"img",attrs:{src:e.url_config+"image/"+t.url},on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.previewImage(e.url_config+"image/"+t.url)}}}),i("v-uni-view",{staticClass:"deleteImg",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.deleteImg(t,1)}}},[i("v-uni-image",{attrs:{src:"/static/safeMange/close_icon.png",color:"#F56C6C"}})],1)],1)}))],2)],1)],1)],1),i("v-uni-view",{staticClass:"submit-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submitForm.apply(void 0,arguments)}}},[e._v("提交")])],1)},n=[]},"3b61":function(e,t,i){"use strict";i.r(t);var a=i("f4e2"),r=i("087b");for(var n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);i("0912");var o,s=i("f0c5"),l=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,"461b0680",null,!1,a["a"],o);t["default"]=l.exports},"433c":function(e,t,i){"use strict";var a=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(i("9931")),n={props:["showBack","themeType"],components:{uniIcons:r.default},data:function(){return{mobileTopHeight:0}},mounted:function(){var e=this;uni.getSystemInfo({success:function(t){e.mobileTopHeight=t.statusBarHeight,uni.setStorageSync("systemInfo",t),console.log(t)}}),console.log("this.mobileTopHeight",this.mobileTopHeight)},methods:{goBackFn:function(){uni.navigateBack({success:function(){}})}}};t.default=n},7782:function(e,t,i){var a=i("c58a");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=i("4f06").default;r("ee2056aa",a,!0,{sourceMap:!1,shadowMode:!1})},ad10:function(e,t,i){"use strict";i.r(t);var a=i("ba2e"),r=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t["default"]=r.a},b6bd:function(e,t,i){"use strict";var a=i("109f"),r=i.n(a);r.a},ba2e:function(e,t,i){"use strict";var a=i("4ea4");i("4160"),i("a434"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(i("3b61")),n={data:function(){return{statusBarHeight:0,replyForm:{imgFileList:[],content:""},userId:"",userName:""}},components:{headers:r.default},onShow:function(){this.statusBarHeight=uni.getStorageSync("systemInfo").statusBarHeight,this.userId=JSON.parse(uni.getStorageSync("userInfo")).userId,this.userName=JSON.parse(uni.getStorageSync("userInfo")).realName},methods:{bindTextAreaBlur:function(e){this.replyForm.content=e.detail.value},uploadImg:function(){var e=this;uni.chooseImage({count:5-e.replyForm.imgFileList.length,success:function(t){var i=t.tempFilePaths;uni.uploadFile({url:e.url_config+"upload/image",filePath:i[0],name:"files",success:function(t){var i={name:JSON.parse(t.data).data[0].filename,url:JSON.parse(t.data).data[0].imageUrl};e.replyForm.imgFileList.push(i)}})}})},deleteImg:function(e,t){var i=this;uni.showModal({title:"提示",content:"确定删除该附件吗?",success:function(a){if(a.confirm){if(1==t){var r=JSON.parse(JSON.stringify(i.replyForm.imgFileList));r.forEach((function(t,i){t.url==e.url&&r.splice(i,1)})),i.replyForm.imgFileList=r}else if(2==t){var n=JSON.parse(JSON.stringify(i.videoFileList));n.forEach((function(t,i){t.url==e.url&&n.splice(i,1)})),i.videoFileList=n}}else a.cancel&&console.log("用户点击取消")}})},previewImage:function(e){uni.previewImage({urls:[e]})},submitForm:function(){var e={createUser:this.userId,fileUrl:"",inspectId:"",additionalRemarks:this.replyForm.content,status:2,type:1},t=[];this.replyForm.imgFileList.forEach((function(e){t.push(e.url)})),e.fileUrl=t.join(","),uni.getStorageSync("detailData")&&(e.inspectId=uni.getStorageSync("detailData").id),console.log(this.replyForm,uni.getStorageSync("detailData"),e);this.sendRequest({url:"xmgl/hiddenDangerRectifyRecord/add",method:"post",data:e,success:function(e){200==e.code&&(uni.showToast({title:"保存成功"}),uni.redirectTo({url:"./addExamine?type=5"})),console.log(e.result)}})}}};t.default=n},c58a:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.statusBar[data-v-461b0680]{background-color:#2a2b5b}.whiteHeaderBox .statusBar[data-v-461b0680]{background-color:#2b8df3}',""]),e.exports=t},cbf66:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.rectificationReply[data-v-106e38b2]{height:100%}.rectificationReply .fixedheader[data-v-106e38b2]{position:fixed;top:0;left:0;width:100%;z-index:2}.rectificationReply .smallHeight[data-v-106e38b2]{height:100%;box-sizing:border-box;background:#f6f6f6}.rectificationReply .reply-form[data-v-106e38b2]{background:#fff;padding-bottom:%?20?%}.rectificationReply .reply-form .b-bottom[data-v-106e38b2]{border-bottom:%?2?% solid #f0f0f0}.rectificationReply .reply-form .form-item[data-v-106e38b2]{padding:%?36?% %?32?%;line-height:%?36?%}.rectificationReply .reply-form .form-item .form-lable[data-v-106e38b2]{color:#f56c6c;white-space:nowrap}.rectificationReply .reply-form .form-item .form-lable[data-v-106e38b2] span{color:#000}.rectificationReply .reply-form .form-item .form-text[data-v-106e38b2]{color:#9899a2}.rectificationReply .reply-form .form-item .form-textarea[data-v-106e38b2]{width:100%;margin-top:%?20?%;box-sizing:border-box;height:%?160?%;border:1px dashed #eaeaea;border-radius:%?10?%;overflow:auto}.rectificationReply .reply-form .form-item .form-textarea[data-v-106e38b2] uni-textarea{width:100%;height:100%;font-size:%?28?%;background:#fafafa;padding:%?20?% %?32?%;box-sizing:border-box}.rectificationReply .reply-form .form-item .form-textarea[data-v-106e38b2] uni-textarea .uni-textarea-compute{width:100%;height:100%;overflow:auto}.rectificationReply .reply-form .flex[data-v-106e38b2]{display:flex;align-items:center;justify-content:space-between}.rectificationReply .reply-form .f-column[data-v-106e38b2]{flex-direction:column}.rectificationReply .reply-form .a-start[data-v-106e38b2]{align-items:flex-start}.rectificationReply .reply-form .imgBox_wrap[data-v-106e38b2]{display:flex;flex-wrap:wrap;margin-top:%?18?%;width:75%}.rectificationReply .reply-form .imgBox[data-v-106e38b2]{width:%?120?%;height:%?120?%;display:inline-flex;position:relative;margin-right:%?30?%;margin-bottom:%?16?%}.rectificationReply .reply-form .imgBox .img[data-v-106e38b2]{width:100%;height:100%;border-radius:%?12?%}.rectificationReply .reply-form .imgBox .deleteImg[data-v-106e38b2]{position:absolute;right:%?-12?%;top:%?-18?%}.rectificationReply .reply-form .imgBox .deleteImg uni-image[data-v-106e38b2]{width:%?20?%;height:%?20?%}.rectificationReply .reply-form .addImgBox[data-v-106e38b2]{border:1px solid rgba(42,43,91,.1);background-color:#f6f5f8;width:%?120?%;height:%?120?%;display:inline-flex;align-items:center;justify-content:center;border-radius:%?20?%;font-size:%?24?%;margin-right:%?12?%}.rectificationReply .reply-form .addImgBox uni-image[data-v-106e38b2]{width:100%;height:100%}.rectificationReply .submit-btn[data-v-106e38b2]{width:100%;height:%?96?%;background:#409eff;color:#fff;position:fixed;bottom:0;left:0;text-align:center;line-height:%?96?%}',""]),e.exports=t},f4e2:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return a}));var a={uniIcons:i("9931").default},r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{class:e.themeType?"whiteHeaderBox":""},[i("v-uni-view",{staticClass:"statusBar",style:{height:e.mobileTopHeight+"px"}}),i("v-uni-view",{staticClass:"headerBox"},[i("uni-icons",{directives:[{name:"show",rawName:"v-show",value:e.showBack,expression:"showBack"}],staticClass:"backImg",attrs:{type:"arrowleft",size:"24"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goBackFn.apply(void 0,arguments)}}}),e._t("default")],2)],1)},n=[]}}]); |