Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
1c9faebf
Commit
1c9faebf
authored
Jun 07, 2022
by
11528
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不良定义和生产模型
parent
1585c671
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
836 additions
and
101 deletions
+836
-101
badDefinition.js
src/api/badDefinition.js
+24
-1
ModelDetails.vue
src/views/productionInfo/ModelDetails.vue
+383
-0
ProductionModel.vue
src/views/productionInfo/ProductionModel.vue
+271
-4
badDefinition.vue
src/views/productionInfo/badDefinition.vue
+158
-96
No files found.
src/api/badDefinition.js
View file @
1c9faebf
...
...
@@ -70,9 +70,32 @@ export function addBad(data) {
// 导出不良定义
export
function
exportBad
(
query
)
{
return
request
({
url
:
'/nltdisadvantage/export'
,
url
:
'/nltdisadvantage/export
DisAvd
'
,
method
:
'get'
,
params
:
query
,
responseType
:
'blob'
})
}
// 不良定义excel导入
export
function
importDisAvd
(
data
)
{
return
request
({
url
:
'/nltdisadvantage/importDisAvd'
,
method
:
'post'
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
transformRequest
:
[(
data
)
=>
{
return
data
}],
data
})
}
// 下载不良导入模板
export
function
exportDisAvdTemplate
(
params
)
{
return
request
({
url
:
'/nltdisadvantage/exportDisAvdTemplate'
,
method
:
'get'
,
responseType
:
'blob'
,
params
})
}
src/views/productionInfo/ModelDetails.vue
0 → 100644
View file @
1c9faebf
This diff is collapsed.
Click to expand it.
src/views/productionInfo/ProductionModel.vue
View file @
1c9faebf
<
template
>
<div>
生产模型
</div>
<div
class=
"product_model"
>
<div
class=
"modelSearch"
style=
"border-bottom: 14px solid #f4f4f4"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
class=
"formClass"
:model=
"queryParams"
:inline=
"true"
label-width=
"auto"
>
<el-form-item
label=
"成品料号"
prop=
"partNo"
>
<div
slot=
"label"
class=
"labelClass"
>
<div>
成品料号
</div>
<div>
Part No.
</div>
</div>
<el-input
v-model=
"queryParams.partNo"
placeholder=
"请输入成品料号"
clearable
:maxlength=
"30"
size=
"small"
style=
"width: 200px"
/>
</el-form-item>
<el-form-item
label=
"模型类型"
prop=
"modelType"
>
<div
slot=
"label"
class=
"labelClass"
>
<div>
模型类型
</div>
<div>
Model Type
</div>
</div>
<el-input
v-model=
"queryParams.modelType"
placeholder=
"请选择模型类型"
clearable
:maxlength=
"200"
size=
"small"
style=
"width: 200px"
/>
</el-form-item>
<el-form-item>
<el-button
class=
"redBtn"
type=
"danger"
size=
"small"
@
click=
"handleQuery"
>
查询 Query
</el-button>
<el-button
class=
"resetBtn"
size=
"small"
@
click=
"resetQuery"
>
重置 Reset
</el-button>
</el-form-item>
</el-form>
</div>
<div>
<el-row
:gutter=
"20"
>
<!--生产模型数据-->
<el-col
:span=
"24"
:xs=
"24"
>
<div
style=
"float: right;margin: 10px"
>
<el-button
class=
"redBtn"
type=
"danger"
size=
"small"
@
click=
"handleAdd"
>
新增 Add
</el-button>
</div>
<el-table
v-loading=
"loading"
border
style=
"padding-right: 10px;padding-left: 10px"
:data=
"modelList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
<el-table-column
align=
"center"
prop=
"partNo"
width=
"200"
:show-overflow-tooltip=
"true"
>
<template
slot=
"header"
>
<div>
成品料号
</div>
<div>
Part No.
</div>
</
template
>
<
template
v-slot:default=
"scope"
>
{{
scope
.
row
.
partNo
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"modelType"
:show-overflow-tooltip=
"true"
>
<
template
slot=
"header"
>
<div>
模型类型
</div>
<div>
Model Type
</div>
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
modelType
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
width=
"200"
prop=
"createTime"
:show-overflow-tooltip=
"true"
>
<
template
slot=
"header"
>
<div>
创建时间
</div>
<div>
Build Time
</div>
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createTime
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
width=
"200"
prop=
"operator"
:show-overflow-tooltip=
"true"
>
<
template
slot=
"header"
>
<div>
操作人
</div>
<div>
Operator
</div>
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
operator
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
width=
"100"
prop=
"flag"
>
<
template
slot=
"header"
>
<div>
状态
</div>
<div>
State
</div>
</
template
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.flag"
class=
"switchDisabledStyle"
inactive-value=
"0"
active-value=
"1"
@
click
.
native=
"handleStatusChange(scope.row)"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
width=
"300"
class-name=
"small-padding fixed-width"
>
<
template
slot=
"header"
>
<div>
操作
</div>
<div>
Operation
</div>
</
template
>
<
template
slot-scope=
"scope"
>
<el-link
size=
"mini"
type=
"primary"
style=
"margin-left: 10px"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-link>
<el-link
size=
"mini"
type=
"danger"
style=
"margin-left: 10px"
@
click=
"handleDelete(scope.row)"
>
复制
</el-link>
<el-link
size=
"mini"
type=
"danger"
style=
"margin-left: 10px"
@
click=
"handleDelete(scope.row)"
>
删除
</el-link>
<el-link
size=
"mini"
type=
"danger"
style=
"margin-left: 10px"
@
click=
"handleDelete(scope.row)"
>
详情
</el-link>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
:limit
.
sync=
"queryParams.rows"
@
pagination=
"getList"
/>
</el-col>
</el-row>
</div>
</div>
</template>
<
script
>
export
default
{
name
:
'ProductionModel'
name
:
'ProductionModel'
,
data
()
{
return
{
loading
:
false
,
modelList
:
[],
total
:
0
,
queryParams
:
{
page
:
1
,
rows
:
10
,
modelType
:
undefined
,
partNo
:
undefined
},
// 新增模型弹窗
openModel
:
false
,
// 添加工站弹窗
openPosition
:
false
,
title
:
''
}
},
created
()
{
this
.
getList
()
},
methods
:
{
/** 列表获取 */
getList
()
{
console
.
log
(
'查询成功'
)
},
/** 查询按钮操作 */
handleQuery
()
{
this
.
queryParams
.
page
=
1
this
.
getList
()
},
resetQuery
()
{
this
.
queryParams
.
rows
=
10
this
.
queryParams
.
page
=
1
this
.
queryParams
.
modelType
=
undefined
this
.
queryParams
.
partNo
=
undefined
this
.
handleQuery
()
},
/* 新增按钮操作 */
handleAdd
()
{
this
.
title
=
'生产模型信息'
this
.
$router
.
push
({
name
:
'/productionInfo/ModelDetails'
})
}
}
}
</
script
>
<
style
scoped
>
<
style
lang=
"scss"
scoped
>
.product_model
{
font-size
:
18px
;
.placeholder
{
height
:
14px
;
background-color
:
#F4F4F4
}
.modelSearch
{
.el-form-item--small
.el-form-item__label
{
line-height
:
17px
;
}
.labelClass
{
text-align
:
center
;
}
}
.formClass
{
}
.el-form-item__label-wrap
{
margin-left
:
0
!
important
;
}
}
</
style
>
<
style
lang=
"scss"
>
.product_model
{
.modelSearch
{
.el-form-item--small
.el-form-item__label
{
line-height
:
17px
;
}
.labelClass
{
text-align
:
center
;
}
}
.el-table
th
.cell
{
display
:
inline-block
!
important
;
}
.formClass
{
}
.el-form-item__label-wrap
{
margin-left
:
0
!
important
;
}
}
.modelDialog
{
.labelHeight
{
.el-form-item__label
{
height
:
40px
;
}
}
.el-form-item--small
.el-form-item__label
{
line-height
:
17px
;
}
.el-table
th
.cell
{
display
:
inline-block
!
important
;
}
.labelName
{
display
:
flex
;
justify-content
:
end
;
}
.labelClass
{
position
:
relative
;
right
:
13px
;
text-align
:
center
;
}
.labelClassRequired
{
text-align
:
center
;
position
:
relative
;
bottom
:
17px
;
right
:
13px
;
}
}
</
style
>
src/views/productionInfo/badDefinition.vue
View file @
1c9faebf
This diff is collapsed.
Click to expand it.
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