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
b796b3dd
Commit
b796b3dd
authored
Jun 17, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug--生产报工
parent
16022fac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
13 deletions
+31
-13
AppScan.vue
components/AppScan/AppScan.vue
+8
-2
index.vue
pages/mes/prodReport/index.vue
+16
-9
addDialog.vue
pages/mes/qc/components/addDialog.vue
+7
-2
No files found.
components/AppScan/AppScan.vue
View file @
b796b3dd
...
@@ -12,7 +12,8 @@ export default {
...
@@ -12,7 +12,8 @@ export default {
return
{
return
{
barcode
:
null
,
barcode
:
null
,
flash
:
false
,
flash
:
false
,
tip
:
'将二维码放入框中,即可自动扫描'
,
scanBarVew
:
null
,
tip
:
'将二维码放入框中,即可自动扫描'
}
}
},
},
onShow
()
{
onShow
()
{
...
@@ -35,6 +36,9 @@ export default {
...
@@ -35,6 +36,9 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
start
()
{
this
.
barcode
.
start
()
},
/**
/**
* 创建二维码
* 创建二维码
* @param {Object} currentWebview
* @param {Object} currentWebview
...
@@ -65,6 +69,8 @@ export default {
...
@@ -65,6 +69,8 @@ export default {
closed
()
{
closed
()
{
this
.
barcode
.
close
()
this
.
barcode
.
close
()
let
currentWebview
=
this
.
$mp
.
page
.
$getAppWebview
();
currentWebview
.
remove
(
this
.
scanBarVew
)
},
},
/**
/**
...
@@ -109,7 +115,7 @@ export default {
...
@@ -109,7 +115,7 @@ export default {
},
},
closeImg
);
closeImg
);
scanBarVew
.
interceptTouchEvent
(
true
);
scanBarVew
.
interceptTouchEvent
(
true
);
this
.
scanBarVew
=
scanBarVew
currentWebview
.
append
(
scanBarVew
);
currentWebview
.
append
(
scanBarVew
);
scanBarVew
.
addEventListener
(
"click"
,
(
e
)
=>
{
//点亮手电筒
scanBarVew
.
addEventListener
(
"click"
,
(
e
)
=>
{
//点亮手电筒
...
...
pages/mes/prodReport/index.vue
View file @
b796b3dd
...
@@ -573,19 +573,25 @@
...
@@ -573,19 +573,25 @@
<view
style=
"display: flex"
>
<view
style=
"display: flex"
>
<view
style=
"width: 520px"
v-if=
"recoilMaterialVisible"
>
<view
style=
"width: 520px"
v-if=
"recoilMaterialVisible"
>
<!-- #ifdef APP-PLUS -->
<!-- #ifdef APP-PLUS -->
<app-scan
ref=
"appScan"
@
getCode=
"recoilMaterialScan"
></app-scan>
<app-scan
ref=
"appScan"
@
getCode=
"recoilMaterialScan"
v-if=
"!recoilMaterialFlag"
></app-scan>
<!-- #endif -->
<!-- #endif -->
<view
class=
"scan-mask"
v-show=
"recoilMaterialFlag"
:style=
"{top: '38px',
left: '0px',
height: '87%',
width: '500px',
position: 'absolute',
background: 'black'}"
></view>
</view>
</view>
<view
class=
"list-bar"
>
<view
class=
"list-bar"
>
<scroll-view
scroll-y=
"true"
class=
"scroll-list"
:style=
"{ height: this.screenHeight - 280 + 'px' }"
>
<scroll-view
scroll-y=
"true"
scroll-x=
"true"
class=
"scroll-list"
:style=
"{ height: this.screenHeight - 280 + 'px' }"
>
<uni-table
ref=
"qcTable"
border
stripe
:loading=
"loading"
emptyText=
"未查询到数据"
>
<uni-table
ref=
"qcTable"
border
stripe
:loading=
"loading"
emptyText=
"未查询到数据"
>
<uni-tr>
<uni-tr>
<!-- <uni-th width="200px" align="center">操作</uni-th> -->
<!-- <uni-th width="200px" align="center">操作</uni-th> -->
<uni-th
width=
"110px"
align=
"center"
>
产品物料编码
</uni-th>
<uni-th
width=
"110px"
align=
"center"
>
产品物料编码
</uni-th>
<uni-th
width=
"
3
00px"
align=
"center"
>
产品物料名称
</uni-th>
<uni-th
width=
"
2
00px"
align=
"center"
>
产品物料名称
</uni-th>
<uni-th
width=
"
11
0px"
align=
"center"
>
批次号
</uni-th>
<uni-th
width=
"
9
0px"
align=
"center"
>
批次号
</uni-th>
<uni-th
width=
"
11
0px"
align=
"center"
>
需求数量
</uni-th>
<uni-th
width=
"
8
0px"
align=
"center"
>
需求数量
</uni-th>
<uni-th
width=
"
110
px"
align=
"center"
>
数量
</uni-th>
<uni-th
width=
"
65
px"
align=
"center"
>
数量
</uni-th>
</uni-tr>
</uni-tr>
<uni-tr
v-for=
"(line, index) in recoilMaterialDetailList"
:key=
"index"
>
<uni-tr
v-for=
"(line, index) in recoilMaterialDetailList"
:key=
"index"
>
...
@@ -790,8 +796,8 @@
...
@@ -790,8 +796,8 @@
<zb-table
:columns=
"tableDetailColumn"
:stripe=
"true"
:border=
"true"
:data=
"tableDataDetail"
></zb-table>
<zb-table
:columns=
"tableDetailColumn"
:stripe=
"true"
:border=
"true"
:data=
"tableDataDetail"
></zb-table>
</view>
</view>
</u-modal>
</u-modal>
<u-modal
title=
"查看倒冲批次"
:showRecoilMaterialButton=
"true"
<u-modal
title=
"查看倒冲批次"
:showRecoilMaterialButton=
"true"
@
confirm=
"$refs.appScan.start()"
: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'
,' z-index': 9999
}"
v-model=
"recoilMaterialFlag"
width=
"1300rpx"
>
v-model=
"recoilMaterialFlag"
width=
"1300rpx"
>
<view>
<view>
<zb-table
:columns=
"recoilMaterialColumn"
:stripe=
"true"
:border=
"true"
:data=
"recoilMaterialList"
></zb-table>
<zb-table
:columns=
"recoilMaterialColumn"
:stripe=
"true"
:border=
"true"
:data=
"recoilMaterialList"
></zb-table>
...
@@ -2570,6 +2576,7 @@ export default {
...
@@ -2570,6 +2576,7 @@ export default {
batchShow
(
row
)
{
batchShow
(
row
)
{
this
.
recoilMaterialList
=
row
.
proRecoilMaterialList
;
this
.
recoilMaterialList
=
row
.
proRecoilMaterialList
;
this
.
$refs
.
appScan
.
closed
()
this
.
recoilMaterialFlag
=
true
;
this
.
recoilMaterialFlag
=
true
;
},
},
...
...
pages/mes/qc/components/addDialog.vue
View file @
b796b3dd
...
@@ -22,6 +22,11 @@
...
@@ -22,6 +22,11 @@
<u-input
v-model=
"qcForm.ipqcName"
placeholder=
"请输入检验单名称"
></u-input>
<u-input
v-model=
"qcForm.ipqcName"
placeholder=
"请输入检验单名称"
></u-input>
</u-form-item>
</u-form-item>
</u-col>
</u-col>
<u-col
span=
"4"
v-if=
"btnType"
>
<u-form-item
label=
"检验单编号"
label-width=
"90px"
>
<u-input
v-model=
"qcForm.ipqcCode"
placeholder=
"请输入检验单编号"
></u-input>
</u-form-item>
</u-col>
<u-col
span=
"4"
>
<u-col
span=
"4"
>
<u-form-item
label=
"检测结果"
prop=
"checkResult"
>
<u-form-item
label=
"检测结果"
prop=
"checkResult"
>
<u-radio-group
v-model=
"qcForm.checkResult"
>
<u-radio-group
v-model=
"qcForm.checkResult"
>
...
@@ -40,12 +45,12 @@
...
@@ -40,12 +45,12 @@
</u-col>
</u-col>
<u-col
span=
"4"
>
<u-col
span=
"4"
>
<u-form-item
label=
"合格数量"
prop=
"quantityQualified"
>
<u-form-item
label=
"合格数量"
prop=
"quantityQualified"
>
<u-number-box
v-model=
"qcForm.quantityQualified"
@
change=
"handleChangeQuantityCheck"
></u-number-box>
<u-number-box
:min=
"0"
v-model=
"qcForm.quantityQualified"
@
change=
"handleChangeQuantityCheck"
></u-number-box>
</u-form-item>
</u-form-item>
</u-col>
</u-col>
<u-col
span=
"4"
>
<u-col
span=
"4"
>
<u-form-item
label=
"不合格数量"
prop=
"quantityUnqualified"
>
<u-form-item
label=
"不合格数量"
prop=
"quantityUnqualified"
>
<u-number-box
v-model=
"qcForm.quantityUnqualified"
@
change=
"handleChangeQuantityCheck"
></u-number-box>
<u-number-box
:min=
"0"
v-model=
"qcForm.quantityUnqualified"
@
change=
"handleChangeQuantityCheck"
></u-number-box>
</u-form-item>
</u-form-item>
</u-col>
</u-col>
</u-row>
</u-row>
...
...
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