Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-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
李苏
sgaqgl-vue
Commits
e5be1c57
Commit
e5be1c57
authored
Dec 29, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保养项目
parent
61297a88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
32 deletions
+23
-32
byjl.vue
src/views/equipment/sbbymx/byjl.vue
+11
-14
ckxmEdit.vue
src/views/equipment/sbbymx/ckxmEdit.vue
+12
-18
No files found.
src/views/equipment/sbbymx/byjl.vue
View file @
e5be1c57
...
...
@@ -72,20 +72,17 @@ import {
},
/* 表格标题对应参数*/
tableTitle
:
[
// {label: "设备ID", prop: "mid", fieldType: "ftString",width:192},
// {label: "序号", prop: "xh", fieldType: "int"},
// {label: "保养项目", prop: "xmid", fieldType: "ftString",width:192},
{
label
:
"上次保养日期"
,
prop
:
"scbyrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"预计下次计划日期"
,
prop
:
"xcbyrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"上次保养人"
,
prop
:
"scbyrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"保养说明"
,
prop
:
"bysm"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
// {label: "上次保养记录ID", prop: "scbyjlid", fieldType: "ftString",width:192},
// {label: "设备ID", prop: "sbid", fieldType: "ftString",width:192},
// {label: "保养项目ID", prop: "xmid", fieldType: "ftString",width:192},
{
label
:
"保养人员"
,
prop
:
"username"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"保养时间"
,
prop
:
"bysj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"附件数"
,
prop
:
"attachcount"
,
fieldType
:
"int"
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"保养说明"
,
prop
:
"bysm"
,
fieldType
:
"ftString"
,
width
:
300
},
]
}
},
...
...
src/views/equipment/sbbymx/ckxmEdit.vue
View file @
e5be1c57
...
...
@@ -4,18 +4,9 @@
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"120px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"上次保养日期"
ref=
"scbyrq"
prop=
"scbyrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.scbyrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"预计下次计划日期"
ref=
"xcbyrq"
prop=
"xcbyrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.xcbyrq"
placeholder=
"选择日期"
>
<el-form-item
label=
"保养日期"
ref=
"bysj"
prop=
"bysj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"datetime"
v-model=
"form.bysj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
...
...
@@ -70,7 +61,7 @@ props:['app'],
/* 初始额外赋值*/
async
mounted
()
{
this
.
form
.
xmid
=
this
.
app
.
rowItem
.
xmid
this
.
form
.
m
id
=
this
.
app
.
queryParams
.
mid
this
.
form
.
sb
id
=
this
.
app
.
queryParams
.
mid
},
data
()
{
return
{
...
...
@@ -78,14 +69,13 @@ props:['app'],
//ID
id
:
''
,
//设备ID
m
id
:
''
,
sb
id
:
''
,
//序号
//保养项目
xmid
:
''
,
//
上次
保养日期
scbyrq
:
new
Date
().
getTime
(),
//保养日期
bysj
:
new
Date
().
getTime
(),
//预计下次计划日期
xcbyrq
:
new
Date
().
getTime
(),
//备注
bz
:
''
,
...
...
@@ -102,7 +92,11 @@ props:['app'],
},
save
(){
doAdd
({...
this
.
form
}).
then
(
res
=>
{
let
params
=
{
details
:[{
id
:
''
,
records
:[]}],
master
:{...
this
.
form
}
}
doAdd
(
params
).
then
(
res
=>
{
})
}
...
...
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