zhgdyunapp/unpackage/dist/build/h5/static/js/pages-projectEnd-safeManage-reply.72242257.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-reply","pages-my-my"],{"02fc":function(t,e,n){"use strict";n.r(e);var i=n("b236"),a=n("fc7c");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("2d63");var r=n("f0c5"),o=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"49c6d65c",null,!1,i["a"],void 0);e["default"]=o.exports},"0e93":function(t,e,n){var i=n("ebe9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("ff6b7228",i,!0,{sourceMap:!1,shadowMode:!1})},"1f6e":function(t,e,n){"use strict";n.r(e);var i=n("f0c5"),a=Object(i["a"])({},void 0,void 0,!1,null,null,null,!1,void 0,void 0);e["default"]=a.exports},2554:function(t,e,n){"use strict";var i=n("0e93"),a=n.n(i);a.a},"2d63":function(t,e,n){"use strict";var i=n("8a98"),a=n.n(i);a.a},58885:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uniIcons:n("1f6e").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{class:t.themeType?"whiteHeaderBox":""},[n("v-uni-view",{staticClass:"statusBar",style:{height:t.mobileTopHeight+"px"}}),n("v-uni-view",{staticClass:"headerBox"},[n("uni-icons",{directives:[{name:"show",rawName:"v-show",value:t.showBack,expression:"showBack"}],staticClass:"backImg",attrs:{type:"arrowleft",size:"24"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBackFn.apply(void 0,arguments)}}}),t._t("default")],2)],1)},s=[]},"6bf9":function(t,e,n){"use strict";n.r(e);var i=n("b65d"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},"88f4":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3"),n("14d9"),n("e9c4"),n("d3b7"),n("159b"),n("a434");var i={data:function(){return{pageTitle:"审核整改",type:1,stateId:"",id:"",content:"",fileList:[],userInfo:""}},onLoad:function(t){this.type=t.type,this.id=Number(t.id),this.stateId=Number(t.stateId),this.pageTitle=1==t.type?"整改回复":"审核整改",this.userInfo=JSON.parse(uni.getStorageSync("userInfo"))},methods:{changeTextarea:function(t){this.content=t.detail.value},selectImg:function(){var t=this;uni.chooseImage({count:5-t.fileList.length,success:function(e){var n=e.tempFilePaths;uni.uploadFile({url:t.url_config+"upload/image",filePath:n[0],name:"files",success:function(e){var n={name:JSON.parse(e.data).data[0].filename,url:JSON.parse(e.data).data[0].imageUrl};console.log("data",n),t.fileList.push(n)}})}})},deleteImg:function(t){var e=this;uni.showModal({title:"提示",content:"确定删除该附件吗?",success:function(n){if(n.confirm){var i=JSON.parse(JSON.stringify(e.fileList));i.forEach((function(e,n){e.url==t.url&&i.splice(n,1)})),e.fileList=i}else n.cancel&&console.log("用户点击取消")}})},getNewDate:function(){var t=new Date,e=t.getMonth()+1,n=t.getDate();e>=1&&e<=9&&(e="0"+e),n>=0&&n<=9&&(n="0"+n);var i=t.getHours(),a=t.getMinutes(),s=t.getSeconds();i>=0&&i<=9&&(i="0"+i),a>=0&&a<=9&&(a="0"+a),s>=0&&s<=9&&(s="0"+s);var r=t.getFullYear()+"-"+e+"-"+n+" "+i+":"+a+":"+s;return r},formSubmit:function(t){if(""!=this.content)if(0!=this.fileList.length)if(2==this.type)this.audit(2);else{var e=this.getNewDate();this.sendRequest({url:"xmgl/securityRectifyRecord/add",method:"post",data:{securityId:this.id,replyContent:this.content,replyImg:JSON.stringify(this.fileList),replyPeople:this.userInfo.userId,status:1,replyTime:e},success:function(t){200==t.code&&(uni.showToast({title:"新增整改回复成功",duration:2e3}),uni.navigateBack())}})}else uni.showToast({title:"请上传附件",icon:"none"});else uni.showToast({title:"请输入回复内容",icon:"none"})},audit:function(t){var e=this.getNewDate();if(""!=this.content)if(0!=this.fileList.length){var n={id:this.stateId,auditPeplyContent:this.content,auditReplyImg:JSON.stringify(this.fileList),status:t,auditTime:e,examiner:this.userInfo.userId,replyPeople:this.userInfo.userId};this.sendRequest({url:"xmgl/securityRectifyRecord/auditSecurityRectifyRecord",data:n,method:"post",success:function(t){200==t.code&&(uni.showToast({title:"审核成功"}),uni.navigateBack())}})}else uni.showToast({title:"请上传附件",icon:"none"});else uni.showToast({title:"请输入回复内容",icon:"none"})},deleteFn:function(){uni.showModal({title:"提示",content:"确定取消编辑整改回复吗?",success:function(t){t.confirm?uni.navigateBack():t.cancel}})}}};e.default=i},"8a98":function(t,e,n){var i=n("af5b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("94ef2afe",i,!0,{sourceMap:!1,shadowMode:!1})},"996e":function(t,e,n){"use strict";n.r(e);var i=n("58885"),a=n("6bf9");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("2554");var r=n("f0c5"),o=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"929d0930",null,!1,i["a"],void 0);e["default"]=o.exports},af5b:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.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/* 文章场景相关 */.addImgBox[data-v-49c6d65c]{border:1px solid rgba(42,43,91,.1);background-color:#f6f5f8;width:60px;height:60px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;font-size:12px}.addImgBox .icon-add[data-v-49c6d65c]{width:18px;height:18px}.flex[data-v-49c6d65c]{display:flex;align-items:center;justify-content:space-around}.content[data-v-49c6d65c]{padding:10px %?30?% 0;box-sizing:border-box}.uni-form-label[data-v-49c6d65c]{margin:10px 0}.imgBox_wrap[data-v-49c6d65c]{display:flex;flex-wrap:wrap}.imgBox[data-v-49c6d65c]{width:60px;height:60px;display:inline-flex;position:relative;margin-right:15px;margin-bottom:8px}.imgBox .img[data-v-49c6d65c]{width:100%;height:100%;border-radius:10px}.imgBox .deleteImg[data-v-49c6d65c]{position:absolute;right:-10px;top:-10px}.textarea[data-v-49c6d65c]{width:100%;border-radius:10px;border:1px solid rgba(42,43,91,.3);padding:8px 15px;box-sizing:border-box!important;height:90px}.submitBtn[data-v-49c6d65c]{font-size:%?32?%;width:33%;line-height:40px;height:42px;margin:0}.deleteBtn[data-v-49c6d65c]{font-size:%?32?%;width:33%;line-height:36px;height:38px;margin:0}.btn_wrap[data-v-49c6d65c]{margin-top:100px}',""]),t.exports=e},b236:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={headers:n("996e").default,uniIcons:n("1f6e").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("headers",{attrs:{showBack:!0}},[n("v-uni-view",{staticClass:"headerName"},[t._v(t._s(t.pageTitle))])],1),n("v-uni-view",{staticClass:"content"},[n("v-uni-form",{on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"uni-form-item"},[n("v-uni-view",{staticClass:"uni-form-label"},[n("v-uni-text",{staticClass:"star"},[t._v("*")]),t._v("回复内容")],1),n("v-uni-view",{staticClass:"uni-form-input"},[n("v-uni-textarea",{staticClass:"textarea",attrs:{maxlength:"-1","placeholder-class":"cl",name:"inspectContent",value:t.content,placeholder:"请输入"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTextarea.apply(void 0,arguments)}}})],1)],1),n("v-uni-view",{staticClass:"uni-form-item"},[n("v-uni-view",{staticClass:"uni-form-label"},[n("v-uni-text",{staticClass:"star"},[t._v("*")]),t._v("附件")],1),n("v-uni-view",{staticClass:"uni-form-input imgBox_wrap"},[t._l(t.fileList,(function(e,i){return n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.fileList.length>0,expression:"fileList.length>0"}],key:i,staticClass:"imgBox"},[n("v-uni-image",{staticClass:"img",attrs:{src:t.url_config+"image/"+e.url}}),n("uni-icons",{staticClass:"deleteImg",attrs:{type:"clear",size:"24"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.deleteImg(e)}}})],1)})),t.fileList.length<5?n("v-uni-view",{staticClass:"addImgBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectImg.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"icon-add",attrs:{src:"/static/icon-add.png"}})],1):t._e()],2)],1),1==t.type?n("v-uni-view",{staticClass:"flex btn_wrap"},[n("v-uni-button",{staticClass:"deleteBtn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.deleteFn.apply(void 0,arguments)}}},[t._v("取消")]),n("v-uni-button",{staticClass:"submitBtn",attrs:{"form-type":"submit",type:"primary"}},[t._v("提交")])],1):t._e(),2==t.type?n("v-uni-view",{staticClass:"flex btn_wrap"},[n("v-uni-button",{staticClass:"deleteBtn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.audit(3)}}},[t._v("不通过")]),n("v-uni-button",{staticClass:"submitBtn",attrs:{"form-type":"submit",type:"primary"}},[t._v("通过")])],1):t._e()],1)],1)],1)},s=[]},b65d:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("1f6e")),s={props:["showBack","themeType"],components:{uniIcons:a.default},data:function(){return{mobileTopHeight:0}},mounted:function(){var t=this;uni.getSystemInfo({success:function(e){t.mobileTopHeight=e.statusBarHeight,uni.setStorageSync("systemInfo",e),console.log(e)}}),console.log("this.mobileTopHeight",this.mobileTopHeight)},methods:{goBackFn:function(){uni.navigateBack({success:function(){}})}}};e.default=s},ebe9:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.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}',""]),t.exports=e},fc7c:function(t,e,n){"use strict";n.r(e);var i=n("88f4"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a}}]);