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
1fdf7786
Commit
1fdf7786
authored
Aug 02, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补料申请新增记录
parent
7b79392b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
80 deletions
+95
-80
http.api.js
common/http.api.js
+9
-6
manifest.json
manifest.json
+1
-1
index.vue
pages/mes/prodReport/index.vue
+85
-73
No files found.
common/http.api.js
View file @
1fdf7786
...
@@ -100,11 +100,6 @@ const install = (Vue, vm) => {
...
@@ -100,11 +100,6 @@ const install = (Vue, vm) => {
config
.
adminPath
+
'/pro/packagePrintRecord/rePackageInfoPrint'
,
config
.
adminPath
+
'/pro/packagePrintRecord/rePackageInfoPrint'
,
params
params
),
),
quantitywaitsum
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mes/pro/workorder/quantitywaitsum'
,
params
),
// 生产指令列表
// 生产指令列表
workOrderSoDirectiveApi
:
(
params
=
{})
=>
workOrderSoDirectiveApi
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
vm
.
$u
.
postJson
(
...
@@ -285,6 +280,14 @@ const install = (Vue, vm) => {
...
@@ -285,6 +280,14 @@ const install = (Vue, vm) => {
config
.
adminPath
+
'/pro/materialRequest/selectworkorder'
,
config
.
adminPath
+
'/pro/materialRequest/selectworkorder'
,
params
params
),
),
//补料申请记录
getMaterialRequest
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/pro/materialRequest/recordList'
,
params
),
//退料申请
//退料申请
listMaterialReturn
:
(
params
=
{})
=>
listMaterialReturn
:
(
params
=
{})
=>
...
@@ -311,7 +314,7 @@ const install = (Vue, vm) => {
...
@@ -311,7 +314,7 @@ const install = (Vue, vm) => {
'/system/autocode/get/'
+
ruleCode
'/system/autocode/get/'
+
ruleCode
),
),
//获取最
后
一道工序
//获取最
下
一道工序
getNextProcess
:
(
params
=
{})
=>
getNextProcess
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/feedBackNextProcess'
,
params
),
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/feedBackNextProcess'
,
params
),
...
...
manifest.json
View file @
1fdf7786
{
{
"name"
:
"mes-pad"
,
"name"
:
"mes-pad"
,
"appid"
:
"__UNI__EFA
A56F
"
,
"appid"
:
"__UNI__EFA
4D96
"
,
"description"
:
"MES-PAD"
,
"description"
:
"MES-PAD"
,
"versionName"
:
"1.0.4"
,
"versionName"
:
"1.0.4"
,
"versionCode"
:
"100"
,
"versionCode"
:
"100"
,
...
...
pages/mes/prodReport/index.vue
View file @
1fdf7786
...
@@ -677,78 +677,72 @@
...
@@ -677,78 +677,72 @@
</view>
</view>
</u-modal>
</u-modal>
<u-modal
title=
"补料申请"
@
confirm=
"materialRequestSave()"
show-cancel-button
:title-style=
"{ 'background-color': '#1E3770', color: '#FFFFFF', 'line-height': '37px', 'padding-top': '0px' }"
<u-modal
title=
"补料申请"
@
confirm=
"materialRequestSave()"
show-cancel-button
v-model=
"materialRequestVisible"
width=
"1300rpx"
>
:title-style=
"{ 'background-color': '#1E3770', color: '#FFFFFF', 'line-height': '37px', 'padding-top': '0px' }"
<view
class=
"list-bar"
>
v-model=
"materialRequestVisible"
width=
"1300rpx"
>
<u-form
label-width=
"65px"
labelAlign=
"right"
:model=
"curTaskInfo"
>
<view
class=
"list-bar"
>
<u-row>
<u-form
label-width=
"65px"
labelAlign=
"right"
:model=
"curTaskInfo"
>
<u-col
span=
"3"
>
<u-row>
<u-form-item
label=
"编排单号"
>
<u-col
span=
"3"
>
{{ curTaskInfo.arrangeCode }}
<u-form-item
label=
"编排单号"
>
</u-form-item>
{{ curTaskInfo.arrangeCode }}
</u-col>
</u-form-item>
<u-col
span=
"4.5"
>
</u-col>
<u-form-item
label=
"生产工单"
prop=
"workorderCode"
>
<u-col
span=
"4.5"
>
<uni-data-select
v-model=
"curTaskInfo.workorderCode"
@
change=
"materialReturnWorkorderProcessItem"
<u-form-item
label=
"生产工单"
prop=
"workorderCode"
>
:localdata=
"curTaskInfo.workorderOption"
></uni-data-select>
<uni-data-select
v-model=
"curTaskInfo.workorderCode"
@
change=
"materialReturnWorkorderProcessItem"
</u-form-item>
:localdata=
"curTaskInfo.workorderOption"
></uni-data-select>
</u-col>
</u-form-item>
<u-col
span=
"4.5"
>
</u-col>
<u-form-item
label=
"补料原因"
prop=
"pickingReason"
>
<u-col
span=
"4.5"
>
<uni-data-select
v-model=
"curTaskInfo.pickingReason"
:localdata=
"reasonList"
<u-form-item
label=
"补料原因"
prop=
"pickingReason"
>
@
change=
"pickingCause"
></uni-data-select>
<uni-data-select
v-model=
"curTaskInfo.pickingReason"
:localdata=
"reasonList"
</u-form-item>
@
change=
"pickingCause"
></uni-data-select>
</u-col>
</u-form-item>
</u-row>
</u-col>
</u-form>
</u-row>
<scroll-view
scroll-y=
"true"
class=
"scroll-list"
:style=
"{ height: this.screenHeight - 280 + 'px' }"
>
</u-form>
<uni-table
ref=
"materialRequestTable"
border
stripe
:loading=
"loading"
emptyText=
"未查询到数据"
>
<uni-tr>
<uni-tr>
<uni-th
width=
"100px"
align=
"center"
>
操作
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
操作
</uni-th>
<uni-th
width=
"150px"
align=
"center"
>
产品物料编码
</uni-th>
<uni-th
width=
"110px"
align=
"center"
>
产品物料编码
</uni-th>
<uni-th
width=
"250px"
align=
"center"
>
产品物料名称
</uni-th>
<uni-th
width=
"110px"
align=
"center"
>
产品物料名称
</uni-th>
<uni-th
width=
"170px"
align=
"center"
>
补取数量
</uni-th>
<uni-th
width=
"80px"
align=
"center"
>
补取数量
</uni-th>
</uni-tr>
</uni-tr>
<scroll-view
scroll-y=
"true"
class=
"scroll-list"
:style=
"{ height: this.screenHeight/2 - 150 + 'px' }"
>
<uni-tr
v-for=
"(line, index) in materialRequestArrays"
:key=
"index"
>
<uni-table
ref=
"materialRequestTable"
border
stripe
:loading=
"loading"
>
<uni-td
align=
"center"
>
<uni-tr
v-for=
"(line, index) in materialRequestArrays"
:key=
"index"
>
<view
class=
"uni-group"
>
<uni-td
align=
"center"
style=
"width: 100px"
>
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
<view
class=
"uni-group"
>
@
click=
"materialRequestFormShow(line)"
>
补料
</button>
<button
class=
"uni-button"
size=
"mini"
type=
"primary"
</view>
@
click=
"materialRequestFormShow(line)"
>
补料
</button>
</uni-td>
</view>
<uni-td
align=
"center"
>
{{ line.itemCode.substring(line.itemCode.length - 8, line.itemCode.length) }}
</uni-td>
</uni-td>
<uni-td
align=
"center"
>
{{ line.itemName }}({{ line.specification }})/{{ line.unitOfMeasure }}
</uni-td>
<uni-td
align=
"center"
style=
"width: 140px"
>
{{ line.itemCode.substring(line.itemCode.length - 8, line.itemCode.length) }}
</uni-td>
<uni-td
align=
"center"
>
{{ line.applyNum }}
</uni-td>
<uni-td
align=
"center"
style=
"width: 160px"
>
{{ line.itemName }}({{ line.specification }})/{{ line.unitOfMeasure }}
</uni-td>
</uni-tr>
<uni-td
align=
"center"
style=
"width: 150px"
>
{{ line.applyNum }}
</uni-td>
</uni-table>
</uni-tr>
</scroll-view>
</uni-table>
</view>
</u-modal>
</scroll-view>
<uni-tr>
<u-modal
title=
"补料申请数量"
@
confirm=
"materialRequestSetting()"
show-cancel-button
<uni-th
width=
"200px"
align=
"center"
>
申请单号
</uni-th>
:title-style=
"{ 'background-color': '#1E3770', color: '#FFFFFF', 'line-height': '37px', 'padding-top': '0px' }"
<uni-th
width=
"200px"
align=
"center"
>
产品物料名称
</uni-th>
v-model=
"materialRequestFormVisible"
width=
"700rpx"
>
<uni-th
width=
"160px"
align=
"center"
>
申请数量
</uni-th>
<view
class=
""
>
<uni-th
width=
"160px"
align=
"center"
>
状态
</uni-th>
<u-form
label-width=
"100px"
>
</uni-tr>
<u-row>
<scroll-view
scroll-y=
"true"
class=
"scroll-list"
:style=
"{ height: this.screenHeight/2 - 200 + 'px' }"
>
<u-col>
<uni-table
ref=
"materialRequestTable"
border
stripe
:loading=
"loading"
>
<u-form-item
label=
"产品物料名称"
>
<uni-tr
v-for=
"(line, index) in materialRequestArrayList"
:key=
"index"
>
{{ materialRequestFormData.itemName }}
<uni-td
align=
"center"
style=
"width: 125px"
>
{{line.applyNo}}
</uni-td>
</u-form-item>
<uni-td
align=
"center"
style=
"width: 150px"
>
{{ line.sapItemCode.substring(line.sapItemCode.length - 8, line.sapItemCode.length) }}
</uni-td>
</u-col>
<uni-td
align=
"center"
style=
"width: 100px"
>
{{ line.applyNum }}
</uni-td>
</u-row>
<uni-td
align=
"center"
style=
"width: 100px"
>
{{ line.attr1 }}
</uni-td>
<u-row>
</uni-tr>
<u-col>
</uni-table>
<u-form-item
label=
"补料数量"
>
</scroll-view>
<u-number-box
v-model=
"materialRequestFormData.applyNum"
:long-press=
"false"
:positive-integer=
"false"
</view>
:input-width=
"190"
></u-number-box>
</u-modal>
</u-form-item>
</u-col>
</u-row>
</u-form>
</view>
</u-modal>
<u-modal
title=
"退料申请"
@
confirm=
"materialReturnSave()"
show-cancel-button
<u-modal
title=
"退料申请"
@
confirm=
"materialReturnSave()"
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' }"
...
@@ -1309,7 +1303,6 @@ export default {
...
@@ -1309,7 +1303,6 @@ export default {
},
},
viewSopPicture
:
[],
viewSopPicture
:
[],
viewSop
:
[],
viewSop
:
[],
reasonList
:
[],
causeList
:
[],
causeList
:
[],
reasonList
:
[],
reasonList
:
[],
workorderList
:
[],
workorderList
:
[],
...
@@ -1365,6 +1358,8 @@ export default {
...
@@ -1365,6 +1358,8 @@ export default {
recoilMaterialDetailList
:
[],
recoilMaterialDetailList
:
[],
materialRequestList
:
[],
materialRequestList
:
[],
materialRequestArrays
:
[],
materialRequestArrays
:
[],
materialRequestArrayList
:
[],
materialRequestArrayLists
:
[],
materialRequests
:
[],
materialRequests
:
[],
materialReturnList
:
[],
materialReturnList
:
[],
materialRequestFormData
:
{
materialRequestFormData
:
{
...
@@ -2869,6 +2864,13 @@ export default {
...
@@ -2869,6 +2864,13 @@ export default {
this
.
materialRequestArrays
=
this
.
materialRequestList
.
concat
([]);
this
.
materialRequestArrays
=
this
.
materialRequestList
.
concat
([]);
}
}
});
});
this
.
$u
.
api
.
getMaterialRequest
({
taskId
:
taskInfo
.
taskId
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
materialRequestArrayLists
=
res
.
rows
;
this
.
materialRequestArrayList
=
this
.
materialRequestArrayLists
.
concat
([]);
}
});
},
},
materialRequestFormShow
(
line
)
{
materialRequestFormShow
(
line
)
{
this
.
materialRequestFormVisible
=
true
;
this
.
materialRequestFormVisible
=
true
;
...
@@ -2956,6 +2958,7 @@ export default {
...
@@ -2956,6 +2958,7 @@ export default {
materialReturnWorkorderProcessItem
(
id
)
{
materialReturnWorkorderProcessItem
(
id
)
{
if
(
!
id
)
{
if
(
!
id
)
{
this
.
materialRequestArrays
=
this
.
materialRequestList
.
concat
([]);
this
.
materialRequestArrays
=
this
.
materialRequestList
.
concat
([]);
this
.
materialRequestArrayList
=
this
.
materialRequestArrayLists
.
concat
([]);
}
else
{
}
else
{
const
items
=
this
.
curTaskInfo
.
workorderOption
.
find
((
item
)
=>
item
.
value
===
this
.
curTaskInfo
.
workorderCode
);
const
items
=
this
.
curTaskInfo
.
workorderOption
.
find
((
item
)
=>
item
.
value
===
this
.
curTaskInfo
.
workorderCode
);
console
.
log
(
items
);
console
.
log
(
items
);
...
@@ -2974,6 +2977,15 @@ export default {
...
@@ -2974,6 +2977,15 @@ export default {
console
.
log
(
this
.
materialRequestArrays
,
'materialRequestArrays'
);
console
.
log
(
this
.
materialRequestArrays
,
'materialRequestArrays'
);
}
}
});
});
this
.
materialRequestArrayList
=
[]
this
.
$u
.
api
.
getMaterialRequest
({
workorderId
:
id
,
taskId
:
this
.
curTaskInfo
.
taskId
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
console
.
log
(
res
.
rows
)
this
.
materialRequestArrayList
=
res
.
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