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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
| <template>
| <el-form
| label-width="160px"
| :model="form"
| :disabled="disabled"
| style="position: relative;"
| size="small"
| >
| <el-card :body-style="{ height: '350px', overflow: 'auto'}">
| <el-form-item label="部门负责人">
| <el-select
| v-model="form.departmentHeadId"
| 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-select
| v-model="form.supervisedPersonId"
| 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-checkbox-group
| v-model="form.discoveryApproach"
| >
| <el-checkbox
| v-for="(item, index) in checkbox"
| :key="index"
| :label="item.value"
| name="type"
| >{{ item.label }}
| </el-checkbox>
| </el-checkbox-group>
| </el-form-item>
| <el-form-item label="不符合工作的详细记录">
| <el-input
| v-model="form.notConformDetails"
| type="textarea"
| :rows="2"
| placeholder="请输入内容"
| ></el-input>
| </el-form-item>
| <el-form-item label="不符合的依据及条款号">
| <el-input
| v-model="form.nonConformityClause"
| type="textarea"
| :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 == 0 || step == 1">
| <el-button v-if="step == 1" :disabled="false" @click="cancel">驳回</el-button>
| <el-button :disabled="false" @click="save">保存</el-button>
| <el-button type="primary" @click="onSubmit" :disabled="false">提交</el-button>
| </div>
| </div>
| </el-form-item>
| </el-form>
| </template>
| <script>
|
| export default {
| props: {
| currentResponsible: {
| type: String,
| default: ''
| },
| disabled: {
| type: Boolean,
| default: false
| },
| userList: {
| type: Array,
| default: () => {
| return []
| }
| },
| step: {
| type: Number,
| default: 0
| },
| condiForm: {
| type: Object,
| default: () => {
| return {}
| }
| }
| },
| computed: {
| form: {
| get() {
| return this.condiForm
| },
| set(val) {
| this.$emit('update:condiForm', val)
| }
| }
| },
| data() {
| return {
| checkbox: [
| {
| label: '管理评审',
| value: 0
| }, {
| label: '内部审核',
| value: 1
| }, {
| label: '检测过程控制',
| value: 2
| }, {
| label: '内部质量控制',
| value: 3
| }, {
| label: '内部监督',
| value: 4
| }, {
| label: '外部评审/检查',
| value: 5
| }, {
| label: '顾客投诉/意见反馈',
| value: 6
| }, {
| label: '其他',
| value: 7
| }
| ],
| }
| },
| methods: {
| onSubmit() {
| this.$emit('nextStep', 'submit')
| },
| save() {
| this.$emit('nextStep', 'save')
| },
| cancel() {
| this.$emit('cancel', 'cancel')
| }
| }
| }
| </script>
|
|