diff --git a/ruoyi-admin/src/main/resources/templates/busi/materialperate/add.html b/ruoyi-admin/src/main/resources/templates/busi/materialperate/add.html index 8cde6899a..a266a63de 100644 --- a/ruoyi-admin/src/main/resources/templates/busi/materialperate/add.html +++ b/ruoyi-admin/src/main/resources/templates/busi/materialperate/add.html @@ -8,12 +8,19 @@
+
+ + +
+
+
+
- +
@@ -23,8 +30,9 @@
- 代码生成请选择字典属性
@@ -47,6 +55,23 @@ $.operate.save(prefix + "/add", $('#form-materialperate-add').serialize()); } } + + /*订单选择*/ + function selectOrder(status) { + var options = { + title: '选择订单', + width: "380", + height: "400", + url: ctx + "busi/order/selectOrder/" + status, + callBack: function(index, layero){ + var body = $.modal.getChildFrame(index); + $("#treeId").val(body.find('#treeId').val()); + $("#treeName").val(body.find('#treeName').val()); + $.modal.close(index); + } + }; + $.modal.openOptions(options); + } \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/busi/materialperate/materialperate.html b/ruoyi-admin/src/main/resources/templates/busi/materialperate/materialperate.html index a63425bee..b9ebf012e 100644 --- a/ruoyi-admin/src/main/resources/templates/busi/materialperate/materialperate.html +++ b/ruoyi-admin/src/main/resources/templates/busi/materialperate/materialperate.html @@ -18,7 +18,8 @@
  • diff --git a/sql/tmp.sql b/sql/tmp.sql index 1ec935f34..f63198e7c 100644 --- a/sql/tmp.sql +++ b/sql/tmp.sql @@ -145,3 +145,11 @@ values('物料操作流水删除', @parentId, '4', '#', 'F', '0', 'busi:materi insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) values('物料操作流水导出', @parentId, '5', '#', 'F', '0', 'busi:materialperate:export', '#', 'admin', sysdate(), '', null, ''); + + +select max(A.classify),max(sdd.dict_label),max(sdd2.dict_label),max(A.color), sum(A.amount) from busi_material_require A + left join busi_product_require B on A.product_require_id = B.id + left join busi_order bo on B.order_id = bo.id + left join sys_dict_data sdd on sdd.dict_type='busi_color' and A.color = sdd.dict_value + left join sys_dict_data sdd2 on sdd2.dict_type='busi_material_type' and A.classify = sdd2.dict_value +where order_id = 1 group by (A.color + A.classify) \ No newline at end of file