Commit 22c6d056 authored by 刘宇扬's avatar 刘宇扬

入库

parent feabc2c6
...@@ -135,19 +135,15 @@ export default { ...@@ -135,19 +135,15 @@ export default {
}, },
methods: { methods: {
handleDelete(row) { handleDelete(row) {
const { this.form = {
pn, pn: '',
lot lot: '',
} = this.form plocation: '',
// this.form = { phd: '',
// pn: '', flag: 1,
// lot: '', ptype: 1,
// plocation: '', pstatus: 0
// phd: '', }
// flag: 1,
// ptype: 1,
// pstatus: 0
// }
// 检查选中行是否已存在于selectedRows数组中 // 检查选中行是否已存在于selectedRows数组中
const index = this.selectedRows.findIndex(selectedRow => selectedRow === row) const index = this.selectedRows.findIndex(selectedRow => selectedRow === row)
if (index !== -1) { if (index !== -1) {
...@@ -161,17 +157,6 @@ export default { ...@@ -161,17 +157,6 @@ export default {
this.tableData = this.tableData.filter(row => !this.selectedRows.includes(row)) this.tableData = this.tableData.filter(row => !this.selectedRows.includes(row))
// 清空selectedRows数组 // 清空selectedRows数组
this.selectedRows = [] this.selectedRows = []
if (pn !== this.form.pn && lot !== this.form.lot) {
this.form = {
pn: '',
lot: '',
plocation: '',
phd: '',
flag: 1,
ptype: 1,
pstatus: 0
}
}
}, },
handleUpdate(row) { handleUpdate(row) {
this.form.pn = row.pn this.form.pn = row.pn
......
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