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
6c041c9c
Commit
6c041c9c
authored
Jun 20, 2022
by
秦嘉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
b068b800
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
workOrder.js
src/api/workOrder.js
+3
-4
workOrder.vue
src/views/ProductionProcess/workOrder.vue
+16
-2
No files found.
src/api/workOrder.js
View file @
6c041c9c
...
...
@@ -28,11 +28,10 @@ export function getOrder(orderID) {
}
// 查询工单单表2
export
function
getOrder1
(
query
)
{
export
function
getOrder1
(
orderID
)
{
return
request
({
url
:
'/nltifsorder/detail1'
,
method
:
'get'
,
params
:
query
url
:
'/nltifsorder/detail1/'
+
orderID
,
method
:
'get'
})
}
...
...
src/views/ProductionProcess/workOrder.vue
View file @
6c041c9c
...
...
@@ -61,6 +61,7 @@
v-loading=
"Loading"
:data=
"orderList"
border
:row-class-name=
"tableRowClassName"
>
<el-table-column
type=
"index"
...
...
@@ -149,13 +150,14 @@
</
template
>
<
template
slot-scope=
"scope"
>
<el-link
v-if=
"scope.row.isModel != '1'"
size=
"mini"
type=
"success"
style=
"margin-left: 10px"
@
click=
"handleDetail(scope.row)"
>
详情
</el-link>
<el-link
v-if=
"scope.row.status === 1"
v-if=
"scope.row.status === 1
&& scope.row.isModel != '1'
"
size=
"mini"
type=
"primary"
style=
"margin-left: 10px"
...
...
@@ -563,7 +565,7 @@ export default {
this
.
open
=
true
getOrder
(
row
.
businessId
).
then
(
response
=>
{
if
(
response
.
data
===
null
)
{
getOrder1
(
{
businessId
:
row
.
businessId
}
).
then
(
response1
=>
{
getOrder1
(
row
.
businessId
).
then
(
response1
=>
{
this
.
form
=
response1
.
data
this
.
Loading4
=
false
})
...
...
@@ -723,6 +725,15 @@ export default {
this
.
total
=
response
.
total
this
.
Loading
=
false
})
},
/**
* 表格颜色变化
*/
tableRowClassName
({
row
,
rowIndex
})
{
console
.
log
(
row
,
'表格数据'
)
if
(
row
.
isModel
===
'1'
)
{
return
'warning-row'
}
}
}
}
...
...
@@ -748,6 +759,9 @@ export default {
.el-table
th
.cell
{
display
:
inline-block
!
important
;
}
.el-table
.warning-row
{
background
:
yellow
;
}
.table-drop
{
vertical-align
:
2px
;
line-height
:
20px
;
...
...
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