峰峰执法平台简易案件程序板块 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
<template>
    <div class="deportation-form">
      <el-dialog
        :close-on-click-modal="false"
        :visible.sync="visible"
        title="当场行政处罚决定书(存根联)">
        <el-form :model="dataForm" :rules="dataRule" ref="dataForm">
          <div class="deportation-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="deportation-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="deportation-line deport-lianxiren-box">
                <el-form-item prop="contactsName">
                  <el-input v-model="dataForm.contactsName" placeholder="联系人"></el-input>
                </el-form-item>
                <span>:</span>
              </div>
              <div class="deportation-line">
                <h1>本机关于</h1>
                <el-form-item prop="crimeTime">
                  <el-date-picker
                    v-model="dataForm.crimeTime"
                    type="date"
                    placeholder="选择日期时间"
                    align="right"
                    value-format="yyyy-MM-dd"
                  >
                  </el-date-picker>
                </el-form-item>
              </div>
              <div class="deportation-line anjianname-box">
                <el-form-item prop="processAjApprovalName">
                  <el-input v-model="dataForm.processAjApprovalName" placeholder="案件名"></el-input>
                </el-form-item>
                <h1>一案立案调查,在调查中发现,</h1>
              </div>
              <div class="deportation-line yisong-box">
                <el-form-item prop="deportationReason">
                  <el-input v-model="dataForm.deportationReason" type="textarea" autosize placeholder="移送的理由"></el-input>
                </el-form-item>
              </div>
              <div class="deportation-line">
                <h1>
                  此案超出本机关管辖范围。
                </h1>
              </div>
              <div class="deportation-line yizhao-box">
                <h1>依照</h1>
                <el-form-item prop="legalStipulate">
                  <el-input v-model="dataForm.legalStipulate" placeholder="法律规定"></el-input>
                </el-form-item>
                <h1>规定,现将该案移送你单位处理。</h1>
              </div>
              <div class="deportation-line fu">
                <h1>附:</h1>
              </div>
              <div class="deportation-block yisong-box">
                <h1>1.案件有关材料</h1>
                <el-form-item prop="lawCaseMaterials1">
                  <el-input v-model="dataForm.lawCaseMaterials1" type="textarea" autosize placeholder="案件有关材料1"></el-input>
                </el-form-item>
              </div>
              <div class="deportation-block yisong-box">
                <h1>2.移送案件涉案物品清单</h1>
                <el-form-item prop="lawCaseInventory">
                  <el-input v-model="dataForm.lawCaseInventory" type="textarea" autosize 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/deportation'
    import {findAll} from '@/api/process/processajapproval'
    export default {
        name: "deportation-form",
        data () {
            return {
                visible: false,
                processAjApprovalList: [],
                dataForm: {
                    id: 0,
                    createBy: '',
                    createTime: '',
                    updateBy: '',
                    updateTime: '',
                    contactsName: '',
                    crimeTime: '',
                    deportationReason: '',
                    documentNum: '',
                    executionTime: '',
                    lawCaseInventory: '',
                    lawCaseMaterials1: '',
                    lawCaseMaterials2: '',
                    legalStipulate: '',
                    name: '',
                    phone: '',
                    processAjApprovalId: '',
                    processAjApprovalName: '',
                    synthesizeMark: '',
                    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' }
                    ],
                    contactsName: [
                        { required: true, message: '联系人不能为空', trigger: 'blur' }
                    ],
                    crimeTime: [
                        { required: true, message: '案发时间不能为空', trigger: 'blur' }
                    ],
                    deportationReason: [
                        { required: true, message: '移送的理由不能为空', trigger: 'blur' }
                    ],
                    documentNum: [
                        { required: true, message: '序列号不能为空', trigger: 'blur' }
                    ],
                    executionTime: [
                        { required: true, message: '执行时间不能为空', trigger: 'blur' }
                    ],
                    lawCaseInventory: [
                        { required: true, message: '移送案件涉案物品清单不能为空', trigger: 'blur' }
                    ],
                    lawCaseMaterials1: [
                        { required: true, message: '案件有关材料1不能为空', trigger: 'blur' }
                    ],
                    lawCaseMaterials2: [
                        { required: true, message: '案件有关材料2不能为空', trigger: 'blur' }
                    ],
                    legalStipulate: [
                        { required: true, message: '法律规定不能为空', trigger: 'blur' }
                    ],
                    name: [
                        { required: true, message: '姓名不能为空', trigger: 'blur' }
                    ],
                    phone: [
                        { required: true, message: '电话不能为空', trigger: 'blur' }
                    ],
                    processAjApprovalId: [
                        { required: true, message: '立案审批表id不能为空', trigger: 'blur' }
                    ],
                    processAjApprovalName: [
                        { required: true, message: '案件名不能为空', trigger: 'blur' }
                    ],
                    synthesizeMark: [
                        { 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>
  .deportation-form .el-dialog__header{
    text-align: center;
    font-weight: 700;
  }
  .deportation-line .el-input__inner{
    border:none;
    border-radius:0;
    background-color: transparent;
    border-bottom:1px solid #DCDFE6;
  }
  .deportation-line .el-form-item{
    margin-bottom: 0;
  }
  .deport-lianxiren-box .el-input {
    width: 200px;
  }
  .anjianname-box .el-form-item {
    width: calc(100% - 180px);
  }
  .yisong-box .el-form-item {
    width: 100%;
  }
  .yisong-box .el-textarea__inner{
    border:none;
    border-radius:0;
    background-color: transparent;
    border-bottom:1px solid #DCDFE6;
  }
  .yizhao-box .el-form-item{
    width: calc(100% - 250px);
  }
</style>
<style scoped>
  .deportation-form-box{
    position: relative;
    padding:0 20px;
  }
  .bianhao-box{
    position: absolute;
    right: 0px;
    top:0px;
    display: flex;
    align-items: center;
    z-index: 1;
  }
  .zhixingDate{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 30px;
  }
  .deportation-line{
    display: flex;
    align-items: center;
    padding:10px 0;
  }
  .deportation-line h1{
    line-height: 2.5;
  }
  .fu h1{
    text-indent: 2.5em;
  }
</style>