Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
3807f686
Commit
3807f686
authored
Mar 31, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单报价
parent
4b8c76f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
176 additions
and
173 deletions
+176
-173
index.vue
pages/order/monitoring/index.vue
+171
-170
index.vue
pages/order/quotation/index.vue
+5
-3
No files found.
pages/order/monitoring/index.vue
View file @
3807f686
...
...
@@ -33,14 +33,14 @@
</div>
</template>
<
script
>
import
Api
from
'./api'
import
Suspend
from
'./suspend'
import
Record
from
'./record'
import
Search
from
'./search'
import
Speed
from
'./speed'
import
Api
from
"./api"
;
import
Suspend
from
"./suspend"
;
import
Record
from
"./record"
;
import
Search
from
"./search"
;
import
Speed
from
"./speed"
;
export
default
{
name
:
'index'
,
name
:
"index"
,
components
:
{
Record
,
Search
,
...
...
@@ -53,67 +53,68 @@ export default {
SpeedModal
:
false
,
rowSuspend
:
{},
recordId
:
0
,
laster
:
0
,
action
:
Api
.
index
,
easySearch
:
{
keys
:
{
op
:
'mesCode'
,
value
:
null
},
productingpreparationpeople
:
{
op
:
'Equal'
,
value
:
null
}
keys
:
{
op
:
"mesCode"
,
value
:
null
},
productingpreparationpeople
:
{
op
:
"Equal"
,
value
:
null
}
},
suspendModal
:
false
,
recordModal
:
false
,
deletelModal
:
false
,
curId
:
0
,
columns
:
[
{
key
:
'id'
,
title
:
this
.
l
(
'id'
),
hide
:
true
,
align
:
'left'
},
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
{
key
:
'status'
,
title
:
this
.
l
(
'status'
),
code
:
'plan.order.status'
,
align
:
'center'
,
key
:
"status"
,
title
:
this
.
l
(
"status"
),
code
:
"plan.order.status"
,
align
:
"center"
,
easy
:
true
,
high
:
true
},
{
key
:
'mesCode'
,
title
:
this
.
l
(
'mesCode'
),
align
:
'left'
,
key
:
"mesCode"
,
title
:
this
.
l
(
"mesCode"
),
align
:
"left"
,
width
:
230
,
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
[
return
h
(
"div"
,
[
params
.
row
.
mesCode
,
[
h
(
'Poptip'
,
"Poptip"
,
{
props
:
{
content
:
'开工预警:'
+
params
.
row
.
startWarning
+
'条'
,
trigger
:
'hover'
content
:
"开工预警:"
+
params
.
row
.
startWarning
+
"条"
,
trigger
:
"hover"
},
style
:
{
cursor
:
'pointer'
cursor
:
"pointer"
}
},
[
h
(
params
.
row
.
startWarning
>
0
?
'Badge'
:
''
,
params
.
row
.
startWarning
>
0
?
"Badge"
:
""
,
{
props
:
{
type
:
'warning'
,
type
:
"warning"
,
// count: 2,
count
:
params
.
row
.
startWarning
},
style
:
{
marginTop
:
'12px'
,
marginLeft
:
'5px'
marginTop
:
"12px"
,
marginLeft
:
"5px"
}
},
[
h
(
'Icon'
,
{
h
(
"Icon"
,
{
props
:
{
type
:
'md-alert'
type
:
"md-alert"
},
style
:
{
fontSize
:
'16px'
,
color
:
'#f1cb08'
fontSize
:
"16px"
,
color
:
"#f1cb08"
}
})
]
...
...
@@ -121,36 +122,36 @@ export default {
]
),
h
(
'Poptip'
,
"Poptip"
,
{
props
:
{
content
:
'完工预警:'
+
params
.
row
.
finishWarning
+
'条'
,
trigger
:
'hover'
content
:
"完工预警:"
+
params
.
row
.
finishWarning
+
"条"
,
trigger
:
"hover"
}
},
[
h
(
params
.
row
.
finishWarning
>
0
?
'Badge'
:
''
,
params
.
row
.
finishWarning
>
0
?
"Badge"
:
""
,
{
props
:
{
type
:
'info'
,
type
:
"info"
,
// count: 2,
count
:
params
.
row
.
finishWarning
},
style
:
{
marginTop
:
'12px'
,
marginLeft
:
'5px'
marginTop
:
"12px"
,
marginLeft
:
"5px"
}
},
[
h
(
'Icon'
,
{
h
(
"Icon"
,
{
props
:
{
type
:
'md-alert'
type
:
"md-alert"
},
style
:
{
fontSize
:
'16px'
,
color
:
'#31F8E6'
,
marginLeft
:
'5px'
fontSize
:
"16px"
,
color
:
"#31F8E6"
,
marginLeft
:
"5px"
}
})
]
...
...
@@ -158,111 +159,111 @@ export default {
]
)
]
])
])
;
}
},
{
key
:
'productName'
,
title
:
this
.
l
(
'productName'
),
align
:
'left'
,
key
:
"productName"
,
title
:
this
.
l
(
"productName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
width
:
130
},
{
key
:
'demandStartDate'
,
title
:
this
.
l
(
'demandStartDate'
),
align
:
'center'
,
key
:
"demandStartDate"
,
title
:
this
.
l
(
"demandStartDate"
),
align
:
"center"
,
high
:
true
,
width
:
130
,
render
:
(
h
,
params
)
=>
{
return
h
(
'span'
,
this
.
sliceStr
(
params
.
row
.
demandStartDate
+
' '
,
0
,
10
),
"span"
,
this
.
sliceStr
(
params
.
row
.
demandStartDate
+
" "
,
0
,
10
),
params
.
row
.
demandStartDate
)
)
;
}
},
{
key
:
'demandFinishDate'
,
title
:
this
.
l
(
'demandFinishDate'
),
align
:
'center'
,
key
:
"demandFinishDate"
,
title
:
this
.
l
(
"demandFinishDate"
),
align
:
"center"
,
high
:
true
,
width
:
130
,
render
:
(
h
,
params
)
=>
{
return
h
(
'span'
,
this
.
sliceStr
(
params
.
row
.
demandFinishDate
+
' '
,
0
,
10
),
"span"
,
this
.
sliceStr
(
params
.
row
.
demandFinishDate
+
" "
,
0
,
10
),
params
.
row
.
demandFinishDate
)
)
;
}
},
{
key
:
'actualStartDate'
,
title
:
this
.
l
(
'actualStartDate'
),
align
:
'center'
,
key
:
"actualStartDate"
,
title
:
this
.
l
(
"actualStartDate"
),
align
:
"center"
,
high
:
true
,
width
:
150
,
render
:
(
h
,
params
)
=>
{
return
h
(
'span'
,
"span"
,
// this.sliceStr(params.row.actualStartDate + ' ', 0, 10),
params
.
row
.
actualStartDate
==
'0001-01-01 00:00:00'
?
''
params
.
row
.
actualStartDate
==
"0001-01-01 00:00:00"
?
""
:
params
.
row
.
actualStartDate
)
)
;
}
},
{
key
:
'actualFinishDate'
,
title
:
this
.
l
(
'actualFinishDate'
),
align
:
'center'
,
key
:
"actualFinishDate"
,
title
:
this
.
l
(
"actualFinishDate"
),
align
:
"center"
,
high
:
true
,
width
:
150
,
render
:
(
h
,
params
)
=>
{
return
h
(
'span'
,
"span"
,
// this.sliceStr(params.row.actualFinishDate + ' ', 0, 10),
params
.
row
.
actualFinishDate
==
'0001-01-01 00:00:00'
?
''
params
.
row
.
actualFinishDate
==
"0001-01-01 00:00:00"
?
""
:
params
.
row
.
actualFinishDate
)
)
;
}
},
{
key
:
'routingType'
,
title
:
this
.
l
(
'routingType'
),
align
:
'left'
,
code
:
'mes_xingchi_plan.order_material.routingType'
,
key
:
"routingType"
,
title
:
this
.
l
(
"routingType"
),
align
:
"left"
,
code
:
"mes_xingchi_plan.order_material.routingType"
,
easy
:
true
,
high
:
true
},
{
title
:
this
.
l
(
'jindu'
),
key
:
'action'
,
title
:
this
.
l
(
"jindu"
),
key
:
"action"
,
width
:
200
,
align
:
'center'
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
[
return
h
(
"div"
,
[
h
(
'ButtonGroup'
,
"ButtonGroup"
,
{
props
:
{
shape
:
'circle'
shape
:
"circle"
}
},
[
h
(
'Button'
,
"Button"
,
{
style
:
{
background
:
'#e4e6ed '
,
borderColor
:
'#e4e6ed '
background
:
"#e4e6ed "
,
borderColor
:
"#e4e6ed "
},
on
:
{
click
:
()
=>
{
this
.
speed
(
params
.
row
)
this
.
speed
(
params
.
row
)
;
}
}
},
...
...
@@ -270,15 +271,15 @@ export default {
params
.
row
.
unstartCount
//未开工数
),
h
(
'Button'
,
"Button"
,
{
style
:
{
background
:
'#ffc000'
,
borderColor
:
'#ffc000'
background
:
"#ffc000"
,
borderColor
:
"#ffc000"
},
on
:
{
click
:
()
=>
{
this
.
speed
(
params
.
row
)
this
.
speed
(
params
.
row
)
;
}
}
},
...
...
@@ -286,17 +287,17 @@ export default {
params
.
row
.
startCount
//开工数
),
h
(
'Button'
,
"Button"
,
{
style
:
{
background
:
'#ff7a8b'
,
borderColor
:
'#ff7a8b'
background
:
"#ff7a8b"
,
borderColor
:
"#ff7a8b"
},
on
:
{
click
:
()
=>
{
this
.
speed
(
params
.
row
)
this
.
speed
(
params
.
row
)
;
}
}
},
...
...
@@ -304,16 +305,16 @@ export default {
params
.
row
.
stopCount
//暂停数
),
h
(
'Button'
,
"Button"
,
{
style
:
{
background
:
'#27c149'
,
borderColor
:
'#27c149'
background
:
"#27c149"
,
borderColor
:
"#27c149"
// color: '#fff'
},
on
:
{
click
:
()
=>
{
this
.
speed
(
params
.
row
)
this
.
speed
(
params
.
row
)
;
}
}
},
...
...
@@ -322,176 +323,176 @@ export default {
)
]
)
])
])
;
}
},
{
key
:
'remark'
,
title
:
this
.
l
(
'remark'
),
align
:
'left'
,
key
:
"remark"
,
title
:
this
.
l
(
"remark"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
title
:
'暂停记录'
,
key
:
'id'
,
title
:
"暂停记录"
,
key
:
"id"
,
width
:
140
,
align
:
'center'
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
{
class
:
'action'
},
[
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
'op'
,
"op"
,
{
attrs
:
{
oprate
:
'record'
,
class
:
'edit'
},
attrs
:
{
oprate
:
"record"
,
class
:
"edit"
},
on
:
{
click
:
()
=>
this
.
record
(
params
.
row
.
id
)
}
},
'暂停记录'
"暂停记录"
)
])
])
;
}
},
{
title
:
'操作'
,
key
:
'id'
,
title
:
"操作"
,
key
:
"id"
,
width
:
100
,
align
:
'center'
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
{
class
:
'action'
},
[
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
params
.
row
.
status
==
5
?
'Button'
:
''
,
//订单状态暂停,启动
params
.
row
.
status
==
5
?
"Button"
:
""
,
//订单状态暂停,启动
{
props
:
{
type
:
'error'
,
size
:
'small'
,
icon
:
'md-play'
,
type
:
"error"
,
size
:
"small"
,
icon
:
"md-play"
,
ghost
:
true
},
style
:
{
fontSize
:
'18px'
,
width
:
'50px'
,
height
:
'25px'
,
paddingTop
:
'0'
fontSize
:
"18px"
,
width
:
"50px"
,
height
:
"25px"
,
paddingTop
:
"0"
},
on
:
{
click
:
()
=>
{
this
.
start
(
params
.
row
)
this
.
start
(
params
.
row
)
;
}
}
},
''
""
),
h
(
params
.
row
.
status
==
6
?
'Button'
:
''
,
//订单状态执行中,暂停
params
.
row
.
status
==
6
?
"Button"
:
""
,
//订单状态执行中,暂停
{
props
:
{
type
:
'default'
,
size
:
'small'
,
icon
:
'ios-pause'
,
type
:
"default"
,
size
:
"small"
,
icon
:
"ios-pause"
,
ghost
:
true
},
style
:
{
fontSize
:
'18px'
,
width
:
'50px'
,
height
:
'25px'
,
paddingTop
:
'0'
fontSize
:
"18px"
,
width
:
"50px"
,
height
:
"25px"
,
paddingTop
:
"0"
},
on
:
{
click
:
()
=>
{
this
.
suspend
(
params
.
row
)
this
.
suspend
(
params
.
row
)
;
}
}
},
''
""
)
])
])
;
}
}
]
}
}
;
},
mounted
()
{},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
)
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
)
;
},
record
(
id
)
{
this
.
recordModal
=
true
this
.
recordId
=
id
this
.
recordModal
=
true
;
this
.
recordId
=
id
;
},
speed
(
row
)
{
this
.
SpeedModal
=
true
this
.
SpeedModal
=
true
;
Api
.
info
({
routingHeaderId
:
row
.
routingHeaderId
,
dispatchExecuteId
:
row
.
dispatchExecuteId
}).
then
(
(
r
)
=>
{
}).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
result
=
r
.
result
this
.
result
=
r
.
result
;
}
})
})
;
},
suspendOk
()
{
this
.
suspendModal
=
false
this
.
$refs
.
grid
.
load
()
this
.
suspendModal
=
false
;
this
.
$refs
.
grid
.
load
()
;
// this.curId = 0
},
start
(
row
)
{
console
.
log
(
JSON
.
parse
(
localStorage
.
getItem
(
'userInfo'
)))
this
.
laster
=
this
.
$store
.
state
.
userInfo
.
login_id
;
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'<p>确定要启动,是否继续?</p>'
,
title
:
"提示"
,
content
:
"<p>确定要启动,是否继续?</p>"
,
onOk
:
()
=>
{
Api
.
start
({
id
:
row
.
id
,
status
:
6
,
laster
:
this
.
$store
.
state
.
userInfo
.
login_id
}).
then
(
(
r
)
=>
{
laster
:
this
.
laster
}).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
()
this
.
$Message
.
success
(
'启动成功'
)
this
.
$refs
.
grid
.
load
()
;
this
.
$Message
.
success
(
"启动成功"
);
}
})
})
;
// this.suspendModal = true
// this.curId = id
},
onCancel
:
()
=>
{
this
.
$Message
.
info
(
'已取消'
)
this
.
$Message
.
info
(
"已取消"
);
}
})
})
;
},
suspend
(
row
)
{
console
.
log
(
row
)
this
.
suspendModal
=
true
this
.
rowSuspend
=
row
this
.
$refs
.
addBug
.
getEid
()
console
.
log
(
row
)
;
this
.
suspendModal
=
true
;
this
.
rowSuspend
=
row
;
this
.
$refs
.
addBug
.
getEid
()
;
},
removeOk
()
{
Api
.
delete
({
id
:
this
.
curId
}).
then
(
(
r
)
=>
{
Api
.
delete
({
id
:
this
.
curId
}).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
()
this
.
deletelModal
=
false
this
.
$Message
.
success
(
'删除成功'
)
this
.
$refs
.
grid
.
load
()
;
this
.
deletelModal
=
false
;
this
.
$Message
.
success
(
"删除成功"
);
}
})
})
;
},
//截取字符串
sliceStr
(
str
,
lenS
,
lenE
)
{
return
str
.
slice
(
lenS
,
lenE
)
return
str
.
slice
(
lenS
,
lenE
)
;
},
cancel
()
{
this
.
curId
=
0
this
.
suspendModal
=
false
this
.
curId
=
0
;
this
.
suspendModal
=
false
;
},
l
(
key
)
{
let
vkey
=
'mes_order_watch'
+
'.'
+
key
return
this
.
$t
(
vkey
)
||
key
let
vkey
=
"mes_order_watch"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
}
}
}
}
;
</
script
>
<
style
lang=
"less"
>
.ivu-btn-group > .ivu-btn {
...
...
pages/order/quotation/index.vue
View file @
3807f686
...
...
@@ -145,7 +145,7 @@ import PhotosensitiveDetails from "./components/photosensitiveDetails.vue"; //
import
MetalQuotationGeneration
from
"./components/metalQuotationGeneration.vue"
;
//生成报价单弹框
import
PhotosensitiveGeneration
from
"./components/photosensitiveGeneration.vue"
;
//生成报价单弹框
var
userId
=
this
.
$store
.
state
.
userInfo
.
userId
;
export
default
{
components
:
{
DrawerSet
,
...
...
@@ -164,6 +164,7 @@ export default {
zPhotosensitive
:
{
result
:
[]
},
userId
:
0
,
model1
:
""
,
rows
:
{},
modalDai
:
false
,
//待审核
...
...
@@ -638,8 +639,9 @@ export default {
},
//报价状态
statusData
(
row
)
{
this
.
userId
=
this
.
$store
.
state
.
userInfo
.
userId
;
if
(
row
.
status
===
2
)
{
if
(
row
.
auditUser
==
userId
)
{
if
(
row
.
auditUser
==
this
.
userId
)
{
//待审核
this
.
modalDai
=
true
;
this
.
rows
=
{};
...
...
@@ -648,7 +650,7 @@ export default {
this
.
$Message
.
error
(
"您不是当前数据处理的指定人员"
);
}
}
else
if
(
row
.
status
===
1
)
{
if
(
row
.
creatorUserId
==
userId
)
{
if
(
row
.
creatorUserId
==
this
.
userId
)
{
//待送审
this
.
modalSong
=
true
;
this
.
rows
=
{};
...
...
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