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
24479349
Commit
24479349
authored
Oct 17, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫码枪
parent
3f8aabe5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
31 deletions
+3
-31
index.vue
pages/mes/prodReport/index.vue
+3
-31
No files found.
pages/mes/prodReport/index.vue
View file @
24479349
...
...
@@ -16,11 +16,8 @@
<view>
<u-form
:model=
"tableParams"
labelAlign=
"right"
class=
"tableForm"
>
<u-form-item
:label=
"$t('扫码')"
label-width=
"50px"
name=
"arrangeCode"
>
<!-- <uni-easyinput type="text" suffixIcon="scan" :focus="isFocus" v-model="tableParams.arrangeCode" style="width: 200px"
@iconClick="iconClickArrangeCode" @confirm="confirmArrange($event)" :placeholder="$t('请输入工单编号或编排单号')" /> -->
<view class="public-input">
<u-input v-model="tableParams.arrangeCode" @confirm="confirmArrange($event)" :placeholder="$t('请输入工单编号或编排单号')" :clearable="false" />
<uni-icons color="rgb(209 206 206)" type="scan" size="20" @click="iconClickArrangeCode"></uni-icons>
<view
class=
"public-input"
style=
"width: 200px;"
>
<u-input
v-model=
"tableParams.arrangeCode"
@
confirm=
"confirmArrange($event)"
:placeholder=
"$t('请输入工单编号或编排单号')"
/>
</view>
</u-form-item>
<u-form-item
name=
"allowProduce"
label-width=
"80px"
:label=
"$t('当前可加工')"
>
...
...
@@ -140,8 +137,7 @@
<
u
-
col
:
span
=
"6"
v
-
if
=
"feedback.isSerialReport && Number(feedback.isSerialReport) === 1"
>
<
u
-
form
-
item
:
label
=
"$t('序列号:')"
name
=
"qrcode"
>
<
view
class
=
"public-input"
style
=
"width: 100%;"
>
<u-input v-model="feedback.qrcode" @confirm="onQrcodechange($event)" @focus="feedback.oldqrcode = feedback.qrcode" :placeholder="$t('请输入序列号')" :clearable="false" />
<uni-icons color="rgb(209 206 206)" type="scan" size="20" @click="iconClickQrcode"></uni-icons>
<
u
-
input
v
-
model
=
"feedback.qrcode"
@
confirm
=
"onQrcodechange($event)"
@
focus
=
"feedback.oldqrcode = feedback.qrcode"
:
placeholder
=
"$t('请输入序列号')"
/>
<
/view
>
<
/u-form-item
>
<
/u-col
>
...
...
@@ -1260,30 +1256,6 @@ export default {
}
}
);
}
,
iconClickArrangeCode() {
uni.scanCode({
success: (res) => {
// console.log(res, 'res');
this.tableParams.arrangeCode = res.result
this.getTaskList({ arrangeCode: res.result });
},
fail: () => {
this.$u.toast(i18n.t('扫码失败,请重新扫描'));
}
});
},
iconClickQrcode() {
this.feedbackForms[0]['oldqrcode'] = this.feedbackForms[0]['qrcode']
uni.scanCode({
success: (res) => {
// console.log(res, 'res');
this.onQrcodechange(res.result);
},
fail: () => {
this.$u.toast(i18n.t('扫码失败,请重新扫描'));
}
});
},
onQrcodechange
(
val
){
this
.
feedbackForms
[
0
][
'qrcode'
]
=
val
if
(
!
val
)
return
...
...
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