付款单
This commit is contained in:
		
							parent
							
								
									9ad1cc06dc
								
							
						
					
					
						commit
						3ef0b7eaa1
					
				|  | @ -22,6 +22,7 @@ import cmpLinkArapCard from '../../../public/components/cmpLinkArapCard.js'; | |||
| import {calculateHeadMoney, delBlankLine} from '../../../public/components/pubUtils/billPubUtil.js'; | ||||
| import {billEditProperties} from '../../../public/components/pubUtils/billFieldEditableUtil.js'; | ||||
| import {updatePandC} from '../../../public/components/pubUtils/updatePandC'; | ||||
| 
 | ||||
| let {Inspection, BillTrack, NCUploader, PrintOutput, ApproveDetail} = high; | ||||
| let {NCButton, NCDiv, NCAffix} = base; | ||||
| let { | ||||
|  | @ -49,8 +50,15 @@ import { | |||
| import '../../../public/less/tradetype.less'; | ||||
| import InvoiceUploader from 'sscivm/ivmpub/components/invoice-uploader'; | ||||
| import InvoiceLink from 'sscivm/ivmpub/components/invoice-link'; | ||||
| 
 | ||||
| const {ExcelImport, ApprovalTrans} = high; | ||||
| import { cardSocketConnect, cardSocketErrorFlag, toggleBtnStatus, throwSagaErrorAgency } from '../../../public/components/pubUtils/MicroServiceSocket.js'; | ||||
| import { | ||||
| 	cardSocketConnect, | ||||
| 	cardSocketErrorFlag, | ||||
| 	toggleBtnStatus, | ||||
| 	throwSagaErrorAgency | ||||
| } from '../../../public/components/pubUtils/MicroServiceSocket.js'; | ||||
| 
 | ||||
| class Card extends Component { | ||||
| 	constructor(props) { | ||||
| 		super(props); | ||||
|  | @ -135,14 +143,18 @@ class Card extends Component { | |||
| 		getMultiLang({moduleId: ['paybill', 'public'], domainName: 'arap', currentLocale: 'simpchn', callback}); | ||||
| 	} | ||||
| 
 | ||||
| 	componentWillReceiveProps(nextProps) { } | ||||
| 	componentWillReceiveProps(nextProps) { | ||||
| 	} | ||||
| 
 | ||||
| 	// 附件的关闭点击
 | ||||
| 	onHideUploader = () => { | ||||
| 		this.setState({ | ||||
| 			showUploader: false | ||||
| 		}); | ||||
| 	}; | ||||
| 
 | ||||
| 	componentDidMount() { | ||||
| 		console.log() | ||||
| 		if (this.props.getUrlParam('scene')) { | ||||
| 			let scene = this.props.getUrlParam('scene'); | ||||
| 			setDefData('scene', dataSource, scene); | ||||
|  | @ -234,7 +246,7 @@ class Card extends Component { | |||
| 					this.props.form.setFormStatus(this.formId, 'browse'); | ||||
| 					this.toggleShow(); | ||||
| 					let str = res.message; | ||||
| 					toast({ color: 'danger', content: str });; | ||||
| 					toast({color: 'danger', content: str}); | ||||
| 				} | ||||
| 			}); | ||||
| 		} else if (this.props.getUrlParam('status') == 'edit' || this.props.getUrlParam('status') == 'browse') { | ||||
|  | @ -288,7 +300,7 @@ class Card extends Component { | |||
| 					this.props.form.setFormStatus(this.formId, 'browse'); | ||||
| 					this.toggleShow(); | ||||
| 					let str = res.message; | ||||
| 					toast({ color: 'danger', content: str });; | ||||
| 					toast({color: 'danger', content: str}); | ||||
| 				} | ||||
| 			}); | ||||
| 		} else if (this.props.getUrlParam('status') == 'add' && this.props.getUrlParam('src') == 'settlement') { | ||||
|  | @ -444,7 +456,7 @@ class Card extends Component { | |||
| 					this.toggleShow(); | ||||
| 				} | ||||
| 				; | ||||
| 				toast({ color: 'danger', content: str });; | ||||
| 				toast({color: 'danger', content: str}); | ||||
| 			} | ||||
| 		}); | ||||
| 	}; | ||||
|  | @ -635,6 +647,15 @@ class Card extends Component { | |||
| 
 | ||||
| 	//保存单据
 | ||||
| 	saveBill = (url, extype, flag, modelIndex) => { | ||||
| 		/*let saveData = this.props.createMasterChildData(this.getPagecode(), this.formId, this.tableId) | ||||
| 		let newData = dealCardData(this, saveData); //去掉空值,减少压缩时间
 | ||||
| 		let tableLength = newData.body.bodys.rows.length | ||||
| 		console.log(this.props.form) | ||||
| 		// console.log(this.props.form.getFormItemsValue(this.formId, 'def5'))
 | ||||
| 		this.props.form.setFormItemsValue(this.formId, {'def5': {'value': tableLength, 'display': undefined}}); //附件数量*/
 | ||||
| 		// return false   //todo
 | ||||
| 
 | ||||
| 
 | ||||
| 		if (url != '/nccloud/arap/arappub/tempsave.do') { | ||||
| 			//暂存不进行校验
 | ||||
| 			//删除空白行
 | ||||
|  | @ -1132,7 +1153,8 @@ class Card extends Component { | |||
| 	}; | ||||
| 
 | ||||
| 	//输出成功回调函数
 | ||||
| 	onSubmit() { } | ||||
| 	onSubmit() { | ||||
| 	} | ||||
| 
 | ||||
| 	//返回列表
 | ||||
| 	backList = () => { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue