备料计划推送其他入库
This commit is contained in:
		
							parent
							
								
									9a9b2b563d
								
							
						
					
					
						commit
						fad3bf22c6
					
				|  | @ -277,7 +277,35 @@ class PickmCard extends Component { | |||
|                     ), | ||||
|                     size: '100', | ||||
|                     beSureBtnClick: () => { | ||||
|                          | ||||
| 						let rowids = []; | ||||
| 						let hids = []; | ||||
| 			            let hid; | ||||
| 						let rows = this.props.cardTable.getCheckedRows(AREA.bodyTable); | ||||
| 						hid = this.props.form.getFormItemsValue(AREA.formArea, FIELD.hid).value; | ||||
| 						hids.push(hid); | ||||
| 						// 如果没有选中行,则提示并返回,不进行任何操作
 | ||||
| 						if (!rows || rows.length <= 0) { | ||||
| 							hids.push(this.props.form.getFormItemsValue(AREA.formArea, FIELD.hid).value); | ||||
| 						} | ||||
| 						else { | ||||
| 							rows.map((item) => { | ||||
| 								let cpickm_bid = this.props.cardTable.getValByKeyAndIndex(AREA.bodyTable, item.index, 'cpickm_bid').value; | ||||
| 								rowids.push(cpickm_bid); | ||||
| 							}); | ||||
| 						} | ||||
| 						let data = { | ||||
| 							cpickmids: hids, | ||||
| 							cpickmbids: rowids | ||||
| 						} | ||||
| 						ajax({ | ||||
| 							url: URL.convertOtherIn, | ||||
| 							data: data, | ||||
| 							success: (res) => { | ||||
| 								if (res.success) { | ||||
| 									toast({ color: 'success', title: "推送成功" }); | ||||
| 								} | ||||
| 							} | ||||
| 						}); | ||||
|                          | ||||
|                     }, | ||||
|                     cancelBtnClick: () => { | ||||
|  |  | |||
|  | @ -798,7 +798,14 @@ export default async function clickBtn(props, id, text, record, index) { | |||
| 		case CARD_BTN.toOtherWarehouse://其他入库
 | ||||
| 		 | ||||
| 		case "toOtherWarehouse": | ||||
| 		     detailqueryBtnClick.call(this, this.props, record); | ||||
| 			billstatus = props.form.getFormItemsValue(AREA.formArea, 'fbillstatus'); | ||||
| 			//审批态,行号不能修改
 | ||||
| 			if (billstatus && billstatus.value && billstatus.value == 1) { | ||||
| 				detailqueryBtnClick.call(this, this.props, record); | ||||
| 			}else{ | ||||
| 				toast({ color: 'warning', title: "只有审批后单据才能生产其他入库单" }); | ||||
| 			} | ||||
| 		      | ||||
| 			//  rowids = [];
 | ||||
| 			//  hids = [];
 | ||||
| 			// if (record && record.values.cpickm_bid && record.values.cpickm_bid.value) {
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue