diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesShippingInformController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesShippingInformController.java index 66f82046..80797f99 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesShippingInformController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesShippingInformController.java @@ -220,6 +220,31 @@ public class SysSalesShippingInformController extends BaseController + + /** + * 详情 + */ + @GetMapping("/customerCheckGoodsDetail/{shippingInformId}") + public String customerCheckGoodsDetail(@PathVariable("shippingInformId") Long shippingInformId, ModelMap mmap) + { + SysSalesShippingInform sysSalesShippingInform = sysSalesShippingInformService.selectSysSalesShippingInformById(shippingInformId); + mmap.put("sysSalesShippingInform", sysSalesShippingInform); + return prefix + "/customerCheckGoodsDetail"; + } + + /** + * 修改保存详情 + */ + @RequiresPermissions("system:salesShippingInform:customerCheckGoodsDetail") + @Log(title = "销售取消发货", businessType = BusinessType.UPDATE) + @PostMapping("/customerCheckGoodsDetail") + @ResponseBody + public AjaxResult customerCheckGoodsDetailSave(@RequestBody SysSalesShippingInform sysSalesShippingInform) + { + return toAjax(sysSalesShippingInformService.updateCustomerCheckGoodsDetail(sysSalesShippingInform)); + } + + /** * 客户验收 物料信息信息 */ diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesShippingInformService.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesShippingInformService.java index 01fb4f01..634d508c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesShippingInformService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesShippingInformService.java @@ -101,4 +101,9 @@ public interface ISysSalesShippingInformService * 客户验收查询物料相关数据 * */ List getMaterialListByOutOrderCode(SysSalesShippingInform sysSalesShippingInform); + + /** + * 客户验收详情 + * */ + int updateCustomerCheckGoodsDetail(SysSalesShippingInform sysSalesShippingInform); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesShippingInformServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesShippingInformServiceImpl.java index a5a7eb57..0616334c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesShippingInformServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesShippingInformServiceImpl.java @@ -295,7 +295,7 @@ public class SysSalesShippingInformServiceImpl implements ISysSalesShippingInfor } } //设置出货状态为全部验收 - sysSalesShippingInform.setWarehouseOutStatus("11"); + sysSalesShippingInform.setWarehouseOutStatus("12"); //更新出库状态 WarehouseOutOrder warehouseOutOrder = new WarehouseOutOrder(); @@ -304,7 +304,7 @@ public class SysSalesShippingInformServiceImpl implements ISysSalesShippingInfor warehouseOutOrder.setUpdateBy(loginName); //设置为全部验收 warehouseOutOrder.setWarehouseOutStatus("12"); - int updateWarehouseOutOrdeResult = warehouseOutOrderMapper.updateWarehouseOutOrder(warehouseOutOrder); + int updateWarehouseOutOrdeResult = warehouseOutOrderMapper.updateWarehouseOutOrderByCode(warehouseOutOrder); if (updateWarehouseOutOrdeResult <= 0){ throw new BusinessException("更新出库单数据失败"); } @@ -338,4 +338,13 @@ public class SysSalesShippingInformServiceImpl implements ISysSalesShippingInfor List list = shippingInformDetailMapper.selectSysSalesShippingInformDetailByCode(outOrderCode); return list; } + + /** + * 客户验收详情 + * */ + @Override + public int updateCustomerCheckGoodsDetail(SysSalesShippingInform sysSalesShippingInform) { + + return 1; + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderMapper.java index 99ed744c..df447fae 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderMapper.java @@ -52,6 +52,15 @@ public interface WarehouseOutOrderMapper */ public int updateWarehouseOutOrder(WarehouseOutOrder warehouseOutOrder); + /** + * 修改仓库出库单 + * + * @param warehouseOutOrder 仓库出库单 + * @return 结果 + */ + public int updateWarehouseOutOrderByCode(WarehouseOutOrder warehouseOutOrder); + + /** * 删除仓库出库单 * diff --git a/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderMapper.xml b/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderMapper.xml index 728613f3..79f25077 100644 --- a/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderMapper.xml @@ -221,6 +221,51 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where out_order_id = #{outOrderId} + + + update warehouse_out_order + + out_order_code = #{outOrderCode}, + make_no = #{makeNo}, + warehouse_out_status = #{warehouseOutStatus}, + related_order_code = #{relatedOrderCode}, + sales_order_code = #{salesOrderCode}, + warehouse_order_type = #{warehouseOrderType}, + out_make_code = #{outMakeCode}, + warehouse_out_type = #{warehouseOutType}, + requisitioning_code = #{requisitioningCode}, + business_name = #{businessName}, + aftersales_name = #{aftersalesName}, + warehouse_name = #{warehouseName}, + shipping_device_id = #{shippingDeviceId}, + material_no = #{materialNo}, + material_name = #{materialName}, + material_sum = #{materialSum}, + enterprise_sum = #{enterpriseSum}, + out_order_sum = #{outOrderSum}, + out_order_name = #{outOrderName}, + out_order_time = #{outOrderTime}, + customer_id = #{customerId}, + customer_name = #{customerName}, + apply_name = #{applyName}, + supplier_code = #{supplierCode}, + plan_delivery_time = #{planDeliveryTime}, + supplier_name = #{supplierName}, + delivery_condition = #{deliveryCondition}, + delivery_address = #{deliveryAddress}, + delivery_name = #{deliveryName}, + delivery_number = #{deliveryNumber}, + create_by = #{createBy}, + create_time = #{createTime}, + delivery_date = #{deliveryDate}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + + where out_order_code = #{outOrderCode} + + + delete from warehouse_out_order where out_order_id = #{outOrderId} diff --git a/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/customerCheckGoodsDetail.html b/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/customerCheckGoodsDetail.html new file mode 100644 index 00000000..6c1f9655 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/customerCheckGoodsDetail.html @@ -0,0 +1,245 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+
+
+
+
+
+
+ + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/salesShippingInform.html b/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/salesShippingInform.html index 173fa6e4..9b7c6803 100644 --- a/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/salesShippingInform.html +++ b/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/salesShippingInform.html @@ -71,8 +71,8 @@ var cancelFlag = [[${@permission.hasPermi('system:salesShippingInform:cancel')}]]; var restoreFlag = [[${@permission.hasPermi('system:salesShippingInform:restore')}]]; var confirmShippingFlag = [[${@permission.hasPermi('system:salesShippingInform:confirmShipping')}]]; - - + var customerCheckGoodsFlag = [[${@permission.hasPermi('system:salesShippingInform:customerCheckGoods')}]]; + var customerCheckGoodsDetailFlag = [[${@permission.hasPermi('system:salesShippingInform:customerCheckGoodsDetail')}]]; @@ -222,12 +222,12 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('编辑 '); + actions.push('详情 '); if(row.warehouseOutStatus == '2'){ actions.push('确认发货 '); } if(row.warehouseOutStatus == '10' || row.warehouseOutStatus == '11'){ - actions.push('确认验收 '); + actions.push('确认验收 '); } return actions.join(''); @@ -248,6 +248,12 @@ var url = prefix +'/customerCheckGoods/' + shippingInformId; $.modal.open("客户验收",url); } + + //详情 + function customerCheckGoodsDetail(shippingInformId){ + var url = prefix +'/customerCheckGoodsDetail/' + shippingInformId; + $.modal.open("详情",url); + } \ No newline at end of file