licp
2024-12-19 97c857f75a9ef32489678e8dd5925472e9c7a9d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<template>
    <el-form 
        :model="form"
        :disabled="disabled"
        label-width="130px" 
        size="small"
        style="position: relative"
    >
    <el-card :body-style="{ height: '350px', overflow: 'auto'}">
        <el-form-item label="验证部门">
            <el-select
                v-model="form.verificationDepartmentPersonId" 
                placeholder="请选择"
                style="width: 100%"
            >
                <el-option
                    v-for="(item, index) in userList"
                    :key="index"
                    :label="item.name"
                    :value="item.id"
                ></el-option>
            </el-select>
        </el-form-item>
        <el-form-item label="实施验证结果">
            <el-input type="textarea"
                v-model="form.implementationVerificationResults"
                :rows="2"
                placeholder="请输入内容"
            >
            </el-input>
        </el-form-item>
    </el-card>
    <el-form-item label-width="0">
        <div style="display: flex; width: 100%; justify-content: space-between; margin-top: 15px;">
            <div>
                操作人:{{ currentResponsible }}
            </div>
            <div v-if="step == 3">
                <el-button :disabled="false" @click="cancel">驳回</el-button>
                <el-button type="primary" @click="submit">提交</el-button>
            </div>
        </div>
    </el-form-item>
    </el-form>
</template>
<script>
export default {
    props: {
        currentResponsible: {
            type: String,
            default: ''
        },
        resultForm: {
            type: Object,
            default: {}
        },
        step: {
            type: Number,
            default: 0
        },
        disabled: {
            type: Boolean,
            default: false
        },
        userList: {
            type: Array,
            default: []
        },
    },
    computed: {
        form: {
            get() {
                return this.resultForm
            },
            set(val) {
                this.$emit('update:resultForm', val)
            }
        }
    },
    data() {
        return {
           
        }
    },
    methods: {
        submit() {
            this.$emit('nextStep', 'submit')
        },
        save() {
            this.$emit('nextStep', 'save')
        },
        cancel() {
            this.$emit('cancel', 'cancel')
        }
    }
}
</script>
<style scoped></style>