| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/orderDetl/beBatch/update/auth") |
| | | @ManagerAuth(memo = "同步已下发数量") |
| | | public R updateBeBatch(@RequestParam Long id, @RequestParam Integer beBatch) { |
| | | if (id == null) { |
| | | return R.error("id不能为空"); |
| | | } |
| | | if (!orderDetlService.updateBeBatch(id, beBatch)) { |
| | | return R.error("更新失败"); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/orderDetl/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | |
| | | import com.zy.asrs.entity.OrderDetlPakin; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Update; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | |
| | | List<OrderDetlPakin> selectOrderDetlsByOrderNo(@Param("orderNo")String orderNo); |
| | | |
| | | boolean morpt(@Param("orderNo")String orderNo,@Param("matnr")String matnr); |
| | | |
| | | @Update("update man_order_detl_pakin set be_batch = #{beBatch} where id = #{id}") |
| | | int updateBeBatch(@Param("id") Long id, @Param("beBatch") Integer beBatch); |
| | | } |
| | |
| | | List<OrderDetlPakin> selectOrderDetls(OrderDetlByCode orderDetlByCode); |
| | | List<OrderDetlPakin> selectOrderDetlsByOrderNo(String orderNo); |
| | | |
| | | boolean updateBeBatch(Long id, Integer beBatch); |
| | | |
| | | } |
| | |
| | | public List<OrderDetlPakin> selectOrderDetlsByOrderNo(String orderNo){ |
| | | return this.baseMapper.selectOrderDetlsByOrderNo(orderNo); |
| | | } |
| | | |
| | | @Override |
| | | public boolean updateBeBatch(Long id, Integer beBatch) { |
| | | return this.baseMapper.updateBeBatch(id, beBatch) > 0; |
| | | } |
| | | |
| | | @Override |
| | | public boolean morpt(String orderNo,String orderNo1){ |
| | |
| | | confirmReport(orderNo, done) { |
| | | this.reportLoading = true; |
| | | |
| | | // 先将每条明细的 待下发数量 写入 beBatch 字段 |
| | | const updates = (this.tableDataB || []).map(item => { |
| | | const beBatchVal = Math.floor(parseFloat(item.sortingAnfme || 0)); |
| | | return new Promise((resolve) => { |
| | | $.ajax({ |
| | | url: baseUrl + "/order/pakin/orderDetl/update/auth", |
| | | url: baseUrl + "/order/pakin/orderDetl/beBatch/update/auth", |
| | | headers: { 'token': localStorage.getItem('token') }, |
| | | data: { |
| | | id: item.id, |