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
9838e398
Commit
9838e398
authored
Jun 13, 2022
by
zhangyichen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
7af404a0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
14 deletions
+49
-14
model.js
src/api/model.js
+12
-0
ModelDetails.vue
src/views/productionInfo/ModelDetails.vue
+9
-3
ProductionModel.vue
src/views/productionInfo/ProductionModel.vue
+28
-11
No files found.
src/api/model.js
View file @
9838e398
// 生产模型api
import
request
from
'@/utils/request'
import
Qs
from
'qs'
// 分页查询列表
export
function
listModel
(
query
)
{
...
...
@@ -35,3 +36,14 @@ export function queryNltIfsMaterialCopyByPagination(query) {
params
:
query
})
}
// 修改生产模型状态
export
function
updateStatus
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/nltmodel/updateStatus/'
+
businessId
,
method
:
'put'
,
data
})
}
src/views/productionInfo/ModelDetails.vue
View file @
9838e398
...
...
@@ -1000,9 +1000,15 @@ export default {
},
// 返回模型页面
cancelPosition
()
{
if
(
this
.
htmlType
===
'2'
)
{
this
.
$router
.
push
({
name
:
'/ProductionProcess/workOrder'
})
}
else
{
this
.
$router
.
push
({
name
:
'/productionInfo/ProductionModel'
})
}
},
// 确定返回模型页面
submitPosition
()
{
...
...
src/views/productionInfo/ProductionModel.vue
View file @
9838e398
...
...
@@ -108,7 +108,7 @@
</el-table-column>
<el-table-column
align=
"center"
width=
"
3
00"
width=
"
2
00"
class-name=
"small-padding fixed-width"
>
<
template
slot=
"header"
>
...
...
@@ -122,12 +122,6 @@
style=
"margin-left: 10px"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-link>
<el-link
size=
"mini"
type=
"danger"
style=
"margin-left: 10px"
@
click=
"handleCopy(scope.row)"
>
复制
</el-link>
<el-link
size=
"mini"
type=
"danger"
...
...
@@ -136,10 +130,10 @@
>
删除
</el-link>
<el-link
size=
"mini"
type=
"
danger
"
type=
"
success
"
style=
"margin-left: 10px"
@
click=
"handle
QueryInfo
(scope.row)"
>
详情
</el-link>
@
click=
"handle
Copy
(scope.row)"
>
复制
</el-link>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -236,7 +230,7 @@
</template>
<
script
>
import
{
listModel
,
deleteLogicalId
,
queryCopyNltModels
,
queryNltIfsMaterialCopyByPagination
}
from
'@/api/model'
import
{
listModel
,
deleteLogicalId
,
queryCopyNltModels
,
queryNltIfsMaterialCopyByPagination
,
updateStatus
}
from
'@/api/model'
export
default
{
name
:
'ProductionModel'
,
data
()
{
...
...
@@ -271,6 +265,29 @@ export default {
this
.
getList
()
},
methods
:
{
handleStatusChange
(
row
)
{
const
params
=
{
businessId
:
row
.
businessId
,
flag
:
row
.
flag
}
this
.
$confirm
(
'确定'
+
(
row
.
flag
===
'1'
?
'启用'
:
'停用'
)
+
'该生产模型?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
updateStatus
(
params
).
then
(
res
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'修改成功!'
})
this
.
getList
()
}).
catch
(
_
=>
{
row
.
flag
=
row
.
flag
===
'1'
?
'0'
:
'1'
})
}).
catch
(()
=>
{
row
.
flag
=
row
.
flag
===
'1'
?
'0'
:
'1'
})
},
// 确定关闭选择成品料号弹窗
submitChoicePart
()
{
if
(
this
.
addMaterialList
.
length
<
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