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
61297a88
Commit
61297a88
authored
Dec 29, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保养项目
parent
429cf904
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
637 additions
and
17 deletions
+637
-17
sbbyjl.js
src/api/equipment/sbbyjl.js
+31
-0
sbbymx.js
src/api/equipment/sbbymx.js
+9
-0
byfkEdit.vue
src/views/equipment/sbbymx/byfkEdit.vue
+285
-0
byjl.vue
src/views/equipment/sbbymx/byjl.vue
+130
-0
ckxm.vue
src/views/equipment/sbbymx/ckxm.vue
+36
-12
ckxmEdit.vue
src/views/equipment/sbbymx/ckxmEdit.vue
+123
-0
index.vue
src/views/equipment/sbbymx/index.vue
+4
-2
selector.vue
src/views/equipment/sbbymx/selector.vue
+19
-3
No files found.
src/api/equipment/sbbyjl.js
0 → 100644
View file @
61297a88
import
request
from
'common/src/utils/request'
/* 查询 */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/sbgl/sbbyjl/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/sbgl/sbbyjl/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/sbgl/sbbyjl/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/sbgl/sbbyjl/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
\ No newline at end of file
src/api/equipment/sbbymx.js
View file @
61297a88
...
@@ -37,3 +37,12 @@ method: 'post',
...
@@ -37,3 +37,12 @@ method: 'post',
data
:
query
||
{}
data
:
query
||
{}
})
})
}
}
export
function
querySbbyjl
(
query
)
{
return
request
({
url
:
'/aqgl/sbgl/sbbymx/querySbbyjl'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/views/equipment/sbbymx/byfkEdit.vue
0 → 100644
View file @
61297a88
This diff is collapsed.
Click to expand it.
src/views/equipment/sbbymx/byjl.vue
0 → 100644
View file @
61297a88
<
template
>
<DefaultDialog
:app=
'app'
>
<div
class=
"min_full"
slot=
'form'
style=
"height: 550px;border: 0px;"
>
<Selector
:app=
'this'
v-if=
'showDialog&&DialogName=="ksry"'
></Selector>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<!--
<ViewButton
ref=
"view"
:app=
'this'
></ViewButton>
<AddButton
ref=
"add"
:app=
'this'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'this'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'this'
></EditButton>
-->
<AttachFileShow
:app=
'this'
></AttachFileShow>
<!--
<el-button
@
click=
"xzry"
size=
'mini'
type=
"primary"
>
导入项目
</el-button>
-->
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
style=
"height: 380px;"
>
<TablePager
:showPagination=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
:delParams=
"'mxid'"
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
</DefaultDialog>
</
template
>
<
script
>
/* 引入需要的接口*/
import
Selector
from
'./selector'
import
{
querySbbyjl
}
from
'@/api/equipment/sbbymx.js'
;
//
/* edit页面*/
import
DtlEdit
from
'./dtlEdit.vue'
import
{
tableMixin_noapp
}
from
'common'
export
default
{
props
:[
'app'
],
mixins
:
[
tableMixin_noapp
],
/* 初始额外赋值*/
async
mounted
()
{
this
.
queryParams
.
xmid
=
this
.
app
.
rowItem
.
xmid
this
.
queryParams
.
sbid
=
this
.
app
.
queryParams
.
mid
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
})
},
data
()
{
return
{
sjdata
:{},
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogWidth
:
'85%'
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/sbgl/sbbyjl'
,
/* 查询参数*/
queryParams
:
{
// info: '',
// mid:''
},
/* 表格标题对应参数*/
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},
]
}
},
methods
:
{
xzry
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
DialogTitle
=
'选择保养项目'
this
.
showDialog
=
true
this
.
DialogName
=
'ksry'
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
drst
(){
this
.
showDialog
=
true
},
/* 基础查询*/
query
:
querySbbyjl
,
/* 基础增*/
// apiAdd: doDtlAdd,
// /* 基础更新*/
// apiUpdate: doDtlUpdate,
// /* 删除操作*/
// apiDelete: doDelete,
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
DtlEdit
,
Selector
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/equipment/sbbymx/ckxm.vue
View file @
61297a88
<
template
>
<
template
>
<div
class=
"min_full"
slot=
'form'
style=
"height:100%;width:100%"
>
<div
class=
"min_full"
slot=
'form'
style=
"height:100%;width:100%"
>
<CkxmEdit
:app=
'this'
v-if=
'showDialog&&DialogName=="byfk"'
></CkxmEdit>
<Selector
:app=
'this'
v-if=
'showDialog&&DialogName=="ksry"'
></Selector>
<Selector
:app=
'this'
v-if=
'showDialog&&DialogName=="ksry"'
></Selector>
<Byjl
:app=
'this'
v-if=
'showDialog&&DialogName=="byjl"'
></Byjl>
<!-- 按钮操作-->
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<el-row
class=
"tool-bar"
>
<el-button
@
click=
"xzry"
size=
'mini'
type=
"primary"
>
导入项目
</el-button>
<el-button
@
click=
"xzry"
size=
'mini'
type=
"primary"
>
导入项目
</el-button>
<el-button
@
click=
"xzry"
size=
'mini'
type=
"primary"
>
保养记录
</el-button>
<el-button
@
click=
"byfk"
size=
'mini'
type=
"primary"
>
保养反馈
</el-button>
<el-button
@
click=
"byjl"
size=
'mini'
type=
"primary"
>
保养记录
</el-button>
</el-row>
</el-row>
<!-- 表格-->
<!-- 表格-->
<div
class=
"tablePagers"
style=
"height: 380px;"
>
<div
class=
"tablePagers"
style=
"height: 380px;"
>
<TablePager
:showPagination=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
:delParams=
"'mxid'"
<TablePager
:showPagination=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
@
getRow=
'getRow'
>
</TablePager>
</TablePager>
</div>
</div>
...
@@ -20,6 +22,8 @@
...
@@ -20,6 +22,8 @@
<
script
>
<
script
>
/* 引入需要的接口*/
/* 引入需要的接口*/
import
Selector
from
'./selector'
import
Selector
from
'./selector'
import
CkxmEdit
from
'./ckxmEdit'
import
Byjl
from
'./byjl'
import
{
import
{
doQuery
,
doQuery
,
doAdd
,
doAdd
,
...
@@ -73,12 +77,12 @@
...
@@ -73,12 +77,12 @@
},
},
/* 表格标题对应参数*/
/* 表格标题对应参数*/
tableTitle
:
[
tableTitle
:
[
{
label
:
"编码"
,
prop
:
"code"
,
fieldType
:
"ftString"
,
width
:
120
},
//
{label: "编码", prop: "code", fieldType: "ftString",width:120},
{
label
:
"名称"
,
prop
:
"
n
ame"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"名称"
,
prop
:
"
byxmN
ame"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"保养周期-天"
,
prop
:
"byzq"
,
fieldType
:
"int"
,
width
:
252
},
{
label
:
"保养周期-天"
,
prop
:
"byzq"
,
fieldType
:
"int"
,
width
:
252
},
{
label
:
"公司"
,
prop
:
"gsName"
,
fieldType
:
"ftString"
,
width
:
192
},
//
{label: "公司", prop: "gsName", fieldType: "ftString",width:192},
{
label
:
"停用标志"
,
prop
:
"tybz"
,
fieldType
:
"ftString"
,
width
:
100
},
//
{label: "停用标志", prop: "tybz", fieldType: "ftString",width:100},
{
label
:
"停用日期"
,
prop
:
"tyrq"
,
...
this
.
$common
(
'ftDateTime'
),
width
:
192
},
//
{label: "停用日期", prop: "tyrq", ...this.$common('ftDateTime'),width:192},
{
label
:
"标准工时"
,
prop
:
"bzgs"
,
fieldType
:
"float"
,
width
:
192
},
{
label
:
"标准工时"
,
prop
:
"bzgs"
,
fieldType
:
"float"
,
width
:
192
},
{
label
:
"附件数"
,
prop
:
"attachcount"
,
fieldType
:
"int"
,
width
:
192
},
{
label
:
"附件数"
,
prop
:
"attachcount"
,
fieldType
:
"int"
,
width
:
192
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
...
@@ -90,18 +94,36 @@
...
@@ -90,18 +94,36 @@
}
}
},
},
methods
:
{
methods
:
{
byjl
(){
if
(
this
.
selectOne
||
this
.
clickOne
)
{
this
.
DialogTitle
=
'保养记录'
this
.
showDialog
=
true
this
.
DialogName
=
'byjl'
this
.
DialogWidth
=
'85%'
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
byfk
(){
if
(
this
.
selectOne
||
this
.
clickOne
)
{
this
.
DialogTitle
=
'反馈记录'
this
.
showDialog
=
true
this
.
DialogName
=
'byfk'
this
.
DialogWidth
=
'50%'
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
xzry
(){
xzry
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
DialogTitle
=
'选择保养项目'
this
.
DialogTitle
=
'选择保养项目'
this
.
showDialog
=
true
this
.
showDialog
=
true
this
.
DialogName
=
'ksry'
this
.
DialogName
=
'ksry'
this
.
DialogWidth
=
'85%'
}
else
{
}
else
{
this
.
$warning
(
'请选中一行操作'
);
this
.
$warning
(
'请选中一行操作'
);
}
}
},
drst
(){
this
.
showDialog
=
true
},
},
/* 基础查询*/
/* 基础查询*/
query
:
doQuery
,
query
:
doQuery
,
...
@@ -118,7 +140,9 @@
...
@@ -118,7 +140,9 @@
},
},
components
:
{
components
:
{
DtlEdit
,
DtlEdit
,
Selector
Selector
,
CkxmEdit
,
Byjl
}
}
...
...
src/views/equipment/sbbymx/ckxmEdit.vue
0 → 100644
View file @
61297a88
<
template
>
<DefaultDialog
:app=
'app'
>
<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-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"保养说明"
ref=
"bysm"
prop=
"bysm"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.bysm"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上次保养记录ID"
ref=
"scbyjlid"
prop=
"scbyjlid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.scbyjlid"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
</el-form>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"save()"
>
确 认
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
// doUpdate,
// doDelete
}
from
'@/api/equipment/sbbyjl.js'
;
import
{
doSave
}
from
"@/api/equipment/sbbymx.js"
/* edit页面*/
import
{
tableMixin_noapp
}
from
'common'
export
default
{
mixins
:
[
tableMixin_noapp
],
props
:[
'app'
],
/* 初始额外赋值*/
async
mounted
()
{
this
.
form
.
xmid
=
this
.
app
.
rowItem
.
xmid
this
.
form
.
mid
=
this
.
app
.
queryParams
.
mid
},
data
()
{
return
{
form
:
{
//ID
id
:
''
,
//设备ID
mid
:
''
,
//序号
//保养项目
xmid
:
''
,
//上次保养日期
scbyrq
:
new
Date
().
getTime
(),
//预计下次计划日期
xcbyrq
:
new
Date
().
getTime
(),
//备注
bz
:
''
,
},
}
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* treeQuery */
/* 初始化赋值操作*/
init
()
{
},
save
(){
doAdd
({...
this
.
form
}).
then
(
res
=>
{
})
}
},
components
:{
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/equipment/sbbymx/index.vue
View file @
61297a88
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
</div>
</div>
<!-- 保养项目详情-->
<!-- 保养项目详情-->
<div
class=
"min_full"
style=
"height: 60vh;"
>
<div
class=
"min_full"
style=
"height: 60vh;"
>
<Ckxm
ref=
'ckxm'
:app=
'this'
></Ckxm>
<Ckxm
v-if=
"tabData.length>0&&singleItem.id"
ref=
'ckxm'
:app=
'this'
></Ckxm>
</div>
</div>
</div>
</div>
...
@@ -155,7 +155,9 @@
...
@@ -155,7 +155,9 @@
},
},
selectedTree
(
e
){
selectedTree
(
e
){
this
.
queryParams
.
gsid
=
e
.
id
||
'root'
this
.
queryParams
.
gsid
=
e
.
id
||
'root'
this
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
})
},
},
/* 查看人员*/
/* 查看人员*/
byxm
(){
byxm
(){
...
...
src/views/equipment/sbbymx/selector.vue
View file @
61297a88
...
@@ -82,7 +82,7 @@ export default {
...
@@ -82,7 +82,7 @@ export default {
props
:[
'app'
],
props
:[
'app'
],
/* 初始额外赋值*/
/* 初始额外赋值*/
async
mounted
()
{
async
mounted
()
{
this
.
selectedList
=
_
.
cloneDeep
(
this
.
app
.
tabData
)
this
.
selectedList
=
[]
this
.
getData
(
this
.
currentPage
,
this
.
pageSize
);
this
.
getData
(
this
.
currentPage
,
this
.
pageSize
);
},
},
data
()
{
data
()
{
...
@@ -234,13 +234,29 @@ props:['app'],
...
@@ -234,13 +234,29 @@ props:['app'],
},
},
save
(){
save
(){
/* 查看是否重复*/
let
arlList
=
[]
let
iscf
=
true
this
.
app
.
tabData
.
forEach
(
item
=>
{
arlList
.
push
(
item
.
xmid
)
})
this
.
selectedList
.
forEach
(
item
=>
{
if
(
arlList
.
indexOf
(
item
.
id
)
!=-
1
){
iscf
=
false
}
})
if
(
iscf
==
false
){
this
.
$warning
(
'已选保养项目存在'
)
return
}
let
xmList
=
[]
this
.
selectedList
.
forEach
(
row
=>
{
this
.
selectedList
.
forEach
(
row
=>
{
row
.
xmid
=
row
.
id
xmList
.
push
({
xmid
:
row
.
id
})
// delete row.id
// delete row.id
})
})
let
params
=
{
let
params
=
{
sbid
:
this
.
app
.
queryParams
.
mid
,
sbid
:
this
.
app
.
queryParams
.
mid
,
data
:
this
.
selected
List
data
s
:
xm
List
}
}
doSave
(
params
).
then
(
res
=>
{
doSave
(
params
).
then
(
res
=>
{
if
(
res
.
success
){
if
(
res
.
success
){
...
...
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