瀏覽代碼

修改测试bug

gyj 2 年之前
父節點
當前提交
c4d1e1cf96
共有 6 個檔案被更改,包括 39 行新增12 行删除
  1. 1
    1
      App.vue
  2. 8
    0
      api/handlecase/index.js
  3. 1
    1
      config.js
  4. 4
    2
      pages/handlecase/component/list.vue
  5. 24
    7
      pages/handlecase/component/uploadEvidence.vue
  6. 1
    1
      pages/handlecase/index.vue

+ 1
- 1
App.vue 查看文件

@@ -10,7 +10,7 @@
10 10
 	export default {
11 11
 		globalData: {
12 12
 			// requestUrl: 'https://api.xayunmei.com/zhongcaiapi',
13
-			requestUrl: 'http://121.40.189.20:9001',
13
+			requestUrl: 'http://121.40.189.20:8001',
14 14
 		},
15 15
 		onLaunch: function() {
16 16
 			this.initApp();

+ 8
- 0
api/handlecase/index.js 查看文件

@@ -192,4 +192,12 @@ export function idType(data) {
192 192
 		method: 'get',
193 193
 		params: data
194 194
 	})
195
+}
196
+//删除上传按钮
197
+export function deleteFile(data) {
198
+	return request({
199
+		url: "/evidence/deleteFile",
200
+		method: "post",
201
+		data: data,
202
+	})
195 203
 }

+ 1
- 1
config.js 查看文件

@@ -2,7 +2,7 @@
2 2
 module.exports = {
3 3
 	// baseUrlZC: 'https://api.xayunmei.com/zhongcaiapi',
4 4
 	// baseUrl: 'https://api.xayunmei.com/zhongcaiapitest',
5
-	// baseUrl: 'http://121.40.189.20:9001',
5
+	// baseUrlZC: 'http://172.16.1.26:8001',
6 6
 	baseUrlZC: 'https://api.xayunmei.com/zhongcaiapi',
7 7
 	// baseUrlZC: 'https://api.xayunmei.com/zhongcaiapitest',
8 8
 	// baseUrlTJ: 'https://api.xayunmei.com/tiaojieapitest',

+ 4
- 2
pages/handlecase/component/list.vue 查看文件

@@ -60,7 +60,7 @@
60 60
 			<button class="btnItem" type="primary" size="mini" @tap="chooseMethod">选择仲裁方式</button> -->
61 61
 		</view>
62 62
 		<view class="btn" v-if="sysType == 1">
63
-			<button class="btnItem" type="primary" size="mini" @tap="caseCrossExamin">案件质证</button>
63
+			<button v-if="defalutVal.caseStatus==4" class="btnItem" type="primary" size="mini" @tap="caseCrossExamin">案件质证</button>
64 64
 		</view>
65 65
 	</view>
66 66
 </template>
@@ -281,7 +281,9 @@
281 281
 				});
282 282
 			},
283 283
 		},
284
-		created() {}
284
+		created() {
285
+			console.log(this.defalutVal)
286
+		}
285 287
 	}
286 288
 </script>
287 289
 

+ 24
- 7
pages/handlecase/component/uploadEvidence.vue 查看文件

@@ -56,10 +56,10 @@
56 56
 										<uni-easyinput :inputBorder="false" :disabled='true'
57 57
 											v-model="formData.claimLiquidDamag" placeholder="" />
58 58
 									</uni-forms-item>
59
-									<!-- <uni-forms-item label="是否有异议需要举证" label-width="120px" name="objectionAddEviden" required>
59
+									<uni-forms-item label="是否有异议需要举证" label-width="120px" name="objectionAddEviden" required>
60 60
 													<uni-data-checkbox class='checkbox' v-model="subnitForm.objectionAddEviden"
61 61
 														:localdata="maintenancetypeArr" @change='uploadEvidenceChange'></uni-data-checkbox>
62
-												</uni-forms-item> -->
62
+												</uni-forms-item>
63 63
 									<!-- <uni-forms-item label="是否需要开庭审理" label-width="120px" name="openCourtHear" required>
64 64
 													<uni-data-checkbox class='checkbox' v-model="subnitForm.openCourtHear"
65 65
 														:localdata="arbitrationmethodArr" @change='arbitrationmethod'></uni-data-checkbox>
@@ -77,9 +77,9 @@
77 77
 													<uni-data-checkbox class='checkbox' v-model="subnitForm.adjudicaCounter"
78 78
 														:localdata="adjudicaCounterArr"></uni-data-checkbox>
79 79
 												</uni-forms-item> -->
80
-									<!-- <uni-forms-item label="上传证据" name="headImage" label-width="120px" v-if="caseFlag">
81
-													<uni-file-picker ref="files" :auto-upload="false" @select="select" :limit='1' />
82
-												</uni-forms-item> -->
80
+									<uni-forms-item label="上传证据" name="headImage" label-width="120px" v-if="caseFlag">
81
+													<uni-file-picker ref="files" :auto-upload="false" @select="select"   @delete="handleClose" :limit='1' />
82
+												</uni-forms-item>
83 83
 									<uni-forms-item label="是否书面审理" label-width="120px" name="respondentIsWrittenHear"
84 84
 										required>
85 85
 										<uni-data-checkbox class='checkbox' v-model="subnitForm.respondentIsWrittenHear"
@@ -259,7 +259,8 @@
259 259
 		arbitratorList,
260 260
 		evidenceCrossexami,
261 261
 		selectById,
262
-		updateBooking
262
+		updateBooking,
263
+		deleteFile
263 264
 	} from '../../../api/handlecase/index.js'
264 265
 	import {
265 266
 		uploadImage
@@ -269,6 +270,7 @@
269 270
 	} from '@/utils/auth'
270 271
 	import moment from 'moment'
271 272
 	import config from '@/config'
273
+import constant from '../../../utils/constant.js'
272 274
 	const baseUrl = config.baseUrlZC
273 275
 	const app = getApp()
274 276
 	export default {
@@ -395,6 +397,7 @@
395 397
 					this.subnitForm.adjudicaCounterReason = this.reasontFormData.reasont
396 398
 					this.$refs.popup.close()
397 399
 					this.reasontFormData.reasont = ''
400
+					
398 401
 				} else {
399 402
 					this.$modal.msgError("请输入反意理由")
400 403
 				}
@@ -477,6 +480,7 @@
477 480
 			},
478 481
 			// 文件上传
479 482
 			select(e) {
483
+				console.log(e)
480 484
 				this.tempFilePaths = e.tempFilePaths;
481 485
 				// loading
482 486
 				uni.showLoading({
@@ -514,6 +518,14 @@
514 518
 					}
515 519
 				})
516 520
 			},
521
+			// 上传删除
522
+			handleClose(filelds){
523
+				console.log("关闭",filelds)
524
+				deleteFile({fileIds:[filelds.tempFile.uuid]}).then(res=>{
525
+					console.log(res)
526
+				})
527
+				
528
+			},
517 529
 			// 获取仲裁员列表
518 530
 			getArbitratorList(val) {
519 531
 				arbitratorList({caseAppliId: val}).then(res => {
@@ -555,6 +567,7 @@
555 567
 				}
556 568
 				if (this.sysType == 1) {
557 569
 					this.$refs.form.validate().then(res => {
570
+						console.log(this.subnitForm)
558 571
 						this.evidenceCrossexamiFn(this.subnitForm)
559 572
 					}).catch(err => {
560 573
 						console.log('表单错误信息:', err);
@@ -596,8 +609,12 @@
596 609
 		onLoad(data) {
597 610
 			this.sysType = uni.getStorageSync('sysType')
598 611
 			this.getData(data.id);
612
+			console.log(this.subnitForm)
599 613
 			this.subnitForm.caseId = Number(data.id);
600
-			this.getArbitratorList(data.id)
614
+			if(this.sysType==2){
615
+				this.getArbitratorList(data.id)
616
+			}
617
+			
601 618
 		}
602 619
 
603 620
 	}

+ 1
- 1
pages/handlecase/index.vue 查看文件

@@ -76,7 +76,7 @@
76 76
 									item.caseStatusName = '待确认是否应诉'
77 77
 									break;
78 78
 								case 4:
79
-									item.caseStatusName = '待确认证据'
79
+									item.caseStatusName = '待案件质证'
80 80
 									break;
81 81
 								case 5:
82 82
 									item.caseStatusName = '待确定是否指派仲裁员'