This commit is contained in:
		
							parent
							
								
									5c4ac2a745
								
							
						
					
					
						commit
						65a8cf9265
					
				|  | @ -7,8 +7,10 @@ import { rowCopyPasteUtils } from '../../../../../mmpub/mmpub/pub/tool/editTable | |||
| import { showSuccessInfo, showWarningInfo, showWarningDialog } from '../../../../../mmpub/mmpub/pub/tool/messageUtil'; | ||||
| import { getDefData, setDefData } from '../../../../../mmpub/mmpub/pub/cache'; | ||||
| import { buttonControl } from '../viewController/buttonController'; | ||||
| import { output} from 'nc-lightapp-front'; | ||||
| 
 | ||||
| export default function onList_BtnClicks(props, btncode, text, record, index) { | ||||
| 
 | ||||
| 	switch (btncode) { | ||||
| 		case BUTTON.delete: | ||||
| 			delrow.call(this); | ||||
|  | @ -140,10 +142,63 @@ export default function onList_BtnClicks(props, btncode, text, record, index) { | |||
| 				BUTTON.PlaseBtns | ||||
| 			); | ||||
| 			break; | ||||
| 			// 输出功能
 | ||||
| 		case "Output": | ||||
| 
 | ||||
| 			let isAll = false; | ||||
| 			let tableData = []; | ||||
| 			let oids=[]; | ||||
| 			let selectedRow = this.props.editTable.getCheckedRows(AREA.pickmViewTableArea);; | ||||
| 			let indexs = []; | ||||
| 			if (!selectedRow || selectedRow.length < 1) { | ||||
| 				isAll = true; | ||||
| 				tableData = this.props.editTable.getAllRows(AREA.pickmViewTableArea); | ||||
| 			}else{ | ||||
| 				tableData = this.props.editTable.getCheckedRows(AREA.pickmViewTableArea); | ||||
| 			} | ||||
| 			tableData.forEach((row) => { | ||||
| 				oids.push(row.data.values.cpickm_bid.value); | ||||
| 			}); | ||||
| 			let printdata={ | ||||
| 				funcode: "50080105", | ||||
| 				nodekey: "10086", | ||||
| 				oids: oids, | ||||
| 				outputType: "output", | ||||
| 			}; | ||||
| 			//小应用编码//小应用编码
 | ||||
| 			//默认模板分配的key//需要输出的单据主键//输出类型 --默认output
 | ||||
| 			output({ url: "/nccloud/mmpac/issue/printAction.do", data: printdata }); | ||||
| 			break; | ||||
| 		default: | ||||
| 			break; | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| // function onOutput() {
 | ||||
| // 	let isAll = false;
 | ||||
| // 	let tableData = [];
 | ||||
| // 	let oids=[];
 | ||||
| // 	let selectedRow = this.props.editTable.getCheckedRows(AREA.pickmViewTableArea);;
 | ||||
| // 	let indexs = [];
 | ||||
| // 	if (!selectedRow || selectedRow.length < 1) {
 | ||||
| // 		isAll = true;
 | ||||
| // 		tableData = this.props.editTable.getAllRows(AREA.pickmViewTableArea);
 | ||||
| // 	}
 | ||||
| // 	tableData.forEach((row) => {
 | ||||
| // 		oids.push(row.values.cpickm_bid.value);
 | ||||
| // 	});
 | ||||
| // 	let printdata={
 | ||||
| // 		funcode: this.config.moduleId,
 | ||||
| // 		appcode: this.config.moduleId,
 | ||||
| // 		nodekey: nodekey,
 | ||||
| // 		oids: oids,
 | ||||
| // 		outputType: "output",
 | ||||
| // 	};
 | ||||
| // 	//小应用编码//小应用编码
 | ||||
| // 	//默认模板分配的key//需要输出的单据主键//输出类型 --默认output
 | ||||
| // 	output({ url: urls['print'], data: printdata });
 | ||||
| // };
 | ||||
| 
 | ||||
| //下游单据
 | ||||
| function downStreamBill() { | ||||
| 	ajax({ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue