mdf:修改组盘为混料

This commit is contained in:
zhangzq
2025-07-22 09:57:35 +08:00
parent 091add5d89
commit 8d38fca14a
4 changed files with 280 additions and 17 deletions

View File

@@ -37,9 +37,7 @@
border
:cell-style="{'text-align':'center'}"
:header-cell-style="{background:'#f5f7fa',color:'#606266','text-align':'center'}"
@select="handleSelectionChange"
@select-all="onSelectAll"
@current-change="clickChange"
@selection-change="clickChange"
>
<el-table-column v-if="!isSingle" type="selection" width="55" />
<el-table-column v-if="isSingle" label="选择" width="55">
@@ -87,7 +85,7 @@ export default {
},
isSingle: {
type: Boolean,
default: true
default: false
}
},
data() {
@@ -102,6 +100,11 @@ export default {
handler(newValue) {
this.dialogVisible = newValue
}
},
isSingle: {
handler(newValue) {
this.isSingle = newValue
}
}
},
methods: {
@@ -110,17 +113,6 @@ export default {
},
open() {
},
handleSelectionChange(val, row) {
if (val.length > 1) {
this.$refs.table.clearSelection()
this.$refs.table.toggleRowSelection(val.pop())
} else {
this.checkrow = row
}
},
onSelectAll() {
this.$refs.table.clearSelection()
},
close() {
this.crud.resetQuery(false)