付款单:处理附件数量
This commit is contained in:
		
							parent
							
								
									3ef0b7eaa1
								
							
						
					
					
						commit
						f2889ff133
					
				|  | @ -647,14 +647,12 @@ class Card extends Component { | ||||||
| 
 | 
 | ||||||
| 	//保存单据
 | 	//保存单据
 | ||||||
| 	saveBill = (url, extype, flag, modelIndex) => { | 	saveBill = (url, extype, flag, modelIndex) => { | ||||||
| 		/*let saveData = this.props.createMasterChildData(this.getPagecode(), this.formId, this.tableId) | 		let saveData = this.props.createMasterChildData(this.getPagecode(), this.formId, this.tableId) | ||||||
| 		let newData = dealCardData(this, saveData); //去掉空值,减少压缩时间
 | 		let newData = dealCardData(this, saveData); //去掉空值,减少压缩时间
 | ||||||
| 		let tableLength = newData.body.bodys.rows.length | 		let tableLength = newData.body.bodys.rows.length || 0 | ||||||
| 		console.log(this.props.form) | 		// console.log('form', this.props.form)
 | ||||||
| 		// console.log(this.props.form.getFormItemsValue(this.formId, 'def5'))
 | 		//附件张数
 | ||||||
| 		this.props.form.setFormItemsValue(this.formId, {'def5': {'value': tableLength, 'display': undefined}}); //附件数量*/
 | 		this.props.form.setFormItemsValue(this.formId, {'accessorynum': {'value': tableLength + '', 'display': undefined}}); | ||||||
| 		// return false   //todo
 |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| 		if (url != '/nccloud/arap/arappub/tempsave.do') { | 		if (url != '/nccloud/arap/arappub/tempsave.do') { | ||||||
| 			//暂存不进行校验
 | 			//暂存不进行校验
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue