Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
7799bfdf
提交
7799bfdf
authored
4月 16, 2025
作者:
zs
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dt pusev' of
https://git.yfzx.zjtys.com.cn/privateNetwork/inspection-pad-web
into dev
上级
930cfea0
33303878
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
109 行增加
和
14 行删除
+109
-14
inspect.js
api/inspect.js
+1
-1
inspectionContentList.vue
pages/inspectionContent/inspectionContentList.vue
+34
-1
shaftInspectionList.vue
pages/shaftInspection/shaftInspectionList.vue
+74
-12
没有找到文件。
api/inspect.js
浏览文件 @
7799bfdf
...
...
@@ -284,7 +284,7 @@ LIMIT 1;`
let
sql
=
`UPDATE
${
table
.
inspectionRecordName
}
SET
signImg = '
${
data
.
signImg
}
',
synFlag = '
${
data
.
synFlag
}
',
isException = '
${
data
.
isException
}
'
,
isException = '
${
data
.
isException
}
'
WHERE id =
${
data
.
id
}
`
;
await
sqllitedb
.
executeSQL
(
sql
);
}
catch
(
e
)
{
...
...
pages/inspectionContent/inspectionContentList.vue
浏览文件 @
7799bfdf
...
...
@@ -27,10 +27,22 @@
></image>
</view>
<view
class=
"info"
>
<view
class=
"describe"
>
<view
class=
"username"
>
{{
userInfo
.
user
}}
</view>
<view
v-if=
"abnormalLengths"
class=
"abnormal"
>
存在异常
{{
abnormalLengths
}}
项
</view
>
</view>
<view
class=
"describe"
>
<view
class=
"number"
>
巡检编号:
<text
class=
"value"
>
{{
inspectionCode
}}
</text></view
>
<view
v-if=
"!!isSign"
class=
"number"
>
巡检时间:
<text
class=
"value"
>
{{
updateDate
}}
</text></view
>
</view>
</view>
</view>
<!-- v-if="allIsSubmitOne" -->
...
...
@@ -284,6 +296,14 @@ export default {
userInfo
()
{
return
this
.
$store
.
state
.
now_user
||
{};
},
updateDate
()
{
return
moment
(
Number
(
this
.
detailsInfo
.
updateTime
||
this
.
detailsInfo
.
createTime
)
).
format
(
"YYYY-MM-DD"
);
},
abnormalLengths
()
{
return
this
.
detailsInfo
?.
originData
?.
filter
((
t
)
=>
t
.
status
===
2
).
length
;
},
},
onLoad
(
options
)
{
this
.
options
=
options
;
...
...
@@ -774,6 +794,7 @@ export default {
line-height: 22.4px;
font-weight: 500;
margin-bottom: 7.2px;
margin-right: 10px;
}
.number {
...
...
@@ -781,11 +802,23 @@ export default {
color: #4a4a4a;
line-height: 22.4px;
font-weight: 400;
margin-right: 9.6px;
.value {
color: #000000;
}
}
.describe {
display: flex;
.abnormal {
color: #fff;
line-height: 22.4px;
height: 22.4px;
padding: 0 8px;
font-size: 12px;
background-color: #f55a42;
border-radius: 11px;
}
}
}
}
.profile-right {
...
...
pages/shaftInspection/shaftInspectionList.vue
浏览文件 @
7799bfdf
...
...
@@ -29,10 +29,22 @@
></image>
</view>
<view
class=
"info"
>
<view
class=
"describe"
>
<view
class=
"username"
>
{{
userInfo
.
user
}}
</view>
<view
v-if=
"isSign && abnormalLengths"
class=
"abnormal"
>
存在异常
{{
abnormalLengths
}}
项
</view
>
</view>
<view
class=
"describe"
>
<view
class=
"number"
>
巡检编号:
<text
class=
"value"
>
{{
inspectionCode
}}
</text></view
>
<view
v-if=
"isSign"
class=
"number"
>
巡检时间:
<text
class=
"value"
>
{{
updateDate
}}
</text></view
>
</view>
</view>
</view>
<!--
{{
isSubmit
}}
{{
isSign
}}
-->
...
...
@@ -52,7 +64,12 @@
v-else-if=
"detailsInfo.synchronization != 1"
class=
"action-container"
>
<image
class=
"sign-img"
:src=
"detailsInfo.signImg"
mode=
"aspectFit"
>
<image
class=
"sign-img"
:src=
"detailsInfo.signImg"
mode=
"aspectFit"
@
click=
"previewImage([detailsInfo.signImg], 0)"
>
</image>
<button
class=
"record-button small"
@
click=
"toSign"
>
重签
</button>
<view
class=
"inspection-button"
@
click=
"openDialog(true)"
...
...
@@ -131,9 +148,14 @@
<text
v-if=
"position.isSubmit === 0"
class=
"status-text"
>
草稿
</text
>
<text
v-else
class=
"status-text"
>
{{
position
.
statusLable
}}
</text>
<text
v-else
:class=
"
{
'status-text': true,
error: position.status == 2,
}"
>
{{
position
.
statusLable
}}
</text
>
</view>
<view
class=
"info-line"
>
<text
class=
"info-text"
...
...
@@ -198,9 +220,14 @@
<text
v-if=
"position.isSubmit === 0"
class=
"status-text"
>
草稿
</text
>
<text
v-else
class=
"status-text"
>
{{
position
.
statusLable
}}
</text>
<text
v-else
:class=
"
{
'status-text': true,
error: position.status == 2,
}"
>
{{
position
.
statusLable
}}
</text
>
</view>
<view
class=
"info-line"
>
<text
class=
"info-text"
...
...
@@ -294,6 +321,18 @@ export default {
const
{
uid
,
createByName
}
=
this
.
detailsInfo
;
return
!
uid
||
(
uid
&&
createByName
==
this
.
userInfo
.
user
);
},
abnormalLengths
()
{
let
allPoints
=
this
.
detailsInfo
.
originData
.
reduce
((
acc
,
cur
)
=>
{
acc
.
push
(...
cur
.
position
);
return
acc
;
},
[]);
return
allPoints
.
filter
((
point
)
=>
point
.
status
===
2
).
length
;
},
updateDate
()
{
return
moment
(
Number
(
this
.
detailsInfo
.
updateTime
||
this
.
detailsInfo
.
createTime
)
).
format
(
"YYYY-MM-DD"
);
},
},
onLoad
(
options
)
{
this
.
options
=
options
;
...
...
@@ -417,6 +456,7 @@ export default {
return
acc
;
},
[])
.
every
((
pos
)
=>
pos
.
isSubmit
===
""
||
pos
.
isSubmit
===
1
);
console
.
log
(
this
.
detailsInfo
);
this
.
isSign
=
!!
this
.
detailsInfo
.
signImg
;
this
.
cardsInfo
.
forEach
((
item
)
=>
{
this
.
tabs
.
push
(
item
.
name
);
...
...
@@ -458,10 +498,10 @@ export default {
handlePopupConfirm
(
summary
)
{
this
.
detailsInfo
.
isSign
=
this
.
isSign
=
true
;
// 回显到文字显示区域
this
.
detailsInfo
.
signImg
=
summary
;
// 回显到文字显示区域
//
const isException = this.detailsInfo.originData.some(
//
(item) => item.status == 2
//
);
//
this.detailsInfo.isException = isException ? 1 : 0; // 巡检异常
const
isException
=
this
.
detailsInfo
.
originData
.
some
(
(
item
)
=>
item
.
status
==
2
);
this
.
detailsInfo
.
isException
=
isException
?
1
:
0
;
// 巡检异常
this
.
submit
(
"sign"
,
this
.
detailsInfo
.
signImg
,
...
...
@@ -548,6 +588,12 @@ export default {
}
this
.
showSyncDialog
=
val
;
},
previewImage
(
images
,
index
)
{
uni
.
previewImage
({
current
:
index
,
urls
:
images
,
});
},
},
};
</
script
>
...
...
@@ -638,6 +684,7 @@ export default {
line-height: 22.4px;
font-weight: 500;
margin-bottom: 7.2px;
margin-right: 10px;
}
.number {
...
...
@@ -645,11 +692,23 @@ export default {
color: #4a4a4a;
line-height: 22.4px;
font-weight: 400;
margin-right: 9.6px;
.value {
color: #000000;
}
}
.describe {
display: flex;
.abnormal {
color: #fff;
line-height: 22.4px;
height: 22.4px;
padding: 0 8px;
font-size: 12px;
background-color: #f55a42;
border-radius: 11px;
}
}
}
}
...
...
@@ -864,6 +923,9 @@ export default {
text-align: center;
line-height: 16.5px;
font-weight: 400;
&.error {
color: #f55a42;
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论