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
f75fa2ce
Commit
f75fa2ce
authored
Aug 17, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A类问题
parent
ad30d108
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
50 deletions
+39
-50
http.api.js
common/http.api.js
+1
-1
index.vue
pages/mes/prodReport/index.vue
+38
-49
No files found.
common/http.api.js
View file @
f75fa2ce
...
@@ -103,7 +103,7 @@ const install = (Vue, vm) => {
...
@@ -103,7 +103,7 @@ const install = (Vue, vm) => {
),
),
//装箱打印
//装箱打印
blPackagePrintInfo
:
(
params
=
{})
=>
blPackagePrintInfo
:
(
params
=
{})
=>
vm
.
$u
.
post
(
vm
.
$u
.
post
Json
(
config
.
adminPath
+
'/pro/packagePrintRecord/blPackagePrintInfo'
,
config
.
adminPath
+
'/pro/packagePrintRecord/blPackagePrintInfo'
,
params
params
),
),
...
...
pages/mes/prodReport/index.vue
View file @
f75fa2ce
...
@@ -238,24 +238,24 @@
...
@@ -238,24 +238,24 @@
</
template
>
</
template
>
<
template
slot=
"grossWeight"
slot-scope=
"scope"
>
<
template
slot=
"grossWeight"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<!--
{{
scope
.
row
}}
-->
<u-input
v-model=
"scope.row.grossWeight"
type=
"number"
></u-input>
<u-input
v-model=
"scope.row.grossWeight"
type=
"number"
placeholder=
""
></u-input>
</
template
>
</
template
>
<
template
slot=
"packageStandard"
slot-scope=
"scope"
>
<
template
slot=
"packageStandard"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<!--
{{
scope
.
row
}}
-->
<uni-easyinput
type=
"text"
suffixIcon=
"scan"
v-model=
"scope.row.packageStandard"
style=
"width: 100%"
<uni-easyinput
type=
"text"
suffixIcon=
"scan"
v-model=
"scope.row.packageStandard"
style=
"width: 100%"
@
iconClick=
"() => iconPackageStandard(scope.row)"
placeholder=
"
请输入装箱规格
"
/>
@
iconClick=
"() => iconPackageStandard(scope.row)"
placeholder=
""
/>
</
template
>
</
template
>
<
template
slot=
"peration"
slot-scope=
"scope"
>
<
template
slot=
"peration"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<!--
{{
scope
.
row
}}
-->
<u-button
v-if=
"scope.row.isEncase"
@
tap=
"handleBlPackagePrintInfo(feedback, scope.row, i)"
class=
"successBtn"
style=
"margin-left:
20rpx
"
>
打印
</u-button>
<u-button
v-if=
"scope.row.isEncase"
@
tap=
"handleBlPackagePrintInfo(feedback, scope.row, i)"
class=
"successBtn"
style=
"margin-left:
0
"
>
打印
</u-button>
<u-button
v-else-if=
"scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0"
<u-button
v-else-if=
"scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0"
@
tap=
"rePackageInfoPrint(feedback, scope.row, i)"
class=
"successBtn"
@
tap=
"rePackageInfoPrint(feedback, scope.row, i)"
class=
"successBtn"
style=
"margin-left:
20rpx
"
>
style=
"margin-left:
0
"
>
补打印
补打印
</u-button>
</u-button>
<u-button
v-else-if=
"Number(scope.row.packageNum) > Number(scope.row.feedbackQuantity) || scope.row.printbtn"
<u-button
v-else-if=
"Number(scope.row.packageNum) > Number(scope.row.feedbackQuantity) || scope.row.printbtn"
@
tap=
"handleSubmitPackageFeedback(feedback, scope.row, i)"
class=
"successBtn"
@
tap=
"handleSubmitPackageFeedback(feedback, scope.row, i)"
class=
"successBtn"
style=
"margin-left:
20rpx
"
>
style=
"margin-left:
0
"
>
打印/报工
打印/报工
</u-button>
</u-button>
<!--
<u-input
v-model=
"scope.row.reportQuantity"
type=
"number"
></u-input>
-->
<!--
<u-input
v-model=
"scope.row.reportQuantity"
type=
"number"
></u-input>
-->
...
@@ -276,23 +276,23 @@
...
@@ -276,23 +276,23 @@
</
template
>
</
template
>
<
template
slot=
"grossWeight"
slot-scope=
"scope"
>
<
template
slot=
"grossWeight"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<!--
{{
scope
.
row
}}
-->
<u-input
v-model=
"scope.row.grossWeight"
type=
"number"
></u-input>
<u-input
v-model=
"scope.row.grossWeight"
type=
"number"
placeholder=
""
></u-input>
</
template
>
</
template
>
<
template
slot=
"packageStandard"
slot-scope=
"scope"
>
<
template
slot=
"packageStandard"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<!--
{{
scope
.
row
}}
-->
<uni-easyinput
type=
"text"
suffixIcon=
"scan"
v-model=
"scope.row.packageStandard"
style=
"width: 100%"
<uni-easyinput
type=
"text"
suffixIcon=
"scan"
v-model=
"scope.row.packageStandard"
style=
"width: 100%"
@
iconClick=
"() => iconPackageStandard(scope.row)"
placeholder=
"
请输入
装箱规格"
/>
@
iconClick=
"() => iconPackageStandard(scope.row)"
placeholder=
"装箱规格"
/>
</
template
>
</
template
>
<
template
slot=
"peration"
slot-scope=
"scope"
>
<
template
slot=
"peration"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<!--
{{
scope
.
row
}}
-->
<u-button
v-if=
"scope.row.isEncase"
@
tap=
"handleBlPackagePrintInfo(feedback, scope.row, i)"
class=
"successBtn"
style=
"margin-left:
20rpx
"
>
打印
</u-button>
<u-button
v-if=
"scope.row.isEncase"
@
tap=
"handleBlPackagePrintInfo(feedback, scope.row, i)"
class=
"successBtn"
style=
"margin-left:
0
"
>
打印
</u-button>
<u-button
v-else-if=
"scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0"
<u-button
v-else-if=
"scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0"
@
tap=
"rePackageInfoPrint(feedback, scope.row, i)"
@
tap=
"rePackageInfoPrint(feedback, scope.row, i)"
style=
"margin-left:
20rpx
"
class=
"successBtn"
>
style=
"margin-left:
0
"
class=
"successBtn"
>
补打印
补打印
</u-button>
</u-button>
<u-button
v-else
@
tap=
"handleSubmitPackageFeedback(feedback, scope.row, i)"
<u-button
v-else
@
tap=
"handleSubmitPackageFeedback(feedback, scope.row, i)"
style=
"margin-left:
20rpx
"
class=
"successBtn"
>
打印/报工
</u-button>
style=
"margin-left:
0
"
class=
"successBtn"
>
打印/报工
</u-button>
<!--
<u-input
v-model=
"scope.row.reportQuantity"
type=
"number"
></u-input>
-->
<!--
<u-input
v-model=
"scope.row.reportQuantity"
type=
"number"
></u-input>
-->
</
template
>
</
template
>
</zb-table>
</zb-table>
...
@@ -311,23 +311,23 @@
...
@@ -311,23 +311,23 @@
</
template
>
</
template
>
<
template
slot=
"grossWeight"
slot-scope=
"scope"
>
<
template
slot=
"grossWeight"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<!--
{{
scope
.
row
}}
-->
<u-input
v-model=
"scope.row.grossWeight"
type=
"number"
></u-input>
<u-input
v-model=
"scope.row.grossWeight"
type=
"number"
placeholder=
""
></u-input>
</
template
>
</
template
>
<
template
slot=
"packageStandard"
slot-scope=
"scope"
>
<
template
slot=
"packageStandard"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<!--
{{
scope
.
row
}}
-->
<uni-easyinput
type=
"text"
suffixIcon=
"scan"
v-model=
"scope.row.packageStandard"
style=
"width: 100%"
<uni-easyinput
type=
"text"
suffixIcon=
"scan"
v-model=
"scope.row.packageStandard"
style=
"width: 100%"
@
iconClick=
"() => iconPackageStandard(scope.row)"
placeholder=
"
请输入
装箱规格"
/>
@
iconClick=
"() => iconPackageStandard(scope.row)"
placeholder=
"装箱规格"
/>
</
template
>
</
template
>
<
template
slot=
"peration"
slot-scope=
"scope"
>
<
template
slot=
"peration"
slot-scope=
"scope"
>
<!--
{{
scope
.
row
}}
-->
<!--
{{
scope
.
row
}}
-->
<u-button
v-if=
"scope.row.isEncase"
@
tap=
"handleBlPackagePrintInfo(feedback, scope.row, i)"
class=
"successBtn"
style=
"margin-left:
20rpx
"
>
打印
</u-button>
<u-button
v-if=
"scope.row.isEncase"
@
tap=
"handleBlPackagePrintInfo(feedback, scope.row, i)"
class=
"successBtn"
style=
"margin-left:
0
"
>
打印
</u-button>
<u-button
v-else-if=
"scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0"
<u-button
v-else-if=
"scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0"
@
tap=
"rePackageInfoPrint(feedback, scope.row, i)"
@
tap=
"rePackageInfoPrint(feedback, scope.row, i)"
style=
"margin-left:
20rpx
"
class=
"successBtn"
>
style=
"margin-left:
0
"
class=
"successBtn"
>
补打印
补打印
</u-button>
</u-button>
<u-button
v-else
@
tap=
"handleSubmitPackageFeedback(feedback, scope.row, i)"
<u-button
v-else
@
tap=
"handleSubmitPackageFeedback(feedback, scope.row, i)"
style=
"margin-left:
20rpx
"
class=
"successBtn"
>
打印/报工
</u-button>
style=
"margin-left:
0
"
class=
"successBtn"
>
打印/报工
</u-button>
</
template
>
</
template
>
</zb-table>
</zb-table>
</view>
</view>
...
@@ -1062,7 +1062,7 @@ export default {
...
@@ -1062,7 +1062,7 @@ export default {
{
{
name
:
'peration'
,
name
:
'peration'
,
label
:
'操作'
,
label
:
'操作'
,
width
:
12
0
,
width
:
8
0
,
type
:
'slot'
,
type
:
'slot'
,
slot
:
'peration'
slot
:
'peration'
}
}
...
@@ -1076,41 +1076,41 @@ export default {
...
@@ -1076,41 +1076,41 @@ export default {
{
{
name
:
'quantity'
,
name
:
'quantity'
,
label
:
'派工数'
,
label
:
'派工数'
,
width
:
10
0
width
:
7
0
},
},
{
{
name
:
'packageNum'
,
name
:
'packageNum'
,
label
:
'包装数'
,
label
:
'包装数'
,
width
:
80
width
:
75
},
},
{
{
name
:
'lossNum'
,
name
:
'lossNum'
,
label
:
'LOSS数'
,
label
:
'LOSS数'
,
width
:
10
0
width
:
8
0
},
},
{
{
name
:
'feedbackQuantity'
,
name
:
'feedbackQuantity'
,
label
:
'已包装数'
,
label
:
'已包装数'
,
width
:
13
0
width
:
8
0
},
},
{
{
name
:
'reportQuantity'
,
name
:
'reportQuantity'
,
label
:
'本次报工'
,
label
:
'本次报工'
,
width
:
10
0
,
width
:
8
0
,
type
:
'slot'
,
type
:
'slot'
,
slot
:
'reportQuantity'
slot
:
'reportQuantity'
},
},
{
{
name
:
'netWeight'
,
name
:
'netWeight'
,
label
:
'净重'
,
label
:
'净重'
,
width
:
10
0
,
width
:
7
0
,
type
:
'slot'
,
type
:
'slot'
,
slot
:
'netWeight'
slot
:
'netWeight'
},
},
{
{
name
:
'grossWeight'
,
name
:
'grossWeight'
,
label
:
'毛重'
,
label
:
'毛重'
,
width
:
10
0
,
width
:
7
0
,
type
:
'slot'
,
type
:
'slot'
,
slot
:
'grossWeight'
slot
:
'grossWeight'
},
},
...
@@ -1124,7 +1124,7 @@ export default {
...
@@ -1124,7 +1124,7 @@ export default {
{
{
name
:
'peration'
,
name
:
'peration'
,
label
:
'操作'
,
label
:
'操作'
,
width
:
12
0
,
width
:
8
0
,
type
:
'slot'
,
type
:
'slot'
,
slot
:
'peration'
slot
:
'peration'
}
}
...
@@ -2517,7 +2517,7 @@ export default {
...
@@ -2517,7 +2517,7 @@ export default {
{
{
name
:
'standardSizeIdx'
,
name
:
'standardSizeIdx'
,
label
:
'序号'
,
label
:
'序号'
,
width
:
6
0
width
:
4
0
},
},
{
{
name
:
'standardSize'
,
name
:
'standardSize'
,
...
@@ -2547,21 +2547,21 @@ export default {
...
@@ -2547,21 +2547,21 @@ export default {
{
{
name
:
'reportQuantity'
,
name
:
'reportQuantity'
,
label
:
'本次报工'
,
label
:
'本次报工'
,
width
:
10
0
,
width
:
9
0
,
type
:
'slot'
,
type
:
'slot'
,
slot
:
'reportQuantity'
slot
:
'reportQuantity'
},
},
{
{
name
:
'netWeight'
,
name
:
'netWeight'
,
label
:
'净重'
,
label
:
'净重'
,
width
:
10
0
,
width
:
8
0
,
type
:
'slot'
,
type
:
'slot'
,
slot
:
'netWeight'
slot
:
'netWeight'
},
},
{
{
name
:
'grossWeight'
,
name
:
'grossWeight'
,
label
:
'毛重'
,
label
:
'毛重'
,
width
:
10
0
,
width
:
8
0
,
type
:
'slot'
,
type
:
'slot'
,
slot
:
'grossWeight'
slot
:
'grossWeight'
},
},
...
@@ -2575,7 +2575,7 @@ export default {
...
@@ -2575,7 +2575,7 @@ export default {
{
{
name
:
'peration'
,
name
:
'peration'
,
label
:
'操作'
,
label
:
'操作'
,
width
:
12
0
,
width
:
8
0
,
type
:
'slot'
,
type
:
'slot'
,
slot
:
'peration'
slot
:
'peration'
}
}
...
@@ -2748,35 +2748,24 @@ export default {
...
@@ -2748,35 +2748,24 @@ export default {
this
.
$u
.
toast
(
'打印机连接失败'
);
this
.
$u
.
toast
(
'打印机连接失败'
);
return
;
return
;
}
}
if
(
!
row
.
grossWeight
||
!
row
.
packageStandard
)
{
this
.
$u
.
toast
(
'请录入毛重、装箱规格'
);
return
;
}
item
.
feedbackTime
=
this
.
parseTime
(
new
Date
())
item
.
feedbackTime
=
this
.
parseTime
(
new
Date
())
this
.
$u
.
api
this
.
$u
.
api
.
blPackagePrintInfo
({
.
blPackagePrintInfo
({
taskWorkunitId
:
item
.
taskWorkunitId
,
taskWorkunitId
:
item
.
taskWorkunitId
,
checkBy
:
item
.
checkBy
,
qrcode
:
row
.
qrcode
,
encasementNum
:
item
.
encasementNum
,
mergePack
:
item
.
mergePack
,
packNum
:
item
.
packNum
,
printTemplate
:
item
.
printTemplate
,
quantityUnqualify
:
item
.
quantityUnqualify
,
taskId
:
item
.
taskId
,
userName
:
item
.
userName
,
feedbackTime
:
item
.
feedbackTime
,
workorderId
:
item
.
workorderId
,
workorderId
:
item
.
workorderId
,
'reportData.grossWeight'
:
row
.
grossWeight
,
grossWeight
:
row
.
grossWeight
,
'reportData.packageStandard'
:
row
.
packageStandard
,
packageStandard
:
row
.
packageStandard
,
'reportData.boxWeight'
:
row
.
boxWeight
,
boxWeight
:
row
.
boxWeight
'reportData.netWeight'
:
row
.
netWeight
,
'reportData.reportQuantity'
:
row
.
reportQuantity
,
'reportData.packageNum'
:
row
.
packageNum
,
'reportData.qrcode'
:
row
.
qrcode
,
'reportData.workorderSoDirectiveId'
:
row
.
workorderSoDirectiveId
,
'reportData.workorderSoSizeItemId'
:
row
.
workorderSoSizeItemId
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
// this.proVisible = false;
// this.proVisible = false;
item
.
quantityUnqualify
=
0
;
this
.
$u
.
toast
(
'打印成功'
);
this
.
$u
.
toast
(
'上报成功'
);
this
.
getWorkorderDirectiveList
(
item
,
i
)
this
.
getWorkorderDirectiveList
(
item
,
i
)
if
(
item
.
printTemplate
)
{
if
(
item
.
printTemplate
)
{
let
params
=
{};
let
params
=
{};
...
...
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