Przeglądaj źródła

Merge branch 'hhl' of SH-Arbitrate/Arbitrate-Frontend into dev

hhlxayunmei 2 lat temu
rodzic
commit
44c65c680f

+ 145
- 15
src/views/caseManagement/components/trialincourtDialog.vue Wyświetl plik

@@ -5,7 +5,6 @@
5 5
       :visible="showtrialincourt"
6 6
       @close="cancel"
7 7
       :destroy-on-close="true"
8
-      center
9 8
     >
10 9
       <el-form
11 10
         ref="form"
@@ -125,20 +124,137 @@
125 124
           </el-form-item>
126 125
         </el-col>
127 126
       </el-form>
128
-      <el-button @click="openmeeting"
127
+      <el-button @click="openmeeting" type="primary"
129 128
         >发起会议
130 129
         <!-- <iframe src="http://47.97.117.253:9005/#/">发起会议</iframe> -->
131 130
       </el-button>
132
-      <el-button>提交仲裁结果</el-button>
131
+      <el-button @click="openArbitrationresults" type="primary">提交仲裁结果</el-button>
133 132
       <div slot="footer" class="dialog-footer">
134
-        <el-button @click="submitForm" class="endbutton"
133
+        <!-- <el-button @click="submitForm" class="endbutton"
135 134
           ><span>结束审理</span></el-button
136
-        >
135
+        > -->
137 136
         <el-button @click="cancel" class="endbutton1"
138
-          ><span>取 消</span></el-button
137
+          ><span>关 闭</span></el-button
139 138
         >
140 139
       </div>
141 140
     </el-dialog>
141
+    <el-dialog
142
+      title="仲裁结果"
143
+      :visible="showArbitrationresults"
144
+      @close="closeArbitrationresults"
145
+    >
146
+      <el-form ref="form2" :model="form2" label-width="150px">
147
+        <el-col :span="24">
148
+          <el-form-item
149
+            label="经庭审质证,对各方提供的证据认定如下:"
150
+            prop="arbitrationResult"
151
+            :rules="[
152
+              {
153
+                required: true,
154
+                message: '请输入仲裁结果',
155
+                trigger: 'blur',
156
+              },
157
+            ]"
158
+          >
159
+            <el-input
160
+              type="textarea"
161
+              :autosize="{ minRows: 4 }"
162
+              placeholder="请输入仲裁结果"
163
+              v-model="form2.arbitrationResult"
164
+            >
165
+            </el-input>
166
+          </el-form-item>
167
+        </el-col>
168
+        <el-col :span="24">
169
+          <el-form-item
170
+            label="仲裁庭经审理查明(写明仲裁庭认定的事实):"
171
+            prop="arbitrationResult"
172
+            :rules="[
173
+              {
174
+                required: true,
175
+                message: '请输入仲裁结果',
176
+                trigger: 'blur',
177
+              },
178
+            ]"
179
+          >
180
+            <el-input
181
+              type="textarea"
182
+              :autosize="{ minRows: 4 }"
183
+              placeholder="请输入仲裁结果"
184
+              v-model="form2.arbitrationResult"
185
+            >
186
+            </el-input>
187
+          </el-form-item>
188
+        </el-col>
189
+        <el-col :span="24">
190
+          <el-form-item
191
+            label="综上所述:"
192
+            prop="arbitrationResult"
193
+            :rules="[
194
+              {
195
+                required: true,
196
+                message: '请输入仲裁结果',
197
+                trigger: 'blur',
198
+              },
199
+            ]"
200
+          >
201
+            <el-input
202
+              type="textarea"
203
+              autosize
204
+              placeholder="请输入仲裁结果"
205
+              v-model="form2.arbitrationResult"
206
+            >
207
+            </el-input>
208
+          </el-form-item>
209
+        </el-col>
210
+        <el-col :span="24">
211
+          <el-form-item
212
+            label="本庭认为:"
213
+            prop="arbitrationResult"
214
+            :rules="[
215
+              {
216
+                required: true,
217
+                message: '请输入仲裁结果',
218
+                trigger: 'blur',
219
+              },
220
+            ]"
221
+          >
222
+            <el-input
223
+              type="textarea"
224
+              autosize
225
+              placeholder="请输入仲裁结果"
226
+              v-model="form2.arbitrationResult"
227
+            >
228
+            </el-input>
229
+          </el-form-item>
230
+        </el-col>
231
+        <el-col :span="24">
232
+          <el-form-item
233
+            label="裁决如下:"
234
+            prop="arbitrationResult"
235
+            :rules="[
236
+              {
237
+                required: true,
238
+                message: '请输入仲裁结果',
239
+                trigger: 'blur',
240
+              },
241
+            ]"
242
+          >
243
+            <el-input
244
+              type="textarea"
245
+              autosize
246
+              placeholder="请输入仲裁结果"
247
+              v-model="form2.arbitrationResult"
248
+            >
249
+            </el-input>
250
+          </el-form-item>
251
+        </el-col>
252
+      </el-form>
253
+      <div slot="footer" class="dialog-footer">
254
+        <el-button @click="submitForm">提交</el-button>
255
+        <el-button @click="closeArbitrationresults">取 消</el-button>
256
+      </div>
257
+    </el-dialog>
142 258
   </div>
143 259
 </template>
144 260
 
@@ -149,33 +265,47 @@ export default {
149 265
   data() {
150 266
     return {
151 267
       formData: {},
152
-      user: ''
268
+      user: "",
269
+      showArbitrationresults: false,
270
+      form2: {},
153 271
     };
154 272
   },
155 273
   watch: {
156 274
     showtrialincourt: {
157 275
       handler(val) {
158 276
         if (val) {
159
-          this.formData = this.form
277
+          this.formData = this.form;
160 278
         }
161
-      }
162
-    }
279
+      },
280
+    },
163 281
   },
164
-  created () {
282
+  created() {
165 283
     this.getUser();
166 284
   },
167 285
   methods: {
168 286
     getUser() {
169
-      getUserProfile().then(response => {
170
-        console.log(response,'response');
287
+      getUserProfile().then((response) => {
171 288
         this.user = response.data.userName;
172 289
       });
173 290
     },
174 291
     // 打开会议
175 292
     openmeeting() {
176
-      window.open(`http://47.97.117.253:9005/#/home?name=${this.user}`)
293
+      window.open(`http://47.97.117.253:9005/#/home?name=${this.user}`);
294
+    },
295
+    // 提交仲裁结果
296
+    openArbitrationresults() {
297
+      this.showArbitrationresults = true;
298
+    },
299
+    closeArbitrationresults() {
300
+      this.showArbitrationresults = false;
301
+    },
302
+    submitForm() {
303
+      this.$refs["form2"].validate((valid) => {
304
+        if (valid) {
305
+          console.log(6666666666);
306
+        }
307
+      });
177 308
     },
178
-    submitForm() {},
179 309
     cancel() {
180 310
       this.$emit("canceltrialincourt");
181 311
     },