峰峰执法平台简易案件程序板块 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
<template>
   <div class="finalreportofinvestigation-form-box">
     <el-dialog
       title="调查终结报告"
       :close-on-click-modal="false"
       :visible.sync="visible">
       <el-form :model="dataForm" :rules="dataRule" ref="dataForm" :inline="true">
         <div class="finalreportofinvestigation-form">
           <el-form-item label="案件:" prop="processAjApprovalName">
             <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="final-line">
             <el-form-item label="案件来源" prop="source">
               <el-input v-model="dataForm.source" placeholder="案件来源"></el-input>
             </el-form-item>
             <el-form-item label="立案时间" prop="filingTime">
               <!--        <el-input v-model="dataForm.filingTime" placeholder="立案时间"></el-input>-->
               <el-date-picker
                 style="width: 100%"
                 value-format="yyyy-MM-dd"
                 v-model="dataForm.filingTime"
                 type="date"
                 placeholder="选择日期">
               </el-date-picker>
             </el-form-item>
           </div>
           <div class="final-line">
             <el-form-item label="当事人" prop="party">
               <el-input v-model="dataForm.party" placeholder="当事人"></el-input>
             </el-form-item>
             <el-form-item label="法定代表人" prop="legalRepresentative">
               <el-input v-model="dataForm.legalRepresentative" placeholder="法定代表人"></el-input>
             </el-form-item>
           </div>
           <div class="final-line">
             <el-form-item label="身份证号" prop="idCard">
               <el-input v-model="dataForm.idCard" placeholder="身份证号"></el-input>
             </el-form-item>
             <el-form-item label="联系电话" prop="phone">
               <el-input v-model="dataForm.phone" placeholder="联系电话"></el-input>
             </el-form-item>
           </div>
           <el-form-item label="工作单位及职务" prop="workAndPosition">
             <el-input v-model="dataForm.workAndPosition" placeholder="工作单位及职务"></el-input>
           </el-form-item>
           <el-form-item label="住址或地址" prop="address">
             <el-input v-model="dataForm.address" placeholder="住址或地址"></el-input>
           </el-form-item>
           <div class="final-line">
             <el-form-item label="委托代理人" prop="agent">
               <el-input v-model="dataForm.agent" placeholder="委托代理人"></el-input>
             </el-form-item>
             <el-form-item label="工作单位及职务" prop="agentWorkAndPosition">
               <el-input v-model="dataForm.agentWorkAndPosition" placeholder="委托代理人工作单位及职务"></el-input>
             </el-form-item>
           </div>
           <div class="final-line">
             <el-form-item label="委托代理人身份证号" prop="agentIdCard">
               <el-input v-model="dataForm.agentIdCard" placeholder="委托代理人身份证号"></el-input>
             </el-form-item>
             <el-form-item label="委托代理人联系电话" prop="agentPhone">
               <el-input v-model="dataForm.agentPhone" placeholder="委托代理人联系电话"></el-input>
             </el-form-item>
           </div>
             <el-form-item label="委托代理人住址或地址" prop="agentAddress">
               <el-input v-model="dataForm.agentAddress" placeholder="委托代理人住址或地址"></el-input>
             </el-form-item>
           <div class="final-line">
             <el-form-item label="执法人员" prop="lawEnforcementOfficials">
               <el-input v-model="dataForm.lawEnforcementOfficials" placeholder="执法人员"></el-input>
             </el-form-item>
             <el-form-item label="执法证号" prop="lawEnforcementCertificateNo">
               <el-input v-model="dataForm.lawEnforcementCertificateNo" placeholder="执法证号"></el-input>
             </el-form-item>
           </div>
           <div class="final-line final-textArea">
             <el-form-item label="简要案情" prop="briefCase">
               <el-input v-model="dataForm.briefCase" type="textarea" placeholder="简要案情"></el-input>
             </el-form-item>
           </div>
           <div class="final-line final-textArea">
             <el-form-item label="调查经过" prop="investigationProcess">
               <el-input v-model="dataForm.investigationProcess" type="textarea" placeholder="调查经过"></el-input>
             </el-form-item>
           </div>
           <el-form-item label="处理意见和建议" prop="handlingOpinionsAndSuggestions">
             <el-input v-model="dataForm.handlingOpinionsAndSuggestions" placeholder="处理意见和建议"></el-input>
           </el-form-item>
           <div class="final-line-font">
             <h1>此案现已调查终结,特此报告。</h1>
           </div>
           <div class="final-line-end">
             <el-form-item label="承办人签名" prop="signatureOfTheUndertaker">
               <el-input v-model="dataForm.signatureOfTheUndertaker" placeholder="承办人签名"></el-input>
             </el-form-item>
             <el-form-item label="" prop="reportTime">
               <!--        <el-input v-model="dataForm.filingTime" placeholder="立案时间"></el-input>-->
               <el-date-picker
                 style="width: 100%"
                 value-format="yyyy-MM-dd"
                 v-model="dataForm.reportTime"
                 type="date"
                 placeholder="选择日期">
               </el-date-picker>
             </el-form-item>
           </div>
         </div>
         <div class="final-footer">
          <el-button @click="visible = false">取消</el-button>
          <el-button type="primary" @click="dataFormSubmit()">确定</el-button>
        </div>
       </el-form>
     </el-dialog>
   </div>
</template>
 
<script>
    import {getObj, addObj, putObj} from '@/api/process/finalreportofinvestigation'
    import {findAll} from "@/api/process/processajapproval";
    export default {
        name: "finalreportofinvestigation-form",
        data() {
            return {
                visible: false,
                processAjApprovalList: [],
                dataForm: {
                    id: 0,
                    processAjApprovalName:'',
                    createBy: '',
                    createTime: '',
                    updateBy: '',
                    updateTime: '',
                    reportTime:'',
                    address: '',
                    agent: '',
                    agentAddress: '',
                    agentIdCard: '',
                    agentPhone: '',
                    agentWorkAndPosition: '',
                    briefCase: '',
                    causeAction: '',
                    filingTime: '',
                    handlingOpinionsAndSuggestions: '',
                    idCard: '',
                    investigationProcess: '',
                    lawEnforcementCertificateNo: '',
                    lawEnforcementOfficials: '',
                    legalRepresentative: '',
                    party: '',
                    phone: '',
                    signatureOfTheUndertaker: '',
                    source: '',
                    workAndPosition: ''
                },
                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'}
                    ],
                    agent: [
                        {required: true, message: '委托代理人不能为空', trigger: 'blur'}
                    ],
                    agentAddress: [
                        {required: true, message: '委托代理人住址或地址不能为空', trigger: 'blur'}
                    ],
                    agentIdCard: [
                        {required: true, message: '委托代理人身份证号不能为空', trigger: 'blur'}
                    ],
                    agentPhone: [
                        {required: true, message: '委托代理人联系电话不能为空', trigger: 'blur'}
                    ],
                    agentWorkAndPosition: [
                        {required: true, message: '委托代理人工作单位及职务不能为空', trigger: 'blur'}
                    ],
                    briefCase: [
                        {required: true, message: '简要案情不能为空', trigger: 'blur'}
                    ],
                    causeAction: [
                        {required: true, message: '案由不能为空', trigger: 'blur'}
                    ],
                    filingTime: [
                        {required: true, message: '立案时间不能为空', trigger: 'blur'}
                    ],
                    handlingOpinionsAndSuggestions: [
                        {required: true, message: '处理意见和建议不能为空', trigger: 'blur'}
                    ],
                    idCard: [
                        {required: true, message: '身份证号不能为空', trigger: 'blur'}
                    ],
                    investigationProcess: [
                        {required: true, message: '调查经过不能为空', trigger: 'blur'}
                    ],
                    lawEnforcementCertificateNo: [
                        {required: true, message: '执法证号不能为空', trigger: 'blur'}
                    ],
                    lawEnforcementOfficials: [
                        {required: true, message: '执法人员不能为空', trigger: 'blur'}
                    ],
                    legalRepresentative: [
                        {required: true, message: '法定代表人不能为空', trigger: 'blur'}
                    ],
                    party: [
                        {required: true, message: '当事人不能为空', trigger: 'blur'}
                    ],
                    phone: [
                        {required: true, message: '联系电话不能为空', trigger: 'blur'}
                    ],
                    signatureOfTheUndertaker: [
                        {required: true, message: '承办人签名不能为空', trigger: 'blur'}
                    ],
                    source: [
                        {required: true, message: '案件来源不能为空', trigger: 'blur'}
                    ],
                    workAndPosition: [
                        {required: true, message: '工作单位及职务不能为空', 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 => {
                    this.processAjApprovalList = res.data.data
                });
            },
            causeChange(item) {
                console.log('item-------',item)
                this.dataForm.administrativePenaltyFilesId = item.id;
                this.dataForm.processAjApprovalName = item.processAjCoverName;
                this.dataForm.source = item.caseSource;
                item.createTime && (this.dataForm.filingTime = this.moment(item.createTime).format('YYYY-MM-DD'));
                //let processAjApproval;
                // this.processAjApprovalList.forEach(item => {
                //     if(item.id === id){
                //         processAjApproval = item;
                //     }
                // });
                // this.dataForm.administrativePenaltyFilesId = id;
                // this.dataForm.processAjApprovalId = id;
                // this.dataForm.causeAction = processAjApproval.caseReason;
                // this.dataForm.caseAndInvestigation = processAjApproval.caseReason;
            },
            // 表单提交
            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>
  .finalreportofinvestigation-form .el-input__inner{
    border:none;
    border-bottom:1px solid #E4E7ED;
    background-color: transparent!important;
    border-radius:0px;
  }
  .finalreportofinvestigation-form .el-textarea__inner{
    border:none;
    border-bottom:1px solid #E4E7ED;
    background-color: transparent!important;
    border-radius:0px;
  }
  .final-line .el-form-item{
    width: 100%;
  }
  .final-textArea .el-form-item__content{
    width: 100%;
  }
</style>
<style scoped>
.final-line{
  display: flex;
}
  .final-line-end{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 40px;
  }
  .final-line-font h1{
    text-indent: 2.5em;
  }
  .finalreportofinvestigation-form{
    padding:0 20px;
  }
  .final-footer{
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
</style>