Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhongtong-avi-web
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
中通客车项目
zhongtong-avi-web
Commits
2e2bc042
Commit
2e2bc042
authored
Oct 21, 2019
by
李志鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fea(化验室): 酸洗化验室功能联调
parent
f640a56d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
197 additions
and
4 deletions
+197
-4
index.js
config/index.js
+2
-2
AddReport.vue
src/views/Laboratory/Pickling/components/AddReport.vue
+184
-0
list.vue
src/views/Laboratory/Pickling/list.vue
+11
-2
No files found.
config/index.js
View file @
2e2bc042
...
@@ -13,8 +13,8 @@ module.exports = {
...
@@ -13,8 +13,8 @@ module.exports = {
// 代理后端服务器
// 代理后端服务器
proxyTable
:
{
proxyTable
:
{
'/host'
:
{
'/host'
:
{
//
target: 'http://10.100.172.150:9108', //设置你调用的接口域名和端口号 别忘了加http
target
:
'http://10.100.172.150:9108'
,
//设置你调用的接口域名和端口号 别忘了加http
target
:
'http://192.168.43.244:8888'
,
// 东伟服务器地址
//
target: 'http://192.168.43.244:8888',// 东伟服务器地址
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
'^/host'
:
''
//这里理解成用‘/host’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可
'^/host'
:
''
//这里理解成用‘/host’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可
...
...
src/views/Laboratory/Pickling/components/AddReport.vue
0 → 100644
View file @
2e2bc042
<
template
>
<el-dialog
title=
"新增报告"
:visible
.
sync=
"dialogToggle"
:show-close=
"false"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
width=
"1200px"
>
<div
style=
"padding-bottom: 10px"
>
<el-button
size=
"small"
type=
"primary"
>
新增检测项
</el-button>
</div>
<!-- 点检模板表格 -->
<el-table
style=
"width: 80%; margin-bottom: 10px"
:data=
"checkTemplate"
tooltip-effect=
"dark"
stripe
border
>
<el-table-column
label=
"序号"
width=
"60px"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
id
}}
</
template
>
</el-table-column>
<el-table-column
label=
"版本状态/Rev"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
rev
}}
</
template
>
</el-table-column>
<el-table-column
label=
"记录编号/Sheet No."
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
sheetNo
}}
</
template
>
</el-table-column>
<el-table-column
label=
"流水码/No."
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
no
}}
</
template
>
</el-table-column>
<el-table-column
label=
"化验员"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createBy
}}
</
template
>
</el-table-column>
<el-table-column
label=
"检测日期"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
{{
formatTime
(
scope
.
row
.
createTime
,
'YYYY-MM-DD'
)
}}
</
template
>
</el-table-column>
</el-table>
<!-- 点检项表格 -->
<el-table
style=
"width: 100%"
:data=
"checkItem"
tooltip-effect=
"dark"
stripe
border
>
<el-table-column
label=
"序号"
>
<
template
slot-scope=
"scope"
>
<el-input-number
style=
"width: 100%"
v-model=
"scope.row.orderNum"
controls-position=
"right"
size=
"small"
>
</el-input-number>
</
template
>
</el-table-column>
<el-table-column
label=
"检测项目"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
name
}}
</
template
>
</el-table-column>
<el-table-column
label=
"检测指标"
>
<
template
slot-scope=
"scope"
>
<el-input-number
style=
"width: 100%"
v-model=
"scope.row.checkResult"
controls-position=
"right"
:precision=
"2"
size=
"small"
>
</el-input-number>
</
template
>
</el-table-column>
<el-table-column
label=
"控制范围"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
rangeAll
}}
</
template
>
</el-table-column>
<el-table-column
label=
"频次"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
frequency
}}
</
template
>
</el-table-column>
<el-table-column
label=
"取样时间"
>
<
template
slot-scope=
"scope"
>
<el-date-picker
style=
"width: 100%"
v-model=
"scope.row.createTime"
type=
"date"
size=
"small"
placeholder=
"请选择取样时间"
>
</el-date-picker>
</
template
>
</el-table-column>
</el-table>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
:loading=
"loadingToggle"
size=
"small"
type=
"primary"
icon=
"el-icon-check"
>
确认
</el-button>
<el-button
size=
"small"
icon=
"el-icon-close"
@
click=
"doCancelClick()"
>
取消
</el-button>
</span>
</el-dialog>
</template>
<
script
>
import
Moment
from
'moment'
export
default
{
watch
:
{
dialogToggle
(
newVal
,
oldVal
)
{
// 查询酸洗检测模板
this
.
getCheckByPickling
()
}
},
data
()
{
return
{
// 数据提交状态开关标识
loadingToggle
:
false
,
// 对话框开关标识
dialogToggle
:
false
,
// 模板数据
checkTemplate
:
[],
// 模板项数据
checkItem
:
[
{
orderNum
:
1
,
name
:
'游离碱FAL'
,
checkResult
:
'1'
,
rangeAll
:
'2-10'
,
frequency
:
'班/次'
,
createTime
:
''
}
]
}
},
methods
:
{
// 时间日期格式化
formatTime
(
time
,
format
)
{
return
Moment
(
time
).
format
(
format
)
},
// 查询酸洗检测模板
getCheckByPickling
()
{
let
queryParams
=
{
type
:
'PICKLING'
}
this
.
$fetch
(
'daily-check-controller/getCheckByType-get'
,
queryParams
).
then
(
response
=>
{
this
.
checkTemplate
.
push
(
_
.
cloneDeep
(
response
.
checkModel
))
// this.checkItem = _.cloneDeep(response.checkItem)
})
},
// 点击取消按钮
doCancelClick
()
{
this
.
dialogToggle
=
false
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
\ No newline at end of file
src/views/Laboratory/Pickling/list.vue
View file @
2e2bc042
...
@@ -48,18 +48,25 @@
...
@@ -48,18 +48,25 @@
</Table>
</Table>
</div>
</div>
</div>
</div>
<!-- 新增报告 -->
<AddReport
ref=
"AddReport"
>
</AddReport>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Table
from
'@/components/Table'
import
Table
from
'@/components/Table'
import
Search
from
'@/components/Search'
import
Search
from
'@/components/Search'
import
AddReport
from
'./components/AddReport'
export
default
{
export
default
{
name
:
'Pickling'
,
name
:
'Pickling'
,
components
:
{
components
:
{
Table
,
Table
,
Search
Search
,
AddReport
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -118,7 +125,9 @@
...
@@ -118,7 +125,9 @@
this
.
getCheckRecordList
()
this
.
getCheckRecordList
()
},
},
// 点击新增报告按钮
// 点击新增报告按钮
doAddClick
()
{},
doAddClick
()
{
this
.
$refs
.
AddReport
.
dialogToggle
=
true
},
// 获取设备点检记录列表
// 获取设备点检记录列表
getCheckRecordList
()
{
getCheckRecordList
()
{
let
queryParams
=
{
let
queryParams
=
{
...
...
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