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
4f8be43f
Commit
4f8be43f
authored
Jun 11, 2022
by
秦嘉
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
0e790d42
9e2fbebf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
244 additions
and
42 deletions
+244
-42
index.vue
src/components/Pagination/index.vue
+4
-0
header.vue
src/layout/components/header.vue
+2
-2
element-ui.scss
src/styles/element-ui.scss
+3
-2
ModelDetails.vue
src/views/productionInfo/ModelDetails.vue
+233
-37
badDefinition.vue
src/views/productionInfo/badDefinition.vue
+2
-1
No files found.
src/components/Pagination/index.vue
View file @
4f8be43f
...
@@ -103,6 +103,10 @@ export default {
...
@@ -103,6 +103,10 @@ export default {
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.pagination-container
{
.pagination-container
{
.el-pager
li
{
.el-pager
li
{
font-weight
:
initial
!
important
;
&
:hover
{
color
:
#D31B20
!
important
;
}
&
.active
{
&
.active
{
color
:
#D31B20
!
important
;
color
:
#D31B20
!
important
;
border
:
1px
solid
#D31B20
!
important
;
border
:
1px
solid
#D31B20
!
important
;
...
...
src/layout/components/header.vue
View file @
4f8be43f
...
@@ -219,8 +219,8 @@ export default {
...
@@ -219,8 +219,8 @@ export default {
color
:
white
;
color
:
white
;
cursor
:
pointer
;
cursor
:
pointer
;
position
:
absolute
;
position
:
absolute
;
right
:
-
2
0px
;
right
:
-
1
0px
;
top
:
25
px
;
top
:
17
px
;
font-size
:
12px
;
font-size
:
12px
;
}
}
}
}
...
...
src/styles/element-ui.scss
View file @
4f8be43f
...
@@ -320,8 +320,9 @@ body .el-table th.gutter{
...
@@ -320,8 +320,9 @@ body .el-table th.gutter{
.el-table
tr
td
:last-child
{
.el-table
tr
td
:last-child
{
border-right
:
0
!
important
;
border-right
:
0
!
important
;
}
}
.el-table
tr
:hover
>
td
{
background-color
:
#f3f3f3
!
important
}
// 折叠面板 样式修改
// 折叠面板 样式修改
.el-collapse
{
.el-collapse
{
.el-collapse-item__header
{
.el-collapse-item__header
{
...
...
src/views/productionInfo/ModelDetails.vue
View file @
4f8be43f
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
<el-table
<el-table
v-loading=
"loading"
v-loading=
"loading"
border
border
:key=
"tableNum"
style=
"padding-right: 10px;padding-left: 10px"
style=
"padding-right: 10px;padding-left: 10px"
:data=
"positionList"
:data=
"positionList"
>
>
...
@@ -90,7 +91,7 @@
...
@@ -90,7 +91,7 @@
size=
"mini"
size=
"mini"
type=
"primary"
type=
"primary"
style=
"margin-left: 10px"
style=
"margin-left: 10px"
@
click=
"
handleUpdateWork
(scope.row)"
@
click=
"
editPosition
(scope.row)"
>
修改工站
</el-link>
>
修改工站
</el-link>
<el-link
<el-link
size=
"mini"
size=
"mini"
...
@@ -99,10 +100,11 @@
...
@@ -99,10 +100,11 @@
@
click=
"handleConfigure(scope.row, scope)"
@
click=
"handleConfigure(scope.row, scope)"
>
配置物料
</el-link>
>
配置物料
</el-link>
<el-link
<el-link
v-if=
"scope.$index !== 0 || positionList.length === 1"
size=
"mini"
size=
"mini"
type=
"danger"
type=
"danger"
style=
"margin-left: 10px"
style=
"margin-left: 10px"
@
click=
"handleDelete(scope.row)"
@
click=
"handleDelete
Word
(scope.row)"
>
删除
</el-link>
>
删除
</el-link>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -110,7 +112,7 @@
...
@@ -110,7 +112,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
<!-- 添加工站-->
<!-- 添加工站-->
<el-dialog
:close-on-click-modal=
"false"
class=
"modelDialog"
:title=
"title"
:visible
.
sync=
"openPosition"
width=
"70%"
append-to-body
>
<el-dialog
:close-on-click-modal=
"false"
class=
"modelDialog"
:title=
"title"
:visible
.
sync=
"openPosition"
width=
"70%"
:append-to-body=
"false"
>
<el-form
ref=
"form"
:model=
"queryParams"
label-width=
"auto"
:inline=
"true"
>
<el-form
ref=
"form"
:model=
"queryParams"
label-width=
"auto"
:inline=
"true"
>
<el-form-item
label=
"工站名称"
prop=
"staName"
>
<el-form-item
label=
"工站名称"
prop=
"staName"
>
<div
slot=
"label"
>
<div
slot=
"label"
>
...
@@ -138,6 +140,7 @@
...
@@ -138,6 +140,7 @@
border
border
ref=
"table"
ref=
"table"
style=
"padding-right: 10px;padding-left: 10px;margin-top: 10px"
style=
"padding-right: 10px;padding-left: 10px;margin-top: 10px"
:header-row-class-name=
"cellClassWork"
:data=
"addPositionList"
:data=
"addPositionList"
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange"
@
select=
"handleSelection"
@
select=
"handleSelection"
...
@@ -187,8 +190,8 @@
...
@@ -187,8 +190,8 @@
<el-button
class=
"redBtn"
type=
"danger"
@
click=
"submitAddPosition"
>
确 定 Confirm
</el-button>
<el-button
class=
"redBtn"
type=
"danger"
@
click=
"submitAddPosition"
>
确 定 Confirm
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<!-- 选择成品料号-->
<!-- 选择成品料号
物料料号
-->
<el-dialog
:close-on-click-modal=
"false"
class=
"modelDialog"
:title=
"
'选择物料料号'"
:visible
.
sync=
"openPartNo"
width=
"70%"
append-to-body
>
<el-dialog
:close-on-click-modal=
"false"
class=
"modelDialog"
:title=
"
title"
:visible
.
sync=
"openPartNo"
width=
"70%"
:append-to-body=
"false"
>
<el-form
ref=
"form"
:model=
"queryParams"
label-width=
"auto"
:inline=
"true"
>
<el-form
ref=
"form"
:model=
"queryParams"
label-width=
"auto"
:inline=
"true"
>
<el-form-item
label=
"成品料号"
prop=
"materCode"
>
<el-form-item
label=
"成品料号"
prop=
"materCode"
>
<div
slot=
"label"
>
<div
slot=
"label"
>
...
@@ -215,6 +218,7 @@
...
@@ -215,6 +218,7 @@
v-loading=
"loadingCode"
v-loading=
"loadingCode"
border
border
ref=
"materTable"
ref=
"materTable"
:header-row-class-name=
"cellClassMater"
style=
"padding-right: 10px;padding-left: 10px;margin-top: 10px"
style=
"padding-right: 10px;padding-left: 10px;margin-top: 10px"
:data=
"selectPartNum"
:data=
"selectPartNum"
@
selection-change=
"handleSelectionChangeMaterial"
@
selection-change=
"handleSelectionChangeMaterial"
...
@@ -286,6 +290,7 @@
...
@@ -286,6 +290,7 @@
style=
"padding-right: 10px;padding-left: 10px;margin-top: 10px"
style=
"padding-right: 10px;padding-left: 10px;margin-top: 10px"
:data=
"configuringList"
:data=
"configuringList"
@
selection-change=
"handleSelectionMater"
@
selection-change=
"handleSelectionMater"
@
select=
"handleMater"
>
>
<el-table-column
v-if=
"materType === '2'"
type=
"selection"
width=
"50"
:selectable=
"materSelected"
/>
<el-table-column
v-if=
"materType === '2'"
type=
"selection"
width=
"50"
:selectable=
"materSelected"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
...
@@ -331,7 +336,7 @@
...
@@ -331,7 +336,7 @@
size=
"mini"
size=
"mini"
type=
"danger"
type=
"danger"
style=
"margin-left: 10px"
style=
"margin-left: 10px"
@
click=
"handleDelete(scope.row)"
@
click=
"handleDelete
Mater
(scope.row)"
>
删除
</el-link>
>
删除
</el-link>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -368,10 +373,14 @@ export default {
...
@@ -368,10 +373,14 @@ export default {
disposeMaterialId
:
''
,
disposeMaterialId
:
''
,
// 添加工站表格数据
// 添加工站表格数据
addPositionList
:
[],
addPositionList
:
[],
// 替代选中工站表格数据
// 替代选中工站表格数据
分页多选
addPositionListOne
:
[],
addPositionListOne
:
[],
// 多选临时数据
addPositionMapOne
:
{},
// 物料多选数据
// 物料多选数据
addMaterialList
:
[],
addMaterialList
:
[],
// 多选临时数据 物料
addMaterialMap
:
[],
// 选择成品表格料号数据
// 选择成品表格料号数据
selectPartNum
:
[],
selectPartNum
:
[],
// 配置物料表格数据
// 配置物料表格数据
...
@@ -421,13 +430,37 @@ export default {
...
@@ -421,13 +430,37 @@ export default {
// 1为第一条表格数据 2为其他数据
// 1为第一条表格数据 2为其他数据
materType
:
''
,
materType
:
''
,
// 配置物料临时保存数据
// 配置物料临时保存数据
addMaterList
:
[]
addMaterList
:
[],
// 其他工站已选择物料id集合
selectListId
:
[],
// 已选工站id
selectWordId
:
[],
// 记录当选选择工站已选物料
trueId
:
[],
// 1新增工站, 2修改工站
workType
:
''
}
}
},
},
watch
:
{
watch
:
{
positionList
(
val
)
{
positionList
(
val
)
{
if
(
val
.
length
>
0
)
{
if
(
val
.
length
>
0
)
{
// 第一工站选择物料集合
this
.
firstTableData
=
val
[
0
].
nltModelStationMaters
this
.
firstTableData
=
val
[
0
].
nltModelStationMaters
// 其他工站已选择物料id集合
this
.
selectListId
=
[]
val
.
forEach
((
item
,
index
)
=>
{
if
(
index
!==
0
)
{
item
.
nltModelStationMaters
.
forEach
(
item1
=>
{
this
.
selectListId
.
push
(
item1
.
businessId
)
})
}
})
console
.
log
(
this
.
selectListId
,
'this.selectListId'
)
// 已选工站已id集合
this
.
selectWordId
=
[]
val
.
forEach
(
item
=>
{
this
.
selectWordId
.
push
(
item
.
businessId
)
})
}
}
}
}
},
},
...
@@ -440,6 +473,22 @@ export default {
...
@@ -440,6 +473,22 @@ export default {
aaa
()
{
aaa
()
{
console
.
log
(
this
.
configuringList
,
'configuringList'
)
console
.
log
(
this
.
configuringList
,
'configuringList'
)
},
},
// 工单表样式
cellClassMater
(
row
)
{
if
(
this
.
type
===
'3'
)
{
return
'disabledSelection'
}
else
{
return
''
}
},
// 工站表样式
cellClassWork
(
row
)
{
if
(
this
.
workType
===
'2'
)
{
return
'disabledSelection'
}
else
{
return
''
}
},
listData
()
{
listData
()
{
const
params
=
{
const
params
=
{
dictType
:
'modelType'
,
dictType
:
'modelType'
,
...
@@ -481,6 +530,7 @@ export default {
...
@@ -481,6 +530,7 @@ export default {
this
.
openPartNo
=
true
this
.
openPartNo
=
true
this
.
title
=
'选择成品料号'
this
.
title
=
'选择成品料号'
this
.
type
=
'3'
this
.
type
=
'3'
this
.
addMaterialMap
=
{}
this
.
partNum
()
this
.
partNum
()
},
},
choiceOne
(
row
)
{
choiceOne
(
row
)
{
...
@@ -493,6 +543,7 @@ export default {
...
@@ -493,6 +543,7 @@ export default {
}
}
this
.
openPartNo
=
true
this
.
openPartNo
=
true
this
.
title
=
'选择物料料号'
this
.
title
=
'选择物料料号'
this
.
addMaterialMap
=
{}
this
.
partNum
()
this
.
partNum
()
},
},
// 成品料号表格获取
// 成品料号表格获取
...
@@ -502,6 +553,15 @@ export default {
...
@@ -502,6 +553,15 @@ export default {
this
.
selectPartNum
=
res
.
rows
this
.
selectPartNum
=
res
.
rows
this
.
total
=
res
.
total
this
.
total
=
res
.
total
this
.
loadingCode
=
false
this
.
loadingCode
=
false
if
(
this
.
type
===
'1'
||
this
.
type
===
'2'
)
{
this
.
selectPartNum
.
forEach
(
item
=>
{
if
(
this
.
addMaterialMap
[
item
.
businessId
])
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
materTable
.
toggleRowSelection
(
item
)
})
}
})
}
if
(
this
.
type
===
'1'
)
{
if
(
this
.
type
===
'1'
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
replaceMaterialList
.
forEach
(
item
=>
{
this
.
replaceMaterialList
.
forEach
(
item
=>
{
...
@@ -539,28 +599,84 @@ export default {
...
@@ -539,28 +599,84 @@ export default {
},
},
// 添加工站弹窗
// 添加工站弹窗
addPosition
()
{
addPosition
()
{
this
.
workType
=
'1'
this
.
openPosition
=
true
this
.
openPosition
=
true
this
.
title
=
'添加工站'
this
.
title
=
'添加工站'
this
.
addPositionMapOne
=
{}
this
.
getStaTable
()
},
// 修改工站弹窗
editPosition
(
row
)
{
this
.
workType
=
'2'
this
.
disposeMaterialId
=
row
.
businessId
this
.
openPosition
=
true
this
.
title
=
'修改工站'
this
.
addPositionMapOne
=
{}
this
.
getStaTable
()
this
.
getStaTable
()
},
},
/** 查询工站表方法 **/
/** 查询工站表方法 **/
getStaTable
()
{
getStaTable
()
{
this
.
loadingPosition
=
true
this
.
loadingPosition
=
true
listStation
(
this
.
queryParams
).
then
(
response
=>
{
let
str
=
''
if
(
this
.
selectWordId
.
length
>
0
)
{
str
=
this
.
selectWordId
.
join
(
','
)
}
else
{
str
=
''
}
let
params
=
{}
params
=
{
...
this
.
queryParams
,
businessIdList
:
str
}
listStation
(
params
).
then
(
response
=>
{
this
.
addPositionList
=
response
.
rows
this
.
addPositionList
=
response
.
rows
this
.
total
=
response
.
total
this
.
total
=
response
.
total
this
.
loadingPosition
=
false
this
.
loadingPosition
=
false
if
(
this
.
workType
===
'1'
)
{
this
.
addPositionList
.
forEach
(
item
=>
{
if
(
this
.
addPositionMapOne
[
item
.
businessId
])
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
table
.
toggleRowSelection
(
item
)
})
}
})
}
})
})
},
},
// 工站选择框
// 工站选择框
handleSelectionChange
(
data
)
{
handleSelectionChange
(
data
)
{
this
.
addPositionListOne
=
data
if
(
this
.
workType
===
'1'
)
{
if
(
data
.
length
===
0
)
{
this
.
addPositionList
.
forEach
(
item
=>
{
delete
this
.
addPositionMapOne
[
item
.
businessId
]
})
}
// 勾选数据 添加
data
.
forEach
(
item
=>
{
this
.
addPositionMapOne
[
item
.
businessId
]
=
item
})
// 获取所有分页勾选的数据
this
.
addPositionListOne
=
[]
for
(
const
key
in
this
.
addPositionMapOne
)
{
this
.
addPositionListOne
.
push
(
this
.
addPositionMapOne
[
key
])
}
}
if
(
this
.
workType
===
'2'
)
{
this
.
addPositionListOne
=
data
}
},
},
// 禁用
// 禁用
handleSelection
(
selection
,
val
)
{
handleSelection
(
selection
,
row
)
{
if
(
selection
.
length
>
1
)
{
if
(
this
.
workType
===
'1'
)
{
const
del_row
=
selection
.
shift
()
if
(
!
selection
.
some
(
item
=>
item
.
businessId
===
row
.
businessId
))
{
this
.
$refs
.
table
.
toggleRowSelection
(
del_row
,
false
)
//
delete
this
.
addPositionMapOne
[
row
.
businessId
]
}
}
if
(
this
.
workType
===
'2'
)
{
if
(
selection
.
length
>
1
)
{
const
del_row
=
selection
.
shift
()
this
.
$refs
.
table
.
toggleRowSelection
(
del_row
,
false
)
//
}
}
}
},
},
positionSelected
(
row
)
{
positionSelected
(
row
)
{
...
@@ -579,11 +695,32 @@ export default {
...
@@ -579,11 +695,32 @@ export default {
},
},
// 配置物料选择框
// 配置物料选择框
handleSelectionChangeMaterial
(
data
)
{
handleSelectionChangeMaterial
(
data
)
{
this
.
addMaterialList
=
data
if
(
this
.
type
!==
'3'
)
{
if
(
data
.
length
===
0
)
{
this
.
selectPartNum
.
forEach
(
item
=>
{
delete
this
.
addMaterialMap
[
item
.
businessId
]
})
}
// 勾选数据 添加
data
.
forEach
(
item
=>
{
this
.
addMaterialMap
[
item
.
businessId
]
=
item
})
// 获取所有分页勾选的数据
this
.
addMaterialList
=
[]
for
(
const
key
in
this
.
addMaterialMap
)
{
this
.
addMaterialList
.
push
(
this
.
addMaterialMap
[
key
])
}
}
else
{
this
.
addMaterialList
=
data
}
},
},
// 禁用
// 禁用
handleSelectionMaterial
(
selection
)
{
handleSelectionMaterial
(
selection
,
row
)
{
if
(
this
.
type
===
'3'
)
{
if
(
this
.
type
!==
'3'
)
{
if
(
!
selection
.
some
(
item
=>
item
.
businessId
===
row
.
businessId
))
{
delete
this
.
addMaterialMap
[
row
.
businessId
]
}
}
else
{
if
(
selection
.
length
>
1
)
{
if
(
selection
.
length
>
1
)
{
const
del_row
=
selection
.
shift
()
const
del_row
=
selection
.
shift
()
this
.
$refs
.
materTable
.
toggleRowSelection
(
del_row
,
false
)
//
this
.
$refs
.
materTable
.
toggleRowSelection
(
del_row
,
false
)
//
...
@@ -619,9 +756,31 @@ export default {
...
@@ -619,9 +756,31 @@ export default {
handleSelectionMater
(
data
)
{
handleSelectionMater
(
data
)
{
this
.
addMaterList
=
data
this
.
addMaterList
=
data
},
},
// 物料禁用
// 禁用
handleMater
(
selection
)
{
},
// 物料禁用 筛选出其他已选择
materSelected
(
row
)
{
materSelected
(
row
)
{
return
true
let
flag
=
true
// 判断如果为自己所选则不禁用
// 开始判断
if
(
this
.
selectListId
.
length
===
0
)
{
return
true
}
else
{
for
(
let
i
=
0
;
this
.
selectListId
.
length
>
i
;
i
++
)
{
if
(
this
.
selectListId
[
i
]
===
row
.
businessId
)
{
flag
=
false
continue
}
}
for
(
let
i
=
0
;
this
.
trueId
.
length
>
i
;
i
++
)
{
if
(
this
.
trueId
[
i
]
===
row
.
businessId
)
{
flag
=
true
continue
}
}
return
flag
}
},
},
// 工站查询按钮
// 工站查询按钮
queryPosition
()
{
queryPosition
()
{
...
@@ -633,16 +792,22 @@ export default {
...
@@ -633,16 +792,22 @@ export default {
this
.
queryParams
.
staName
=
undefined
this
.
queryParams
.
staName
=
undefined
this
.
getStaTable
()
this
.
getStaTable
()
},
},
// 修改工站 不修改配置项
handleUpdateWork
()
{},
// 打开配置物料
// 打开配置物料
handleConfigure
(
row
,
index
)
{
handleConfigure
(
row
,
index
)
{
console
.
log
(
row
,
'row'
)
this
.
disposeMaterialId
=
row
.
businessId
this
.
openConfiguring
=
true
if
(
index
.
$index
===
0
)
{
if
(
index
.
$index
===
0
)
{
this
.
materType
=
'1'
this
.
materType
=
'1'
this
.
configuringList
=
row
.
nltModelStationMaters
}
else
{
}
else
{
this
.
materType
=
'2'
this
.
materType
=
'2'
// 把第一站数据赋值
this
.
configuringList
=
this
.
firstTableData
this
.
configuringList
=
this
.
firstTableData
// 获取当前站已选物料
this
.
trueId
=
[]
row
.
nltModelStationMaters
.
forEach
(
item
=>
{
this
.
trueId
.
push
(
item
.
businessId
)
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
row
.
nltModelStationMaters
.
forEach
(
item
=>
{
row
.
nltModelStationMaters
.
forEach
(
item
=>
{
this
.
configuringList
.
forEach
(
item1
=>
{
this
.
configuringList
.
forEach
(
item1
=>
{
...
@@ -653,14 +818,21 @@ export default {
...
@@ -653,14 +818,21 @@ export default {
})
})
})
})
}
}
this
.
title
=
'配置物料'
this
.
disposeMaterialId
=
row
.
staId
this
.
openConfiguring
=
true
this
.
tableNum
++
this
.
tableNum
++
},
},
// 删除物料
handleDeleteMater
(
row
)
{
let
list
=
[]
list
=
this
.
selectListId
.
filter
(
item
=>
item
===
row
.
businessId
)
if
(
list
.
length
>
0
)
{
this
.
$message
.
error
(
'该物料已被其他工站选用'
)
}
else
{
this
.
configuringList
=
this
.
configuringList
.
filter
(
item
=>
item
.
businessId
!==
row
.
businessId
)
}
},
// 删除工站
// 删除工站
handleDelete
(
row
)
{
handleDelete
Word
(
row
)
{
this
.
positionList
=
this
.
positionList
.
filter
(
item
=>
item
.
businessId
!==
row
.
businessId
)
},
},
// 返回模型页面
// 返回模型页面
cancelPosition
()
{
cancelPosition
()
{
...
@@ -694,12 +866,27 @@ export default {
...
@@ -694,12 +866,27 @@ export default {
// 确定关闭添加工站弹窗
// 确定关闭添加工站弹窗
submitAddPosition
()
{
submitAddPosition
()
{
this
.
openPosition
=
false
this
.
openPosition
=
false
this
.
addPositionListOne
.
forEach
(
item
=>
{
if
(
this
.
workType
===
'1'
)
{
item
.
nltModelStationMaters
=
[]
this
.
addPositionListOne
.
forEach
(
item
=>
{
item
.
staId
=
item
.
businessId
item
.
nltModelStationMaters
=
[]
this
.
positionList
.
push
(
item
)
item
.
staId
=
item
.
businessId
})
this
.
positionList
.
push
(
item
)
console
.
log
(
this
.
positionList
,
'this.positionList'
)
})
}
else
if
(
this
.
workType
===
'2'
)
{
let
list
=
[]
list
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
positionList
))
this
.
positionList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
businessId
===
this
.
disposeMaterialId
)
{
const
data
=
{
...
item
,
...
this
.
addPositionListOne
[
0
]
}
list
[
index
]
=
data
this
.
positionList
=
list
this
.
tableNum
++
}
})
}
},
},
// 关闭选择成品料号弹窗
// 关闭选择成品料号弹窗
cancelChoicePart
()
{
cancelChoicePart
()
{
...
@@ -726,6 +913,7 @@ export default {
...
@@ -726,6 +913,7 @@ export default {
item
.
nltModelStationMaterAlters
=
[]
item
.
nltModelStationMaterAlters
=
[]
this
.
configuringList
.
push
(
item
)
this
.
configuringList
.
push
(
item
)
})
})
this
.
tableNum
++
}
else
if
(
this
.
type
===
'3'
)
{
}
else
if
(
this
.
type
===
'3'
)
{
console
.
log
(
this
.
addMaterialList
[
0
],
'this.addMaterialList[0]'
)
console
.
log
(
this
.
addMaterialList
[
0
],
'this.addMaterialList[0]'
)
this
.
form
.
modelCode
=
this
.
addMaterialList
[
0
].
materCode
this
.
form
.
modelCode
=
this
.
addMaterialList
[
0
].
materCode
...
@@ -740,18 +928,22 @@ export default {
...
@@ -740,18 +928,22 @@ export default {
// 确定关闭配置物料窗口
// 确定关闭配置物料窗口
submitConfiguring
()
{
submitConfiguring
()
{
if
(
this
.
materType
===
'1'
)
{
if
(
this
.
materType
===
'1'
)
{
this
.
positionList
.
forEach
(
item
=>
{
const
list
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
positionList
))
if
(
item
.
staId
===
this
.
disposeMaterialId
)
{
list
.
forEach
(
item
=>
{
if
(
item
.
businessId
===
this
.
disposeMaterialId
)
{
item
.
nltModelStationMaters
=
this
.
configuringList
item
.
nltModelStationMaters
=
this
.
configuringList
}
}
})
})
this
.
positionList
=
list
this
.
openConfiguring
=
false
this
.
openConfiguring
=
false
}
else
{
}
else
{
this
.
positionList
.
forEach
(
item
=>
{
const
list
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
positionList
))
if
(
item
.
staId
===
this
.
disposeMaterialId
)
{
list
.
forEach
(
item
=>
{
if
(
item
.
businessId
===
this
.
disposeMaterialId
)
{
item
.
nltModelStationMaters
=
this
.
addMaterList
item
.
nltModelStationMaters
=
this
.
addMaterList
}
}
})
})
this
.
positionList
=
list
this
.
openConfiguring
=
false
this
.
openConfiguring
=
false
}
}
}
}
...
@@ -761,6 +953,10 @@ export default {
...
@@ -761,6 +953,10 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.model_details
{
.model_details
{
::v-deep
.el-table
.disabledSelection
.cell
.el-checkbox__inner
{
display
:
none
;
position
:
relative
;
}
font-size
:
18px
;
font-size
:
18px
;
.placeholder
{
.placeholder
{
height
:
14px
;
height
:
14px
;
...
...
src/views/productionInfo/badDefinition.vue
View file @
4f8be43f
...
@@ -568,6 +568,7 @@ export default {
...
@@ -568,6 +568,7 @@ export default {
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
const
nowDate
=
this
.
dateFor
(
new
Date
().
getTime
())
const
queryParams
=
{
const
queryParams
=
{
rejectCode
:
this
.
queryParams
.
rejectCode
,
rejectCode
:
this
.
queryParams
.
rejectCode
,
rejectDescription
:
this
.
queryParams
.
rejectDescription
rejectDescription
:
this
.
queryParams
.
rejectDescription
...
@@ -583,7 +584,7 @@ export default {
...
@@ -583,7 +584,7 @@ export default {
const
downloadElement
=
document
.
createElement
(
'a'
)
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
downloadElement
.
href
=
href
downloadElement
.
href
=
href
downloadElement
.
download
=
'不良定义信息'
+
'.xls'
// 下载后文件名
downloadElement
.
download
=
'不良定义信息'
+
nowDate
+
'.xls'
// 下载后文件名
document
.
body
.
appendChild
(
downloadElement
)
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
click
()
// 点击下载
downloadElement
.
click
()
// 点击下载
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
...
...
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