v1.2.1版本,优化调整了很多,整改验收阶段新加字段
This commit is contained in:
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/Inspection.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/Inspection.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
unpackage/dist/build/mp-weixin/pages/hiddendanger/Inspection.json
vendored
Normal file
10
unpackage/dist/build/mp-weixin/pages/hiddendanger/Inspection.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "隐患排查",
|
||||
"usingComponents": {
|
||||
"up-choose": "../../uni_modules/uview-plus/components/u-choose/u-choose",
|
||||
"up-upload": "../../uni_modules/uview-plus/components/u-upload/u-upload",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
|
||||
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/Inspection.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/Inspection.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/Inspection.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/Inspection.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/acceptance.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/acceptance.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
unpackage/dist/build/mp-weixin/pages/hiddendanger/acceptance.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/pages/hiddendanger/acceptance.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "隐患验收",
|
||||
"usingComponents": {
|
||||
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
|
||||
"up-upload": "../../uni_modules/uview-plus/components/u-upload/u-upload",
|
||||
"wd-signature": "../../node-modules/wot-design-uni/components/wd-signature/wd-signature"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/acceptance.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/acceptance.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/acceptance.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/acceptance.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.page.data-v-df836b84{min-height:100vh;background:#ebf2fc}.result-btn.data-v-df836b84{flex:1;height:80rpx;line-height:80rpx;border-radius:8rpx;background:#f5f5f5;color:#666;font-size:28rpx}.result-btn.data-v-df836b84:after{border:none}.result-btn.active.data-v-df836b84{background:#2667e9;color:#fff}.signature-box.data-v-df836b84{width:100%;min-height:240rpx;background:#f8f8f8;border:1rpx dashed #dcdfe6;border-radius:8rpx;margin-top:16rpx}.signature-box .signature-img.data-v-df836b84{width:100%;height:100%}.signature-box .signature-placeholder.data-v-df836b84{color:#909399;font-size:28rpx}
|
||||
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/assignment.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/assignment.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../request/api.js");if(!Array){(e.resolveComponent("u-popup")+e.resolveComponent("up-datetime-picker"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-popup/u-popup.js")+(()=>"../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker.js"))();const t={__name:"assignment",setup(t){const n=e.ref(""),u=e.ref(""),o=e.ref(!1),r=e.ref(""),l=e.ref(""),s=e.ref([]),i=e.ref(0),v=e.ref(""),d=e=>e.postName?`${e.nickName}_${e.postName}`:e.nickName||"",c=e.computed((()=>{const e=s.value[i.value];return(null==e?void 0:e.users)||[]})),g=e.computed((()=>{if(!v.value)return"";for(const e of s.value){const a=(e.users||[]).find((e=>String(e.userId)===String(v.value)));if(a)return d(a)}return""})),p=e=>{var a;return!(!v.value||!(null==(a=e.users)?void 0:a.length))&&e.users.some((e=>String(e.userId)===String(v.value)))},m=()=>{v.value=l.value;const e=s.value.findIndex((e=>{var a;return(null==(a=e.users)?void 0:a.length)>0}));i.value=e>=0?e:0,o.value=!0},f=()=>{o.value=!1},S=()=>{v.value?(l.value=String(v.value),r.value=g.value,o.value=!1):e.index.showToast({title:"请选择整改责任人",icon:"none"})},h=e.ref(!1),w=e.ref(Date.now()),x=e.ref(""),I=e=>{console.log("选择的日期时间:",e);const a=new Date(e.value),t=a.getFullYear(),n=String(a.getMonth()+1).padStart(2,"0"),u=String(a.getDate()).padStart(2,"0"),o=String(a.getHours()).padStart(2,"0"),r=String(a.getMinutes()).padStart(2,"0"),l=String(a.getSeconds()).padStart(2,"0");x.value=`${t}-${n}-${u} ${o}:${r}:${l}`,h.value=!1},y=()=>{e.index.navigateBack()},k=async()=>{if(!l.value)return void e.index.showToast({title:"请选择整改人员",icon:"none"});if(!x.value)return void e.index.showToast({title:"请选择整改期限",icon:"none"});const t={hazardId:Number(n.value),assigneeId:Number(l.value),deadline:x.value,assignRemark:""};console.log("提交数据:",t);try{const n=await a.assignHiddenDanger(t);0===n.code?(N(!1),e.index.showToast({title:"交办成功",icon:"success"}),setTimeout((()=>{e.index.navigateBack()}),1500)):e.index.showToast({title:n.msg||"交办失败",icon:"none"})}catch(u){console.error("交办失败:",u),e.index.showToast({title:"请求失败",icon:"none"})}},T=e.ref(!1),$=e.ref(!1),_=e.ref(!1),D=()=>`draft_assign_${n.value||""}`,N=(a=!0)=>{const t=D();e.index.removeStorageSync(t),T.value=!1,$.value=!1,_.value=!0,x.value="",w.value=Date.now(),e.nextTick$1((()=>{_.value=!1})),a&&e.index.showToast({title:"草稿已清空",icon:"none"})};return e.watch((()=>[x.value]),(()=>{n.value&&(()=>{if(_.value)return;const a=D();if(!x.value)return e.index.removeStorageSync(a),void(T.value=!1);const t={selectedDate:x.value,dateValue:w.value};e.index.setStorageSync(a,JSON.stringify(t)),T.value=!0})()})),e.onLoad((t=>{t.hazardId&&(n.value=t.hazardId),t.assignId&&(u.value=t.assignId),(async()=>{try{const e=await a.getDepartmentPersonUsers();0===e.code&&e.data&&(s.value=e.data,console.log("部门人员树:",s.value))}catch(e){console.error("获取部门人员失败:",e)}})(),(()=>{const a=D(),t=e.index.getStorageSync(a);if(t)try{const a=JSON.parse(t);if(!a.selectedDate)return;_.value=!0,x.value=a.selectedDate||"",w.value=a.dateValue||Date.now(),T.value=!0,$.value=!0,e.nextTick$1((()=>{_.value=!1})),e.index.showToast({title:"已自动恢复您上次未提交的内容",icon:"none",duration:2500})}catch(n){console.error("解析草稿失败:",n),_.value=!1}})()})),(a,t)=>e.e({a:$.value},$.value?{b:e.o((e=>N(!0)))}:{},{c:e.t(r.value||"请选择整改责任人"),d:r.value?"":1,e:e.o(m),f:e.o(f),g:v.value},v.value?{h:e.t(g.value)}:{},{i:e.f(s.value,((a,t,n)=>e.e({a:e.t(a.deptName),b:p(a)},(p(a),{}),{c:a.deptId,d:e.n({active:i.value===t}),e:e.o((e=>i.value=t),a.deptId)}))),j:0===c.value.length},0===c.value.length?{}:{k:e.f(c.value,((a,t,n)=>e.e({a:e.t(d(a)),b:String(v.value)===String(a.userId)},(String(v.value),String(a.userId),{}),{c:"user-"+a.userId,d:String(v.value)===String(a.userId)?1:"",e:e.o((e=>{return t=a.userId,void(v.value=String(t));var t}),"user-"+a.userId)})))},{l:"dept-users-"+i.value,m:e.o(f),n:e.o(S),o:e.o(f),p:e.p({show:o.value,mode:"bottom",round:"20"}),q:e.t(x.value||"请选择整改期限"),r:e.n(x.value?"":"text-gray"),s:e.o((e=>h.value=!0)),t:e.o(I),v:e.o((e=>h.value=!1)),w:e.o((e=>h.value=!1)),x:e.o((e=>w.value=e)),y:e.p({show:h.value,mode:"datetime",modelValue:w.value}),z:e.o(y),A:e.o(k),B:e.gei(a,"")})}},n=e._export_sfc(t,[["__scopeId","data-v-860f0a5c"]]);wx.createPage(n);
|
||||
7
unpackage/dist/build/mp-weixin/pages/hiddendanger/assignment.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/pages/hiddendanger/assignment.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "隐患交办",
|
||||
"usingComponents": {
|
||||
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup",
|
||||
"up-datetime-picker": "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/assignment.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/assignment.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['padding', 'page', 'data-v-860f0a5c', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden || false}}" id="{{B}}"><view class="padding radius bg-white data-v-860f0a5c"><view wx:if="{{a}}" class="bg-orange-light text-orange padding-sm radius margin-bottom flex justify-between align-center data-v-860f0a5c" style="font-size:24rpx;background-color:#FFF7EB;border:1rpx solid #FFE4CC;width:100%;box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:20rpx"><view class="flex align-center data-v-860f0a5c" style="display:flex;flex-direction:row;align-items:center"><text class="cuIcon-info margin-right-xs data-v-860f0a5c" style="margin-right:10rpx"></text><text class="data-v-860f0a5c">已自动恢复您上次未提交的内容</text></view><text class="text-blue text-bold data-v-860f0a5c" style="cursor:pointer;padding:0 10rpx;color:#2667E9;font-weight:bold" bindtap="{{b}}">清空草稿</text></view><view class="flex margin-bottom data-v-860f0a5c"><view class="text-gray data-v-860f0a5c">整改责任人</view><view class="text-red data-v-860f0a5c">*</view></view><view class="select-trigger data-v-860f0a5c" bindtap="{{e}}"><view class="{{['select-content', 'data-v-860f0a5c', d && 'text-gray']}}">{{c}}</view><text class="cuIcon-unfold data-v-860f0a5c"></text></view><u-popup wx:if="{{p}}" class="data-v-860f0a5c" virtualHostClass="data-v-860f0a5c" u-s="{{['d']}}" bindclose="{{o}}" u-i="860f0a5c-0" bind:__l="__l" u-p="{{p}}"><view class="user-popup cascader-user-popup data-v-860f0a5c"><view class="popup-header data-v-860f0a5c"><view class="popup-title text-bold data-v-860f0a5c">选择整改责任人</view><view class="popup-close data-v-860f0a5c" bindtap="{{f}}">×</view></view><view wx:if="{{g}}" class="selected-summary data-v-860f0a5c"><text class="summary-label data-v-860f0a5c">已选:</text><text class="summary-text data-v-860f0a5c">{{h}}</text></view><view class="cascader-body data-v-860f0a5c"><scroll-view class="cascader-col dept-col data-v-860f0a5c" scroll-y><view wx:for="{{i}}" wx:for-item="dept" wx:key="c" class="{{['data-v-860f0a5c', 'cascader-item', dept.d]}}" bindtap="{{dept.e}}"><text class="cascader-item-text data-v-860f0a5c">{{dept.a}}</text><text wx:if="{{dept.b}}" class="dept-dot data-v-860f0a5c"></text></view></scroll-view><scroll-view class="cascader-col user-col data-v-860f0a5c" scroll-y key="{{l}}"><view wx:if="{{j}}" class="empty-tip data-v-860f0a5c">该部门暂无人员</view><view wx:else class="data-v-860f0a5c"><view wx:for="{{k}}" wx:for-item="user" wx:key="c" class="{{['user-item', 'data-v-860f0a5c', user.d && 'active']}}" bindtap="{{user.e}}"><text class="user-item-text data-v-860f0a5c">{{user.a}}</text><text wx:if="{{user.b}}" class="cuIcon-check text-blue data-v-860f0a5c"></text></view></view></scroll-view></view><view class="popup-footer data-v-860f0a5c"><button class="btn-cancel data-v-860f0a5c" bindtap="{{m}}">取消</button><button class="btn-confirm bg-blue data-v-860f0a5c" bindtap="{{n}}">确定</button></view></view></u-popup><view class="flex margin-bottom margin-top data-v-860f0a5c"><view class="text-gray data-v-860f0a5c">整改期限</view><view class="text-red data-v-860f0a5c">*</view></view><view class="picker-input data-v-860f0a5c" bindtap="{{s}}"><text class="{{['data-v-860f0a5c', r]}}">{{q}}</text></view><up-datetime-picker wx:if="{{y}}" class="data-v-860f0a5c" virtualHostClass="data-v-860f0a5c" bindconfirm="{{t}}" bindcancel="{{v}}" bindclose="{{w}}" u-i="860f0a5c-1" bind:__l="__l" bindupdateModelValue="{{x}}" u-p="{{y}}"></up-datetime-picker><view class="btn-group margin-top-xl data-v-860f0a5c"><button class="btn-cancel data-v-860f0a5c" bindtap="{{z}}">取消</button><button class="btn-confirm bg-blue data-v-860f0a5c" bindtap="{{A}}">确认</button></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/assignment.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/assignment.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.page.data-v-860f0a5c{min-height:100vh;background:#ebf2fc}.picker-input.data-v-860f0a5c{background:#fff;border-radius:8rpx;padding:24rpx 20rpx;margin-bottom:20rpx;border:1rpx solid #F6F6F6}.picker-input text.data-v-860f0a5c{font-size:28rpx;color:#333}.select-trigger.data-v-860f0a5c{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1rpx solid #dcdfe6;border-radius:8rpx;padding:20rpx 24rpx;margin-bottom:20rpx}.select-trigger .select-content.data-v-860f0a5c{flex:1;font-size:28rpx;color:#333}.user-popup.data-v-860f0a5c{background:#fff}.user-popup .popup-header.data-v-860f0a5c{display:flex;justify-content:space-between;align-items:center;padding:30rpx;border-bottom:1rpx solid #eee}.user-popup .popup-header .popup-title.data-v-860f0a5c{font-size:32rpx;color:#333}.user-popup .popup-header .popup-close.data-v-860f0a5c{font-size:40rpx;color:#999;line-height:1}.user-popup.cascader-user-popup .selected-summary.data-v-860f0a5c{padding:16rpx 30rpx;background:#f5f7fa;border-bottom:1rpx solid #eee;font-size:24rpx;line-height:1.5}.user-popup.cascader-user-popup .selected-summary .summary-label.data-v-860f0a5c{color:#909399}.user-popup.cascader-user-popup .selected-summary .summary-text.data-v-860f0a5c{color:#333}.user-popup.cascader-user-popup .cascader-body.data-v-860f0a5c{display:flex;height:600rpx}.user-popup.cascader-user-popup .cascader-col.data-v-860f0a5c{height:600rpx;box-sizing:border-box}.user-popup.cascader-user-popup .dept-col.data-v-860f0a5c{width:38%;background:#f7f8fa;border-right:1rpx solid #eee}.user-popup.cascader-user-popup .user-col.data-v-860f0a5c{width:62%;padding:10rpx 20rpx;box-sizing:border-box}.user-popup.cascader-user-popup .cascader-item.data-v-860f0a5c{display:flex;align-items:center;justify-content:space-between;padding:28rpx 24rpx;font-size:28rpx;color:#333;border-bottom:1rpx solid #eef0f3}.user-popup.cascader-user-popup .cascader-item.active.data-v-860f0a5c{background:#fff;color:#2667e9;font-weight:600;position:relative}.user-popup.cascader-user-popup .cascader-item.active.data-v-860f0a5c:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6rpx;background:#2667e9}.user-popup.cascader-user-popup .cascader-item-text.data-v-860f0a5c{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-popup.cascader-user-popup .dept-dot.data-v-860f0a5c{width:12rpx;height:12rpx;border-radius:50%;background:#2667e9;margin-left:8rpx;flex-shrink:0}.user-popup.cascader-user-popup .empty-tip.data-v-860f0a5c{padding:80rpx 20rpx;text-align:center;color:#909399;font-size:26rpx}.user-popup .user-item.data-v-860f0a5c{display:flex;align-items:center;justify-content:space-between;padding:24rpx 0;border-bottom:1rpx solid #f5f5f5}.user-popup .user-item.data-v-860f0a5c:last-child{border-bottom:none}.user-popup .user-item.active .user-item-text.data-v-860f0a5c{color:#2667e9;font-weight:600}.user-popup .user-item .user-item-text.data-v-860f0a5c{flex:1;font-size:28rpx;color:#333}.user-popup .popup-footer.data-v-860f0a5c{display:flex;gap:24rpx;padding:24rpx 30rpx;padding-bottom:calc(24rpx + env(safe-area-inset-bottom));background:#fff}.user-popup .popup-footer button.data-v-860f0a5c{flex:1;height:80rpx;line-height:80rpx;border-radius:40rpx;font-size:30rpx;margin:0;padding:0}.user-popup .popup-footer button.data-v-860f0a5c:after{border:none}.user-popup .popup-footer .btn-cancel.data-v-860f0a5c{background:#fff;color:#2667e9;border:2rpx solid #2667E9}.user-popup .popup-footer .btn-confirm.data-v-860f0a5c{color:#fff;border:none}.btn-group.data-v-860f0a5c{display:flex;gap:30rpx}.btn-cancel.data-v-860f0a5c{flex:1;height:80rpx;line-height:80rpx;border:2rpx solid #2667E9;border-radius:40rpx;background:#fff;color:#2667e9;font-size:30rpx}.btn-confirm.data-v-860f0a5c{flex:1;height:80rpx;line-height:80rpx;border-radius:40rpx;color:#fff;font-size:30rpx}
|
||||
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/rectification.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/rectification.js
vendored
Normal file
File diff suppressed because one or more lines are too long
12
unpackage/dist/build/mp-weixin/pages/hiddendanger/rectification.json
vendored
Normal file
12
unpackage/dist/build/mp-weixin/pages/hiddendanger/rectification.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"navigationBarTitleText": "隐患整改",
|
||||
"usingComponents": {
|
||||
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-datetime-picker": "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker",
|
||||
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
|
||||
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup",
|
||||
"up-upload": "../../uni_modules/uview-plus/components/u-upload/u-upload",
|
||||
"wd-signature": "../../node-modules/wot-design-uni/components/wd-signature/wd-signature"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/rectification.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/rectification.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/rectification.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/rectification.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/view.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/view.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../request/api.js"),t=require("../../request/request.js");if(!Array){(e.resolveComponent("up-input")+e.resolveComponent("up-textarea"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-textarea/u-textarea.js"))();const r={__name:"view",setup(r){const o=e.reactive({hazardId:"",assignId:"",title:"",level:0,levelName:"",source:"",description:"",address:"",areaName:"",areaColor:"",tagName:"",legalBasis:"",regulationName:"",attachments:[]}),s=e.computed((()=>o.legalBasis||o.regulationName||"")),l=e=>t.toImageUrl(e);return e.onLoad((t=>{t.hazardId&&(async(t,r)=>{try{const s={hazardId:t};r&&(s.assignId=r);const l=await a.getHiddenDangerDetail(s);0===l.code&&l.data?Object.assign(o,l.data):e.index.showToast({title:l.msg||"获取详情失败",icon:"none"})}catch(s){console.error("获取隐患详情失败:",s),e.index.showToast({title:"请求失败",icon:"none"})}})(t.hazardId,t.assignId)})),(a,t)=>e.e({a:e.t(o.source||"暂无"),b:o.attachments&&o.attachments.length>0},o.attachments&&o.attachments.length>0?{c:e.f(o.attachments,((a,t,r)=>({a:t,b:l(a.filePath),c:e.o((a=>{return r=t,void(o.attachments&&0!==o.attachments.length&&e.index.previewImage({current:r,urls:o.attachments.map((e=>l(e.filePath)))}));var r}),t)})))}:{},{d:e.o((e=>o.title=e)),e:e.p({disabled:!0,disabledColor:"#F6F6F6",border:"surround",placeholder:"暂无",modelValue:o.title}),f:e.n(2===o.level?"bg-blue light":"bg-gray"),g:e.n(3===o.level?"bg-blue light":"bg-gray"),h:e.o((e=>o.address=e)),i:e.p({disabled:!0,disabledColor:"#F6F6F6",border:"surround",placeholder:"暂无地址",modelValue:o.address}),j:e.t(s.value||"暂无"),k:s.value?"":1,l:o.areaColor},o.areaColor?{m:o.areaColor}:{},{n:e.t(o.areaName||"暂无"),o:o.areaName?"":1,p:e.o((e=>o.description=e)),q:e.p({placeholder:"暂无描述",disabled:!0,autoHeight:!0,modelValue:o.description}),r:e.t(o.tagName||"暂无"),s:e.gei(a,"")})}},o=e._export_sfc(r,[["__scopeId","data-v-52ff0d96"]]);wx.createPage(o);
|
||||
7
unpackage/dist/build/mp-weixin/pages/hiddendanger/view.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/pages/hiddendanger/view.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "查看隐患",
|
||||
"usingComponents": {
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/view.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/view.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['padding', 'page', 'data-v-52ff0d96', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden || false}}" id="{{s}}"><view class="padding bg-white radius data-v-52ff0d96"><view class="flex margin-bottom data-v-52ff0d96"><view class="text-gray data-v-52ff0d96">检查形式</view><view class="text-red data-v-52ff0d96">*</view></view><view class="read-only-box data-v-52ff0d96">{{a}}</view><view class="flex margin-bottom margin-top data-v-52ff0d96"><view class="text-gray data-v-52ff0d96">隐患图片</view><view class="text-red data-v-52ff0d96">*</view></view><view class="margin-bottom data-v-52ff0d96"><view wx:if="{{b}}" class="margin-top-xs data-v-52ff0d96"><view class="flex data-v-52ff0d96" style="flex-wrap:wrap;gap:10rpx"><image wx:for="{{c}}" wx:for-item="img" wx:key="a" class="data-v-52ff0d96" src="{{img.b}}" style="width:136rpx;height:136rpx;border-radius:16rpx" mode="aspectFill" bindtap="{{img.c}}"></image></view></view><view wx:else class="text-gray text-sm data-v-52ff0d96">暂无图片</view><view class="text-gray text-sm margin-top-xs data-v-52ff0d96">必填:请上传现场照片作为隐患证据</view></view><view class="flex margin-bottom margin-top data-v-52ff0d96"><view class="text-gray data-v-52ff0d96">隐患标题</view><view class="text-red data-v-52ff0d96">*</view></view><up-input wx:if="{{e}}" class="data-v-52ff0d96" virtualHostClass="data-v-52ff0d96" u-i="52ff0d96-0" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"/><view class="text-sm text-gray margin-top-xs data-v-52ff0d96">请用简洁的语言概括隐患要点</view><view class="flex margin-bottom margin-top data-v-52ff0d96"><view class="text-gray data-v-52ff0d96">隐患等级</view><view class="text-red data-v-52ff0d96">*</view></view><view class="flex col-2 data-v-52ff0d96" style="gap:10rpx"><view class="{{[f, 'level-item', 'data-v-52ff0d96']}}">一般隐患</view><view class="{{[g, 'level-item', 'data-v-52ff0d96']}}">重大隐患</view></view><view class="flex margin-bottom margin-top data-v-52ff0d96"><view class="text-gray data-v-52ff0d96">隐患位置</view><view class="text-red data-v-52ff0d96">*</view></view><up-input wx:if="{{i}}" class="data-v-52ff0d96" virtualHostClass="data-v-52ff0d96" u-i="52ff0d96-1" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"/><view class="text-gray text-sm margin-top-xs data-v-52ff0d96">如:办公楼3层东侧消防通道、生产车间A区设备旁等,或点击"选择地址"按钮在地图上选择</view><view class="flex margin-bottom margin-top data-v-52ff0d96"><view class="text-gray data-v-52ff0d96">法律依据</view></view><view class="read-only-select data-v-52ff0d96"><view class="{{['select-value', 'data-v-52ff0d96', k && 'placeholder']}}">{{j}}</view></view><view class="flex margin-bottom margin-top data-v-52ff0d96"><view class="text-gray data-v-52ff0d96">隐患区域</view></view><view class="read-only-select data-v-52ff0d96"><view class="flex align-center data-v-52ff0d96"><view wx:if="{{l}}" class="area-color-dot data-v-52ff0d96" style="{{'background-color:' + m}}"></view><view class="{{['select-value', 'data-v-52ff0d96', o && 'placeholder']}}">{{n}}</view></view></view><view class="flex margin-bottom margin-top data-v-52ff0d96"><view class="text-gray data-v-52ff0d96">隐患描述</view><view class="text-red data-v-52ff0d96">*</view></view><up-textarea wx:if="{{q}}" class="data-v-52ff0d96" virtualHostClass="data-v-52ff0d96" u-i="52ff0d96-2" bind:__l="__l" bindupdateModelValue="{{p}}" u-p="{{q}}"></up-textarea><view class="text-gray text-sm margin-top-xs data-v-52ff0d96">请详细说明隐患现状、潜在风险及影响范围</view><view class="text-gray margin-bottom margin-top data-v-52ff0d96">隐患标签</view><view class="read-only-box data-v-52ff0d96">{{r}}</view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/view.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/hiddendanger/view.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.page.data-v-52ff0d96{min-height:100vh;background:#ebf2fc}.read-only-box.data-v-52ff0d96{background:#f5f5f5;border-radius:8rpx;padding:20rpx 24rpx;font-size:28rpx;color:#333}.read-only-select.data-v-52ff0d96{background:#f5f5f5;border:1rpx solid #dcdfe6;border-radius:8rpx;padding:20rpx 24rpx}.read-only-select .select-value.data-v-52ff0d96{font-size:28rpx;color:#333;line-height:1.5;word-break:break-all}.read-only-select .select-value.placeholder.data-v-52ff0d96{color:#999}.level-item.data-v-52ff0d96{padding:16rpx 40rpx;border-radius:8rpx;text-align:center;font-size:28rpx}.area-color-dot.data-v-52ff0d96{width:24rpx;height:24rpx;border-radius:50%;margin-right:16rpx;flex-shrink:0}
|
||||
Reference in New Issue
Block a user