销售订单手动推送启源qms
This commit is contained in:
		
							parent
							
								
									c14625d46c
								
							
						
					
					
						commit
						8878b4b89c
					
				|  | @ -300,6 +300,21 @@ export default function clickBtn(index, props, id, value) { | ||||||
| 		// Export 导出模板
 | 		// Export 导出模板
 | ||||||
| 		case 'Export': | 		case 'Export': | ||||||
| 			return props.modal.show('exportFileModal'); | 			return props.modal.show('exportFileModal'); | ||||||
|  | 		// 推送qms
 | ||||||
|  | 		case 'pushtoqms': | ||||||
|  | 			let rowIds = []; | ||||||
|  |             let billId = props.form.getFormItemsValue(formId, HEADATTRCODE.CPMOHID).value; | ||||||
|  |             // 生产订单手动推艾普MES
 | ||||||
|  |             rowIds[0] = billId; | ||||||
|  |             ajax({ | ||||||
|  |                 url: '/nccloud/so/refer/SaleOrderToQms.do', | ||||||
|  |                 data: {pk: rowIds}, | ||||||
|  |                 success: (res) => { | ||||||
|  |                     if (res.success) { | ||||||
|  |                         toast({content: "传递生产订单成功", color: 'success'}); | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |             }); | ||||||
| 		default: | 		default: | ||||||
| 			break; | 			break; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue