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
65d421b1
Commit
65d421b1
authored
Mar 06, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
领料申请功能优化
parent
eeb76cd9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
5 deletions
+44
-5
http.api.js
common/http.api.js
+5
-1
index.vue
pages/mes/prodReport/index.vue
+39
-4
No files found.
common/http.api.js
View file @
65d421b1
...
...
@@ -107,11 +107,15 @@ const install = (Vue, vm) => {
//领料申请
listMaterialRequest
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/listMaterialRequest'
,
params
),
addMaterialRequest
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mobile/pro/proMaterial/addMaterialRequest'
,
params
),
//退料申请
getWproworkOrderProcessItem
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/pro/materialRequest/selectworkorder/'
+
params
.
workorderId
),
//退料申请
listMaterialReturn
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/listIssueLine'
,
params
),
addMaterialReturn
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mobile/pro/proMaterial/addMaterialReturn'
,
params
),
//质量相关api
//获取当前产品、当前质检类型的质检模板行信息
...
...
pages/mes/prodReport/index.vue
View file @
65d421b1
...
...
@@ -342,6 +342,20 @@
width="1300rpx"
>
<view
class=
"list-bar"
>
<u-form
label-width=
"100px"
:model=
"curTaskInfo"
>
<u-row>
<u-col
span=
"6"
>
<u-form-item
label=
"编排单号"
>
{{
curTaskInfo
.
arrangeCode
}}
</u-form-item>
</u-col>
<u-col
span=
"6"
>
<u-form-item
label=
"生产工单"
prop=
"workorderCode"
>
<uni-data-select
@
change=
"materialReturnWorkorderProcessItem"
:localdata=
"curTaskInfo.workorderOption"
></uni-data-select>
</u-form-item>
</u-col>
</u-row>
</u-form>
<scroll-view
scroll-y=
"true"
class=
"scroll-list"
:style=
"
{ height: this.screenHeight - 280 + 'px' }">
<uni-table
ref=
"materialRequestTable"
border
stripe
:loading=
"loading"
emptyText=
"未查询到数据"
>
<uni-tr>
...
...
@@ -350,7 +364,7 @@
<uni-th
width=
"110px"
align=
"center"
>
产品物料名称
</uni-th>
<uni-th
width=
"80px"
align=
"center"
>
领取数量
</uni-th>
</uni-tr>
<uni-tr
v-for=
"(line, index) in materialRequest
List
"
:key=
"index"
>
<uni-tr
v-for=
"(line, index) in materialRequest
Arrays
"
:key=
"index"
>
<uni-td
align=
"center"
>
<view
class=
"uni-group"
>
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
@
click=
"materialRequestFormShow(line)"
>
补料
</button>
...
...
@@ -835,6 +849,7 @@ export default {
feedingInspectionList
:
[],
recoilMaterialList
:
[],
materialRequestList
:
[],
materialRequestArrays
:
[],
materialReturnList
:
[],
materialRequestFormData
:
{
itemName
:
null
,
...
...
@@ -847,6 +862,12 @@ export default {
applyNum
:
null
,
workorderCode
:
null
},
materialReturnProcessItemData
:
{
itemName
:
null
,
itemCode
:
null
,
applyNum
:
null
,
workorderCode
:
null
},
materialReturnFormVisible
:
false
,
materialReturnSelected
:
{},
tableDetailColumn
:
[
...
...
@@ -1433,12 +1454,16 @@ export default {
});
},
materialRequestShow
()
{
const
taskInfo
=
this
.
tableSelectData
[
0
];
const
t
=
this
;
this
.
materialRequestVisible
=
true
;
const
taskInfo
=
this
.
tableSelectData
[
0
];
this
.
curTaskInfo
=
this
.
tableSelectData
[
0
];
this
.
curTaskInfo
.
workorderOption
=
this
.
curTaskInfo
.
proWorkorderList
.
map
((
s
)
=>
{
return
{
value
:
s
.
workorderId
,
text
:
s
.
workorderCode
};
});
this
.
$u
.
api
.
listMaterialRequest
({
taskId
:
taskInfo
.
taskId
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
t
.
materialRequestList
=
res
.
data
;
this
.
materialRequestList
=
res
.
data
;
this
.
materialRequestArrays
=
this
.
materialRequestList
.
concat
([])
}
});
},
...
...
@@ -1455,10 +1480,12 @@ export default {
const
rst
=
[];
const
taskInfo
=
this
.
tableSelectData
[
0
];
const
t
=
this
;
const
items
=
this
.
curTaskInfo
.
workorderOption
.
find
((
item
)
=>
item
.
value
===
this
.
curTaskInfo
.
workorderCode
);
this
.
materialRequestList
.
forEach
((
s
)
=>
{
if
(
s
.
applyNum
!=
null
)
{
rst
.
push
({
itemId
:
s
.
itemId
,
workorderCode
:
s
.
workorderCode
,
taskId
:
taskInfo
.
taskId
,
applyNum
:
s
.
applyNum
,
applyType
:
1
...
...
@@ -1505,6 +1532,14 @@ export default {
}
});
},
materialReturnWorkorderProcessItem
(
id
)
{
this
.
$u
.
api
.
getWproworkOrderProcessItem
({
workorderId
:
Number
(
id
)}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
materialRequestArrays
=
this
.
materialRequestList
.
concat
(
res
.
rows
)
}
});
},
materialReturnFormShow
(
line
)
{
this
.
materialReturnFormVisible
=
true
;
this
.
materialReturnFormData
=
{
...
...
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