| | |
| | | <template> |
| | | <el-row justify="space-between"> |
| | | <el-text>单日计划</el-text> |
| | | <el-text>{{dateStr}}计划</el-text> |
| | | <div v-show="create && data && data.length > 0"> |
| | | <el-button |
| | | icon="IconPrinter" |
| | |
| | | </div> |
| | | </el-scrollbar> |
| | | </div> |
| | | <!-- 编辑巡查子任务 --> |
| | | <el-dialog |
| | | v-model="dialogVisible" |
| | | width="600" |
| | |
| | | @cancel="dialogVisible = false" |
| | | ></CompSubTaskEdit> |
| | | </el-dialog> |
| | | <!-- 巡查单下载 --> |
| | | <SceneInspectFile |
| | | v-model="downloadDialog" |
| | | :value="downloadSceneList" |
| | |
| | | </template> |
| | | <script setup> |
| | | import { ref, computed, watch, onMounted, onUnmounted } from 'vue'; |
| | | import { ElMessageBox, ElNotification, ElMessage } from 'element-plus'; |
| | | import { ElMessageBox, ElNotification, ElMessage, dayjs } from 'element-plus'; |
| | | import CompSubTaskEdit from './CompSubTaskEdit.vue'; |
| | | import SceneInspectFile from '@/views/fysp/scene/SceneInspectFile.vue'; |
| | | import subtaskApi from '@/api/fysp/subtaskApi'; |
| | | |
| | | const props = defineProps({ |
| | | modelValue: Array, |
| | | date: Date, |
| | | height: { |
| | | type: String, |
| | | default: '70vh' |
| | |
| | | |
| | | const emit = defineEmits(['submit', 'add', 'remove', 'update:modelValue']); |
| | | |
| | | const dateStr = computed(()=> dayjs(props.date).format('MM月DD日')) |
| | | |
| | | function remove(item) { |
| | | if (item.status == '未执行') { |
| | | ElMessageBox.confirm('是否移除监管任务', `移除确认`, { |