Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dxgaqgl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
dxgaqgl-vue
Commits
c5275883
Commit
c5275883
authored
Aug 20, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提前检验日期/周期
parent
3a37e83f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
375 additions
and
300 deletions
+375
-300
edit.vue
src/views/equipment/archives/edit.vue
+375
-300
No files found.
src/views/equipment/archives/edit.vue
View file @
c5275883
<
template
>
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80
px"
:rules=
"rules"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"123
px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"公司"
ref=
"gsid"
prop=
"gsid"
>
<el-form-item
label=
"公司"
ref=
"gsid"
prop=
"gsid"
>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
-->
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
-->
<RelSelect
:readonly=
"readonly"
filterable
style=
"width: 100%;"
src=
'/jcsj/common/bm/queryGs'
:match=
"
{value:'id',label:'bmmc'}" v-model='form.gsid' >
</RelSelect>
<RelSelect
:readonly=
"readonly"
filterable
style=
"width: 100%;"
src=
'/jcsj/common/bm/queryGs'
:match=
"
{value:'id',label:'bmmc'}" v-model='form.gsid'>
</RelSelect>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"设备编号"
ref=
"dabh"
prop=
"dabh"
>
<el-form-item
label=
"设备编号"
ref=
"dabh"
prop=
"dabh"
>
<el-input
:readonly=
"readonly"
v-model=
"form.dabh"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.dabh"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"设备代码"
ref=
"code"
prop=
"code"
>
<el-form-item
label=
"设备代码"
ref=
"code"
prop=
"code"
>
<el-input
:readonly=
"readonly"
v-model=
"form.code"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.code"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -24,34 +25,35 @@
...
@@ -24,34 +25,35 @@
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"设备分类"
ref=
"flid"
prop=
"gsid"
>
<el-form-item
label=
"设备分类"
ref=
"flid"
prop=
"gsid"
>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
-->
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
-->
<RelSelect
:readonly=
"readonly"
filterable
style=
"width: 100%;"
src=
'/aqgl/sbgl/sbfl/query'
:match=
"
{value:'id',label:'name'}" v-model='form.flid' >
</RelSelect>
<RelSelect
:readonly=
"readonly"
filterable
style=
"width: 100%;"
src=
'/aqgl/sbgl/sbfl/query'
:match=
"
{value:'id',label:'name'}" v-model='form.flid'>
</RelSelect>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"设备名称"
ref=
"name"
prop=
"name"
>
<el-form-item
label=
"设备名称"
ref=
"name"
prop=
"name"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"使用地点"
ref=
"sydd"
prop=
"sydd"
>
<el-form-item
label=
"使用地点"
ref=
"sydd"
prop=
"sydd"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sydd"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.sydd"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"型号"
ref=
"model"
prop=
"model"
>
<el-form-item
label=
"型号"
ref=
"model"
prop=
"model"
>
<el-input
:readonly=
"readonly"
v-model=
"form.model"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.model"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"制造厂家"
ref=
"productor"
prop=
"productor"
>
<el-form-item
label=
"制造厂家"
ref=
"productor"
prop=
"productor"
>
<el-input
:readonly=
"readonly"
v-model=
"form.productor"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.productor"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"登记证编号"
ref=
"serialno"
prop=
"serialno"
>
<el-form-item
label=
"登记证编号"
ref=
"serialno"
prop=
"serialno"
>
<el-input
:readonly=
"readonly"
v-model=
"form.serialno"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.serialno"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -79,29 +81,43 @@
...
@@ -79,29 +81,43 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"检验周期(天)"
ref=
"jyzq"
prop=
"jyzq"
>
<el-input
type=
"number"
:readonly=
"readonly"
v-model=
"form.jyzq"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"下次检验日期"
ref=
"xcjyrq"
prop=
"xcjyrq"
>
<el-form-item
label=
"下次检验日期"
ref=
"xcjyrq"
prop=
"xcjyrq"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly
"
type=
"date"
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"true
"
type=
"date"
v-model=
"form.xcjyrq"
placeholder=
"选择日期"
>
v-model=
"form.xcjyrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"检验周期(天)"
ref=
"jyzq"
prop=
"
jyzq"
>
<el-form-item
label=
"提前检验周期(天)"
ref=
"tqjyzq"
prop=
"tq
jyzq"
>
<el-input
type=
"number"
:readonly=
"readonly"
v-model=
"form.jyzq"
></el-input>
<el-input
type=
"number"
:readonly=
"readonly"
v-model=
"form.tqjyzq"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"提前检验日期"
ref=
"tqjyrq"
prop=
"tqjyrq"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"true"
type=
"date"
v-model=
"form.tqjyrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"使用状态"
ref=
"syzt"
prop=
"syzt"
>
<el-form-item
label=
"使用状态"
ref=
"syzt"
prop=
"syzt"
>
<el-input
:readonly=
"readonly"
v-model=
"form.syzt"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.syzt"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -109,20 +125,57 @@
...
@@ -109,20 +125,57 @@
</RelDialog>
</RelDialog>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
editMixin
}
from
'common'
import
{
editMixin
}
from
'common'
export
default
{
export
default
{
mixins
:
[
editMixin
],
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
/* 存放index页面传递的额外参数*/
mounted
()
{
mounted
()
{
},
},
/* 组件名称*/
/* 组件名称*/
name
:
"aqglSbxxEdit"
,
name
:
"aqglSbxxEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
computed
:{
jyzq
()
{
return
this
.
form
.
jyzq
},
scjyrq
(){
return
this
.
form
.
scjyrq
},
tqjyzq
(){
return
this
.
form
.
tqjyzq
},
tqjyrq
(){
return
this
.
form
.
tqjyrq
}
},
watch
:{
jyzq
(
val
){
if
(
val
!=
''
){
this
.
form
.
xcjyrq
=
this
.
form
.
scjyrq
+
val
*
24
*
60
*
60
*
1000
this
.
form
.
tqjyrq
=
this
.
form
.
xcjyrq
-
this
.
form
.
tqjyzq
*
24
*
60
*
60
*
1000
}
},
scjyrq
(
val
){
if
(
val
!=
''
){
this
.
form
.
xcjyrq
=
val
+
this
.
form
.
jyzq
*
24
*
60
*
60
*
1000
this
.
form
.
tqjyrq
=
this
.
form
.
xcjyrq
-
this
.
form
.
tqjyzq
*
24
*
60
*
60
*
1000
}
},
tqjyzq
(
val
){
if
(
val
!=
''
){
this
.
form
.
tqjyrq
=
this
.
form
.
xcjyrq
-
this
.
form
.
tqjyzq
*
24
*
60
*
60
*
1000
}
}
},
data
()
{
data
()
{
return
{
return
{
/* 额外初始化,根据需求*/
/* 额外初始化,根据需求*/
systemType
:
[],
systemType
:
[],
...
@@ -130,181 +183,203 @@
...
@@ -130,181 +183,203 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
form
:
{
tqjyrq
:
''
,
tqjyzq
:
0
,
//ID
//ID
id
:
''
,
id
:
''
,
//设备编码
//设备编码
code
:
''
,
code
:
''
,
//档案编号
//档案编号
dabh
:
''
,
dabh
:
''
,
//系统分类
//系统分类
xtfl
:
'0'
,
xtfl
:
'0'
,
//设备分类
//设备分类
flid
:
''
,
flid
:
''
,
//名称
//名称
name
:
''
,
name
:
''
,
//制造厂家
//制造厂家
productor
:
''
,
productor
:
''
,
//型号
//型号
model
:
''
,
model
:
''
,
//登记证编号
//登记证编号
serialno
:
''
,
serialno
:
''
,
//计量单位
//计量单位
jldw
:
''
,
jldw
:
''
,
//启用日期
//启用日期
qyrq
:
''
,
qyrq
:
''
,
//停用日期
//停用日期
// tyrq:new Date().getTime(),
// tyrq:new Date().getTime(),
//停用标志
//停用标志
tybz
:
''
,
tybz
:
''
,
//使用地点
//使用地点
sydd
:
''
,
sydd
:
''
,
//用途
//用途
yt
:
''
,
yt
:
''
,
//数量
//数量
sl
:
''
,
sl
:
''
,
//制造日期
//制造日期
ccrq
:
''
,
ccrq
:
''
,
//工作级别
//工作级别
gzjb
:
''
,
gzjb
:
''
,
//跨度
//跨度
kd
:
''
,
kd
:
''
,
//提升速度
//提升速度
tssd
:
''
,
tssd
:
''
,
//运行速度
//运行速度
yxsd
:
''
,
yxsd
:
''
,
//吨位
//吨位
dw
:
''
,
dw
:
''
,
//起升高度
//起升高度
qsgd
:
''
,
qsgd
:
''
,
//电机功率
//电机功率
djgl
:
''
,
djgl
:
''
,
//安装日期
//安装日期
// azrq:new Date().getTime(),
// azrq:new Date().getTime(),
//安装地点
//安装地点
azdd
:
''
,
azdd
:
''
,
//安装单位
//安装单位
azdw
:
''
,
azdw
:
''
,
//注册编号
//注册编号
zcbh
:
''
,
zcbh
:
''
,
//检验报告编号
//检验报告编号
jybgbh
:
''
,
jybgbh
:
''
,
//检验周期
//检验周期
jyzq
:
''
,
jyzq
:
0
,
//上次检验日期
//上次检验日期
scjyrq
:
''
,
scjyrq
:
''
,
//下次检验日期
//下次检验日期
xcjyrq
:
''
,
xcjyrq
:
''
,
//检验前自检结论
//检验前自检结论
jyqzjjl
:
''
,
jyqzjjl
:
''
,
//实际检验日期
//实际检验日期
sjjyrq
:
''
,
sjjyrq
:
''
,
//特检机构检验结论
//特检机构检验结论
tjjgjyjl
:
''
,
tjjgjyjl
:
''
,
//检验整改情况
//检验整改情况
jyzgqk
:
''
,
jyzgqk
:
''
,
//设备升级
//设备升级
sbsj
:
''
,
sbsj
:
''
,
//设备资料
//设备资料
sbzl
:
''
,
sbzl
:
''
,
//设备资料存放地点
//设备资料存放地点
sbzldd
:
''
,
sbzldd
:
''
,
//未检原因
//未检原因
wjyy
:
''
,
wjyy
:
''
,
//系统名称
//系统名称
xtmc
:
''
,
xtmc
:
''
,
//参数及量程
//参数及量程
cslc
:
''
,
cslc
:
''
,
//监测因子
//监测因子
jcyz
:
''
,
jcyz
:
''
,
//类型
//类型
lx
:
''
,
lx
:
''
,
//主体材质
//主体材质
ztcz
:
''
,
ztcz
:
''
,
//容器容积
//容器容积
rqrj
:
''
,
rqrj
:
''
,
//容器净重
//容器净重
rqjz
:
''
,
rqjz
:
''
,
//设计压力
//设计压力
sjyl
:
''
,
sjyl
:
''
,
//设计温度
//设计温度
sjwd
:
''
,
sjwd
:
''
,
//最高压力
//最高压力
zgyl
:
''
,
zgyl
:
''
,
//耐压试验压力
//耐压试验压力
nysyyl
:
''
,
nysyyl
:
''
,
//管径与壁厚
//管径与壁厚
gjbh
:
''
,
gjbh
:
''
,
//管道级别
//管道级别
gdjb
:
''
,
gdjb
:
''
,
//管道起点
//管道起点
gdqd
:
''
,
gdqd
:
''
,
//管道终点
//管道终点
gdzd
:
''
,
gdzd
:
''
,
//压力
//压力
yl
:
''
,
yl
:
''
,
//铺设方式
//铺设方式
psfs
:
''
,
psfs
:
''
,
//工作温度
//工作温度
gzwd
:
''
,
gzwd
:
''
,
//工作压力
//工作压力
gzyl
:
''
,
gzyl
:
''
,
//输送介质
//输送介质
ssjz
:
''
,
ssjz
:
''
,
//焊口数量
//焊口数量
hksl
:
''
,
hksl
:
''
,
//保温
//保温
bw
:
''
,
bw
:
''
,
//防腐方式
//防腐方式
fffs
:
''
,
fffs
:
''
,
//标识
//标识
bs
:
''
,
bs
:
''
,
//公称通径
//公称通径
gctj
:
''
,
gctj
:
''
,
//产品编号
//产品编号
cpbh
:
''
,
cpbh
:
''
,
//整定压力
//整定压力
zdyl
:
''
,
zdyl
:
''
,
//层站
//层站
dtcz
:
''
,
dtcz
:
''
,
//载重
//载重
dtzz
:
''
,
dtzz
:
''
,
//提升高度
//提升高度
dttsgd
:
''
,
dttsgd
:
''
,
//运行速度
//运行速度
dtyxsd
:
''
,
dtyxsd
:
''
,
//车牌号
//车牌号
cph
:
''
,
cph
:
''
,
//发动机型号
//发动机型号
fdjxh
:
''
,
fdjxh
:
''
,
//发动机编号
//发动机编号
fdjbh
:
''
,
fdjbh
:
''
,
//底盘车架号
//底盘车架号
dpcjh
:
''
,
dpcjh
:
''
,
//拍照选项
//拍照选项
pzxx
:
''
,
pzxx
:
''
,
//附件数
//附件数
attachcount
:
''
,
attachcount
:
''
,
//备注
//备注
bz
:
''
,
bz
:
''
,
//维护人编码
//维护人编码
whrid
:
''
,
whrid
:
''
,
//维护人
//维护人
whr
:
''
,
whr
:
''
,
//维护时间
//维护时间
// whsj:new Date().getTime(),
// whsj:new Date().getTime(),
//创建人编码
//创建人编码
cjrid
:
''
,
cjrid
:
''
,
//创建人
//创建人
cjr
:
''
,
cjr
:
''
,
//创建时间
//创建时间
// cjsj:new Date().getTime(),
// cjsj:new Date().getTime(),
//系统版本
//系统版本
doc
:
""
,
doc
:
""
,
syzt
:
""
,
syzt
:
""
,
gsid
:
""
gsid
:
""
},
},
/* form提交时的规则,具体规则参考官网*/
/* form提交时的规则,具体规则参考官网*/
rules
:
{
rules
:
{
scjyrq
:
[{
required
:
true
,
trigger
:
'blur'
},
],
xcjyrq
:
[{
required
:
true
,
trigger
:
'blur'
},
],
jyzq
:
[{
required
:
true
,
trigger
:
'blur'
},
],
tqjyzq
:
[{
required
:
true
,
trigger
:
'blur'
},
],
tqjyrq
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment