峰峰执法平台简易案件程序板块 pad端
yang
2022-10-17 4107256a8d1fa9a2db0969122bfc760994b12421
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
<template>
    <div class="correctionnotice-form">
      <el-dialog
        title="责令(限期)改正通知书"
        :close-on-click-modal="false"
        :visible.sync="visible">
        <el-form :model="dataForm" :rules="dataRule" ref="dataForm">
          <div class="correctionnotice-form-box">
            <div class="bianhao-box">
              <div>馆综罚询通字</div>
              <el-form-item>
                [<el-input disabled v-model="dataForm.documentNum"></el-input>]
              </el-form-item>
              <div>第  号</div>
            </div>
            <div class="correctionnotice-main">
              <el-form-item label="案件" prop="processAjApprovalId">
                <el-select v-model="dataForm.processAjApprovalName" placeholder="请选择" @change="causeChange">
                  <el-option
                    v-for="item in processAjApprovalList"
                    :key="item.id"
                    :label="item.processAjCoverName"
                    :value="item">
                  </el-option>
                </el-select>
              </el-form-item>
              <div class="correctionnotice-line">
                <el-form-item prop="informName">
                  <el-input v-model="dataForm.informName" placeholder="通知名称"></el-input>
                </el-form-item>
                <span>:</span>
              </div>
              <div class="correctionnotice-line genju-box">
                <h1>根据</h1>
                <el-form-item prop="relevantProvision">
                  <el-input v-model="dataForm.relevantProvision" placeholder="有关规定"></el-input>
                </el-form-item>
              </div>
              <div class="correctionnotice-line">
                <h1>本机关于</h1>
                <el-form-item prop="inspectionTime">
                  <el-date-picker
                    v-model="dataForm.inspectionTime"
                    type="date"
                    placeholder="选择日期时间"
                    align="right"
                    value-format="yyyy-MM-dd"
                  >
                  </el-date-picker>
                </el-form-item>
                <h1>对你单位(你)</h1>
                <el-form-item prop="informName">
                  <el-input v-model="dataForm.informName" placeholder="通知名称"></el-input>
                </el-form-item>
                <h1>进行了检查,</h1>
              </div>
              <div class="correctionnotice-line">
                <h1>发现存在以下问题:</h1>
              </div>
              <div class="correctionnotice-line wenti-box">
                <el-form-item prop="openQuestion">
                  <el-input v-model="dataForm.openQuestion" type="textarea" autosize placeholder="存在以下问题"></el-input>
                </el-form-item>
              </div>
              <div class="correctionnotice-line neirong-box">
                <h1>依据《中华人民共和国行政处罚法》第二十三条和</h1>
                <el-form-item prop="lawXiang">
                  <el-input v-model="dataForm.lawXiang" placeholder="违反的法律法规款项内容"></el-input>
                </el-form-item>
              </div>
              <div class="correctionnotice-line">
                <h1>现责令你单位(你)对以上问题立即改正,</h1>
                <h1>(在</h1>
                <el-form-item prop="correctTime">
                  <el-date-picker
                    v-model="dataForm.correctTime"
                    type="date"
                    placeholder="选择日期时间"
                    align="right"
                    value-format="yyyy-MM-dd"
                  >
                  </el-date-picker>
                  <!--<el-input v-model="dataForm.correctTime" placeholder="限期改正"></el-input>-->
                </el-form-item>
                <h1>前限期改正)。</h1>
              </div>
              <div class="correctionnotice-line">
                <h1>(逾期不改正的,</h1>
                <el-form-item prop="lawTiao">
                  <el-input v-model="dataForm.lawTiao" placeholder="违反的法律法规条"></el-input>
                </el-form-item>
                <h1>的规定,依法给予行政处罚。)</h1>
              </div>
              <div class="correctionnotice-line lianxiren-box">
                <el-form-item label="联 系 人" prop="phoneName" label-width="100px">
                  <el-input v-model="dataForm.phoneName" placeholder="联 系 人:"></el-input>
                </el-form-item>
              </div>
              <div class="correctionnotice-line">
                <el-form-item label="联系电话" prop="phone" label-width="100px">
                  <el-input v-model="dataForm.phone" placeholder="联系电话:"></el-input>
                </el-form-item>
              </div>
              <div class="correctionnotice-line">
                <el-form-item label="地址" prop="address" label-width="100px">
                  <el-input v-model="dataForm.address" placeholder="地址:"></el-input>
                </el-form-item>
              </div>
              <div class="zhixingDate">
                <h1>馆陶县综合行政执法局(印章)</h1>
                <el-form-item prop="executionTime">
                  <el-date-picker
                    v-model="dataForm.executionTime"
                    type="date"
                    placeholder="选择日期时间"
                    align="right"
                    value-format="yyyy-MM-dd"
                  >
                  </el-date-picker>
                  <!-- <el-input v-model="dataForm.executionTime" placeholder="执行时间"></el-input>-->
                </el-form-item>
              </div>
            </div>
          </div>
        </el-form>
        <span slot="footer" class="dialog-footer">
          <el-button @click="visible = false">取消</el-button>
          <el-button type="primary" @click="dataFormSubmit()">确定</el-button>
        </span>
      </el-dialog>
    </div>
</template>
 
<script>
    import {getObj, addObj, putObj} from '@/api/correctionnotice'
    import {findAll} from '@/api/process/processajapproval'
    export default {
        name: "correctionnotice-form",
        data () {
            return {
                visible: false,
                processAjApprovalList:[],
                dataForm: {
                    processAjApprovalName: '',
                    processAjCoverName: '',
                    id: 0,
 
                    address: '',
                    correctTime: '',
                    documentNum: '',
                    executionTime: '',
                    informName: '',
                    inspectionTime: '',
                    lawTiao: '',
                    lawXiang: '',
                    openQuestion: '',
                    phone: '',
                    phoneName: '',
                    processAjApprovalId: '',
                    relevantProvision: '',
                    tenantId: ''
                },
                dataRule: {
                    createBy: [
                        { required: true, message: '不能为空', trigger: 'blur' }
                    ],
                    createTime: [
                        { required: true, message: '不能为空', trigger: 'blur' }
                    ],
                    delFlag: [
                        { required: true, message: '不能为空', trigger: 'blur' }
                    ],
                    updateBy: [
                        { required: true, message: '不能为空', trigger: 'blur' }
                    ],
                    updateTime: [
                        { required: true, message: '不能为空', trigger: 'blur' }
                    ],
                    address: [
                        { required: true, message: '地址不能为空', trigger: 'blur' }
                    ],
                    correctTime: [
                        { required: true, message: '限期改正不能为空', trigger: 'blur' }
                    ],
                    documentNum: [
                        { required: true, message: '序列号不能为空', trigger: 'blur' }
                    ],
                    executionTime: [
                        { required: true, message: '执行时间不能为空', trigger: 'blur' }
                    ],
                    informName: [
                        { required: true, message: '通知名称不能为空', trigger: 'blur' }
                    ],
                    inspectionTime: [
                        { required: true, message: '检查时间不能为空', trigger: 'blur' }
                    ],
                    lawTiao: [
                        { required: true, message: '违反的法律法规条不能为空', trigger: 'blur' }
                    ],
                    lawXiang: [
                        { required: true, message: '违反的法律法规款项内容不能为空', trigger: 'blur' }
                    ],
                    openQuestion: [
                        { required: true, message: '存在以下问题不能为空', trigger: 'blur' }
                    ],
                    phone: [
                        { required: true, message: '联系电话不能为空', trigger: 'blur' }
                    ],
                    phoneName: [
                        { required: true, message: '联 系 人不能为空', trigger: 'blur' }
                    ],
                    processAjApprovalId: [
                        { required: true, message: '立案审批表id不能为空', trigger: 'blur' }
                    ],
                    relevantProvision: [
                        { required: true, message: '有关规定不能为空', trigger: 'blur' }
                    ],
                    tenantId: [
                        { required: true, message: '租户id不能为空', trigger: 'blur' }
                    ]
                }
            }
        },
        methods: {
            init (id) {
                this.dataForm.id = id || 0
                this.visible = true
                this.$nextTick(() => {
                    this.$refs['dataForm'].resetFields()
                    if (this.dataForm.id) {
                        getObj(this.dataForm.id).then(response => {
                            this.dataForm = response.data.data
                        })
                    }
                })
                //获取所有案件
                this.findAllProcessAj();
            },
 
            //查询所有案件
            findAllProcessAj(){
                findAll().then(res => {
                    console.log(res.data.data)
                    this.processAjApprovalList = res.data.data
                });
            },
 
 
            //选择案件改变
            causeChange(item) {
                console.log(item);
                this.dataForm.processAjApprovalId = item.id
                this.dataForm.processAjApprovalName = item.processAjCoverName
                /* this.dataForm.subjectType = item.subjectType
                 this.dataForm.subjectName = item.subjectName*/
            },
 
 
 
 
            // 表单提交
            dataFormSubmit () {
                this.$refs['dataForm'].validate((valid) => {
                    if (valid) {
                        if (this.dataForm.id) {
                            putObj(this.dataForm).then(data => {
                                this.$message.success('修改成功')
                                this.visible = false
                                this.$emit('refreshDataList')
                            });
                        } else {
                            addObj(this.dataForm).then(data => {
                                this.$message.success('添加成功')
                                this.visible = false
                                this.$emit('refreshDataList')
                            })
                        }
                    }
                })
            }
        }
    }
</script>
 
<style>
  .correctionnotice-form .el-dialog__header{
    text-align: center;
    font-weight: 700;
  }
  .correctionnotice-line .el-input__inner{
    border:none;
    border-radius:0;
    background-color: transparent;
    border-bottom:1px solid #DCDFE6;
  }
  .wenti-box .el-form-item{
    width: 100%;
  }
  .wenti-box .el-textarea__inner
  {
    border:none;
    border-radius:0;
    background-color: transparent;
    border-bottom:1px solid #DCDFE6;
  }
  .correctionnotice-line .el-form-item{
    margin-bottom: 0;
  }
  .genju-box .el-form-item{
    width: 85%;
  }
  .neirong-box .el-form-item{
    width: calc(100% - 270px);
  }
</style>
<style scoped>
  .correctionnotice-form-box{
    position: relative;
    padding:0 20px;
  }
  .bianhao-box{
    position: absolute;
    right: 0px;
    top:0px;
    display: flex;
    align-items: center;
    z-index: 1;
  }
  .correctionnotice-line{
    display: flex;
    align-items: center;
    padding:10px 0;
  }
  .zhixingDate{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 30px;
  }
  .genju-box h1{
    text-indent: 2.5em;
  }
  .lianxiren-box{
    margin-top: 30px;
  }
</style>