| | |
| | | |
| | | userId: userid, |
| | | userName: username, |
| | | |
| | | orderDetail: selectRecords |
| | | }) |
| | | request.post("/FinishedGoodsInventory/updateFinishedGoodsInventoryAllocate", flowData.value).then((res) => { |
| | |
| | | orderNumber: [ |
| | | { required: true, message: '请输入调拨的订单序号' } |
| | | ], |
| | | quantity: [ |
| | | { required: true, message: '请输入调拨的数量' } |
| | | ] |
| | | quantity: [{ |
| | | validator (e) { |
| | | if (e.row.quantity > e.row.finishedGoodsInventory.quantityAvailable) { |
| | | return new Error('调拨数量不能大于订单数') |
| | | }else if (e.row.quantity ==="") { |
| | | return new Error('调拨数量不能为空或者是0') |
| | | } |
| | | const regex = /^[1-9]\d*$/g |
| | | if ( !regex.test(e.row.quantity) ) { |
| | | return new Error('请输入正整数') |
| | | } |
| | | |
| | | } |
| | | |
| | | }] |
| | | |
| | | }) |
| | | |
| | | |
| | | |
| | | </script> |
| | | |
| | | <template> |