Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
5d1dd02f
提交
5d1dd02f
authored
4月 07, 2025
作者:
JaxBBLL
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: update
上级
c73a5a11
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
132 行增加
和
16 行删除
+132
-16
index.vue
components/NumberInput/index.vue
+63
-0
jfwsd.vue
pages/inspectionContent/components/jfwsd.vue
+3
-4
sbgj.vue
pages/inspectionContent/components/sbgj.vue
+51
-9
inspectionContentList.vue
pages/inspectionContent/inspectionContentList.vue
+14
-2
inspectionContentNew.vue
pages/inspectionContent/inspectionContentNew.vue
+1
-1
没有找到文件。
components/NumberInput/index.vue
0 → 100644
浏览文件 @
5d1dd02f
<
template
>
<input
v-bind=
"$attrs"
v-model=
"inputValue"
@
input=
"handleInput"
/>
</
template
>
<
script
>
export
default
{
name
:
"NumberInput"
,
data
()
{
return
{
inputValue
:
""
,
};
},
props
:
{
decimalPlaces
:
{
type
:
Number
,
default
:
2
,
},
min
:
{
type
:
Number
,
default
:
-
Infinity
,
},
max
:
{
type
:
Number
,
default
:
Infinity
,
},
allowNegative
:
{
type
:
Boolean
,
default
:
false
,
},
},
methods
:
{
handleInput
(
e
)
{
let
value
=
e
.
target
.
value
;
if
(
!
this
.
allowNegative
)
{
value
=
value
.
replace
(
/-/g
,
""
);
}
// 去除非数字和小数点以外的字符
value
=
value
.
replace
(
/
[^\d
.
]
/g
,
""
);
// 保证只有一个小数点
const
dotCount
=
(
value
.
match
(
/
\.
/g
)
||
[]).
length
;
if
(
dotCount
>
1
)
{
value
=
value
.
slice
(
0
,
value
.
lastIndexOf
(
"."
));
}
// 处理小数点后的位数
if
(
value
.
includes
(
"."
))
{
const
parts
=
value
.
split
(
"."
);
parts
[
1
]
=
parts
[
1
].
slice
(
0
,
this
.
decimalPlaces
);
value
=
parts
.
join
(
"."
);
}
if
(
value
)
{
const
numValue
=
parseFloat
(
value
);
if
(
numValue
<
this
.
min
)
{
value
=
this
.
min
.
toString
();
}
else
if
(
numValue
>
this
.
max
)
{
value
=
this
.
max
.
toString
();
}
}
this
.
inputValue
=
value
;
this
.
$emit
(
"input"
,
value
);
},
},
};
</
script
>
pages/inspectionContent/components/jfwsd.vue
浏览文件 @
5d1dd02f
...
...
@@ -25,13 +25,12 @@
{{
item
.
lableArr
[
1
]
}}
</view>
</view
><input
v-if=
"'value' in item
&& item.inspectionResult === 1
"
v-if=
"'value' in item"
class=
"input"
v-model=
"item.value"
type=
"text"
placeholder=
"请输入"
maxlength=
"3"
/>
{{
item
.
inspectionResult
===
1
?
item
.
unit
:
""
}}
/>
{{
item
.
unit
}}
</view>
<template
v-if=
"item.inspectionResult === 1"
>
<view
v-if=
"'conclusion' in item"
class=
"form-item"
>
...
...
@@ -133,7 +132,7 @@ export default {
lableArr
:
[
"正常"
,
"异常"
],
conclusion
:
""
,
settingLabel
:
"设定湿度"
,
setting
:
"2
5
"
,
//设定湿度值
setting
:
"2
0%~70
"
,
//设定湿度值
value
:
""
,
//输入湿度
unit
:
"%"
,
//单位
photos
:
[],
...
...
pages/inspectionContent/components/sbgj.vue
浏览文件 @
5d1dd02f
...
...
@@ -28,32 +28,63 @@
<view
class=
"form-item"
>
<text
class=
"form-label"
><text
class=
"required"
>
*
</text>
{{
item
.
deviceLabel
}}
</text
><input
>
<view>
<view
class=
"flex items-center"
v-for=
"(cabinet, idx) in item.cabinets"
:key=
"idx"
>
<view
class=
"form-item"
>
<!--
<text
class=
"form-label"
></text>
-->
<input
class=
"conclusion"
v-model=
"item
.deviceId"
v-model=
"cabinet
.deviceId"
type=
"text"
placeholder=
"请输入编号"
/>
</view>
<view
class=
"form-item"
>
<text
class=
"form-label"
><text
class=
"required"
>
*
</text>
{{
item
.
UpositonLabel
}}
</text
><input
><text
class=
"required"
>
*
</text
>
{{
cabinet
.
UpositonLabel
}}
</text
>
<NumberInput
class=
"input"
v-model=
"item
.UpositonS"
v-model=
"cabinet
.UpositonS"
type=
"number"
placeholder=
"请输入"
maxlength=
"2"
/>
<text
class=
"fg"
>
至
</text
><input
<!--
<input
class=
"input"
v-model=
"item.UpositonE
"
v-model=
"cabinet.UpositonS
"
type=
"number"
placeholder=
"请输入"
maxlength=
"2"
/>
-->
<text
class=
"fg"
>
至
</text>
<NumberInput
class=
"input"
v-model=
"cabinet.UpositonE"
type=
"number"
placeholder=
"请输入"
/>
<!--
<input
class=
"input"
v-model=
"cabinet.UpositonE"
type=
"number"
placeholder=
"请输入"
maxlength=
"2"
/>
-->
</view>
<view>
<button
class=
"v-btn"
>
+
</button>
<button
class=
"v-btn v-btn-default ml-10"
>
-
</button>
</view>
</view>
</view>
</view>
<view
v-if=
"'conclusion' in item"
class=
"form-item"
>
<text
class=
"form-label"
><text
class=
"required"
>
*
</text>
情况摘要
</text
...
...
@@ -98,12 +129,14 @@
</template>
<
script
>
import
NumberInput
from
"@/components/NumberInput/index.vue"
;
import
customPopup
from
"./customPopup.vue"
;
import
_
from
"lodash"
;
import
mixin
from
"./mixin"
;
export
default
{
mixins
:
[
mixin
],
components
:
{
NumberInput
,
customPopup
,
},
props
:
{
...
...
@@ -144,6 +177,15 @@ export default {
UpositonLabel
:
"U位"
,
UpositonS
:
""
,
UpositonE
:
""
,
cabinets
:
[
{
deviceId
:
""
,
deviceLabel
:
"故障设备机柜"
,
UpositonLabel
:
"U位"
,
UpositonS
:
""
,
UpositonE
:
""
,
},
],
photos
:
[],
},
],
...
...
pages/inspectionContent/inspectionContentList.vue
浏览文件 @
5d1dd02f
...
...
@@ -76,7 +76,11 @@
>
<view
class=
"card"
:class=
"
{ status1: card.status == 1, status2: card.status == 2 }"
:class=
"
{
status1: card.status == 1,
status2: card.status == 2,
active: value === card.value,
}"
>
<view
class=
"card-content"
>
<view
class=
"first-row"
>
...
...
@@ -149,7 +153,12 @@
:key=
"cardIndex"
@
click=
"getDetailsItem(card.name, card.jfType, card.value)"
>
<view
class=
"card"
:class=
"
{ active: card.name == activeName }">
<view
class=
"card"
:class=
"
{
active: value === card.value,
}"
>
<view
class=
"card-content"
>
<view
class=
"first-row"
>
<image
...
...
@@ -237,6 +246,7 @@ export default {
this
.
isDisable
=
options
.
isDisable
==
1
?
true
:
false
;
console
.
log
(
"options.uid"
,
this
.
options
.
uid
);
this
.
uid
=
this
.
options
.
uid
||
""
;
this
.
value
=
this
.
options
.
value
||
"1"
;
},
onShow
()
{
if
(
this
.
uid
)
{
...
...
@@ -367,6 +377,7 @@ export default {
// 获取机房详情
getDetailsItem
(
location
,
jfType
,
value
)
{
this
.
activeName
=
location
;
this
.
value
=
value
;
this
.
detailsItem
=
this
.
detailsInfo
.
originData
[
value
-
1
].
details
;
this
.
jfType
=
this
.
detailsInfo
.
originData
[
value
-
1
].
jfType
;
if
(
this
.
detailsItem
.
afxt
.
detail
[
2
].
inspectionResult
===
1
)
{
...
...
@@ -464,6 +475,7 @@ export default {
handlePopupConfirm
(
summary
)
{
this
.
detailsInfo
.
isSign
=
this
.
isSign
=
true
;
// 回显到文字显示区域
this
.
detailsInfo
.
signImg
=
summary
;
// 回显到文字显示区域
this
.
detailsInfo
.
isSubmit
=
1
;
// 提交状态
console
.
log
(
"summary"
,
summary
);
this
.
submit
(
"sign"
,
this
.
detailsInfo
.
signImg
);
},
...
...
pages/inspectionContent/inspectionContentNew.vue
浏览文件 @
5d1dd02f
...
...
@@ -715,7 +715,7 @@ export default {
// 返回
back
()
{
uni
.
navigateTo
({
url
:
`/pages/inspectionContent/inspectionContentList?uid=
${
this
.
uid
}
&backValue=
${
this
.
backValue
}
`
,
url
:
`/pages/inspectionContent/inspectionContentList?uid=
${
this
.
uid
}
&backValue=
${
this
.
backValue
}
&value=
${
this
.
value
}
`
,
});
},
// 关闭弹窗
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论