Commit ff1645f6 authored by Hagsn3's avatar Hagsn3

提交代码

parent ba8fa7da
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-form ref="searchRef" :model="form" :rules="rules" label-width="80px" class="formClass" label-position="right"> <el-form ref="searchRef" :model="form" :rules="rules" label-width="80px" class="formClass" label-position="right">
<div class="searchDiv"> <div class="searchDiv">
<el-form-item label="ptype:"> <el-form-item label="ptype:">
<!-- <span>{{ form.ptype && getDictLabelByValue(typeList, form.ptype.trim()) || '-' }}</span>--> <!-- <span>{{ form.ptype && getDictLabelByValue(typeList, form.ptype.trim()) || '-' }}</span>-->
<span v-if="form.ptype === '1'">jb</span> <span v-if="form.ptype === '1'">jb</span>
<span v-else-if="form.ptype === '20'">jl</span> <span v-else-if="form.ptype === '20'">jl</span>
<span v-else>-</span> <span v-else>-</span>
...@@ -345,37 +345,75 @@ export default { ...@@ -345,37 +345,75 @@ export default {
rank: values[2] rank: values[2]
} }
console.log(obj) console.log(obj)
if (obj.pn !== this.form.pn || obj.lot !== this.form.lot) { /** ptyp为1的时候*/
playAudio(true) if (this.form.ptype === '1') {
this.$message.error({ if (obj.pn !== this.form.pn || obj.lot !== this.form.lot || obj.rank !== this.form.rank) {
message: '输入不符合要求请重新输入!', playAudio(true)
duration: 2000, this.$message.error({
onClose: () => { message: '输入不符合要求请重新输入!',
playAudio(false) duration: 2000,
onClose: () => {
playAudio(false)
}
})
this.searchForm.value2 = null
} else {
// 获取LOT输入框的数据
this.lot = obj.lot
var lot = this.lot
var search = this.search
// 调用方法,并传入位置和LOT作为参数
const abj = this.getIndexAndNeedNumber(search, lot)
if (abj) {
const { index, needNumber } = abj
if (!this.rowIndexList.includes(index)) {
successAudio(true)
this.rowIndexList.push(index)
this.search = null
this.lot = null
}
this.$nextTick().then(() => {
this.$refs.input1.focus()
})
this.total = this.total + needNumber
this.searchForm.search = ''
this.searchForm.value2 = '' // 清空LOT输入框数据
} }
}) }
this.searchForm.value2 = null
} else { } else {
// 获取LOT输入框的数据 // ptype不为1的时候
this.lot = obj.lot if (obj.pn !== this.form.pn || obj.lot !== this.form.lot) {
var lot = this.lot playAudio(true)
var search = this.search this.$message.error({
// 调用方法,并传入位置和LOT作为参数 message: '输入不符合要求请重新输入!',
const abj = this.getIndexAndNeedNumber(search, lot) duration: 2000,
if (abj) { onClose: () => {
const { index, needNumber } = abj playAudio(false)
if (!this.rowIndexList.includes(index)) { }
successAudio(true)
this.rowIndexList.push(index)
this.search = null
this.lot = null
}
this.$nextTick().then(() => {
this.$refs.input1.focus()
}) })
this.total = this.total + needNumber this.searchForm.value2 = null
this.searchForm.search = '' } else {
this.searchForm.value2 = '' // 清空LOT输入框数据 // 获取LOT输入框的数据
this.lot = obj.lot
const lot = this.lot
const search = this.search
// 调用方法,并传入位置和LOT作为参数
const abj = this.getIndexAndNeedNumber(search, lot)
if (abj) {
const { index, needNumber } = abj
if (!this.rowIndexList.includes(index)) {
successAudio(true)
this.rowIndexList.push(index)
this.search = null
this.lot = null
}
this.$nextTick().then(() => {
this.$refs.input1.focus()
})
this.total = this.total + needNumber
this.searchForm.search = ''
this.searchForm.value2 = '' // 清空LOT输入框数据
}
} }
} }
} }
......
...@@ -112,13 +112,6 @@ export default { ...@@ -112,13 +112,6 @@ export default {
// 获取申请分类的数量 // 获取申请分类的数量
getTabList() { getTabList() {
querykindsNumber().then(res => { querykindsNumber().then(res => {
// const tabArray = [{ type: '1', number: 0 }, { type: '20', number: 0 }]
// if (res.code === 200) {
// for (let a = 0; a < res.data.length; a++) {
// if (res.data[a].type == '1') { tabArray[0].number = res.data[a].number }
// if (res.data[a].type == '20') { tabArray[1].number = res.data[a].number }
// }
// this.tabList = tabArray
console.log('得到的标签', res) console.log('得到的标签', res)
this.tabList = res.data this.tabList = res.data
console.log('检查列表', this.tabList) console.log('检查列表', this.tabList)
......
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