Commit dfbd643a authored by 沈翠玲's avatar 沈翠玲

序列号报工

parent 7cae4f14
...@@ -234,6 +234,7 @@ ...@@ -234,6 +234,7 @@
<u-input <u-input
v-model="feedback.qrcode" v-model="feedback.qrcode"
:focus="isFocus" :focus="isFocus"
@blur="onQrcodechange($event)"
@confirm="onQrcodechange($event)" @confirm="onQrcodechange($event)"
:placeholder="$t('请输入序列号')" :placeholder="$t('请输入序列号')"
/> />
...@@ -1595,12 +1596,14 @@ export default { ...@@ -1595,12 +1596,14 @@ export default {
}) })
}, },
onQrcodechange(val) { onQrcodechange(val) {
console.log('val', val)
this.feedbackForms[0]['qrcode'] = val this.feedbackForms[0]['qrcode'] = val
if (!val) return if (!val) return
const datas = Object.assign({}, this.feedbackForms[0]) const datas = Object.assign({}, this.feedbackForms[0])
this.$u.api this.$u.api
.validateSerialNo({ .validateSerialNo({
qrcode: datas.qrcode, qrcode: datas.qrcode,
taskId: datas.taskId,
taskWorkunitId: datas.taskWorkunitId, taskWorkunitId: datas.taskWorkunitId,
}) })
.then((res) => { .then((res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment