Просмотр исходного кода

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/miniapp into gyj

gyj 2 лет назад
Родитель
Сommit
b453630387

+ 52
- 47
pages/handlecase/component/confirmPayment.vue Просмотреть файл

@@ -16,7 +16,7 @@
16 16
 						<uni-link v-if="item.annexType==4" :href="item.annexPath" color="#007BFF"
17 17
 							:text="item.annexName"></uni-link>
18 18
 					</view>
19
-				</uni-forms-item>	
19
+				</uni-forms-item>
20 20
 				<uni-forms-item label="被申请人缴费:" name="feePayable" label-width="100px" v-if="annexTypeB">
21 21
 					<view v-for="item in formData.caseAttachList">
22 22
 						<uni-link v-if="item.annexType==9" :href="item.annexPath" color="#007BFF"
@@ -24,9 +24,7 @@
24 24
 					</view>
25 25
 				</uni-forms-item>
26 26
 				<uni-forms-item label="是否缴费通过" label-width="120px" name="yesOrNo">
27
-					<uni-data-checkbox class='checkbox' 
28
-						:localdata="yesOrNoObject"
29
-						v-model="yesOrNo"
27
+					<uni-data-checkbox class='checkbox' :localdata="yesOrNoObject" v-model="yesOrNo"
30 28
 						@change='clearValidate'></uni-data-checkbox>
31 29
 				</uni-forms-item>
32 30
 				<uni-forms-item label="驳回原因:" name="reason" label-width="120px" required v-if="refusedisabled"
@@ -44,22 +42,26 @@
44 42
 				@tap="cencalBut">取消</button>
45 43
 			</view>
46 44
 		</view>
47
-	</view>
48
-</template>
49
-
45
+	</view>
46
+</template>
47
+
50 48
 <script>
51
-	import {selectPaymentDetail,confirmPaid,resConfirmPaid} from '../../../api/handlecase/index.js'
49
+	import {
50
+		selectPaymentDetail,
51
+		confirmPaid,
52
+		resConfirmPaid
53
+	} from '../../../api/handlecase/index.js'
52 54
 	export default {
53 55
 		data() {
54 56
 			return {
55
-				yesOrNo:1,
56
-				formData:{
57
-					reason:""
57
+				yesOrNo: 1,
58
+				formData: {
59
+					reason: ""
58 60
 				},
59
-				rules:{},
60
-				paymentConfirm:{},
61
-				annexTypeS:false,
62
-				annexTypeB:false,
61
+				rules: {},
62
+				paymentConfirm: {},
63
+				annexTypeS: false,
64
+				annexTypeB: false,
63 65
 				yesOrNoObject: [{
64 66
 					text: '同意',
65 67
 					value: 1
@@ -67,7 +69,7 @@
67 69
 					text: '拒绝',
68 70
 					value: 0
69 71
 				}],
70
-				refusedisabled:false
72
+				refusedisabled: false
71 73
 			}
72 74
 		},
73 75
 		methods:{
@@ -84,15 +86,15 @@
84 86
 				})
85 87
 			},
86 88
 			// 申请人确认缴费
87
-			confirmPaymentApplicant(){
89
+			confirmPaymentApplicant() {
88 90
 				let vals = {
89
-					caseId:this.paymentConfirm.id,
90
-					batchNumber:"",
91
-					caseFlowId:this.paymentConfirm.caseFlowId,
92
-					yesOrNo:this.yesOrNo,
93
-					reason:this.formData.reason
91
+					caseId: this.paymentConfirm.id,
92
+					batchNumber: "",
93
+					caseFlowId: this.paymentConfirm.caseFlowId,
94
+					yesOrNo: this.yesOrNo,
95
+					reason: this.formData.reason
94 96
 				}
95
-				confirmPaid(vals).then(res =>{
97
+				confirmPaid(vals).then(res => {
96 98
 					uni.showToast({
97 99
 						title: '申请人缴费确认成功',
98 100
 						icon: 'none',
@@ -104,15 +106,15 @@
104 106
 				})
105 107
 			},
106 108
 			// 被申请人缴费确认
107
-			confirmPaymentRespondent(){
109
+			confirmPaymentRespondent() {
108 110
 				let vals = {
109
-					caseId:this.paymentConfirm.id,
110
-					batchNumber:"",
111
-					caseFlowId:this.paymentConfirm.caseFlowId,
112
-					yesOrNo:this.yesOrNo,
113
-					reason:this.formData.reason
111
+					caseId: this.paymentConfirm.id,
112
+					batchNumber: "",
113
+					caseFlowId: this.paymentConfirm.caseFlowId,
114
+					yesOrNo: this.yesOrNo,
115
+					reason: this.formData.reason
114 116
 				}
115
-				resConfirmPaid(vals).then(res =>{
117
+				resConfirmPaid(vals).then(res => {
116 118
 					uni.showToast({
117 119
 						title: '被申请人缴费确认成功',
118 120
 						icon: 'none',
@@ -125,38 +127,41 @@
125 127
 			},
126 128
 			// 缴费详情
127 129
 			paymentDetails(val) {
128
-			    selectPaymentDetail(val).then(res => {
129
-			        this.formData = res.data;
130
-					this.formData.caseAttachList.forEach(res =>{
131
-						if(res.annexType==4){
130
+				selectPaymentDetail(val).then(res => {
131
+					this.formData = res.data;
132
+					this.formData.caseAttachList.forEach(res => {
133
+						if (res.annexType == 4) {
132 134
 							this.annexTypeS = true
133
-						}else if(res.annexType==9){
135
+						} else if (res.annexType == 9) {
134 136
 							this.annexTypeB = true
135 137
 						}
136 138
 					})
137
-			    })
138
-			}, 
139
-			clearValidate(val){
140
-				 this.yesOrNo=val.detail.value
141
-				if(val.detail.value==0){
139
+				})
140
+			},
141
+			clearValidate(val) {
142
+				this.yesOrNo = val.detail.value
143
+				if (val.detail.value == 0) {
142 144
 					this.refusedisabled = true
143
-				}else{
145
+				} else {
144 146
 					this.refusedisabled = false
145 147
 				}
146 148
 			}
147 149
 		},
148 150
 		onLoad(data) {
149 151
 			this.paymentConfirm = data
150
-			this.paymentDetails({id:data.id})
152
+			this.paymentDetails({
153
+				id: data.id
154
+			})
151 155
 		}
152
-	}
153
-</script>
154
-
156
+	}
157
+</script>
158
+
155 159
 <style lang="scss">
156 160
 	page {
157 161
 		background-color: #ffffff;
158 162
 	}
159
-	.assignrbitrators{
163
+
164
+	.assignrbitrators {
160 165
 		margin: 30rpx;
161
-	}
166
+	}
162 167
 </style>

+ 3
- 2
pages/handlecase/index.vue Просмотреть файл

@@ -3,8 +3,8 @@
3 3
 		<view class="" v-if="sysType == 2">
4 4
 			<button type="primary" @tap="newlyAddedCases"  v-if="checkPermi(['caseManagement:list:add'])">新增案件</button>
5 5
 		</view>
6
-		<List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :buttonList='buttonList' :key="index"
7
-			:sysType='sysType'>
6
+		<List class="caseList" @pDeleteCase='deleteCase' v-for="(item,index) in caseList" :defalutVal='item'
7
+			:buttonList='buttonList' :key="index" :sysType='sysType'>
8 8
 		</List>
9 9
 		<view class="emptyBox" v-if="caseList.length == 0">
10 10
 			<luanqing-empty :show="true" textColor="#000"></luanqing-empty>
@@ -51,6 +51,7 @@
51 51
 			},
52 52
 			getList(parms) {
53 53
 				console.log(111)
54
+				this.caseList = [];
54 55
 				if (this.sysType == 1) {
55 56
 					respondentList(parms).then(res => {
56 57
 						// this.caseList = res.rows;

+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл