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
5fabb901
Commit
5fabb901
authored
Aug 21, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备检测 新增检测完成功能
parent
2cf82982
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
257 additions
and
141 deletions
+257
-141
index.vue
src/views/equipment/archives/index.vue
+257
-141
No files found.
src/views/equipment/archives/index.vue
View file @
5fabb901
<
template
>
<
template
>
<div
class=
"min_full"
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
设备信息:
</span>
<span
class=
"search-span"
>
设备信息:
</span>
<el-input
v-model=
"queryParams.sbxx"
></el-input>
<el-input
v-model=
"queryParams.sbxx"
></el-input>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"4"
class=
"search-col"
>
<el-col
:span=
"4"
class=
"search-col"
>
<div
class=
"search-item"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
公司:
</span>
<span
class=
"search-span"
>
公司:
</span>
<RelSelect
style=
"width: 100%;"
src=
'jcsj/common/bm/queryGs'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='queryParams.gsid' >
</RelSelect>
<RelSelect
style=
"width: 100%;"
src=
'jcsj/common/bm/queryGs'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='queryParams.gsid'>
</RelSelect>
</div>
</div>
</el-col>
</el-col>
<!--
<el-col
:span=
"6"
class=
"search-col"
>
-->
<!--
<el-col
:span=
"6"
class=
"search-col"
>
-->
<!--
<div
class=
"search-item"
>
-->
<!--
<div
class=
"search-item"
>
-->
<!--
<span
class=
"search-span"
>
是否已入档:
</span>
-->
<!--
<span
class=
"search-span"
>
是否已入档:
</span>
-->
<!--
<el-select
v-model=
"queryParams.doc"
placeholder=
"请选择"
>
-->
<!--
<el-select
v-model=
"queryParams.doc"
placeholder=
"请选择"
>
-->
<!--
<el-option-->
<!--
<el-option-->
<!--v-for="item in options"-->
<!--v-for="item in options"-->
<!--:key="item.value"-->
<!--:key="item.value"-->
<!--:label="item.label"-->
<!--:label="item.label"-->
<!--:value="item.value">-->
<!--:value="item.value">-->
<!--
</el-option>
-->
<!--
</el-option>
-->
<!--
</el-select>
-->
<!--
</el-select>
-->
<!--
</div>
-->
<!--
</div>
-->
<!--
</el-col>
-->
<!--
</el-col>
-->
</el-row>
</el-row>
</div>
</div>
<!-- 按钮操作-->
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<el-button
@
click
.
native
.
prevent=
"jcwc"
size=
'mini'
type=
"primary"
>
<!-- 表头设置 -->
检测完成
</el-button>
<!-- 权限-->
<!-- 额外按钮-->
</el-row>
<!-- 表头设置 -->
<!-- 表格-->
<div
class=
"tablePagers"
>
<!-- 权限-->
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
</el-row>
@
getRow=
'getRow'
>
<!-- 表格-->
<div
class=
"tablePagers"
>
</TablePager>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
</div>
@
getRow=
'getRow'
>
</div>
</TablePager>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
doQuery
,
doQuery
,
doAdd
,
doAdd
,
doUpdate
,
doUpdate
,
doDelete
doDelete
}
from
'@/api/equipment/sbxx.js'
;
}
from
'@/api/equipment/sbxx.js'
;
/* edit页面*/
/* edit页面*/
import
Edit
from
'./edit'
import
Edit
from
'./edit'
import
{
import
{
tableMixin
tableMixin
}
from
'common'
}
from
'common'
export
default
{
export
default
{
mixins
:
[
tableMixin
],
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
name
:
'appVersion'
,
/* 初始额外赋值*/
/* 初始额外赋值*/
async
mounted
()
{
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
},
data
()
{
data
()
{
return
{
return
{
options
:[
options
:
[{
{
label
:
"是"
,
value
:
"Y"
},
label
:
"是"
,
{
label
:
"否"
,
value
:
"N"
},
value
:
"Y"
],
},
/*需要的额外参数 */
{
showDialog
:
false
,
label
:
"否"
,
DialogName
:
''
,
value
:
"N"
type
:
''
,
},
DialogTitle
:
''
,
],
/* 基础url*/
/*需要的额外参数 */
baseUrl
:
'/aqgl/sbgl/sbxx'
,
showDialog
:
false
,
/* 查询参数*/
DialogName
:
''
,
queryParams
:
{
type
:
''
,
dabh
:
''
,
DialogTitle
:
''
,
sbxx
:
''
,
/* 基础url*/
doc
:
''
,
baseUrl
:
'/aqgl/sbgl/sbxx'
,
xtfl
:
"0"
,
/* 查询参数*/
gsid
:
""
queryParams
:
{
},
dabh
:
''
,
/* 表格标题对应参数*/
sbxx
:
''
,
tableTitle
:
[
doc
:
''
,
//gsid下拉
xtfl
:
"0"
,
{
label
:
"公司"
,
prop
:
"gsName"
,
fieldType
:
"ftString"
,
width
:
96
},
gsid
:
""
},
/* 表格标题对应参数*/
tableTitle
:
[
//gsid下拉
{
label
:
"公司"
,
prop
:
"gsName"
,
fieldType
:
"ftString"
,
width
:
96
},
//flid,下拉, aqgl/sbgl/sbfl/query
//flid,下拉, aqgl/sbgl/sbfl/query
{
label
:
"设备分类"
,
prop
:
"sbflName"
,
fieldType
:
"ftString"
,
width
:
96
},
{
{
label
:
"设备编号"
,
prop
:
"dabh"
,
fieldType
:
"ftString"
,
width
:
100
},
label
:
"设备分类"
,
{
label
:
"设备代码"
,
prop
:
"code"
,
fieldType
:
"ftString"
,
width
:
140
},
prop
:
"sbflName"
,
{
label
:
"设备名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
160
},
fieldType
:
"ftString"
,
{
label
:
"使用地点"
,
prop
:
"sydd"
,
fieldType
:
"ftString"
,
width
:
300
},
width
:
96
// {label: "系统分类", prop: "xtflName", fieldType: "ftString",width:48},
},
// {label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96},
{
{
label
:
"型号"
,
prop
:
"model"
,
fieldType
:
"ftString"
,
width
:
300
},
label
:
"设备编号"
,
{
label
:
"制造厂家"
,
prop
:
"productor"
,
fieldType
:
"ftString"
,
width
:
300
},
prop
:
"dabh"
,
{
label
:
"登记证编号"
,
prop
:
"serialno"
,
fieldType
:
"ftString"
,
width
:
300
},
fieldType
:
"ftString"
,
{
label
:
"制造日期"
,
prop
:
"ccrq"
,
fieldType
:
"ftDateTime"
},
width
:
100
// {label: "计量单位", prop: "jldw", fieldType: "ftString",width:120},
},
{
label
:
"启用日期"
,
prop
:
"qyrq"
,
fieldType
:
"ftDateTime"
},
{
{
label
:
"首次检验日期"
,
prop
:
"scjyrq"
,
fieldType
:
"ftDateTime"
},
label
:
"设备代码"
,
prop
:
"code"
,
fieldType
:
"ftString"
,
width
:
140
},
{
label
:
"设备名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"使用地点"
,
prop
:
"sydd"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "系统分类", prop: "xtflName", fieldType: "ftString",width:48},
// {label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96},
{
label
:
"型号"
,
prop
:
"model"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"制造厂家"
,
prop
:
"productor"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"登记证编号"
,
prop
:
"serialno"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"制造日期"
,
prop
:
"ccrq"
,
fieldType
:
"ftDateTime"
},
// {label: "计量单位", prop: "jldw", fieldType: "ftString",width:120},
{
label
:
"启用日期"
,
prop
:
"qyrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"首次检验日期"
,
prop
:
"scjyrq"
,
fieldType
:
"ftDateTime"
},
/* 不给修改*/
/* 不给修改*/
{
label
:
"下次检验日期"
,
prop
:
"xcjyrq"
,
fieldType
:
"ftDateTime"
},
{
{
label
:
"提前检验周期"
,
prop
:
"tqjyzq"
,
width
:
150
},
label
:
"下次检验日期"
,
prop
:
"xcjyrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"提前检验周期"
,
prop
:
"tqjyzq"
,
width
:
150
},
/* 新增*/
/* 新增*/
{
label
:
"提前检验日期"
,
prop
:
"tqjyrq"
,
fieldType
:
"ftDateTime"
},
{
{
label
:
"检验周期"
,
prop
:
"jyzq"
,
fieldType
:
"ftString"
},
label
:
"提前检验日期"
,
/* {label: "停用日期", prop: "tyrq", fieldType: "ftDateTime"}, */
prop
:
"tqjyrq"
,
{
label
:
"使用状态"
,
prop
:
"syzt"
,
fieldType
:
"ftString"
,
width
:
80
},
fieldType
:
"ftDateTime"
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
}
},
]
{
}
label
:
"检验周期"
,
},
prop
:
"jyzq"
,
methods
:
{
fieldType
:
"ftString"
},
/* 基础查询*/
/* {label: "停用日期", prop: "tyrq", fieldType: "ftDateTime"}, */
query
:
doQuery
,
{
/* 基础增*/
label
:
"使用状态"
,
apiAdd
:
doAdd
,
prop
:
"syzt"
,
/* 基础更新*/
fieldType
:
"ftString"
,
apiUpdate
:
doUpdate
,
width
:
80
/* 删除操作*/
},
apiDelete
:
doDelete
,
{
/* 初始化赋值操作*/
label
:
"备注"
,
init
()
{
prop
:
"bz"
,
fieldType
:
"ftString"
,
}
width
:
300
}
]
}
},
},
components
:
{
methods
:
{
Edit
,
jcwc
()
{
}
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
$confirm
(
'是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
}
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
this
.
app
.
singleItem
.
id
}
this
.
$post
(
'aqgl/sbgl/sbxx/check/complete'
,
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
}
else
{
this
.
$error
(
res
.
message
||
'操作失败'
)
}
})
})
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
Edit
,
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
...
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