销售订单增加推送QMS按钮
This commit is contained in:
		
							parent
							
								
									bfc18aed68
								
							
						
					
					
						commit
						22c653801c
					
				|  | @ -66,7 +66,8 @@ import reserveQueryBtnClick from './reserveQueryBtnClick'; | ||||||
| import tempSave_BtnClick from './tempSave_BtnClick'; | import tempSave_BtnClick from './tempSave_BtnClick'; | ||||||
| import showTemporary_BtnClick from './showTemporary_BtnClick'; | import showTemporary_BtnClick from './showTemporary_BtnClick'; | ||||||
| import printCountQuery_BtnClick from './printCountQuery_BtnClick'; | import printCountQuery_BtnClick from './printCountQuery_BtnClick'; | ||||||
| 
 | import {SALEORDER_CONST} from "../../const"; | ||||||
|  | import {ajax, toast } from 'nc-lightapp-front'; | ||||||
| export default function clickBtn(index, props, id, value) { | export default function clickBtn(index, props, id, value) { | ||||||
| 	index = this.curindex; | 	index = this.curindex; | ||||||
| 	switch (id) { | 	switch (id) { | ||||||
|  | @ -303,15 +304,14 @@ export default function clickBtn(index, props, id, value) { | ||||||
| 		// 推送qms
 | 		// 推送qms
 | ||||||
| 		case 'pushtoqms': | 		case 'pushtoqms': | ||||||
| 			let rowIds = []; | 			let rowIds = []; | ||||||
|             let billId = props.form.getFormItemsValue(formId, HEADATTRCODE.CPMOHID).value; |             let billId = props.form.getFormItemsValue(SALEORDER_CONST.formId, SALEORDER_CONST.csaleorderid).value; | ||||||
|             // 生产订单手动推艾普MES
 |  | ||||||
|             rowIds[0] = billId; |             rowIds[0] = billId; | ||||||
|             ajax({ |             ajax({ | ||||||
|                 url: '/nccloud/so/refer/SaleOrderToQms.do', |                 url: '/nccloud/so/saleorder/SaleOrderToQms.do', | ||||||
|                 data: {pk: rowIds}, |                 data: {pk: rowIds}, | ||||||
|                 success: (res) => { |                 success: (res) => { | ||||||
|                     if (res.success) { |                     if (res.success) { | ||||||
|                         toast({content: "传递生产订单成功", color: 'success'}); |                         toast({content: "传递成功", color: 'success'}); | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|             }); |             }); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue