Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
computedRoomPad
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
邓文彬
computedRoomPad
Commits
1d1d0032
提交
1d1d0032
authored
3月 21, 2025
作者:
caodi\cd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:同步
上级
059f084e
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
64 行增加
和
8 行删除
+64
-8
signDialog.vue
components/signDialog.vue
+0
-0
inspectionContentNew.vue
pages/inspectionContent/inspectionContentNew.vue
+1
-1
shaftInspectionList.vue
pages/shaftInspection/shaftInspectionList.vue
+61
-6
shaftInspectionNew.vue
pages/shaftInspection/shaftInspectionNew.vue
+2
-1
没有找到文件。
components/signDialog.vue
浏览文件 @
1d1d0032
差异被折叠。
点击展开。
pages/inspectionContent/inspectionContentNew.vue
浏览文件 @
1d1d0032
...
...
@@ -478,7 +478,7 @@ export default {
});
// 清空基础缓存信息
this
.
$store
.
commit
(
"SET_TEMP_DATA"
,
{});
// 缓存[巡检信息]
//
this.$store.commit("SET_TEMP_DATA", {}); // 缓存[巡检信息]
uni
.
showToast
({
title
:
isSubmit
?
"提交成功"
:
"保存草稿成功"
,
icon
:
"success"
,
...
...
pages/shaftInspection/shaftInspectionList.vue
浏览文件 @
1d1d0032
...
...
@@ -35,10 +35,10 @@
>
</view>
</view>
<view
class=
"profile-right"
>
<
!--
<button
class=
"record-button"
@
click=
"toListingManagement
"
>
巡检人签字
</button>
--
>
<view
v-if=
"isSubmit"
class=
"profile-right"
>
<
button
v-if=
"!isSign"
class=
"record-button"
@
click=
"toSign
"
>
巡检人签字
</button
>
</view>
</view>
</view>
...
...
@@ -101,15 +101,25 @@
</view>
</view>
</view>
<signDialog
ref=
"signDialog"
@
confirm=
"handlePopupConfirm"
></signDialog>
</view>
</
template
>
<
script
>
import
moment
from
"moment"
;
import
{
pad_2_1_inspection_position
,
pad_2_1_floor
}
from
"@/utils/dict.js"
;
import
{
writeInspectionData
,
addLog
,
getLogContent
,
LOG_TYPE_ENUM
,
}
from
"@/utils/IoReadingAndWriting.js"
;
import
{
getInspectionDetails
}
from
"@/request/index.js"
;
import
signDialog
from
"@/components/signDialog.vue"
;
export
default
{
components
:
{
signDialog
,
},
data
()
{
return
{
tabs
:
[
"所有井道"
],
// 选项卡内容
...
...
@@ -135,6 +145,8 @@ export default {
},
detailsInfo
:
{},
// 详情
isDisable
:
false
,
// 禁用
isSign
:
false
,
//签名状态
isSubmit
:
0
,
//提交状态
uid
:
""
,
options
:
{},
//存储数据
};
...
...
@@ -221,6 +233,8 @@ export default {
this
.
inspectionNumber
=
detailsInfo
.
inspectionNumber
;
this
.
inspectionCode
=
detailsInfo
.
inspectionCode
;
this
.
cardsInfo
=
this
.
tabList
=
detailsInfo
.
originData
;
this
.
isSubmit
=
this
.
detailsInfo
.
isSubmit
;
this
.
isSign
=
this
.
detailsInfo
.
isSign
;
console
.
log
(
"this.cardsInfo"
,
this
.
cardsInfo
);
this
.
cardsInfo
.
forEach
((
item
)
=>
{
this
.
tabs
.
push
(
item
.
name
);
...
...
@@ -246,13 +260,54 @@ export default {
deleteClick
()
{
this
.
$refs
.
inputDialog2
.
open
();
},
toSign
()
{
this
.
$refs
.
signDialog
.
open
();
},
// tab选中change 时间
changeTab
(
index
,
item
)
{
this
.
draft
(
this
.
activeTabIndex
,
false
,
false
).
then
(()
=>
{
this
.
activeTabIndex
=
index
;
});
},
// 处理弹窗确认
handlePopupConfirm
(
summary
)
{
this
.
detailsInfo
.
isSign
=
this
.
isSign
=
true
;
// 回显到文字显示区域
this
.
detailsInfo
.
signImg
=
summary
;
// 回显到文字显示区域
this
.
submit
(
"sign"
,
this
.
detailsInfo
.
signImg
);
},
// 提交
submit
(
type
=
"sign"
,
value
=
""
)
{
const
all_data
=
this
.
$store
.
state
.
all_data
;
//获取全部数据
let
params
=
this
.
detailsInfo
;
params
.
signImg
=
value
;
console
.
log
(
"all_data"
,
all_data
);
console
.
log
(
"all_data"
,
all_data
);
const
index
=
all_data
.
findIndex
((
element
)
=>
element
.
uid
==
this
.
uid
);
all_data
[
index
]
=
params
;
const
logContent
=
getLogContent
(
LOG_TYPE_ENUM
.
sys
,
"数据同步"
,
"同步"
);
// 更新巡检list
console
.
log
(
"all_data存储"
,
all_data
);
this
.
$store
.
commit
(
"SET_ALL_DATA"
,
all_data
);
const
inspectList
=
all_data
.
filter
(
(
item
)
=>
item
.
createByName
==
userInfo
.
user
);
writeInspectionData
(
inspectList
,
userInfo
.
user
);
// 更新日志
const
log_list
=
this
.
$store
.
state
.
log_list
;
logContent
.
inspectionType
=
params
.
inspectionType
;
log_list
.
push
(
logContent
);
this
.
$store
.
commit
(
"SET_LOG_LIST"
,
log_list
);
addLog
(
log_list
).
then
((
res
)
=>
{
console
.
log
(
"日志文件写入成功"
);
});
uni
.
showToast
({
title
:
type
==
"sign"
?
"签字成功"
:
"同步成功"
,
icon
:
"success"
,
});
},
lookTable
()
{
uni
.
navigateTo
({
url
:
"/pages/report/sampleTable?isJF=0"
,
...
...
pages/shaftInspection/shaftInspectionNew.vue
浏览文件 @
1d1d0032
...
...
@@ -250,7 +250,8 @@ export default {
inspectionNumber
:
0
,
//巡检数量
floor
:
this
.
floor
,
// 楼层
isSubmit
:
""
,
// 0 是草稿态; 1 是正式提交
isSign
:
""
,
// 是否签字
isSign
:
false
,
// 是否签字
signImg
:
""
,
// 签字图片地址
conclusion
:
""
,
//摘要
creatTime
:
`
${
new
Date
().
getTime
()}
`
,
items
:
[],
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论