借料入库弹窗调整
This commit is contained in:
		
							parent
							
								
									d6287eefc6
								
							
						
					
					
						commit
						498fa57aff
					
				|  | @ -1,11 +1,11 @@ | |||
| import React, { Component } from 'react'; | ||||
| import { createPage, ajax, base, high } from 'nc-lightapp-front'; | ||||
| import { createPage, ajax, base, high, toast } from 'nc-lightapp-front'; | ||||
| import ApproveDetail from 'uap/common/components/ApproveDetail'; | ||||
| import NCUploader from 'uap/common/components/NCUploader'; | ||||
| import ApprovalTrans from 'uap/common/components/approvalTrans'; | ||||
| const { BillTrack } = high; | ||||
| import { initTemplate } from './init'; | ||||
| import { pageInfoClick, pageInfoClickPage,getParentURlParme } from './btnClicks'; | ||||
| import { pageInfoClick, pageInfoClickPage, getParentURlParme } from './btnClicks'; | ||||
| import newLineDefaultUtil from './utils/newLineDefaultUtil'; | ||||
| import { checkDeleteRows } from './utils/rowDeleteUtil'; | ||||
| import { btnClickController, buttonController } from './viewController/index'; | ||||
|  | @ -134,7 +134,7 @@ class PickmCard extends Component { | |||
| 
 | ||||
| 	render() { | ||||
| 		const { createBillHeadInfo } = this.props.BillHeadInfo; | ||||
| 		let { table,cardTable, form, button, modal, cardPagination, socket } = this.props; | ||||
| 		let { table, cardTable, form, button, modal, cardPagination, socket } = this.props; | ||||
| 		let buttons = this.props.button.getButtons(); | ||||
| 		let multiLang = this.props.MutiInit.getIntl(this.moduleId); | ||||
| 		let { createForm } = form; | ||||
|  | @ -143,9 +143,9 @@ class PickmCard extends Component { | |||
| 		let { createSimpleTable } = table; | ||||
| 		const { createCardPagination } = cardPagination; | ||||
| 		let { showUploader, target } = this.state; | ||||
| 		 | ||||
| //         this.props.use.form('NCTable_83c3abf9')
 | ||||
| //         this.props.form.setFormStatus('NCTable_83c3abf9', 'edit')
 | ||||
| 
 | ||||
| 		//         this.props.use.form('NCTable_83c3abf9')
 | ||||
| 		//         this.props.form.setFormStatus('NCTable_83c3abf9', 'edit')
 | ||||
| 		return ( | ||||
| 			<div className='nc-bill-card' id='mm-mmpac-pickm-card' > | ||||
| 				{socket.connectMesg({ | ||||
|  | @ -269,17 +269,17 @@ class PickmCard extends Component { | |||
| 				{createModal('SetBackDeliverDlg', { zIndex: "280" })} | ||||
| 				{createModal('ReplaceDlg', { zIndex: "300" })} | ||||
| 
 | ||||
| 				 {createModal('NCTable_83c3abf9', { | ||||
|                     title: '备料明细', | ||||
|                     content: ( | ||||
|                         <div class="flex-container" style={{ height: '100%' }}> | ||||
| 			                    {createSimpleTable("NCTable_83c3abf9", {showIndex: true})}</div> | ||||
|                     ), | ||||
|                     size: '500', | ||||
|                     beSureBtnClick: () => { | ||||
| 				{createModal('NCTable_83c3abf9', { | ||||
| 					title: '备料明细', | ||||
| 					content: ( | ||||
| 						<div class="flex-container" style={{ height: '100%' }}> | ||||
| 							{createSimpleTable("NCTable_83c3abf9", { showIndex: true })}</div> | ||||
| 					), | ||||
| 					size: '500', | ||||
| 					beSureBtnClick: () => { | ||||
| 						let rowids = []; | ||||
| 						let hids = []; | ||||
| 			            let hid; | ||||
| 						let hid; | ||||
| 						let rows = this.props.cardTable.getCheckedRows(AREA.bodyTable); | ||||
| 						hid = this.props.form.getFormItemsValue(AREA.formArea, FIELD.hid).value; | ||||
| 						hids.push(hid); | ||||
|  | @ -303,30 +303,31 @@ class PickmCard extends Component { | |||
| 							success: (res) => { | ||||
| 								if (res.success) { | ||||
| 									toast({ color: 'success', title: "推送成功" }); | ||||
| 									this.props.modal.close('NCTable_83c3abf9'); | ||||
| 								} | ||||
| 							} | ||||
| 						}); | ||||
|                          | ||||
|                     }, | ||||
|                     cancelBtnClick: () => { | ||||
|                         this.props.modal.close('NCTable_83c3abf9') | ||||
|                     }, | ||||
|                     userControl: true | ||||
|                 })} | ||||
| 				<div>  | ||||
| 
 | ||||
| 					}, | ||||
| 					cancelBtnClick: () => { | ||||
| 						this.props.modal.close('NCTable_83c3abf9') | ||||
| 					}, | ||||
| 					userControl: true | ||||
| 				})} | ||||
| 				<div> | ||||
| 					<ReserveQuery | ||||
| 					show={this.state.showReserveQuery} | ||||
| 					pks={this.reserveQueryPks} | ||||
| 					onClose={() => { | ||||
| 						this.setState({ | ||||
| 							showReserveQuery: false | ||||
| 						}); | ||||
| 					} | ||||
| 				} | ||||
| 				/> | ||||
| 						show={this.state.showReserveQuery} | ||||
| 						pks={this.reserveQueryPks} | ||||
| 						onClose={() => { | ||||
| 							this.setState({ | ||||
| 								showReserveQuery: false | ||||
| 							}); | ||||
| 						} | ||||
| 						} | ||||
| 					/> | ||||
| 				</div> | ||||
| 				<div> | ||||
| 					 <BillReserve | ||||
| 					<BillReserve | ||||
| 						show={this.state.showReserve} | ||||
| 						data={this.reserveData} | ||||
| 						billType={'55A3'} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue