借料入库代码优化
This commit is contained in:
		
							parent
							
								
									6c7652d70c
								
							
						
					
					
						commit
						687aa7765c
					
				|  | @ -1,6 +1,5 @@ | ||||||
| import {ajax, base, toast} from 'nc-lightapp-front'; | import {ajax, base, toast} from 'nc-lightapp-front'; | ||||||
| import {AREA, DIALOGCODE, FIELD, URL} from '../../constance'; | import {AREA, DIALOGCODE, FIELD, URL} from '../../constance'; | ||||||
| import {getLangByResId} from '../../../../../mmpub/mmpub/pub/tool/multiLangUtil'; |  | ||||||
| import {showWarningInfo} from '../../../../../mmpub/mmpub/pub/tool/messageUtil'; | import {showWarningInfo} from '../../../../../mmpub/mmpub/pub/tool/messageUtil'; | ||||||
| import PickmBorrowDlg from "../../pickmborrow/list"; | import PickmBorrowDlg from "../../pickmborrow/list"; | ||||||
| 
 | 
 | ||||||
|  | @ -63,7 +62,7 @@ function oKBtnClicks(props) { | ||||||
|     let rowids = []; |     let rowids = []; | ||||||
|     let hids = []; |     let hids = []; | ||||||
|     let hid; |     let hid; | ||||||
|     let rows = props.table.getCheckedRows(AREA.borrowMaterialDialog); |     let rows = props.table.getCheckedRows(TABLE_HEAD); | ||||||
|     hid = props.form.getFormItemsValue(AREA.formArea, FIELD.hid).value; |     hid = props.form.getFormItemsValue(AREA.formArea, FIELD.hid).value; | ||||||
|     hids.push(hid); |     hids.push(hid); | ||||||
|     // 如果没有选中行,则提示并返回,不进行任何操作
 |     // 如果没有选中行,则提示并返回,不进行任何操作
 | ||||||
|  | @ -76,17 +75,18 @@ function oKBtnClicks(props) { | ||||||
|     } |     } | ||||||
|     let data = { |     let data = { | ||||||
|         cpickmids: hids, |         cpickmids: hids, | ||||||
|         cpickmbids: rowids |         cpickmbids: rowids, | ||||||
|  |         rows: rows | ||||||
|     } |     } | ||||||
|     console.log('data = ', data); |     console.log('data = ', data); | ||||||
|     ajax({ |     ajax({ | ||||||
|         url: URL.pickmItemsQuery, |         url: URL.convertOtherIn, | ||||||
|         data: data, |         data: data, | ||||||
|         success: res => { |         success: res => { | ||||||
|             if (res.success && res.data) { |             if (res.success && res.data) { | ||||||
|                 if (res.success) { |                 if (res.success) { | ||||||
|                     toast({color: 'success', title: "推送成功"}); |                     toast({color: 'success', title: "操作成功"}); | ||||||
|                     this.props.modal.close(AREA.borrowMaterialDialog); |                     this.props.modal.close(TABLE_HEAD); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         }, |         }, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue