瀏覽代碼

耗材首页显示

lamphua 10 月之前
父節點
當前提交
be3a380736

+ 13
- 13
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java 查看文件

@@ -731,19 +731,19 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
731 731
             runtimeService.createChangeActivityStateBuilder()
732 732
                     .processInstanceId(task.getProcessInstanceId())
733 733
                     .moveActivityIdsToSingleActivityId(currentIds, lastHistoricTaskDefinitionKey).changeState();
734
-            String currentTaskId = taskService.createTaskQuery().processInstanceId(task.getProcessInstanceId()).singleResult().getId();
735
-            List<HistoricTaskInstance> htiTargetList = historyService.createHistoricTaskInstanceQuery()
736
-                    .processInstanceId(task.getProcessInstanceId())
737
-                    .taskDefinitionKey(lastHistoricTaskDefinitionKey)
738
-                    .list();
739
-            String taskAssignee = "";
740
-            for (HistoricTaskInstance hti: htiTargetList) {
741
-                if (!hti.getId().equals(currentTaskId)) {
742
-                    taskAssignee = hti.getAssignee();
743
-                    break;
744
-                }
745
-            }
746
-            taskService.setAssignee(currentTaskId, taskAssignee);
734
+//            String currentTaskId = taskService.createTaskQuery().processInstanceId(task.getProcessInstanceId()).singleResult().getId();
735
+//            List<HistoricTaskInstance> htiTargetList = historyService.createHistoricTaskInstanceQuery()
736
+//                    .processInstanceId(task.getProcessInstanceId())
737
+//                    .taskDefinitionKey(lastHistoricTaskDefinitionKey)
738
+//                    .list();
739
+//            String taskAssignee = "";
740
+//            for (HistoricTaskInstance hti: htiTargetList) {
741
+//                if (!hti.getId().equals(currentTaskId)) {
742
+//                    taskAssignee = hti.getAssignee();
743
+//                    break;
744
+//                }
745
+//            }
746
+//            taskService.setAssignee(currentTaskId, taskAssignee);
747 747
         } catch (FlowableObjectNotFoundException e) {
748 748
             throw new CustomException("未找到流程实例,流程可能已发生变化");
749 749
         } catch (FlowableException e) {

+ 37
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcMaterialBuy.java 查看文件

@@ -3,6 +3,7 @@ package com.ruoyi.oa.domain;
3 3
 import java.math.BigDecimal;
4 4
 import java.util.Date;
5 5
 import com.fasterxml.jackson.annotation.JsonFormat;
6
+import com.ruoyi.common.core.domain.entity.SysUser;
6 7
 import org.apache.commons.lang3.builder.ToStringBuilder;
7 8
 import org.apache.commons.lang3.builder.ToStringStyle;
8 9
 import com.ruoyi.common.annotation.Excel;
@@ -22,7 +23,12 @@ public class CmcMaterialBuy extends BaseEntity
22 23
     private Integer buyId;
23 24
 
24 25
     /** 耗材id */
25
-    @Excel(name = "耗材id")
26
+    @Excel(name = "耗材名称")
27
+    private String name;
28
+    @Excel(name = "品牌")
29
+    private String brand;
30
+    @Excel(name = "系列")
31
+    private String series;
26 32
     private Integer materialId;
27 33
 
28 34
     /** 采购日期 */
@@ -48,8 +54,13 @@ public class CmcMaterialBuy extends BaseEntity
48 54
 
49 55
     /** 采购人 */
50 56
     @Excel(name = "采购人")
57
+    private String buyUserName;
51 58
     private Long buyer;
52 59
 
60
+    private SysUser buyUser;
61
+
62
+    private CmcMaterial material;
63
+
53 64
     public void setBuyId(Integer buyId) 
54 65
     {
55 66
         this.buyId = buyId;
@@ -59,6 +70,21 @@ public class CmcMaterialBuy extends BaseEntity
59 70
     {
60 71
         return buyId;
61 72
     }
73
+
74
+    public void setMaterial(CmcMaterial material)
75
+    {
76
+        this.material = material;
77
+        if (material != null) {
78
+            this.brand = material.getBrand();
79
+            this.series = material.getSeries();
80
+            this.name = material.getName();
81
+        }
82
+    }
83
+
84
+    public CmcMaterial getMaterial()
85
+    {
86
+        return material;
87
+    }
62 88
     public void setMaterialId(Integer materialId) 
63 89
     {
64 90
         this.materialId = materialId;
@@ -122,6 +148,16 @@ public class CmcMaterialBuy extends BaseEntity
122 148
     {
123 149
         return buyer;
124 150
     }
151
+    public void setBuyUser(SysUser buyUser)
152
+    {
153
+        this.buyUser = buyUser;
154
+        this.buyUserName = buyUser == null ? "" : buyUser.getNickName();
155
+    }
156
+
157
+    public SysUser getBuyUser()
158
+    {
159
+        return buyUser;
160
+    }
125 161
 
126 162
     @Override
127 163
     public String toString() {

+ 57
- 9
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcMaterialGive.java 查看文件

@@ -2,6 +2,8 @@ package com.ruoyi.oa.domain;
2 2
 
3 3
 import java.util.Date;
4 4
 import com.fasterxml.jackson.annotation.JsonFormat;
5
+import com.ruoyi.common.core.domain.entity.SysDept;
6
+import com.ruoyi.common.core.domain.entity.SysUser;
5 7
 import org.apache.commons.lang3.builder.ToStringBuilder;
6 8
 import org.apache.commons.lang3.builder.ToStringStyle;
7 9
 import com.ruoyi.common.annotation.Excel;
@@ -21,7 +23,12 @@ public class CmcMaterialGive extends BaseEntity
21 23
     private Integer giveId;
22 24
 
23 25
     /** 耗材id */
24
-    @Excel(name = "耗材id")
26
+    @Excel(name = "耗材名称")
27
+    private String name;
28
+    @Excel(name = "品牌")
29
+    private String brand;
30
+    @Excel(name = "系列")
31
+    private String series;
25 32
     private Integer materialId;
26 33
 
27 34
     /** 发放时间 */
@@ -31,16 +38,24 @@ public class CmcMaterialGive extends BaseEntity
31 38
 
32 39
     /** 领用人 */
33 40
     @Excel(name = "领用人")
34
-    private Long accpter;
41
+    private String acceptUserName;
42
+    private Long accepter;
35 43
 
36 44
     /** 领用部门 */
37 45
     @Excel(name = "领用部门")
46
+    private String deptName;
38 47
     private Long useDept;
39 48
 
40 49
     /** 领用数量 */
41 50
     @Excel(name = "领用数量")
42 51
     private Double giveNum;
43 52
 
53
+    private SysUser acceptUser;
54
+
55
+    private SysDept dept;
56
+
57
+    private CmcMaterial material;
58
+
44 59
     public void setGiveId(Integer giveId) 
45 60
     {
46 61
         this.giveId = giveId;
@@ -55,10 +70,23 @@ public class CmcMaterialGive extends BaseEntity
55 70
         this.materialId = materialId;
56 71
     }
57 72
 
58
-    public Integer getMaterialId() 
59
-    {
73
+    public Integer getMaterialId() {
60 74
         return materialId;
61 75
     }
76
+    public void setMaterial(CmcMaterial material)
77
+    {
78
+        this.material = material;
79
+        if (material != null) {
80
+            this.brand = material.getBrand();
81
+            this.series = material.getSeries();
82
+            this.name = material.getName();
83
+        }
84
+    }
85
+
86
+    public CmcMaterial getMaterial()
87
+    {
88
+        return material;
89
+    }
62 90
     public void setGiveTime(Date giveTime) 
63 91
     {
64 92
         this.giveTime = giveTime;
@@ -68,14 +96,24 @@ public class CmcMaterialGive extends BaseEntity
68 96
     {
69 97
         return giveTime;
70 98
     }
71
-    public void setAccpter(Long accpter) 
99
+    public void setAccepter(Long accepter) 
72 100
     {
73
-        this.accpter = accpter;
101
+        this.accepter = accepter;
74 102
     }
75 103
 
76
-    public Long getAccpter() 
104
+    public Long getAccepter() 
77 105
     {
78
-        return accpter;
106
+        return accepter;
107
+    }
108
+    public void setAcceptUser(SysUser acceptUser)
109
+    {
110
+        this.acceptUser = acceptUser;
111
+        this.acceptUserName = acceptUser == null ? "" : acceptUser.getNickName();
112
+    }
113
+
114
+    public SysUser getAcceptUser()
115
+    {
116
+        return acceptUser;
79 117
     }
80 118
     public void setUseDept(Long useDept) 
81 119
     {
@@ -86,6 +124,16 @@ public class CmcMaterialGive extends BaseEntity
86 124
     {
87 125
         return useDept;
88 126
     }
127
+    public void setDept(SysDept dept)
128
+    {
129
+        this.dept = dept;
130
+        this.deptName = dept == null ? "" : dept.getDeptName();
131
+    }
132
+
133
+    public SysDept getDept()
134
+    {
135
+        return dept;
136
+    }
89 137
     public void setGiveNum(Double giveNum) 
90 138
     {
91 139
         this.giveNum = giveNum;
@@ -102,7 +150,7 @@ public class CmcMaterialGive extends BaseEntity
102 150
             .append("giveId", getGiveId())
103 151
             .append("materialId", getMaterialId())
104 152
             .append("giveTime", getGiveTime())
105
-            .append("accpter", getAccpter())
153
+            .append("accepter", getAccepter())
106 154
             .append("useDept", getUseDept())
107 155
             .append("giveNum", getGiveNum())
108 156
             .append("remark", getRemark())

+ 1
- 3
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceMapper.xml 查看文件

@@ -29,12 +29,11 @@
29 29
     </resultMap>
30 30
 
31 31
     <sql id="selectCmcDeviceVo">
32
-        select d.device_id, d.device_number, d.code, d.name, d.type, d.acquisition_time, d.cost, d.expect_life, d.series, d.brand, d.day_cost, d.place, d.remark, d.manage_dept, d.status, dept.dept_name from cmc_device as d left join sys_dept as dept
32
+        select d.device_id, d.device_number, d.code, d.name, d.type, d.acquisition_time, d.cost, d.expect_life, d.series, d.brand, d.day_cost, d.place, d.remark, d.manage_dept, d.status, dept.dept_name from cmc_device as d left join sys_dept as dept on dept.dept_id = d.manage_dept
33 33
     </sql>
34 34
 
35 35
     <select id="selectCmcDeviceList" parameterType="CmcDevice" resultMap="CmcDeviceResult">
36 36
         <include refid="selectCmcDeviceVo"/>
37
-        on dept.dept_id = d.manage_dept
38 37
         <where>
39 38
             <if test="deviceNumber != null  and deviceNumber != ''"> and d.device_number like concat('%', #{deviceNumber}, '%')</if>
40 39
             <if test="code != null  and code != ''"> and d.code like concat('%', #{code}, '%')</if>
@@ -54,7 +53,6 @@
54 53
 
55 54
     <select id="selectCmcDeviceByDeviceId" parameterType="Integer" resultMap="CmcDeviceResult">
56 55
         <include refid="selectCmcDeviceVo"/>
57
-        on dept.dept_id = d.manage_dept
58 56
         where d.device_id = #{deviceId}
59 57
     </select>
60 58
 

+ 25
- 9
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcMaterialBuyMapper.xml 查看文件

@@ -14,28 +14,44 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
14 14
         <result property="amount"    column="amount"    />
15 15
         <result property="buyer"    column="buyer"    />
16 16
         <result property="remark"    column="remark"    />
17
+        <association property="buyUser"    javaType="SysUser"         resultMap="SysUserResult" />
18
+        <association property="material"    javaType="CmcMaterial"         resultMap="CmcMaterialResult" />
19
+    </resultMap>
20
+
21
+    <resultMap type="SysUser" id="SysUserResult">
22
+        <result property="userId"    column="user_id"    />
23
+        <result property="nickName"    column="buy_nick_name"    />
24
+    </resultMap>
25
+
26
+    <resultMap type="CmcMaterial" id="CmcMaterialResult">
27
+        <result property="materialId"    column="material_id"    />
28
+        <result property="name"    column="name"    />
29
+        <result property="series"    column="series"    />
30
+        <result property="brand"    column="brand"    />
17 31
     </resultMap>
18 32
 
19 33
     <sql id="selectCmcMaterialBuyVo">
20
-        select buy_id, material_id, buy_time, place, total_num, price, amount, buyer, remark from cmc_material_buy
34
+        select mb.buy_id, mb.material_id, mb.buy_time, mb.place, mb.total_num, mb.price, mb.amount, mb.buyer, mb.remark, u.nick_name as buy_nick_name, m.brand, m.name, m.series from cmc_material_buy as mb
35
+        left join sys_user as u on u.user_id = mb.buyer
36
+        left join cmc_material as m on m.material_id = mb.material_id
21 37
     </sql>
22 38
 
23 39
     <select id="selectCmcMaterialBuyList" parameterType="CmcMaterialBuy" resultMap="CmcMaterialBuyResult">
24 40
         <include refid="selectCmcMaterialBuyVo"/>
25 41
         <where>  
26
-            <if test="materialId != null "> and material_id = #{materialId}</if>
27
-            <if test="buyTime != null "> and buy_time = #{buyTime}</if>
28
-            <if test="place != null  and place != ''"> and place = #{place}</if>
29
-            <if test="totalNum != null "> and total_num = #{totalNum}</if>
30
-            <if test="price != null "> and price = #{price}</if>
31
-            <if test="amount != null "> and amount = #{amount}</if>
32
-            <if test="buyer != null "> and buyer = #{buyer}</if>
42
+            <if test="materialId != null "> and mb.material_id = #{materialId}</if>
43
+            <if test="buyTime != null "> and mb.buy_time = #{buyTime}</if>
44
+            <if test="place != null  and place != ''"> and mb.place = #{place}</if>
45
+            <if test="totalNum != null "> and mb.total_num = #{totalNum}</if>
46
+            <if test="price != null "> and mb.price = #{price}</if>
47
+            <if test="amount != null "> and mb.amount = #{amount}</if>
48
+            <if test="buyer != null "> and mb.buyer = #{buyer}</if>
33 49
         </where>
34 50
     </select>
35 51
     
36 52
     <select id="selectCmcMaterialBuyByBuyId" parameterType="Integer" resultMap="CmcMaterialBuyResult">
37 53
         <include refid="selectCmcMaterialBuyVo"/>
38
-        where buy_id = #{buyId}
54
+        where mb.buy_id = #{buyId}
39 55
     </select>
40 56
         
41 57
     <insert id="insertCmcMaterialBuy" parameterType="CmcMaterialBuy" useGeneratedKeys="true" keyProperty="buyId">

+ 34
- 11
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcMaterialGiveMapper.xml 查看文件

@@ -8,30 +8,53 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
8 8
         <result property="giveId"    column="give_id"    />
9 9
         <result property="materialId"    column="material_id"    />
10 10
         <result property="giveTime"    column="give_time"    />
11
-        <result property="accpter"    column="accpter"    />
11
+        <result property="accepter"    column="accepter"    />
12 12
         <result property="useDept"    column="use_dept"    />
13 13
         <result property="giveNum"    column="give_num"    />
14 14
         <result property="remark"    column="remark"    />
15
+        <association property="acceptUser"    javaType="SysUser"         resultMap="SysUserResult" />
16
+        <association property="dept"    javaType="SysDept"         resultMap="deptResult" />
17
+        <association property="material"    javaType="CmcMaterial"         resultMap="CmcMaterialResult" />
18
+    </resultMap>
19
+
20
+    <resultMap type="SysUser" id="SysUserResult">
21
+        <result property="userId"    column="user_id"    />
22
+        <result property="nickName"    column="accept_nick_name"    />
23
+    </resultMap>
24
+
25
+    <resultMap id="deptResult" type="SysDept">
26
+        <id     property="deptId"    column="dept_id"     />
27
+        <result property="deptName"  column="dept_name"   />
28
+    </resultMap>
29
+
30
+    <resultMap type="CmcMaterial" id="CmcMaterialResult">
31
+        <result property="materialId"    column="material_id"    />
32
+        <result property="name"    column="name"    />
33
+        <result property="series"    column="series"    />
34
+        <result property="brand"    column="brand"    />
15 35
     </resultMap>
16 36
 
17 37
     <sql id="selectCmcMaterialGiveVo">
18
-        select give_id, material_id, give_time, accpter, use_dept, give_num, remark from cmc_material_give
38
+        select mg.give_id, mg.material_id, mg.give_time, mg.accepter, mg.use_dept, mg.give_num, mg.remark, d.dept_name, u.nick_name as accept_nick_name, m.brand, m.name, m.series from cmc_material_give as mg
39
+        left join sys_user as u on u.user_id = mg.accepter
40
+        left join sys_dept as d on d.dept_id = mg.use_dept
41
+        left join cmc_material as m on m.material_id = mg.material_id
19 42
     </sql>
20 43
 
21 44
     <select id="selectCmcMaterialGiveList" parameterType="CmcMaterialGive" resultMap="CmcMaterialGiveResult">
22 45
         <include refid="selectCmcMaterialGiveVo"/>
23 46
         <where>  
24
-            <if test="materialId != null "> and material_id = #{materialId}</if>
25
-            <if test="giveTime != null "> and give_time = #{giveTime}</if>
26
-            <if test="accpter != null "> and accpter = #{accpter}</if>
27
-            <if test="useDept != null "> and use_dept = #{useDept}</if>
28
-            <if test="giveNum != null "> and give_num = #{giveNum}</if>
47
+            <if test="materialId != null "> and mg.material_id = #{materialId}</if>
48
+            <if test="giveTime != null "> and mg.give_time = #{giveTime}</if>
49
+            <if test="accepter != null "> and mg.accepter = #{accepter}</if>
50
+            <if test="useDept != null "> and mg.use_dept = #{useDept}</if>
51
+            <if test="giveNum != null "> and mg.give_num = #{giveNum}</if>
29 52
         </where>
30 53
     </select>
31 54
     
32 55
     <select id="selectCmcMaterialGiveByGiveId" parameterType="Integer" resultMap="CmcMaterialGiveResult">
33 56
         <include refid="selectCmcMaterialGiveVo"/>
34
-        where give_id = #{giveId}
57
+        where mg.give_id = #{giveId}
35 58
     </select>
36 59
         
37 60
     <insert id="insertCmcMaterialGive" parameterType="CmcMaterialGive" useGeneratedKeys="true" keyProperty="giveId">
@@ -39,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
39 62
         <trim prefix="(" suffix=")" suffixOverrides=",">
40 63
             <if test="materialId != null">material_id,</if>
41 64
             <if test="giveTime != null">give_time,</if>
42
-            <if test="accpter != null">accpter,</if>
65
+            <if test="accepter != null">accepter,</if>
43 66
             <if test="useDept != null">use_dept,</if>
44 67
             <if test="giveNum != null">give_num,</if>
45 68
             <if test="remark != null">remark,</if>
@@ -47,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
47 70
         <trim prefix="values (" suffix=")" suffixOverrides=",">
48 71
             <if test="materialId != null">#{materialId},</if>
49 72
             <if test="giveTime != null">#{giveTime},</if>
50
-            <if test="accpter != null">#{accpter},</if>
73
+            <if test="accepter != null">#{accepter},</if>
51 74
             <if test="useDept != null">#{useDept},</if>
52 75
             <if test="giveNum != null">#{giveNum},</if>
53 76
             <if test="remark != null">#{remark},</if>
@@ -59,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
59 82
         <trim prefix="SET" suffixOverrides=",">
60 83
             <if test="materialId != null">material_id = #{materialId},</if>
61 84
             <if test="giveTime != null">give_time = #{giveTime},</if>
62
-            <if test="accpter != null">accpter = #{accpter},</if>
85
+            <if test="accepter != null">accepter = #{accepter},</if>
63 86
             <if test="useDept != null">use_dept = #{useDept},</if>
64 87
             <if test="giveNum != null">give_num = #{giveNum},</if>
65 88
             <if test="remark != null">remark = #{remark},</if>

+ 1
- 1
oa-back/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml 查看文件

@@ -137,7 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
137 137
 		</if>
138 138
 		<!-- 数据范围过滤 -->
139 139
 		${params.dataScope}
140
-		order by u.user_id
140
+		order by u.dept_id, u.user_id
141 141
 	</select>
142 142
 	
143 143
 	<select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">

+ 1
- 0
oa-ui/src/assets/icons/svg/buy.svg 查看文件

@@ -0,0 +1 @@
1
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1722582011242" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6299" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M955.963733 278.755556L307.4304 273.066667c-17.066667 0-34.133333 17.066667-34.133333 34.133333s17.066667 34.133333 34.133333 34.133333l603.022222 5.688889-136.533333 233.244445H284.674844L227.785956 204.8c0-22.755556-22.755556-39.822222-79.644445-73.955556-5.688889-5.688889-11.377778-5.688889-17.066667-11.377777-17.066667-11.377778-34.133333-22.755556-56.888888-34.133334-11.377778-5.688889-22.755556-11.377778-22.755556-17.066666-17.066667-11.377778-34.133333-5.688889-45.511111 11.377777-11.377778 17.066667-5.688889 34.133333 11.377778 45.511112 5.688889 0 11.377778 5.688889 22.755555 11.377777l51.2 34.133334c5.688889 5.688889 11.377778 5.688889 17.066667 11.377777 17.066667 11.377778 34.133333 22.755556 45.511111 28.444445 5.688889 5.688889 5.688889 5.688889 11.377778 5.688889l91.022222 534.755555v11.377778c0 17.066667 17.066667 34.133333 34.133333 34.133333h28.444445c-28.444444 17.066667-45.511111 51.2-45.511111 85.333334 0 56.888889 45.511111 108.088889 108.088889 108.088889s108.088889-45.511111 108.088888-108.088889c0-34.133333-17.066667-68.266667-45.511111-85.333334h244.622223c-28.444444 17.066667-45.511111 51.2-45.511112 85.333334 0 56.888889 45.511111 108.088889 108.088889 108.088889 56.888889 0 108.088889-45.511111 108.088889-108.088889 0-34.133333-17.066667-68.266667-45.511111-85.333334h51.2c17.066667 0 34.133333-17.066667 34.133333-34.133333s-17.066667-34.133333-34.133333-34.133333H313.119289l-17.066667-85.333334H796.674844c11.377778 0 28.444444-11.377778 28.444445-22.755555l159.288889-295.822222c11.377778-22.755556-5.688889-45.511111-28.444445-45.511111zM375.697067 927.288889c-22.755556 0-45.511111-17.066667-45.511111-45.511111 0-22.755556 17.066667-45.511111 45.511111-45.511111 22.755556 0 45.511111 17.066667 45.511111 45.511111 0 22.755556-17.066667 45.511111-45.511111 45.511111z m375.466666 0c-22.755556 0-45.511111-17.066667-45.511111-45.511111 0-22.755556 17.066667-45.511111 45.511111-45.511111 22.755556 0 45.511111 17.066667 45.511111 45.511111 0 22.755556-22.755556 45.511111-45.511111 45.511111zM159.519289 210.488889l5.688889 5.688889 5.688889 5.688889c-5.688889-5.688889-11.377778-5.688889-11.377778-11.377778z" p-id="6300"></path></svg>

+ 1
- 0
oa-ui/src/assets/icons/svg/material.svg 查看文件

@@ -0,0 +1 @@
1
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1722581283457" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4329" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M774.4 774.4l-86.4-6.4v-80h44.8v-131.2H294.4v131.2h44.8v86.4H249.6c-57.6 0-89.6-51.2-86.4-112v-227.2c0-57.6 28.8-96 86.4-96h524.8c57.6 0 86.4 38.4 86.4 96v227.2c0 54.4-28.8 112-86.4 112z m-438.4-480V233.6c0-38.4 32-70.4 70.4-70.4h208c38.4 0 70.4 32 70.4 70.4v60.8H336z m307.2 566.4h-262.4v-262.4h262.4v262.4z m-86.4-172.8h-86.4v44.8h86.4v-44.8z m0 86.4h-86.4v44.8h86.4v-44.8z" p-id="4330"></path></svg>

+ 3
- 3
oa-ui/src/views/flowable/form/business/contractForm.vue 查看文件

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-05-10 15:31:57
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-08-01 14:50:10
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-08-01 17:13:20
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container">
@@ -11,7 +11,7 @@
11 11
         <h2 class="text-center"><b>承接合同评审表</b></h2>
12 12
         <el-divider></el-divider>
13 13
         <el-form ref="form" :model="form" :rules="rules" label-width="130px" :disabled="formDisabled">
14
-          <el-row :gutter="20">
14
+          <el-row :gutter="20">
15 15
             <el-col :span="12" :xs="24">
16 16
               <el-form-item label="投标项目名称:" prop="tenderId">
17 17
                 <el-button type="primary" size="mini" @click="tbOpen = true"

+ 7
- 4
oa-ui/src/views/oa/material/buy.vue 查看文件

@@ -111,8 +111,11 @@
111 111
 
112 112
     <el-table v-loading="loading" :data="materialBuyList" @selection-change="handleSelectionChange">
113 113
       <el-table-column type="selection" width="55" align="center" />
114
-      <el-table-column label="耗材购买id" align="center" prop="buyId" />
115
-      <el-table-column label="耗材id" align="center" prop="materialId" />
114
+      <!-- <el-table-column label="耗材购买id" align="center" prop="buyId" /> -->
115
+      <!-- <el-table-column label="耗材id" align="center" prop="materialId" /> -->      
116
+      <el-table-column label="耗材品牌" align="center" prop="material.brand" />
117
+      <el-table-column label="耗材名称" align="center" prop="material.name" />
118
+      <el-table-column label="规格型号" align="center" prop="material.series" />
116 119
       <el-table-column label="采购日期" align="center" prop="buyTime" width="180">
117 120
         <template slot-scope="scope">
118 121
           <span>{{ parseTime(scope.row.buyTime, '{y}-{m}-{d}') }}</span>
@@ -122,7 +125,7 @@
122 125
       <el-table-column label="采购数量" align="center" prop="totalNum" />
123 126
       <el-table-column label="单价" align="center" prop="price" />
124 127
       <el-table-column label="总价" align="center" prop="amount" />
125
-      <el-table-column label="采购人" align="center" prop="buyer" />
128
+      <el-table-column label="采购人" align="center" prop="buyUser.nickName" />
126 129
       <el-table-column label="备注" align="center" prop="remark" />
127 130
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
128 131
         <template slot-scope="scope">
@@ -221,7 +224,7 @@ export default {
221 224
       // 查询参数
222 225
       queryParams: {
223 226
         pageNum: 1,
224
-        pageSize: 10,
227
+        pageSize: 50,
225 228
         materialId: null,
226 229
         buyTime: null,
227 230
         place: null,

+ 14
- 11
oa-ui/src/views/oa/material/give.vue 查看文件

@@ -17,9 +17,9 @@
17 17
           placeholder="请选择发放时间">
18 18
         </el-date-picker>
19 19
       </el-form-item>
20
-      <el-form-item label="领用人" prop="accpter">
20
+      <el-form-item label="领用人" prop="accepter">
21 21
         <el-input
22
-          v-model="queryParams.accpter"
22
+          v-model="queryParams.accepter"
23 23
           placeholder="请输入领用人"
24 24
           clearable
25 25
           @keyup.enter.native="handleQuery"
@@ -95,15 +95,18 @@
95 95
 
96 96
     <el-table v-loading="loading" :data="materialGiveList" @selection-change="handleSelectionChange">
97 97
       <el-table-column type="selection" width="55" align="center" />
98
-      <el-table-column label="耗材发放id" align="center" prop="giveId" />
99
-      <el-table-column label="耗材id" align="center" prop="materialId" />
98
+      <!-- <el-table-column label="耗材发放id" align="center" prop="giveId" /> -->
99
+      <!-- <el-table-column label="耗材id" align="center" prop="materialId" /> -->
100
+      <el-table-column label="耗材品牌" align="center" prop="material.brand" />
101
+      <el-table-column label="耗材名称" align="center" prop="material.name" />
102
+      <el-table-column label="规格型号" align="center" prop="material.series" />
100 103
       <el-table-column label="发放时间" align="center" prop="giveTime" width="180">
101 104
         <template slot-scope="scope">
102 105
           <span>{{ parseTime(scope.row.giveTime, '{y}-{m}-{d}') }}</span>
103 106
         </template>
104 107
       </el-table-column>
105
-      <el-table-column label="领用人" align="center" prop="accpter" />
106
-      <el-table-column label="领用部门" align="center" prop="useDept" />
108
+      <el-table-column label="领用人" align="center" prop="acceptUser.nickName" />
109
+      <el-table-column label="领用部门" align="center" prop="dept.deptName" />
107 110
       <el-table-column label="领用数量" align="center" prop="giveNum" />
108 111
       <el-table-column label="备注" align="center" prop="remark" />
109 112
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@@ -148,8 +151,8 @@
148 151
             placeholder="请选择发放时间">
149 152
           </el-date-picker>
150 153
         </el-form-item>
151
-        <el-form-item label="领用人" prop="accpter">
152
-          <el-input v-model="form.accpter" placeholder="请输入领用人" />
154
+        <el-form-item label="领用人" prop="accepter">
155
+          <el-input v-model="form.accepter" placeholder="请输入领用人" />
153 156
         </el-form-item>
154 157
         <el-form-item label="领用部门" prop="useDept">
155 158
           <el-input v-model="form.useDept" placeholder="请输入领用部门" />
@@ -197,10 +200,10 @@ export default {
197 200
       // 查询参数
198 201
       queryParams: {
199 202
         pageNum: 1,
200
-        pageSize: 10,
203
+        pageSize: 50,
201 204
         materialId: null,
202 205
         giveTime: null,
203
-        accpter: null,
206
+        accepter: null,
204 207
         useDept: null,
205 208
         giveNum: null,
206 209
       },
@@ -235,7 +238,7 @@ export default {
235 238
         giveId: null,
236 239
         materialId: null,
237 240
         giveTime: null,
238
-        accpter: null,
241
+        accepter: null,
239 242
         useDept: null,
240 243
         giveNum: null,
241 244
         remark: null

+ 1
- 1
oa-ui/src/views/oa/material/index.vue 查看文件

@@ -201,7 +201,7 @@ export default {
201 201
       // 查询参数
202 202
       queryParams: {
203 203
         pageNum: 1,
204
-        pageSize: 10,
204
+        pageSize: 50,
205 205
         name: null,
206 206
         type: null,
207 207
         series: null,

Loading…
取消
儲存