峰峰执法平台简易案件程序板块 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
<template>
  <div>
    <div class="docWrap" style="width: 100%;
        height: 28%;
        overflow: auto;
        background: white;
        margin: 14px auto;">
      <!-- 预览文件的地方(用于渲染) -->
      <div ref="word" style="width: 100%!important;"></div>
    </div>
    <div class="docWrap" style="width: 100%;
        height: 28%;
        overflow: auto;
        background: white;
        margin: 14px auto;">
      <!-- 预览文件的地方(用于渲染) -->
      <div ref="word1"></div>
    </div>
    <div class="docWrap" style="width: 100%;
        height: 28%;
        overflow: auto;
        background: white;
        margin: 0 auto;">
      <!-- 预览文件的地方(用于渲染) -->
      <div ref="word2"></div>
    </div>
    <div style="text-align: center;margin-top: 8px">
      <el-button>通过</el-button>
      <el-button>驳回</el-button>
    </div>
  </div>
</template>
 
<script>
import {inquiryquestion, ordercorrection, getPenalty, Easycase} from '@/api/News/sunmaryProcedure'
import {viewD} from "@/libs/word"
import {saveObj} from "@/api/News/fileCase";
 
export default {
  name: "AuditWord",
  data() {
    return {
      dataForm: {
        causeName: '',
        causePoint: '',
        startTime: '',
        endTime: '',
        site: '',
        interrogeeName: '',
        interrogeeSex: '',
        interrogeeAge: '',
        interrogeeCardNo: '',
        interrogeeUnit: '',
        interrogeeDuty: '',
        interrogeePhone: '',
        interrogeeAddress: '',
        interrogeePostcode: '',
        inquisitorialNameOne: '',
        inquirerNumberOne: '',
        inquisitorialNameTwo: '',
        inquirerNumberTwo: '',
        recorderName: '',
        recorderUnit: '',
        questionsAnswers: [
          {
            wen: '',
            da: '',
          }
        ],
      },
      dataForm1: {
        unitName:"",
        litigant: "",
        certNo: "",
        address: "",
        legalPerson: "",
        legalPersonPhone: "",
        relevantProvision: "",
        inspectionTime: "",
        openQuestions: "",
        correctTime: "",
        legalBasis: "",
        legalBasisTiao:"",
        legalBasisKuan:"",
        legalBasisXiang:"",
        actions: "",
        governmentName: "",
        courtName: "",
        phoneName: "",
        phone: "",
        executionTime: "",
        officersOne: "",
        numberOne: "",
        officersTwo: "",
        numberTwo: "",
        receiveTime: "",
        litigantPhone: "",
        correctiveActions: [""],
      },
      dataForm2: {
        unitName: "",
        litigant: "",
        certNo: "",
        address: "",
        legalPerson: "",
        position: "",
        legalCertNo: "",
        illegalTime: "",
        illegalLocation: "",
        illegalAct: "",
        statement: "",
        legalClause: "",
        punishments: [],
        penalty: "",
        penaltyNumber: "",
        fines: "",
        bank: "",
        account: "",
        accountName: "",
        governmentName: "",
        courtName: "",
        officersOne: '',
        numberOne: '',
        officersTwo: '',
        numberTwo: '',
        executionTime: '',
        legalClauseTiao: '',
        legalBasisTiao: "",
      },
      imgList: []
    };
  },
  created() {
    this.viewVord();
    this.viewVord1();
    this.viewVord2();
  },
  methods: {
    //文件查询预览
    /*init() {
      //查询调查询问笔录
      inquiryquestion(id).then(res =>{
        let v = res.data.data;
        for (let attr in v) {
          if (v[attr] == null) {
            v[attr] = "";
          }
        }
        let str = JSON.stringify(v);
        let data = JSON.parse(str);
        // this.dataForm = data;
        this.viewVord(data)
      })
      //查询责令(限期)改正通知书
      ordercorrection(id).then(res =>{
        let v = res.data.data;
        for (let attr in v) {
          if (v[attr] == null) {
            v[attr] = "";
          }
        }
        let str = JSON.stringify(v);
        let data = JSON.parse(str);
        // this.dataForm1 = data;
        this.viewVord(data)
      })
      //查询当场行政处罚决定书
      getPenalty(id).then(res =>{
        let v = res.data.data;
        for (let attr in v) {
          if (v[attr] == null) {
            v[attr] = "";
          }
        }
        let str = JSON.stringify(v);
        let data = JSON.parse(str);
        // this.dataForm2 = data;
        this.viewVord(data)
      })
    },*/
    //调查询问笔录预览
    viewVord(data) {
      //↓↓↓↓↓↓以下部分根据具体业务修改↓↓↓↓↓↓
      //格式转换
      // let wordData = this.transforData(data);
      //↑↑↑↑↑↑以上部分根据具体业务修改↑↑↑↑↑↑
      this.$nextTick(() => {
        viewD(this.dataForm,"/wordes/inquiryCause.docx",this.$refs.word);
      })
    },
    //责令(限期)改正通知书预览
    viewVord1() {
      //↓↓↓↓↓↓以下部分根据具体业务修改↓↓↓↓↓↓
      //格式转换
      // let wordData = this.transforData(data);
      //↑↑↑↑↑↑以上部分根据具体业务修改↑↑↑↑↑↑
      this.$nextTick(() => {
        viewD(this.dataForm1,"/wordes/correctionNotice.docx",this.$refs.word1);
      })
    },
    //当场行政处罚决定书预览
    viewVord2(data) {
      //↓↓↓↓↓↓以下部分根据具体业务修改↓↓↓↓↓↓
      //格式转换
      // let wordData = this.transforData(data);
      //↑↑↑↑↑↑以上部分根据具体业务修改↑↑↑↑↑↑
      this.$nextTick(() => {
        viewD(this.dataForm2,"/wordes/nowAdministrativePenaltyDecision.docx",this.$refs.word2);
      })
    },
  },
}
</script>
 
<style>
.docx-wrapper {
  background: white !important;
}
.docx p{
  text-align: center;
}
.docx p:nth-child(0)>span:nth-child(3){
  margin-left: -45px;
}
</style>