diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityOrderController.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityOrderController.java index 67b98638..d77b37b4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityOrderController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityOrderController.java @@ -168,7 +168,7 @@ public class QualityOrderController extends BaseController @ResponseBody public AjaxResult startingQualityDetailSave(QualityOrder qualityOrder) { - return toAjax(qualityOrderService.updateQualityOrder(qualityOrder)); + return toAjax(qualityOrderService.qualityOrderDetailSave(qualityOrder)); } @@ -206,7 +206,6 @@ public class QualityOrderController extends BaseController /** * 修改保存品质报告按钮 */ - @RequiresPermissions("quality:qualityOrder:qualityReport") @Log(title = "品质管理品质单", businessType = BusinessType.UPDATE) @PostMapping("/qualityReport") @ResponseBody @@ -240,12 +239,37 @@ public class QualityOrderController extends BaseController } + + /** + * 委内加工品质单开始品质列表详情接口 + */ + @GetMapping("/makeInStartingQualityDetail/{qualityOrderId}") + public String makeInStartingQualityDetail(@PathVariable("qualityOrderId") Long qualityOrderId, ModelMap mmap) + { + QualityOrder qualityOrder = qualityOrderService.selectQualityOrderById(qualityOrderId); + mmap.put("qualityOrder", qualityOrder); + return prefix + "/makeInStartingQualityDetail"; + } + + /** + * 修改保存委内加工品质单开始品质详情 + */ + @RequiresPermissions("quality:qualityOrder:makeInStartingQualityDetail") + @Log(title = "品质管理品质单", businessType = BusinessType.UPDATE) + @PostMapping("/makeInStartingQualityDetail") + @ResponseBody + public AjaxResult makeInStartingQualityDetailSave(QualityOrder qualityOrder) + { + return toAjax(qualityOrderService.qualityOrderDetailSave(qualityOrder)); + } + + /** * 委内加工品质单开始品质 物料相关信息 */ @PostMapping("/getMaterialListByQualityOrderCode") @ResponseBody - public TableDataInfo getMaterialListByOutOrderCode(QualityOrder qualityOrder) + public TableDataInfo getMaterialListByQualityOrderCode(QualityOrder qualityOrder) { startPage(); List list = qualityOrderService.getMaterialListByQualityOrderCode(qualityOrder); @@ -270,7 +294,6 @@ public class QualityOrderController extends BaseController /** * 修改保存委内加工入库单品质报告按钮 */ - @RequiresPermissions("quality:qualityOrder:makeInOrderReport") @Log(title = "品质管理品质单", businessType = BusinessType.UPDATE) @PostMapping("/makeInOrderReport") @ResponseBody diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityOrderService.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityOrderService.java index a5c0f9a1..2388ccb4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityOrderService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityOrderService.java @@ -91,4 +91,9 @@ public interface IQualityOrderService * 查询委内加工品质单开始品质 物料相关信息 */ List getMaterialListByQualityOrderCode(QualityOrder qualityOrder); + + /* + * 品质单详情通用保存方法 + * */ + int qualityOrderDetailSave(QualityOrder qualityOrder); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderServiceImpl.java index 49615733..aee1bd2a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityOrderServiceImpl.java @@ -110,7 +110,7 @@ public class QualityOrderServiceImpl implements IQualityOrderService String loginName = ShiroUtils.getLoginName(); qualityOrder.setUpdateBy(loginName); qualityOrder.setUpdateTime(new Date()); - + qualityOrder.setQualityEmployee(loginName); List qualityOrderDetailList = qualityOrder.getQualityOrderDetailList(); if (CollectionUtils.isEmpty(qualityOrderDetailList)){ @@ -319,7 +319,7 @@ public class QualityOrderServiceImpl implements IQualityOrderService String loginName = ShiroUtils.getLoginName(); qualityOrder.setUpdateBy(loginName); qualityOrder.setUpdateTime(new Date()); - + qualityOrder.setQualityEmployee(loginName); List qualityOrderDetailList = qualityOrder.getQualityOrderDetailList(); if (CollectionUtils.isEmpty(qualityOrderDetailList)){ @@ -437,6 +437,15 @@ public class QualityOrderServiceImpl implements IQualityOrderService return details; } + /** + * 品质单详情通用保存方法 + * */ + @Override + public int qualityOrderDetailSave(QualityOrder qualityOrder) { + + return 1; + } + //品质单不合格分类表 private void insertQualityOrderUnqualifiedByWarehouseStorageOrder(WarehouseStorageOrderDetail warehouseStorageOrderDetail) { QualityOrderReportUnqualified qualityOrderReportUnqualified = new QualityOrderReportUnqualified(); diff --git a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/makeInStartingQuality.html b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/makeInStartingQuality.html index 17c5e2eb..ca8ebd79 100644 --- a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/makeInStartingQuality.html +++ b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/makeInStartingQuality.html @@ -51,18 +51,6 @@ -
- -
- -
-
-
- -
- -
-
@@ -83,10 +71,18 @@ var qualityOrderCode = [[${qualityOrder.qualityOrderCode}]] var qualityOrder = [[${qualityOrder}]] var prefix = ctx + "quality/qualityOrder"; - $("#form-qualityOrder-edit").validate({ + $("#form-makeInStartingQuality-edit").validate({ focusCleanup: true }); + $("input[name='deliveryInspectionTime']").datetimepicker({ + format: "yyyy-mm-dd", + minView: "month", + autoclose: true + }); + + + // 新增提交 function submitHandler() { // 获取表单数据 diff --git a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/makeInStartingQualityDetail.html b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/makeInStartingQualityDetail.html new file mode 100644 index 00000000..ef4ebdec --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/makeInStartingQualityDetail.html @@ -0,0 +1,207 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+
+
+
+
+
+
+ + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html index e1f1f5ff..17b19d5d 100644 --- a/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html +++ b/ruoyi-admin/src/main/resources/templates/quality/qualityOrder/qualityOrder.html @@ -58,6 +58,8 @@ var detailFlag = [[${@permission.hasPermi('quality:qualityOrder:detail')}]]; var qualityFlag = [[${@permission.hasPermi('quality:qualityOrder:startingQuality')}]]; var makeInStartingQualityFlag = [[${@permission.hasPermi('quality:qualityOrder:makeInStartingQuality')}]]; + var makeInStartingQualityDetailFlag = [[${@permission.hasPermi('quality:qualityOrder:makeInStartingQualityDetail')}]]; + var qualityStatusDatas = [[${@dict.getType('qualityStatus')}]]; var qualityOrderTypeDatas = [[${@dict.getType('quality_order_type')}]]; @@ -157,16 +159,23 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('详情 '); //采购订单品质 if (row.qualityStatus != 2 && row.qualityStorageStatus == 0 ){ actions.push('品质 '); } + + //采购订单品质详情 + if (row.qualityStorageStatus == 0 ){ + actions.push('详情 '); + } //委内入库品质 if (row.qualityStatus != 2 && row.qualityStorageStatus == 1 ){ actions.push('品质 '); } - + //委内入库品质详情 + if (row.qualityStorageStatus == 1 ){ + actions.push('详情 '); + } return actions.join(''); } }] @@ -193,6 +202,12 @@ $.modal.open("进行品质",url) } + //委内加工单品质详情 + function makeInStartingQualityDetail(qualityOrderId){ + var url = ctx +'quality/qualityOrder/makeInStartingQualityDetail/' + qualityOrderId; + $.modal.open("进行品质详情",url) + } + \ No newline at end of file