shj
2022-08-10 0e03c36cbe9a432763a6325320453a4666f080ee
对接
已修改2个文件
51 ■■■■■ 文件已修改
src/views/accidentManagementSystem/workInjuryDeclaration/component/openAdd.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/accidentManagementSystem/workInjuryDeclaration/index.vue 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/accidentManagementSystem/workInjuryDeclaration/component/openAdd.vue
@@ -351,6 +351,9 @@
                await formEl.validate((valid, fields) => {
                    if (valid) {
                        isShowDialog.value = false;
                        ruleForm.value.fileList=[]
                        delete ruleForm.value.accidentName
                        delete ruleForm.value.occurrenceTime
                        accidentManagementSystemApi()
                            .workAdd(ruleForm.value)
                            .then((res) => {
@@ -380,6 +383,9 @@
                await formEl.validate((valid, fields) => {
                    if (valid) {
                        isShowDialog.value = false;
                        ruleForm.value.fileList=[]
                        delete ruleForm.value.accidentName
                        delete ruleForm.value.occurrenceTime
                        accidentManagementSystemApi()
                            .workView(ruleForm.value)
                            .then((res) => {
src/views/accidentManagementSystem/workInjuryDeclaration/index.vue
@@ -4,8 +4,7 @@
            <div class="system-user-search mb15">
                <el-form ref="ruleFormRef" size="default" label-width="80px" :inline="true">
                    <el-form-item prop="telephone">
                        <el-input v-model="listQuery.searchParams.accidentName" placeholder="请选择事故快报" :disabled="true"
                                  class="input-with-select">
                        <el-input v-model="accidentName" placeholder="请选择事故快报" :disabled="true" class="input-with-select">
                            <template #append>
                                <el-button :icon="Search" @click="daiInpt"/>
                            </template>
@@ -54,8 +53,7 @@
                    </el-button>
                </div>
            </div>
            <el-table :data="tableData" style="width: 100%" ref="multipleTableRef"
                      @selection-change="handleSelectionChange">
            <el-table :data="tableData" style="width: 100%" ref="multipleTableRef" @selection-change="handleSelectionChange">
                <el-table-column type="selection" width="55"/>
                <el-table-column prop="declareUserName" label="申报人名称" show-overflow-tooltip sortable></el-table-column>
                <el-table-column prop="deptName" label="申报人部门" show-overflow-tooltip sortable></el-table-column>
@@ -114,21 +112,8 @@
        defineComponent,
        onMounted,
    } from 'vue';
    import {
        ElMessageBox,
        ElMessage
    } from 'element-plus';
    import {
        Plus,
        Download,
        Refresh,
        View,
        EditPen,
        Edit,
        Delete,
        Search,
        Upload
    } from '@element-plus/icons-vue';
import { ElMessageBox, ElMessage } from 'element-plus';
import { Plus, Download, Refresh, View, EditPen, Edit, Delete, Search, Upload } from '@element-plus/icons-vue';
    import AccidentName from '/@/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue';
    import OpenAdd from '/@/views/accidentManagementSystem/workInjuryDeclaration/component/openAdd.vue';
    import OpenEdit from '/@/views/accidentManagementSystem/workInjuryDeclaration/component/openEdit.vue';
@@ -157,14 +142,14 @@
                pageIndex: 1,
                pageSize: 10,
                searchParams: {
                    accidentExpressId: "",
                accidentExpressId: '',
                },
            });
            //搜索条件回填
            const onSelectItem = (item: any) => {
                console.log('item', item[0].accidentName);
                listQuery.searchParams.accidentExpressId = item[0].id
                listQuery.searchParams.accidentName = item[0].accidentName
            listQuery.searchParams.accidentExpressId = item[0].id;
            accidentName.value = item[0].accidentName;
            };
            // 定义表格数据
            const tableData = ref([]);
@@ -183,12 +168,13 @@
            onMounted(() => {
                listApi();
            });
        const accidentName=ref()
            // 重置
            const submitReset = () => {
                listQuery.searchParams.accidentExpressId = ''
                listQuery.searchParams.accidentName = ''
            listQuery.searchParams.accidentExpressId = '';
            accidentName.value = '';
                listApi();
            }
        };
            const warning = ref(true);
            const danger = ref(true);
            const deletAll = ref();
@@ -271,8 +257,7 @@
                                }
                            });
                    })
                    .catch(() => {
                    });
                .catch(() => {});
            };
            // 多选删除
            const onDeleteAll = () => {
@@ -302,8 +287,7 @@
                                }
                            });
                    })
                    .catch(() => {
                    });
                .catch(() => {});
            };
            // 分页
            const pageIndex = ref();
@@ -318,6 +302,7 @@
                listQuery.pageIndex = val;
            };
            return {
            accidentName,
                daiInpt,
                showRef,
                upButton,
@@ -342,7 +327,7 @@
                onRowDel,
                total,
                onMyAdd,
                onSelectItem
            onSelectItem,
            };
        },
    });