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
57a13dc9
Commit
57a13dc9
authored
Jun 11, 2022
by
zhangyichen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单完成
parent
d9d2d050
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
258 additions
and
46 deletions
+258
-46
productionInfo.js
src/api/productionInfo.js
+41
-2
workOrder.vue
src/views/ProductionProcess/workOrder.vue
+10
-1
ModelDetails.vue
src/views/productionInfo/ModelDetails.vue
+192
-42
ProductionModel.vue
src/views/productionInfo/ProductionModel.vue
+15
-1
No files found.
src/api/productionInfo.js
View file @
57a13dc9
// 不良定义api
// 不良定义api
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
import
Qs
from
'qs'
//
分页查询列表
//
新增
export
function
nltmodelAdd
(
data
)
{
export
function
nltmodelAdd
(
data
)
{
return
request
({
return
request
({
url
:
'/nltmodel/add'
,
url
:
'/nltmodel/add'
,
...
@@ -12,3 +12,42 @@ export function nltmodelAdd(data) {
...
@@ -12,3 +12,42 @@ export function nltmodelAdd(data) {
}
}
})
})
}
}
// 编辑
export
function
nltmodelUpdate
(
data
)
{
return
request
({
url
:
'/nltmodel/update'
,
method
:
'put'
,
data
,
headers
:
{
'Content-Type'
:
'application/json'
}
})
}
// 查看详情
export
function
nltmodelDetail
(
data
)
{
return
request
({
url
:
'/nltmodel/detail/'
+
data
.
businessId
,
method
:
'get'
})
}
// 工单查看详情
export
function
nltordermodelDetail
(
data
)
{
return
request
({
url
:
'/nltordermodel/detail/'
+
data
.
businessId
,
method
:
'get'
})
}
// 工单编辑
// 编辑
export
function
nltordermodelUpdate
(
data
)
{
return
request
({
url
:
'/nltordermodel/update'
,
method
:
'put'
,
data
,
headers
:
{
'Content-Type'
:
'application/json'
}
})
}
src/views/ProductionProcess/workOrder.vue
View file @
57a13dc9
...
@@ -482,7 +482,16 @@ export default {
...
@@ -482,7 +482,16 @@ export default {
})
})
},
},
/** 编辑按钮方法 */
/** 编辑按钮方法 */
handleUpdate
()
{},
handleUpdate
(
row
)
{
console
.
log
(
row
,
'row'
)
this
.
$router
.
push
({
path
:
'/ProductionProcess/ModelDetails'
,
query
:
{
businessId
:
row
.
businessId
,
type
:
'2'
}
})
},
/** 对话框关闭按钮方法 */
/** 对话框关闭按钮方法 */
cancel
()
{
cancel
()
{
this
.
open
=
false
this
.
open
=
false
...
...
src/views/productionInfo/ModelDetails.vue
View file @
57a13dc9
This diff is collapsed.
Click to expand it.
src/views/productionInfo/ProductionModel.vue
View file @
57a13dc9
...
@@ -208,7 +208,21 @@ export default {
...
@@ -208,7 +208,21 @@ export default {
handleAdd
()
{
handleAdd
()
{
this
.
title
=
'生产模型信息'
this
.
title
=
'生产模型信息'
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'/productionInfo/ModelDetails'
name
:
'/productionInfo/ModelDetails'
,
query
:
{
type
:
'3'
}
})
},
// 修改生产模型
handleUpdate
(
row
)
{
console
.
log
(
row
,
'row'
)
this
.
$router
.
push
({
path
:
'/productionInfo/ModelDetails'
,
query
:
{
businessId
:
row
.
businessId
,
type
:
'1'
}
})
})
}
}
}
}
...
...
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