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
cc932db8
Commit
cc932db8
authored
Feb 24, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务选择调整
parent
fac071ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
index.vue
pages/index/index.vue
+1
-1
index.vue
pages/mes/prodReport/index.vue
+9
-12
No files found.
pages/index/index.vue
View file @
cc932db8
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<ProContent
v-if=
"tabIndex === 'DV'"
></ProContent>
<ProContent
v-if=
"tabIndex === 'DV'"
></ProContent>
</view>
</view>
<u-modal
width=
"90%"
v-model=
"showWorkstationFlag"
:showConfirmButton=
"false"
:showCancelButton=
"true"
<u-modal
width=
"90%"
v-model=
"showWorkstationFlag"
:showConfirmButton=
"false"
:showCancelButton=
"true"
title=
"请选择工作
站
"
content=
"操作内容"
>
title=
"请选择工作
单元
"
content=
"操作内容"
>
<view
class=
"station_list"
>
<view
class=
"station_list"
>
<u-empty
text=
"暂无工作单元"
mode=
"list"
v-if=
"workUnitList.length==0"
<u-empty
text=
"暂无工作单元"
mode=
"list"
v-if=
"workUnitList.length==0"
...
...
pages/mes/prodReport/index.vue
View file @
cc932db8
...
@@ -246,7 +246,6 @@
...
@@ -246,7 +246,6 @@
<uni-th
width=
"110px"
align=
"center"
>
产品物料编码
</uni-th>
<uni-th
width=
"110px"
align=
"center"
>
产品物料编码
</uni-th>
<uni-th
width=
"110px"
align=
"center"
>
产品物料名称
</uni-th>
<uni-th
width=
"110px"
align=
"center"
>
产品物料名称
</uni-th>
<uni-th
width=
"110px"
align=
"center"
>
批次号
</uni-th>
<uni-th
width=
"110px"
align=
"center"
>
批次号
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
备注
</uni-th>
</uni-tr>
</uni-tr>
<uni-tr
v-for=
"(line,index) in recoilMaterialList"
:key=
"index"
>
<uni-tr
v-for=
"(line,index) in recoilMaterialList"
:key=
"index"
>
<uni-td
align=
"center"
>
<uni-td
align=
"center"
>
...
@@ -258,7 +257,6 @@
...
@@ -258,7 +257,6 @@
<uni-td
align=
"center"
>
{{
line
.
itemCode
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
itemCode
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
itemName
}}
(
{{
line
.
specification
}}
)/
{{
line
.
unitOfMeasure
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
itemName
}}
(
{{
line
.
specification
}}
)/
{{
line
.
unitOfMeasure
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
batchNo
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
batchNo
}}
</uni-td>
<uni-td
align=
"center"
>
{{
line
.
remark
}}
</uni-td>
</uni-tr>
</uni-tr>
</uni-table>
</uni-table>
</scroll-view>
</scroll-view>
...
@@ -1093,7 +1091,7 @@ export default {
...
@@ -1093,7 +1091,7 @@ export default {
},
},
feedingInspectionLoadAndScan
(){
feedingInspectionLoadAndScan
(){
const
t
=
this
;
const
t
=
this
;
const
taskInfo
=
this
.
curTaskInfo
;
const
taskInfo
=
this
.
tableSelectData
[
0
]
;
this
.
$u
.
api
.
listFeedingInspection
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
this
.
$u
.
api
.
listFeedingInspection
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
t
.
feedingInspectionList
=
res
.
data
;
t
.
feedingInspectionList
=
res
.
data
;
...
@@ -1116,7 +1114,7 @@ export default {
...
@@ -1116,7 +1114,7 @@ export default {
},
},
validateFeedingInspection
(
line
){
validateFeedingInspection
(
line
){
const
t
=
this
;
const
t
=
this
;
const
taskInfo
=
this
.
curTaskInfo
;
const
taskInfo
=
this
.
tableSelectData
[
0
]
;
this
.
$u
.
api
.
validateFeedingInspectionById
({
"lineId"
:
line
.
lineId
}).
then
(
res2
=>
{
this
.
$u
.
api
.
validateFeedingInspectionById
({
"lineId"
:
line
.
lineId
}).
then
(
res2
=>
{
if
(
res2
.
code
===
200
)
{
if
(
res2
.
code
===
200
)
{
t
.
$u
.
api
.
listFeedingInspection
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
t
.
$u
.
api
.
listFeedingInspection
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
...
@@ -1133,7 +1131,7 @@ export default {
...
@@ -1133,7 +1131,7 @@ export default {
},
},
recoilMaterialLoadAndScan
(){
recoilMaterialLoadAndScan
(){
const
t
=
this
;
const
t
=
this
;
const
taskInfo
=
this
.
curTaskInfo
;
const
taskInfo
=
this
.
tableSelectData
[
0
]
;
this
.
$u
.
api
.
recoilMaterialList
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
this
.
$u
.
api
.
recoilMaterialList
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
t
.
recoilMaterialList
=
res
.
data
;
t
.
recoilMaterialList
=
res
.
data
;
...
@@ -1143,10 +1141,9 @@ export default {
...
@@ -1143,10 +1141,9 @@ export default {
},
},
recoilMaterialScan
(){
recoilMaterialScan
(){
const
t
=
this
;
const
t
=
this
;
const
taskInfo
=
this
.
curTaskInfo
;
const
taskInfo
=
this
.
tableSelectData
[
0
]
;
uni
.
scanCode
({
uni
.
scanCode
({
success
:
function
(
res
)
{
success
:
function
(
res
)
{
t
.
$u
.
toast
(
res
.
result
);
t
.
$u
.
api
.
addRecoilMaterial
({
"taskId"
:
taskInfo
.
taskId
,
"plnr"
:
res
.
result
}).
then
(
res2
=>
{
t
.
$u
.
api
.
addRecoilMaterial
({
"taskId"
:
taskInfo
.
taskId
,
"plnr"
:
res
.
result
}).
then
(
res2
=>
{
if
(
res2
.
code
===
200
)
{
if
(
res2
.
code
===
200
)
{
t
.
recoilMaterialLoadAndScan
();
t
.
recoilMaterialLoadAndScan
();
...
@@ -1158,7 +1155,7 @@ export default {
...
@@ -1158,7 +1155,7 @@ export default {
},
},
recoilMaterialDelete
(
line
){
recoilMaterialDelete
(
line
){
const
t
=
this
;
const
t
=
this
;
const
taskInfo
=
this
.
curTaskInfo
;
const
taskInfo
=
this
.
tableSelectData
[
0
]
;
this
.
$u
.
api
.
deleteRecoilMaterial
({
"id"
:
line
.
recoilMaterialId
}).
then
(
res2
=>
{
this
.
$u
.
api
.
deleteRecoilMaterial
({
"id"
:
line
.
recoilMaterialId
}).
then
(
res2
=>
{
t
.
$u
.
api
.
recoilMaterialList
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
t
.
$u
.
api
.
recoilMaterialList
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
...
@@ -1169,7 +1166,7 @@ export default {
...
@@ -1169,7 +1166,7 @@ export default {
},
},
materialRequestShow
(){
materialRequestShow
(){
const
taskInfo
=
this
.
curTaskInfo
;
const
taskInfo
=
this
.
tableSelectData
[
0
]
;
const
t
=
this
;
const
t
=
this
;
this
.
materialRequestVisible
=
true
;
this
.
materialRequestVisible
=
true
;
this
.
$u
.
api
.
listMaterialRequest
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
this
.
$u
.
api
.
listMaterialRequest
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
...
@@ -1189,7 +1186,7 @@ export default {
...
@@ -1189,7 +1186,7 @@ export default {
},
},
materialRequestSave
(){
materialRequestSave
(){
const
rst
=
[];
const
rst
=
[];
const
taskInfo
=
this
.
curTaskInfo
;
const
taskInfo
=
this
.
tableSelectData
[
0
]
;
const
t
=
this
;
const
t
=
this
;
this
.
materialRequestList
.
forEach
(
s
=>
{
this
.
materialRequestList
.
forEach
(
s
=>
{
if
(
s
.
applyNum
!=
null
){
if
(
s
.
applyNum
!=
null
){
...
@@ -1211,7 +1208,7 @@ export default {
...
@@ -1211,7 +1208,7 @@ export default {
materialReturnShow
(){
materialReturnShow
(){
const
t
=
this
;
const
t
=
this
;
this
.
materialReturnVisible
=
true
;
this
.
materialReturnVisible
=
true
;
const
taskInfo
=
this
.
curTaskInfo
;
const
taskInfo
=
this
.
tableSelectData
[
0
]
;
this
.
$u
.
api
.
listMaterialReturn
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
this
.
$u
.
api
.
listMaterialReturn
({
"taskId"
:
taskInfo
.
taskId
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
t
.
materialReturnList
=
res
.
data
;
t
.
materialReturnList
=
res
.
data
;
...
@@ -1228,7 +1225,7 @@ export default {
...
@@ -1228,7 +1225,7 @@ export default {
this
.
materialReturnFormVisible
=
false
;
this
.
materialReturnFormVisible
=
false
;
},
},
materialReturnSave
(){
materialReturnSave
(){
const
taskInfo
=
this
.
curTaskInfo
;
const
taskInfo
=
this
.
tableSelectData
[
0
]
;
const
rst
=
[];
const
rst
=
[];
const
t
=
this
;
const
t
=
this
;
this
.
materialReturnList
.
forEach
(
s
=>
{
this
.
materialReturnList
.
forEach
(
s
=>
{
...
...
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