Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
Project
Project
Details
Activity
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
ximai
mes-pad
Commits
949416b0
Commit
949416b0
authored
Mar 02, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增生产工单字段
parent
e29b2c6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
14 deletions
+78
-14
http.api.js
common/http.api.js
+5
-1
index.vue
pages/mes/prodReport/index.vue
+73
-13
No files found.
common/http.api.js
View file @
949416b0
...
@@ -127,7 +127,11 @@ const install = (Vue, vm) => {
...
@@ -127,7 +127,11 @@ const install = (Vue, vm) => {
getM2mOrderPackageList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
getM2mOrderPackageList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/index/getM2mOrderPackageList'
,
params
),
'/mobile/index/getM2mOrderPackageList'
,
params
),
logout
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/login/logout'
,
params
),
//查看生产工单
getWorkorder
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/pro/workorder/list'
,
params
),
logout
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/login/logout'
,
params
),
authInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/authInfo'
,
params
),
authInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/authInfo'
,
params
),
menuTree
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/menuTree'
,
params
),
menuTree
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/menuTree'
,
params
),
switchSys
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/switch/'
+
params
.
sysCode
),
switchSys
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/switch/'
+
params
.
sysCode
),
...
...
pages/mes/prodReport/index.vue
View file @
949416b0
...
@@ -110,6 +110,20 @@
...
@@ -110,6 +110,20 @@
</u-form-item>
</u-form-item>
</u-col>
</u-col>
</u-row>
</u-row>
<u-row>
<u-col
span=
"6"
>
<u-form-item
label=
"编排单号"
prop=
"quantity"
>
<u-input
v-model=
"feedback.arrangeCode"
></u-input>
</u-form-item>
</u-col>
<u-col
span=
"6"
>
<u-form-item
label=
"生产工单"
prop=
"workorderId"
>
<!--
<u-input
v-model=
"feedback.nickName"
@
change=
""
></u-input>
-->
<!--
<uni-data-select
:localdata=
"reasonList"
@
change=
"changeReason"
></uni-data-select>
-->
<uni-data-select
:localdata=
"feedback.workorderList"
@
change=
"workorderSelect($event, feedback)"
></uni-data-select>
</u-form-item>
</u-col>
</u-row>
<u-row>
<u-row>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
<u-form-item
label=
"合格品数量"
prop=
"quantityQualify"
>
<u-form-item
label=
"合格品数量"
prop=
"quantityQualify"
>
...
@@ -124,6 +138,13 @@
...
@@ -124,6 +138,13 @@
</u-form-item>
</u-form-item>
</u-col>
</u-col>
</u-row>
</u-row>
<u-row>
<u-col
span=
"6"
>
<u-form-item
label=
"打印"
prop=
"printName"
>
<u-input
v-model=
"feedback.printName"
></u-input>
</u-form-item>
</u-col>
</u-row>
</u-form>
</u-form>
</view>
</view>
</u-modal>
</u-modal>
...
@@ -154,15 +175,24 @@
...
@@ -154,15 +175,24 @@
<u-modal
title=
"暂停原因"
@
confirm=
"stopReasonSubmit()"
show-cancel-button
<u-modal
title=
"暂停原因"
@
confirm=
"stopReasonSubmit()"
show-cancel-button
:title-style=
"
{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '37px','padding-top': '0px'}"
:title-style=
"
{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '37px','padding-top': '0px'}"
v-model="stopReasonVisible" width="1300rpx">
v-model="stopReasonVisible" width="1300rpx">
<u-form
label-width=
"100px"
:model=
"feedback"
:rules=
"rules"
>
<view>
<u-form-item
label=
"暂停原因"
prop=
"quantity"
>
<u-form
label-width=
"120px"
:model=
"feedback"
:rules=
"rules"
>
<uni-data-select
:localdata=
"exception"
@
change=
"stopReas"
></uni-data-select>
<u-form-item
label=
"暂停原因"
prop=
"quantity"
>
</u-form-item>
<uni-data-select
:localdata=
"exception"
@
change=
"stopReas"
></uni-data-select>
<u-form-item
label=
"暂停描述"
prop=
"nickName"
>
</u-form-item>
<!--
<u-input
type=
"textarea"
height=
"150"
:border=
"true"
v-model=
"stopReason"
></u-input>
-->
<u-form-item
label=
"暂停描述"
prop=
"nickName"
>
<uni-data-select
:localdata=
"reasonList"
@
change=
"changeReason"
></uni-data-select>
<uni-data-select
:localdata=
"reasonList"
@
change=
"changeReason"
></uni-data-select>
</u-form-item>
</u-form-item>
</u-form>
</u-form>
<!--
<uni-forms
:modelValue=
"feedback"
label-width=
"120px"
>
<uni-forms-item
label=
"暂停原因"
name=
"quantity"
>
<uni-data-select
:localdata=
"exception"
@
change=
"stopReas"
></uni-data-select>
</uni-forms-item>
<uni-forms-item
label=
"暂停描述"
name=
"nickName"
>
<uni-data-select
:localdata=
"reasonList"
@
change=
"changeReason"
></uni-data-select>
</uni-forms-item>
</uni-forms>
-->
</view>
</u-modal>
</u-modal>
...
@@ -171,10 +201,10 @@
...
@@ -171,10 +201,10 @@
:title-style=
"
{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '60px','padding-top': '0px'}"
:title-style=
"
{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '60px','padding-top': '0px'}"
v-model="aopen" width="1300rpx">
v-model="aopen" width="1300rpx">
<u-form
label-width=
"90px"
:rules=
"rules"
>
<u-form
label-width=
"90px"
:rules=
"rules"
>
<
!--
<
u-form-item
label=
"异常时间"
prop=
"abnormalTime"
>
<u-form-item
label=
"异常时间"
prop=
"abnormalTime"
>
<u-input
:border=
"true"
v-model=
"ExceptionForms.abnormalTime"
></u-input
>
<!--
<u-input
:border=
"true"
v-model=
"ExceptionForms.abnormalTime"
></u-input>
--
>
<uni-datetime-picker
class=
"times"
type=
"date"
:clear-icon=
"false"
v-model=
"ExceptionForms.abnormalTime"
/>
<uni-datetime-picker
class=
"times"
type=
"date"
:clear-icon=
"false"
v-model=
"ExceptionForms.abnormalTime"
/>
</u-form-item>
-->
</u-form-item>
<u-row>
<u-row>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
...
@@ -652,6 +682,7 @@ export default {
...
@@ -652,6 +682,7 @@ export default {
viewSopPicture
:
[],
viewSopPicture
:
[],
viewSop
:
[],
viewSop
:
[],
reasonList
:
[],
reasonList
:
[],
workorderList
:
[],
materialUsageRecordList
:
[],
materialUsageRecordList
:
[],
materialusagerecordLoading
:
false
,
materialusagerecordLoading
:
false
,
issusLineList
:
[],
issusLineList
:
[],
...
@@ -946,6 +977,14 @@ export default {
...
@@ -946,6 +977,14 @@ export default {
changeReason
(
abnormalReason
)
{
changeReason
(
abnormalReason
)
{
this
.
ExceptionForms
.
abnormalReason
=
abnormalReason
this
.
ExceptionForms
.
abnormalReason
=
abnormalReason
},
},
workorderSelect
(
id
,
row
)
{
console
.
log
(
id
,
row
)
const
items
=
row
.
workorderList
.
find
(
item
=>
item
.
value
===
id
)
console
.
log
(
items
,
'items'
)
row
.
workorderCode
=
items
.
text
row
.
printName
=
items
.
text
},
stopReas
(
abnormalType
)
{
stopReas
(
abnormalType
)
{
this
.
ExceptionForms
.
abnormalType
=
abnormalType
this
.
ExceptionForms
.
abnormalType
=
abnormalType
// 查询原因
// 查询原因
...
@@ -962,6 +1001,22 @@ export default {
...
@@ -962,6 +1001,22 @@ export default {
})
})
})
})
},
},
stopWorkorder
(
item
)
{
// 查询原因
this
.
$u
.
api
.
getWorkorder
({
pageNum
:
1
,
pageSize
:
10
,
arrangeCode
:
item
.
arrangeCode
}).
then
(
res
=>
{
item
.
workorderList
=
res
.
rows
.
map
(
item
=>
{
return
{
value
:
item
.
workorderId
,
text
:
item
.
workorderCode
}
})
})
},
getTaskList
()
{
getTaskList
()
{
this
.
form
=
{}
this
.
form
=
{}
const
t
=
this
;
const
t
=
this
;
...
@@ -1072,11 +1127,16 @@ export default {
...
@@ -1072,11 +1127,16 @@ export default {
quantity
:
item
.
quantity
,
quantity
:
item
.
quantity
,
quantityQualify
:
0
,
quantityQualify
:
0
,
quantityUnqualify
:
0
,
quantityUnqualify
:
0
,
nickName
:
this
.
vuex_user
.
nickName
printName
:
item
.
arrangeCode
,
nickName
:
this
.
vuex_user
.
nicfeedbackkName
,
workorderList
:
[]
}
}
this
.
stopWorkorder
(
feedback
)
this
.
feedbackForms
.
push
(
feedback
)
this
.
feedbackForms
.
push
(
feedback
)
})
})
this
.
open
=
true
;
this
.
open
=
true
;
},
},
doException
()
{
doException
()
{
...
...
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