diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java index e9a0fd9d..a1fc5c66 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java @@ -4,6 +4,8 @@ import java.util.List; import java.util.Map; import java.util.stream.Collectors; +import com.ruoyi.aftersales.domain.AftersalesComplaintNoticeDetail; +import com.ruoyi.aftersales.domain.vo.AftersalesMaterialVO; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.erp.domain.ErpMaterialVo; import com.ruoyi.erp.service.IErpMaterialService; @@ -177,7 +179,7 @@ public class QualityRefundsExchangesController extends BaseController } /** - * 修改品质单报告不良分类 + * 新增品质单报告不合格数 */ @GetMapping("/qualityReport") public String qualityReport( @RequestParam("materialNo") String materialNo, @@ -195,9 +197,8 @@ public class QualityRefundsExchangesController extends BaseController } /** - * 新增保存品质单报告不良分类 + * 新增保存品质单报告不合格数 */ - @RequiresPermissions("quality:qualityOrder:qualityReport") @Log(title = "品质管理品质单", businessType = BusinessType.INSERT) @PostMapping("/qualityReport") @ResponseBody @@ -207,7 +208,7 @@ public class QualityRefundsExchangesController extends BaseController } /** - * 修改品质管理退换货单 + * 入库前退换货单详情 */ @GetMapping("/returnBeforeStorageDetail/{refundsExchangesId}") public String returnBeforeStorageDetail(@PathVariable("refundsExchangesId") Long refundsExchangesId, ModelMap mmap) @@ -218,7 +219,7 @@ public class QualityRefundsExchangesController extends BaseController } /** - * 修改保存品质管理退换货单 + * 保存入库前退换货单详情 */ @RequiresPermissions("quality:refundsExchanges:returnBeforeStorageDetail") @Log(title = "品质管理退换货单", businessType = BusinessType.UPDATE) @@ -243,4 +244,40 @@ public class QualityRefundsExchangesController extends BaseController } + + /** + * 入库前退换货单详情 + */ + @GetMapping("/returnAfterStorageDetail/{refundsExchangesId}") + public String returnAfterStorageDetail(@PathVariable("refundsExchangesId") Long refundsExchangesId, ModelMap mmap) + { + QualityRefundsExchanges qualityRefundsExchanges = qualityRefundsExchangesService.selectQualityRefundsExchangesById(refundsExchangesId); + mmap.put("qualityRefundsExchanges", qualityRefundsExchanges); + return prefix + "/returnAfterStorageDetail"; + } + + /** + * 保存入库前退换货单详情 + */ + @RequiresPermissions("quality:refundsExchanges:returnAfterStorageDetail") + @Log(title = "品质管理退换货单", businessType = BusinessType.UPDATE) + @PostMapping("/returnAfterStorageDetail") + @ResponseBody + public AjaxResult returnAfterStorageDetailSave(QualityRefundsExchanges qualityRefundsExchanges) + { + return toAjax(qualityRefundsExchangesService.returnBeforeStorageDetail(qualityRefundsExchanges)); + } + + /** + * 入库后退货详情物料信息列表 + * */ + @ResponseBody + @PostMapping("/getMaterialListByRefundsExchangesCode") + public TableDataInfo getMaterialListByRefundsExchangesCode(QualityRefundsExchanges qualityRefundsExchanges){ + startPage(); + List list = refundsExchangesDetailService.selectRefundsExchangesDetailListByCode(qualityRefundsExchanges.getRefundsExchangesCode()); + return getDataTable(list); + } + + } diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html index bf98b610..1cc91cce 100644 --- a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html +++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html @@ -82,7 +82,7 @@ var closingProceduresFlag = [[${@permission.hasPermi('quality:refundsExchanges:closingProcedures')}]]; var returnBeforeStorageDetailFlag = [[${@permission.hasPermi('quality:refundsExchanges:returnBeforeStorageDetail')}]]; - + var returnAfterStorageDetailFlag = [[${@permission.hasPermi('quality:refundsExchanges:returnAfterStorageDetailFlag')}]]; var refundsExchangesStatusDatas = [[${@dict.getType('refunds_exchanges_status')}]]; var qualityWarehouseStatusDatas = [[${@dict.getType('quality_warehouse_status')}]]; @@ -194,6 +194,10 @@ if (row.qualityReturnNode == 0){ actions.push('详情 '); } + /*入库后退货详情*/ + if (row.qualityReturnNode == 1){ + actions.push('详情 '); + } return actions.join(''); } @@ -209,6 +213,12 @@ $.modal.open("入库前退货详情",url); } + /*入库后退货详情*/ + function returnAfterStorageDetail(refundsExchangesId){ + var url = ctx + 'quality/refundsExchanges/returnAfterStorageDetail/' +refundsExchangesId; + $.modal.open("入库后退货详情",url); + } + /*结案*/ function closingProcedures(refundsExchangesId){ var url = ctx + 'quality/refundsExchanges/closingProcedures/' +refundsExchangesId; diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/returnAfterStorageDetail.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/returnAfterStorageDetail.html new file mode 100644 index 00000000..0181c90c --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/returnAfterStorageDetail.html @@ -0,0 +1,224 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+
+
+
+ + + + + + + \ No newline at end of file