Browse Source

案件巡查页面

lisu_V4.3.1
是小王呀\24601 1 year ago
parent
commit
c0362ac1e5
  1. 15
      app.json
  2. BIN
      images/add.png
  3. BIN
      images/location.png
  4. 18
      project.private.config.json
  5. 66
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.js
  6. 6
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.json
  7. 94
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml
  8. 234
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss
  9. 4
      subpages/communitySelfInsp/pages/followUpList/followUpList.json
  10. 2
      subpages/house/pages/housePortrait/housePortrait.wxml
  11. 95
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.js
  12. 12
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.json
  13. 117
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml
  14. 224
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxss

15
app.json

@ -22,6 +22,21 @@
"pages/addhouse/addhouse"
]
},
{
"root": "subpages/safetyinspection",
"name": "safetyinspection",
"pages": [
"pages/safetyinspection/safetyinspection"
]
},
{
"root": "subpages/InspectionReport",
"name": "InspectionReport",
"pages": [
"pages/InspectionReport/InspectionReport"
]
},
{
"root": "subpages/morenews",
"name": "morenews",

BIN
images/add.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
images/location.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

18
project.private.config.json

@ -9,6 +9,24 @@
"condition": {
"miniprogram": {
"list": [
{
"name": "巡查上报",
"pathName": "subpages/InspectionReport/pages/InspectionReport/InspectionReport",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "subpages/safetyinspection/pages/safetyinspection/safetyinspection",
"pathName": "subpages/safetyinspection/pages/safetyinspection/safetyinspection",
"query": "",
"launchMode": "default",
"scene": null,
"partialCompile": {
"enabled": true,
"pages": []
}
},
{
"name": "subpages/communitySelfInsp/pages/historyQuery/historyQuery",
"pathName": "subpages/communitySelfInsp/pages/historyQuery/historyQuery",

66
subpages/InspectionReport/pages/InspectionReport/InspectionReport.js

@ -0,0 +1,66 @@
// subpages/InspectionReport/pages/InspectionReport/InspectionReport.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

6
subpages/InspectionReport/pages/InspectionReport/InspectionReport.json

@ -0,0 +1,6 @@
{
"navigationBarTitleText": "安检巡查",
"usingComponents": {
"van-uploader": "@vant/weapp/uploader/index"
}
}

94
subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml

@ -0,0 +1,94 @@
<!--subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml-->
<view class="header">
<view class="header_left">
<image src="../../../../images/location.png" class="header_img"></image>
<view class="inside">
<text class="text1">定位的信息</text>
<text class="text2">如定位不在事发地,请重新选择定位</text>
</view>
</view>
<view class="header_right">
<text class="text3">重新定位</text>
</view>
</view>
<view class="from">
<view class="prosecutors">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">企业名称</text>
<text class="prosecutors_name">张玉斌</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="prosecutors_top">
<view class="prosecutors">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">检察人员</text>
<text class="prosecutors_name">请选择</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
</view>
<view class="prosecutors">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">检查结论</text>
<text class="prosecutors_name">请选择</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="hidden">
<view class="hidden_top">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">隐患明细</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="hidden_button">
<view class="input">
<input type="text" placeholder="请输入内容" bindinput="inputChange" />
</view>
<view class="add">
<image src="../../../../images/add.png" class="add_img"></image>
<text class="add_text">在添加一条</text>
</view>
</view>
<view class="date">
<text class="prosecutors_pre1">整改要求</text>
<view class="input1">
<input confirm-type="next" bindblur="bindOwnerIdCardInput" bindinput="bindOwnerIdCardInput" value="{{form.ownerIdCard}}" placeholder-class="gray" placeholder="请输入" />
</view>
</view>
</view>
<view class="date">
<view class="prosecutors_data">
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">拟复查时间</text>
</view>
<view class="input1">
<input confirm-type="next" bindblur="bindOwnerIdCardInput" bindinput="bindOwnerIdCardInput" value="{{form.ownerIdCard}}" placeholder-class="gray" placeholder="请输入" />
</view>
</view>
<view class="attachment">
<text class="prosecutors_pre1">附件</text>
<view class="shangchuan"> <van-uploader file-list="{{ fileList }}" bind:after-read="afterRead" style="width: 200px; height: 200px;" /></view>
<text class="prosecutors_pre1">备注</text>
<view class="textarea1">
<textarea class="" placeholder-style="color: #C1C1C1;" value="{{form.remark}}" bindblur="bindRemarkInput" bindinput="bindRemarkInput" maxlength="100" placeholder-class="gray" placeholder="请输入" />
</view>
</view>
</view>
<view class="text-wrapper_11">
<text lines="1" class="text_29">提交</text>
</view>

234
subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss

@ -0,0 +1,234 @@
page {
width: 100%;
height: auto;
overflow-y: auto;
background: #f7f7f7;
padding-bottom: 20rpx;
box-sizing: border-box;
}
.header{
height: 80rpx;
display: flex;
background-color: white;
flex-direction: row;
justify-content: space-between;
}
.header_left{
display:flex;
flex-direction: row;
margin-left: 20rpx;
}
.header_img{
width: 36rpx;
height: 36rpx;
margin-top: 10rpx;
}
.inside{
display: flex;
flex-direction: column;
margin-left: 10rpx;
}
.text1{
width: 374rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 32rpx;
font-family: PingFang-SC-Regular;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 1rpx;
}
.text2{
width: 382rpx;
height: 24rpx;
overflow-wrap: break-word;
color: rgba(172,172,172,1);
font-size: 24rpx;
font-family: PingFang-SC-Regular;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-top: 10rpx;
}
.header_right{
display: flex;
justify-content: center;
align-items: center;
margin-right: 30rpx;
}
.text3{
width: 118rpx;
height: 28rpx;
overflow-wrap: break-word;
color: rgba(56,135,248,1);
font-size: 30rpx;
font-family: PingFang-SC-Regular;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
}
.from{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
border-radius: 15rpx;
background-color: rgb(255, 255, 255);
margin: 30rpx;
}
.prosecutors{
display: flex;
flex-direction:row;
align-items: center;
margin: 20rpx;
justify-content: space-between;
height: 70rpx;
border-bottom: 1px solid #EAEAEA;
align-items: center;
}
.hidden_top{
display: flex;
flex-direction:row;
align-items: center;
margin: 20rpx;
justify-content: space-between;
height: 50rpx;
}
.prosecutors_req{
color: red;
margin: 5rpx
}
.prosecutors_pre{
width: 125rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(102,102,102,1);
font-size:32rpx;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 6rpx;
margin-bottom: 10rpx;
}
.prosecutors_pre1{
width: 125rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(102,102,102,1);
font-size:32rpx;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 30rpx;
margin-bottom: 10rpx;
}
.prosecutors_name{
width: 93rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 32rpx;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 60rpx;
}
.prosecutors_img{
width: 40rpx;
height: 30rpx;
margin-right: 30rpx;
}
.hidden{
display: flex;
flex-direction: column;
}
.hidden_button{
display: flex;
flex-direction: column;
}
.input{
background-color: rgba(247,247,247,1.000000);
border-radius: 10rpx;
height: 100rpx;
display: flex;
flex-direction: column;
width: 650rpx;
margin-left: 40rpx;
}
.add{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 20rpx;
}
.add_img{
width: 40rpx;
height: 40rpx;
}
.add_text{
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 32rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 48rpx;
}
.input1{
margin-left: 60rpx;
}
.date{
display: flex;
flex-direction:row;
align-items: center;
margin: 20rpx;
height: 70rpx;
border-bottom: 1px solid #EAEAEA;
align-items: center;
}
.attachment{
display: flex;
flex-direction: column;
margin: 20rpx;
}
.shangchuan{
margin: 20rpx;
}
.textarea1{
margin-top: 20rpx;
background-color:#f7f7f7 ;
width: 100%;
height: 200rpx;
}
.text-wrapper_11 {
background-color: rgba(57,116,246,1.000000);
border-radius: 43rpx;
height: 86rpx;
display: flex;
flex-direction: column;
width: 630rpx;
margin: 60rpx 0 57rpx 60rpx;
}
.text_29 {
width: 62rpx;
height: 31rpx;
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 32rpx;
font-family: PingFang-SC-Bold;
font-weight: 700;
text-align: left;
white-space: nowrap;
line-height: 60rpx;
margin: 25rpx 0 0 284rpx;
}

4
subpages/communitySelfInsp/pages/followUpList/followUpList.json

@ -2,8 +2,8 @@
"usingComponents": {
"load-more": "../../../../components/loadMore/loadMore",
"no-data": "../../../../components/noData/nodata",
"wux-calendar":"../../../../components/dist/calendar",
"wux-picker":"../../../../components/dist/picker/index"
"wux-calendar":"../../../../components/dist/calendar",
"wux-picker":"../../../../components/dist/picker/index"
}
}

2
subpages/house/pages/housePortrait/housePortrait.wxml

@ -44,7 +44,7 @@
<view class="title">
<text>更新记录</text>
</view>
<view style="margin-top: 32rpx; padidng:0 12rpx;">
<view style="margin-top: 32rpx; padding:0 12rpx;">
<view class="logsBox" wx:for="{{logs}}" wx:key="{{item.changeTime}}">
<view class="item-dian {{index!=0?'item-dian1':''}}">
<view class="neidian"></view>

95
subpages/safetyinspection/pages/safetyinspection/safetyinspection.js

@ -0,0 +1,95 @@
// subpages/safetyinspection/pages/safetyinspection/safetyinspection.js
Page({
/**
* 页面的初始数据
*/
data: {
result: ['a', 'b'],
value: '',
fileList: [
],
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
onChex(event) {
this.setData({
result: event.detail,
});
},
onChange(event) {
// event.detail 为当前输入的值
console.log(event.detail);
},
afterRead(event) {
const { file } = event.detail;
console.log(file)
// 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
wx.uploadFile({
url: 'https://example.weixin.qq.com/upload', // 仅为示例,非真实的接口地址
filePath: file.url,
name: 'file',
formData: { user: 'test' },
success(res) {
// 上传完成需要更新 fileList
const { fileList = [] } = this.data;
fileList.push({ ...file, url: res.data });
this.setData({ fileList });
},
});
},
})

12
subpages/safetyinspection/pages/safetyinspection/safetyinspection.json

@ -0,0 +1,12 @@
{
"navigationBarTitleText": "安全巡检",
"backgroundTextStyle":"dark",
"usingComponents": {
"load-more": "../../../../components/loadMore/loadMore",
"no-data": "../../../../components/noData/nodata",
"van-checkbox": "@vant/weapp/checkbox/index",
"van-checkbox-group": "@vant/weapp/checkbox-group/index",
"van-field": "@vant/weapp/field/index",
"van-uploader": "@vant/weapp/uploader/index"
}
}

117
subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml

@ -0,0 +1,117 @@
<!--subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml-->
<view class="from">
<view class="prosecutors">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">检查人员</text>
<text class="prosecutors_name">张玉斌</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="prosecutors_top">
<view class="prosecutors">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">已整改隐患</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="prosecutors_but">
<van-checkbox-group value="{{ result }}" bind:change="onCheckBox" class="prosecutors_chex">
<van-checkbox class="checkbox" name="a">1.车间一些软件设备出现生锈断裂情况严重。 </van-checkbox>
<van-checkbox name="b">2.还有部分货运车辆已过年检。</van-checkbox>
</van-checkbox-group>
<van-cell-group>
<van-field value="{{ value }}" placeholder="请输入新的隐患信息" border="{{ false }}" bind:change="onChange" class="prosecutors_group"/>
</van-cell-group>
</view>
<view class="prosecutors_add">
<image src="../../../../images/add.png" style="width: 30rpx; height: 30rpx;"></image>
<text class="text3">在添加一条</text>
</view>
</view>
<view class="prosecutors">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">检查结论</text>
<text class="prosecutors_name">请选择</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="prosecutors">
<view class="prosecutors_data">
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">拟复查时间</text>
<view class="input">
<input confirm-type="next" bindblur="bindOwnerIdCardInput" bindinput="bindOwnerIdCardInput" value="{{form.ownerIdCard}}" placeholder-class="gray" placeholder="请输入" />
</view>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="attachment">
<text class="text1">附件</text>
<van-uploader file-list="{{ fileList }}" bind:after-read="afterRead" />
<text class="text1">备注</text>
<view class="textarea1">
<textarea class="" placeholder-style="color: #C1C1C1;" value="{{form.remark}}" bindblur="bindRemarkInput" bindinput="bindRemarkInput" maxlength="100" placeholder-class="gray" placeholder="请输入" />
</view>
</view>
</view>
<view class="from">
<view><text class="text2">巡检记录</text></view>
<view style="margin-top: 32rpx;padding: 0 35rpx;">
<view class="logsBox">
<view class="item-dian {{index!=0?'item-dian1':''}}">
<view class="neidian"></view>
</view>
<view class="logs-top">
<view class="logs-top-title">时间</view>
</view>
<view class="logs-content">
<view class="logs-content-left">
<view>
<text class="logs-content-title">检察人员:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">检查结论:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">隐患明细:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">整改要求:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">附件:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">备注:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">整改要求:</text>
<text class="logs-content-txt">123</text>
</view>
</view>
</view>
</view>
</view>
</view>

224
subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxss

@ -0,0 +1,224 @@
page {
width: 100%;
min-height: 100vh;
overflow-y: auto;
background-color: #f7f7f7;
}
.from{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
border-radius: 15rpx;
background-color: rgb(255, 255, 255);
margin: 30rpx;
}
.prosecutors{
display: flex;
flex-direction:row;
align-items: center;
margin: 20rpx;
justify-content: space-between;
height: 50rpx;
border-bottom: 1px solid #EAEAEA;
}
.prosecutors_req{
color: red;
margin: 5rpx
}
.prosecutors_pre{
width: 125rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(102,102,102,1);
font-size:32rpx;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 6rpx;
}
.prosecutors_name{
width: 93rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 32rpx;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 60rpx;
}
.prosecutors_img{
width: 40rpx;
height: 30rpx;
margin-right: 30rpx;
}
.prosecutors_top{
display: flex;
flex-direction: column;
}
.prosecutors_but{
display: flex;
flex-direction: column;
margin: 15rpx;
}
.prosecutors_chex{
margin: 20rpx;
}
.checkbox{
font-size: 32rpx;
}
.prosecutors_group{
margin: 20rpx;
}
.prosecutors_add{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.prosecutors_data{
display: flex;
flex-direction: row;
}
.input{
margin-left: 100rpx;
font-size: 32rpx;
}
.attachment{
display: flex;
flex-direction: column;
margin: 20rpx;
}
.image1{
margin-top: 20rpx;
margin-bottom: 20rpx;
width: 200rpx;
height: 200rpx;
}
.text1{
width: 62rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(102,102,102,1);
font-size: 32rpx;
font-family: PingFang-SC-Regular;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-bottom: 30rpx;
}
.textarea1{
margin-top: 20rpx;
background-color:#f7f7f7 ;
width: 100%;
height: 200rpx;
}
.text2{
width: 133rpx;
height: 32rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 34rpx;
font-family: PingFang-SC-Bold;
font-weight: 700;
text-align: left;
white-space: nowrap;
line-height: 52rpx;
margin: 31rpx 0 0 29rpx;
}
.logsBox {
border-left: 3rpx solid #DADEE5;
margin-left: -18rpx;
padding-left: 12rpx;
}
.logs-top {
display: flex;
justify-content: space-between;
position: relative;
top: -32rpx;
padding-left: 12rpx;
}
.logs-top-title {
height: 31rpx;
font-family: PingFang SC;
font-weight: 500;
font-size: 32rpx;
color: #333333;
line-height: 41rpx;
}
.logs-top-time {
height: 20rpx;
font-family: PingFang SC;
font-weight: 500;
font-size: 26rpx;
color: #BDBDBD;
line-height: 40rpx;
}
.logs-content {
position: relative;
top: -24rpx;
padding-top: 12rpx;
padding-bottom: 24rpx;
display: flex;
justify-content: space-between;
font-family: PingFang SC;
font-weight: 500;
font-size: 30rpx;
color: #999999;
line-height: 52rpx;
}
.logs-content-left {
width: 48%;
}
.logs-content-right {
width: 48%;
}
.logs-content-txt {
color: #333333;
}
.item-dian {
position: relative;
left: -28rpx;
width: 32rpx;
height: 32rpx;
box-sizing: border-box;
background: #FFFFFF;
border-radius: 50%;
border: 1px solid #3A80E7;
display: flex;
align-items: center;
justify-content: center;
}
.neidian {
width: 18rpx;
height: 18rpx;
background: #3A80E7;
border-radius: 50%;
}
.text3{
width: 138rpx;
height: 27rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 28rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 48rpx;
margin-bottom: 20rpx;
}
Loading…
Cancel
Save