zhgdyunapp/unpackage/dist/build/h5/static/js/pages-projectEnd-safeManage-rectificationReply.3d94d3ed.js
2023-05-04 15:33:11 +08:00

1 line
12 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-projectEnd-safeManage-rectificationReply","pages-my-my"],{"0e93":function(e,t,i){var a=i("ebe9");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=i("4f06").default;r("ff6b7228",a,!0,{sourceMap:!1,shadowMode:!1})},"1f6e":function(e,t,i){"use strict";i.r(t);var a=i("f0c5"),r=Object(a["a"])({},void 0,void 0,!1,null,null,null,!1,void 0,void 0);t["default"]=r.exports},2554:function(e,t,i){"use strict";var a=i("0e93"),r=i.n(a);r.a},5094:function(e,t,i){var a=i("69c7");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=i("4f06").default;r("72826e6f",a,!0,{sourceMap:!1,shadowMode:!1})},58885: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("1f6e").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=[]},"69c7":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-501ec0e3]{height:100%}.rectificationReply .fixedheader[data-v-501ec0e3]{position:fixed;top:0;left:0;width:100%;z-index:2}.rectificationReply .smallHeight[data-v-501ec0e3]{height:100%;box-sizing:border-box;background:#f6f6f6}.rectificationReply .reply-form[data-v-501ec0e3]{background:#fff;padding-bottom:%?20?%}.rectificationReply .reply-form .b-bottom[data-v-501ec0e3]{border-bottom:%?2?% solid #f0f0f0}.rectificationReply .reply-form .form-item[data-v-501ec0e3]{padding:%?36?% %?32?%;line-height:%?36?%}.rectificationReply .reply-form .form-item .form-lable[data-v-501ec0e3]{color:#f56c6c;white-space:nowrap}.rectificationReply .reply-form .form-item .form-lable[data-v-501ec0e3] span{color:#000}.rectificationReply .reply-form .form-item .form-text[data-v-501ec0e3]{color:#9899a2}.rectificationReply .reply-form .form-item .form-textarea[data-v-501ec0e3]{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-501ec0e3] 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-501ec0e3] uni-textarea .uni-textarea-compute{width:100%;height:100%;overflow:auto}.rectificationReply .reply-form .flex[data-v-501ec0e3]{display:flex;align-items:center;justify-content:space-between}.rectificationReply .reply-form .f-column[data-v-501ec0e3]{flex-direction:column}.rectificationReply .reply-form .a-start[data-v-501ec0e3]{align-items:flex-start}.rectificationReply .reply-form .imgBox_wrap[data-v-501ec0e3]{display:flex;flex-wrap:wrap;margin-top:%?18?%;width:75%}.rectificationReply .reply-form .imgBox[data-v-501ec0e3]{width:%?120?%;height:%?120?%;display:inline-flex;position:relative;margin-right:%?30?%;margin-bottom:%?16?%}.rectificationReply .reply-form .imgBox .img[data-v-501ec0e3]{width:100%;height:100%;border-radius:%?12?%}.rectificationReply .reply-form .imgBox .deleteImg[data-v-501ec0e3]{position:absolute;right:%?-12?%;top:%?-18?%}.rectificationReply .reply-form .imgBox .deleteImg uni-image[data-v-501ec0e3]{width:%?20?%;height:%?20?%}.rectificationReply .reply-form .addImgBox[data-v-501ec0e3]{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-501ec0e3]{width:100%;height:100%}.rectificationReply .submit-btn[data-v-501ec0e3]{width:100%;height:%?96?%;background:#409eff;color:#fff;position:fixed;bottom:0;left:0;text-align:center;line-height:%?96?%}',""]),e.exports=t},"6bf9":function(e,t,i){"use strict";i.r(t);var a=i("b65d"),r=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t["default"]=r.a},9766: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("996e").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=[]},"996e":function(e,t,i){"use strict";i.r(t);var a=i("58885"),r=i("6bf9");for(var n in r)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(n);i("2554");var o=i("f0c5"),s=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"929d0930",null,!1,a["a"],void 0);t["default"]=s.exports},acf9:function(e,t,i){"use strict";i.r(t);var a=i("ad0c"),r=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t["default"]=r.a},ad0c:function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("14d9"),i("e9c4"),i("d3b7"),i("159b"),i("a434");var r=a(i("996e")),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},b5cd:function(e,t,i){"use strict";i.r(t);var a=i("9766"),r=i("acf9");for(var n in r)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(n);i("fa54");var o=i("f0c5"),s=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"501ec0e3",null,!1,a["a"],void 0);t["default"]=s.exports},b65d:function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(i("1f6e")),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},ebe9: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-929d0930]{background-color:#2a2b5b}.whiteHeaderBox .statusBar[data-v-929d0930]{background-color:#2b8df3}',""]),e.exports=t},fa54:function(e,t,i){"use strict";var a=i("5094"),r=i.n(a);r.a}}]);