diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpMaterialController.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpMaterialController.java index 959cf4e2..0e4d7df7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpMaterialController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpMaterialController.java @@ -17,6 +17,7 @@ import com.ruoyi.system.domain.SysErpMaterialProductItem; import com.ruoyi.system.service.ISysErpMaterialProductItemService; import com.ruoyi.system.service.ISysProductItemService; import com.ruoyi.system.service.ISysRoleService; +import com.ruoyi.system.service.ISysUserService; import org.activiti.engine.RuntimeService; import org.activiti.engine.TaskService; import org.activiti.engine.runtime.ProcessInstance; @@ -69,6 +70,8 @@ public class ErpMaterialController extends BaseController @Autowired private ErpMaterialMapper erpMaterialMapper; + @Autowired + private ISysUserService sysUserService; @RequiresPermissions("erp:material:view") @GetMapping() @@ -331,7 +334,6 @@ public class ErpMaterialController extends BaseController * 审核信息 * */ - @RequiresPermissions("erp:material:audit") @Log(title = "物料信息审核", businessType = BusinessType.UPDATE) @PostMapping( "/audit") @ResponseBody @@ -392,4 +394,12 @@ public class ErpMaterialController extends BaseController materialVo.setKeyword(keyword); return success(erpMaterialMapper.selectErpMaterialList(materialVo)); } + + @GetMapping ("/getEngineerList") + @ResponseBody + public TableDataInfo getEngineerList(){ + startPage(); + List list = sysUserService.selectRoleToUserList("gcwyRole"); + return getDataTable(list); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java index 033dec6a..ac77fd13 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java @@ -304,7 +304,7 @@ public class SysUserController extends BaseController //过滤为工程文员时获取个人用户信息 //过滤为工程主管时获取工程文员的信息 //过滤为工程经理时获取工程主管的信息,工程文员的信息 - userSelList = userSelList.stream().filter(map -> map.get("userType").equals("1")).collect(Collectors.toList()); + userSelList = userSelList.stream().filter(map -> map.get("userType").equals("00")).collect(Collectors.toList()); return success(userSelList); } } \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/add.html b/ruoyi-admin/src/main/resources/templates/erp/material/add.html index 11aa4c03..bbf92807 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/add.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/add.html @@ -92,6 +92,7 @@
@@ -120,7 +121,6 @@ \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/detail.html b/ruoyi-admin/src/main/resources/templates/erp/material/detail.html index 868450a4..4b985b06 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/detail.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/detail.html @@ -7,7 +7,7 @@
-
+
@@ -21,24 +21,6 @@
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
@@ -92,7 +74,7 @@
-
@@ -150,6 +132,23 @@ \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/edit.html b/ruoyi-admin/src/main/resources/templates/erp/material/edit.html index d2dea7d8..04338af4 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/edit.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/edit.html @@ -21,32 +21,6 @@
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
@@ -62,10 +36,11 @@
- +
- + +
@@ -101,8 +76,16 @@
- + + + +
+
+
+ +
+
@@ -115,6 +98,7 @@ :on-remove="uploadRemove" :file-list="fileList" list-type="picture" + limit="5" accept=".jpg,.png" multiple> 点击上传 @@ -236,7 +220,6 @@ }, } }) - var prefix = ctx + "erp/material"; $("#form-material-edit").validate({ onkeyup: false, @@ -270,6 +253,23 @@ }, focusCleanup: true }); + $(function(){ + $.ajax({ + url: ctx + 'erp/material/getEngineerList', + type: 'get', + success: function (res) { + if (res.rows.length > 0) { + var usertData = res.rows; + for (let i in usertData) { + $("form-material- select[name='businessMembers']").append( + ""); + } + } else { + $.modal.msgError(res.msg); + } + } + }); + }) function submitHandler() { if ($.validate.form()) { diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/material.html b/ruoyi-admin/src/main/resources/templates/erp/material/material.html index 50911fd8..059ec097 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/material.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/material.html @@ -36,6 +36,7 @@
  • @@ -299,7 +300,6 @@