总账结账增加提示
This commit is contained in:
		
							parent
							
								
									a4c8ad0ee7
								
							
						
					
					
						commit
						1536a07f57
					
				|  | @ -9,7 +9,10 @@ export default function buttonClick(props, id) { | |||
|             this.handleEndAccountReport(); | ||||
|             break; | ||||
|         case 'reckon'://结账
 | ||||
|             this.handleReconciliatecheck() | ||||
|             this.handleEndAccount(); | ||||
|             // this.handleReconciliatecheck();
 | ||||
|             // this.handleEndAccount();
 | ||||
|             break; | ||||
|         case 'cancelreckon'://取消结账
 | ||||
|             this.handleUnendAccount(); | ||||
|  |  | |||
|  | @ -696,6 +696,61 @@ class Reckon extends Component { | |||
| 			} | ||||
| 		}); | ||||
| 	} | ||||
|     //对账检查
 | ||||
| 	handleReconciliatecheck = () => { | ||||
| 		let self = this; | ||||
| 		let { | ||||
| 			reportData, | ||||
| 			accountingbook, | ||||
| 			pk_accountingbook, | ||||
| 			periodData | ||||
| 		} = self.state; | ||||
| 		if (accountingbook.value == "" || accountingbook.value == undefined) { | ||||
| 			toast({content: self.state.json['20020RECON-000010'], color: 'warning'});/* 国际化处理: 请先选择核算账簿*/ | ||||
| 			return false; | ||||
| 		} | ||||
| 		if (pk_accountingbook.value == "" || pk_accountingbook.value == undefined) { | ||||
| 			toast({content: self.state.json['20020RECON-000038'], color: 'warning'});/* 国际化处理: 请先选择会计科目*/ | ||||
| 			return false; | ||||
| 		} | ||||
| 		let url = '/nccloud/gl/accountrep/accountbalancetotal.do'; | ||||
| 		// let pk_accpont = {"pk_accountingbook":accountingbook.value};
 | ||||
| 		let enddate = this.getMonthDays(periodData.presentYear, periodData.presentMonth) | ||||
| 		let pk_accpont = { | ||||
| 			"pk_accountingbook": [accountingbook.value], | ||||
| 			"pk_accasoa": [pk_accountingbook.value], | ||||
| 			// "pk_accountingbook":["1001A110000000001PFH"],
 | ||||
| 			// "pk_accasoa": ["1001A1100000000017L8"],
 | ||||
| 			"startyear": periodData.presentYear, | ||||
| 			"endyear": periodData.presentYear, | ||||
| 			"startperiod": periodData.presentMonth, | ||||
| 			"endperiod": periodData.presentMonth, | ||||
| 			"startdate": periodData.presentYear + '-' + periodData.presentMonth + "-01", | ||||
| 			"enddate": periodData.presentYear + '-' + periodData.presentMonth + '-' + enddate | ||||
| 		} | ||||
| 
 | ||||
| 		ajax({ | ||||
| 			url: url, | ||||
| 			data: pk_accpont, | ||||
| 			success: function (response) { | ||||
|                 const { data, success } = response; | ||||
|                  | ||||
|                 if (success && response.data) { | ||||
|                      | ||||
|                     if (data.length === 0) { | ||||
|                     } else { | ||||
| 						// 查询到数据,提示需要先进行对账操作
 | ||||
| 						toast({ content: data[0].accname +'科目存在差异金额为'+data[0].difference+',请调整总账凭证,再进行结账操作', color: 'warning' }); | ||||
| 
 | ||||
|                     } | ||||
|                 } else { | ||||
|                 } | ||||
|             }, | ||||
|             error: function () { | ||||
|             } | ||||
| 		}); | ||||
| 
 | ||||
| 	} | ||||
| 
 | ||||
| 	//打印
 | ||||
| 	handlePrintReport() { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue