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
395d968b
Commit
395d968b
authored
Nov 23, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问题清单
parent
44e79501
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
13 deletions
+24
-13
editFeeding.vue
pages/mes/prodReport/components/editFeeding.vue
+17
-11
index.vue
pages/mes/prodReport/index.vue
+7
-2
No files found.
pages/mes/prodReport/components/editFeeding.vue
View file @
395d968b
...
...
@@ -40,7 +40,7 @@
<uni-pagination
:show-icon=
"true"
style=
"margin-top: 10rpx;"
v-if=
"total"
:total=
"total"
:current=
"queryParams.pageNum"
:pageSize=
"queryParams.pageSize"
@
change=
"handlePage"
/>
</u-modal>
<!-- 添加或修改生产报工记录对话框 -->
<u-modal
:cancelText=
"$t('取消')"
:confirmText=
"$t('确认')"
:title=
"title"
v-model=
"open"
width=
"80%"
:show-confirm-button=
"optType !='view' "
show-cancel-button
<u-modal
:cancelText=
"$t('取消')"
ref=
"uModal"
:async-close=
"true"
:confirmText=
"$t('确认')"
:title=
"title"
v-model=
"open"
width=
"80%"
:show-confirm-button=
"optType !='view' "
show-cancel-button
@
confirm=
"submitForm"
:title-style=
"{ 'background-color': '#1E3770', color: '#FFFFFF', 'line-height': '37px', 'padding-top': '0px' }"
:content-style=
"{ padding: '20rpx', 'max-height': '87vh' }"
>
<u-form
ref=
"form"
:model=
"form"
label-width=
"100px"
>
<u-row>
...
...
@@ -336,18 +336,24 @@ export default {
},
submitForm
()
{
if
(
this
.
form
.
recordId
!=
null
)
{
if
(
this
.
form
.
quantityUnqualify
&&
Number
(
this
.
form
.
quantityUnqualify
)
>
0
&&
!
this
.
form
.
abnormalReason
)
{
this
.
$u
.
toast
(
i18n
.
t
(
'不合格原因不能为空'
))
this
.
open
=
true
this
.
$refs
.
uModal
.
clearLoading
()
return
}
this
.
form
.
sizeReportData
=
this
.
form
.
sizeReportData
?
this
.
form
.
sizeReportData
:
[]
this
.
form
.
directiveReportData
=
this
.
form
.
directiveReportData
?
this
.
form
.
directiveReportData
:
[]
this
.
$u
.
api
.
updateFeedback
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
&&
response
.
code
===
200
)
{
this
.
$u
.
toast
(
i18n
.
t
(
'修改成功'
));
this
.
open
=
false
;
this
.
getList
();
}
else
{
this
.
$u
.
toast
(
response
.
msg
||
i18n
.
t
(
'修改失败'
));
}
});
this
.
$u
.
api
.
updateFeedback
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
&&
response
.
code
===
200
)
{
this
.
$u
.
toast
(
i18n
.
t
(
'修改成功'
));
this
.
open
=
false
;
this
.
getList
();
}
else
{
this
.
$u
.
toast
(
response
.
msg
||
i18n
.
t
(
'修改失败'
));
}
});
}
},
// 分页点击事件
...
...
pages/mes/prodReport/index.vue
View file @
395d968b
...
...
@@ -12,6 +12,8 @@
<view
class=
"public-input"
style=
"width: 250px"
>
<u-input
v-model=
"tableParams.arrangeCode"
:focus=
"arrangeCodeFocus"
@
blur=
"arrangeCodeFocus = false"
@
confirm=
"confirmArrange($event)"
:placeholder=
"$t('请输入生产工单号和工序任务单号')"
/>
...
...
@@ -718,6 +720,7 @@ export default {
getWorkorderDirectiveLoading
:
false
,
editFeedingVisible
:
false
,
reasonOBJ
:
{
}
,
arrangeCodeFocus
:
true
,
tableOrderColumn
:
[
{
name
:
'quantity'
,
...
...
@@ -1406,8 +1409,9 @@ export default {
width
:
100
,
}
]
}
this
.
arrangeCodeFocus
=
true
}
)
uni
.
$on
(
'taskStatusChanged'
,
()
=>
{
...
...
@@ -2664,7 +2668,8 @@ export default {
this
.
$u
.
toast
(
res
.
msg
)
}
console
.
log
(
'准备刷新'
)
this
.
tableParams
.
arrangeCode
=
''
this
.
arrangeCodeFocus
=
true
this
.
getTaskList
()
}
if
(
item
.
isSerialReport
&&
Number
(
item
.
isSerialReport
)
===
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