diff --git a/klp-ui/src/views/mes/qc/template/index.vue b/klp-ui/src/views/mes/qc/template/index.vue index 666cefc7..8ad4e5de 100644 --- a/klp-ui/src/views/mes/qc/template/index.vue +++ b/klp-ui/src/views/mes/qc/template/index.vue @@ -8,6 +8,10 @@ + + + @@ -17,16 +21,28 @@ - - - - - - +
+
+
+ {{ item.templateName }} +
+ 修改 + 删除 +
+
+
+ 所属单位:{{ item.templateUnit || '-' }} +
+
{{ item.templateDesc }}
+
+ +
@@ -37,6 +53,9 @@ + + + @@ -180,6 +199,7 @@ export default { pageNum: 1, pageSize: 10, templateName: undefined, + templateUnit: undefined, templateDesc: undefined, inspectionItem: undefined, }, @@ -190,6 +210,7 @@ export default { }, checkItemList: [], rightLoading: false, + isRowClicking: false, currentTemplate: null, addItemOpen: false, addItemForm: { @@ -220,11 +241,20 @@ export default { }); }, handleRowClick(row) { + if (this.isRowClicking) { + this.$message.info('正在查看数据,请稍后'); + return; + } + this.isRowClicking = true; this.currentTemplate = row; this.rightLoading = true; getInfoByInspectionItem(row.inspectionItem).then(response => { this.checkItemList = response.data || []; this.rightLoading = false; + this.isRowClicking = false; + }).catch(() => { + this.rightLoading = false; + this.isRowClicking = false; }); }, loadAvailableCheckItems() { @@ -425,3 +455,113 @@ export default { } }; + + diff --git a/klp-wms/src/main/java/com/klp/controller/WmsMaterialCoilController.java b/klp-wms/src/main/java/com/klp/controller/WmsMaterialCoilController.java index 7e760c58..b29bf53f 100644 --- a/klp-wms/src/main/java/com/klp/controller/WmsMaterialCoilController.java +++ b/klp-wms/src/main/java/com/klp/controller/WmsMaterialCoilController.java @@ -94,7 +94,7 @@ public class WmsMaterialCoilController extends BaseController { * 独立的统计接口,使用与分页列表相同的查询条件 */ @PostMapping("/statisticsList") - public R> getStatistics(WmsMaterialCoilBo bo) { + public R> getStatistics(@RequestBody WmsMaterialCoilBo bo) { return R.ok(iWmsMaterialCoilService.getStatistics(bo)); }