|
@@ -105,7 +105,7 @@
|
|
|
width="150"
|
|
width="150"
|
|
|
>
|
|
>
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
- <el-input v-model="row['实际投料']" />
|
|
|
|
|
|
|
+ <el-input @keyup.enter="handleUpdate" v-model="row['实际投料']" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -150,7 +150,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import { watch, ref, reactive, defineProps, defineEmits, onBeforeUnmount } from 'vue'
|
|
import { watch, ref, reactive, defineProps, defineEmits, onBeforeUnmount } from 'vue'
|
|
|
|
|
|
|
|
const props = defineProps(['modelValue', 'gdbh','yjno'])
|
|
const props = defineProps(['modelValue', 'gdbh','yjno'])
|
|
|
-const emits = defineEmits(['update:modelValue'])
|
|
|
|
|
|
|
+const emits = defineEmits(['update:modelValue','update-data'])
|
|
|
const tableData = ref([])
|
|
const tableData = ref([])
|
|
|
const table = ref(null)
|
|
const table = ref(null)
|
|
|
const multipleSelection = ref([])
|
|
const multipleSelection = ref([])
|
|
@@ -206,7 +206,10 @@ const handleSearch = () => {
|
|
|
|
|
|
|
|
const handleUpdate = async() => {
|
|
const handleUpdate = async() => {
|
|
|
if (multipleSelection.value.length === 0) {
|
|
if (multipleSelection.value.length === 0) {
|
|
|
- console.log('未选择行')
|
|
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ message: '未选择行',
|
|
|
|
|
+ })
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
const params = multipleSelection.value.map(item => ({
|
|
const params = multipleSelection.value.map(item => ({
|
|
@@ -219,6 +222,7 @@ const handleUpdate = async() => {
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: '更新成功',
|
|
message: '更新成功',
|
|
|
})
|
|
})
|
|
|
|
|
+ emits('update-data', false);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|