Quellcode durchsuchen

耗材首页显示

lamphua vor 10 Monaten
Ursprung
Commit
be3a380736

+ 13
- 13
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java Datei anzeigen

731
             runtimeService.createChangeActivityStateBuilder()
731
             runtimeService.createChangeActivityStateBuilder()
732
                     .processInstanceId(task.getProcessInstanceId())
732
                     .processInstanceId(task.getProcessInstanceId())
733
                     .moveActivityIdsToSingleActivityId(currentIds, lastHistoricTaskDefinitionKey).changeState();
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
         } catch (FlowableObjectNotFoundException e) {
747
         } catch (FlowableObjectNotFoundException e) {
748
             throw new CustomException("未找到流程实例,流程可能已发生变化");
748
             throw new CustomException("未找到流程实例,流程可能已发生变化");
749
         } catch (FlowableException e) {
749
         } catch (FlowableException e) {

+ 37
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcMaterialBuy.java Datei anzeigen

3
 import java.math.BigDecimal;
3
 import java.math.BigDecimal;
4
 import java.util.Date;
4
 import java.util.Date;
5
 import com.fasterxml.jackson.annotation.JsonFormat;
5
 import com.fasterxml.jackson.annotation.JsonFormat;
6
+import com.ruoyi.common.core.domain.entity.SysUser;
6
 import org.apache.commons.lang3.builder.ToStringBuilder;
7
 import org.apache.commons.lang3.builder.ToStringBuilder;
7
 import org.apache.commons.lang3.builder.ToStringStyle;
8
 import org.apache.commons.lang3.builder.ToStringStyle;
8
 import com.ruoyi.common.annotation.Excel;
9
 import com.ruoyi.common.annotation.Excel;
22
     private Integer buyId;
23
     private Integer buyId;
23
 
24
 
24
     /** 耗材id */
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
     private Integer materialId;
32
     private Integer materialId;
27
 
33
 
28
     /** 采购日期 */
34
     /** 采购日期 */
48
 
54
 
49
     /** 采购人 */
55
     /** 采购人 */
50
     @Excel(name = "采购人")
56
     @Excel(name = "采购人")
57
+    private String buyUserName;
51
     private Long buyer;
58
     private Long buyer;
52
 
59
 
60
+    private SysUser buyUser;
61
+
62
+    private CmcMaterial material;
63
+
53
     public void setBuyId(Integer buyId) 
64
     public void setBuyId(Integer buyId) 
54
     {
65
     {
55
         this.buyId = buyId;
66
         this.buyId = buyId;
59
     {
70
     {
60
         return buyId;
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
     public void setMaterialId(Integer materialId) 
88
     public void setMaterialId(Integer materialId) 
63
     {
89
     {
64
         this.materialId = materialId;
90
         this.materialId = materialId;
122
     {
148
     {
123
         return buyer;
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
     @Override
162
     @Override
127
     public String toString() {
163
     public String toString() {

+ 57
- 9
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcMaterialGive.java Datei anzeigen

2
 
2
 
3
 import java.util.Date;
3
 import java.util.Date;
4
 import com.fasterxml.jackson.annotation.JsonFormat;
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
 import org.apache.commons.lang3.builder.ToStringBuilder;
7
 import org.apache.commons.lang3.builder.ToStringBuilder;
6
 import org.apache.commons.lang3.builder.ToStringStyle;
8
 import org.apache.commons.lang3.builder.ToStringStyle;
7
 import com.ruoyi.common.annotation.Excel;
9
 import com.ruoyi.common.annotation.Excel;
21
     private Integer giveId;
23
     private Integer giveId;
22
 
24
 
23
     /** 耗材id */
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
     private Integer materialId;
32
     private Integer materialId;
26
 
33
 
27
     /** 发放时间 */
34
     /** 发放时间 */
31
 
38
 
32
     /** 领用人 */
39
     /** 领用人 */
33
     @Excel(name = "领用人")
40
     @Excel(name = "领用人")
34
-    private Long accpter;
41
+    private String acceptUserName;
42
+    private Long accepter;
35
 
43
 
36
     /** 领用部门 */
44
     /** 领用部门 */
37
     @Excel(name = "领用部门")
45
     @Excel(name = "领用部门")
46
+    private String deptName;
38
     private Long useDept;
47
     private Long useDept;
39
 
48
 
40
     /** 领用数量 */
49
     /** 领用数量 */
41
     @Excel(name = "领用数量")
50
     @Excel(name = "领用数量")
42
     private Double giveNum;
51
     private Double giveNum;
43
 
52
 
53
+    private SysUser acceptUser;
54
+
55
+    private SysDept dept;
56
+
57
+    private CmcMaterial material;
58
+
44
     public void setGiveId(Integer giveId) 
59
     public void setGiveId(Integer giveId) 
45
     {
60
     {
46
         this.giveId = giveId;
61
         this.giveId = giveId;
55
         this.materialId = materialId;
70
         this.materialId = materialId;
56
     }
71
     }
57
 
72
 
58
-    public Integer getMaterialId() 
59
-    {
73
+    public Integer getMaterialId() {
60
         return materialId;
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
     public void setGiveTime(Date giveTime) 
90
     public void setGiveTime(Date giveTime) 
63
     {
91
     {
64
         this.giveTime = giveTime;
92
         this.giveTime = giveTime;
68
     {
96
     {
69
         return giveTime;
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
     public void setUseDept(Long useDept) 
118
     public void setUseDept(Long useDept) 
81
     {
119
     {
86
     {
124
     {
87
         return useDept;
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
     public void setGiveNum(Double giveNum) 
137
     public void setGiveNum(Double giveNum) 
90
     {
138
     {
91
         this.giveNum = giveNum;
139
         this.giveNum = giveNum;
102
             .append("giveId", getGiveId())
150
             .append("giveId", getGiveId())
103
             .append("materialId", getMaterialId())
151
             .append("materialId", getMaterialId())
104
             .append("giveTime", getGiveTime())
152
             .append("giveTime", getGiveTime())
105
-            .append("accpter", getAccpter())
153
+            .append("accepter", getAccepter())
106
             .append("useDept", getUseDept())
154
             .append("useDept", getUseDept())
107
             .append("giveNum", getGiveNum())
155
             .append("giveNum", getGiveNum())
108
             .append("remark", getRemark())
156
             .append("remark", getRemark())

+ 1
- 3
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceMapper.xml Datei anzeigen

29
     </resultMap>
29
     </resultMap>
30
 
30
 
31
     <sql id="selectCmcDeviceVo">
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
     </sql>
33
     </sql>
34
 
34
 
35
     <select id="selectCmcDeviceList" parameterType="CmcDevice" resultMap="CmcDeviceResult">
35
     <select id="selectCmcDeviceList" parameterType="CmcDevice" resultMap="CmcDeviceResult">
36
         <include refid="selectCmcDeviceVo"/>
36
         <include refid="selectCmcDeviceVo"/>
37
-        on dept.dept_id = d.manage_dept
38
         <where>
37
         <where>
39
             <if test="deviceNumber != null  and deviceNumber != ''"> and d.device_number like concat('%', #{deviceNumber}, '%')</if>
38
             <if test="deviceNumber != null  and deviceNumber != ''"> and d.device_number like concat('%', #{deviceNumber}, '%')</if>
40
             <if test="code != null  and code != ''"> and d.code like concat('%', #{code}, '%')</if>
39
             <if test="code != null  and code != ''"> and d.code like concat('%', #{code}, '%')</if>
54
 
53
 
55
     <select id="selectCmcDeviceByDeviceId" parameterType="Integer" resultMap="CmcDeviceResult">
54
     <select id="selectCmcDeviceByDeviceId" parameterType="Integer" resultMap="CmcDeviceResult">
56
         <include refid="selectCmcDeviceVo"/>
55
         <include refid="selectCmcDeviceVo"/>
57
-        on dept.dept_id = d.manage_dept
58
         where d.device_id = #{deviceId}
56
         where d.device_id = #{deviceId}
59
     </select>
57
     </select>
60
 
58
 

+ 25
- 9
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcMaterialBuyMapper.xml Datei anzeigen

14
         <result property="amount"    column="amount"    />
14
         <result property="amount"    column="amount"    />
15
         <result property="buyer"    column="buyer"    />
15
         <result property="buyer"    column="buyer"    />
16
         <result property="remark"    column="remark"    />
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
     </resultMap>
31
     </resultMap>
18
 
32
 
19
     <sql id="selectCmcMaterialBuyVo">
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
     </sql>
37
     </sql>
22
 
38
 
23
     <select id="selectCmcMaterialBuyList" parameterType="CmcMaterialBuy" resultMap="CmcMaterialBuyResult">
39
     <select id="selectCmcMaterialBuyList" parameterType="CmcMaterialBuy" resultMap="CmcMaterialBuyResult">
24
         <include refid="selectCmcMaterialBuyVo"/>
40
         <include refid="selectCmcMaterialBuyVo"/>
25
         <where>  
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
         </where>
49
         </where>
34
     </select>
50
     </select>
35
     
51
     
36
     <select id="selectCmcMaterialBuyByBuyId" parameterType="Integer" resultMap="CmcMaterialBuyResult">
52
     <select id="selectCmcMaterialBuyByBuyId" parameterType="Integer" resultMap="CmcMaterialBuyResult">
37
         <include refid="selectCmcMaterialBuyVo"/>
53
         <include refid="selectCmcMaterialBuyVo"/>
38
-        where buy_id = #{buyId}
54
+        where mb.buy_id = #{buyId}
39
     </select>
55
     </select>
40
         
56
         
41
     <insert id="insertCmcMaterialBuy" parameterType="CmcMaterialBuy" useGeneratedKeys="true" keyProperty="buyId">
57
     <insert id="insertCmcMaterialBuy" parameterType="CmcMaterialBuy" useGeneratedKeys="true" keyProperty="buyId">

+ 34
- 11
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcMaterialGiveMapper.xml Datei anzeigen

8
         <result property="giveId"    column="give_id"    />
8
         <result property="giveId"    column="give_id"    />
9
         <result property="materialId"    column="material_id"    />
9
         <result property="materialId"    column="material_id"    />
10
         <result property="giveTime"    column="give_time"    />
10
         <result property="giveTime"    column="give_time"    />
11
-        <result property="accpter"    column="accpter"    />
11
+        <result property="accepter"    column="accepter"    />
12
         <result property="useDept"    column="use_dept"    />
12
         <result property="useDept"    column="use_dept"    />
13
         <result property="giveNum"    column="give_num"    />
13
         <result property="giveNum"    column="give_num"    />
14
         <result property="remark"    column="remark"    />
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
     </resultMap>
35
     </resultMap>
16
 
36
 
17
     <sql id="selectCmcMaterialGiveVo">
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
     </sql>
42
     </sql>
20
 
43
 
21
     <select id="selectCmcMaterialGiveList" parameterType="CmcMaterialGive" resultMap="CmcMaterialGiveResult">
44
     <select id="selectCmcMaterialGiveList" parameterType="CmcMaterialGive" resultMap="CmcMaterialGiveResult">
22
         <include refid="selectCmcMaterialGiveVo"/>
45
         <include refid="selectCmcMaterialGiveVo"/>
23
         <where>  
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
         </where>
52
         </where>
30
     </select>
53
     </select>
31
     
54
     
32
     <select id="selectCmcMaterialGiveByGiveId" parameterType="Integer" resultMap="CmcMaterialGiveResult">
55
     <select id="selectCmcMaterialGiveByGiveId" parameterType="Integer" resultMap="CmcMaterialGiveResult">
33
         <include refid="selectCmcMaterialGiveVo"/>
56
         <include refid="selectCmcMaterialGiveVo"/>
34
-        where give_id = #{giveId}
57
+        where mg.give_id = #{giveId}
35
     </select>
58
     </select>
36
         
59
         
37
     <insert id="insertCmcMaterialGive" parameterType="CmcMaterialGive" useGeneratedKeys="true" keyProperty="giveId">
60
     <insert id="insertCmcMaterialGive" parameterType="CmcMaterialGive" useGeneratedKeys="true" keyProperty="giveId">
39
         <trim prefix="(" suffix=")" suffixOverrides=",">
62
         <trim prefix="(" suffix=")" suffixOverrides=",">
40
             <if test="materialId != null">material_id,</if>
63
             <if test="materialId != null">material_id,</if>
41
             <if test="giveTime != null">give_time,</if>
64
             <if test="giveTime != null">give_time,</if>
42
-            <if test="accpter != null">accpter,</if>
65
+            <if test="accepter != null">accepter,</if>
43
             <if test="useDept != null">use_dept,</if>
66
             <if test="useDept != null">use_dept,</if>
44
             <if test="giveNum != null">give_num,</if>
67
             <if test="giveNum != null">give_num,</if>
45
             <if test="remark != null">remark,</if>
68
             <if test="remark != null">remark,</if>
47
         <trim prefix="values (" suffix=")" suffixOverrides=",">
70
         <trim prefix="values (" suffix=")" suffixOverrides=",">
48
             <if test="materialId != null">#{materialId},</if>
71
             <if test="materialId != null">#{materialId},</if>
49
             <if test="giveTime != null">#{giveTime},</if>
72
             <if test="giveTime != null">#{giveTime},</if>
50
-            <if test="accpter != null">#{accpter},</if>
73
+            <if test="accepter != null">#{accepter},</if>
51
             <if test="useDept != null">#{useDept},</if>
74
             <if test="useDept != null">#{useDept},</if>
52
             <if test="giveNum != null">#{giveNum},</if>
75
             <if test="giveNum != null">#{giveNum},</if>
53
             <if test="remark != null">#{remark},</if>
76
             <if test="remark != null">#{remark},</if>
59
         <trim prefix="SET" suffixOverrides=",">
82
         <trim prefix="SET" suffixOverrides=",">
60
             <if test="materialId != null">material_id = #{materialId},</if>
83
             <if test="materialId != null">material_id = #{materialId},</if>
61
             <if test="giveTime != null">give_time = #{giveTime},</if>
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
             <if test="useDept != null">use_dept = #{useDept},</if>
86
             <if test="useDept != null">use_dept = #{useDept},</if>
64
             <if test="giveNum != null">give_num = #{giveNum},</if>
87
             <if test="giveNum != null">give_num = #{giveNum},</if>
65
             <if test="remark != null">remark = #{remark},</if>
88
             <if test="remark != null">remark = #{remark},</if>

+ 1
- 1
oa-back/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml Datei anzeigen

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

+ 1
- 0
oa-ui/src/assets/icons/svg/buy.svg Datei anzeigen

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 Datei anzeigen

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 Datei anzeigen

1
 <!--
1
 <!--
2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-05-10 15:31:57
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
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
11
         <h2 class="text-center"><b>承接合同评审表</b></h2>
11
         <h2 class="text-center"><b>承接合同评审表</b></h2>
12
         <el-divider></el-divider>
12
         <el-divider></el-divider>
13
         <el-form ref="form" :model="form" :rules="rules" label-width="130px" :disabled="formDisabled">
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
             <el-col :span="12" :xs="24">
15
             <el-col :span="12" :xs="24">
16
               <el-form-item label="投标项目名称:" prop="tenderId">
16
               <el-form-item label="投标项目名称:" prop="tenderId">
17
                 <el-button type="primary" size="mini" @click="tbOpen = true"
17
                 <el-button type="primary" size="mini" @click="tbOpen = true"

+ 7
- 4
oa-ui/src/views/oa/material/buy.vue Datei anzeigen

111
 
111
 
112
     <el-table v-loading="loading" :data="materialBuyList" @selection-change="handleSelectionChange">
112
     <el-table v-loading="loading" :data="materialBuyList" @selection-change="handleSelectionChange">
113
       <el-table-column type="selection" width="55" align="center" />
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
       <el-table-column label="采购日期" align="center" prop="buyTime" width="180">
119
       <el-table-column label="采购日期" align="center" prop="buyTime" width="180">
117
         <template slot-scope="scope">
120
         <template slot-scope="scope">
118
           <span>{{ parseTime(scope.row.buyTime, '{y}-{m}-{d}') }}</span>
121
           <span>{{ parseTime(scope.row.buyTime, '{y}-{m}-{d}') }}</span>
122
       <el-table-column label="采购数量" align="center" prop="totalNum" />
125
       <el-table-column label="采购数量" align="center" prop="totalNum" />
123
       <el-table-column label="单价" align="center" prop="price" />
126
       <el-table-column label="单价" align="center" prop="price" />
124
       <el-table-column label="总价" align="center" prop="amount" />
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
       <el-table-column label="备注" align="center" prop="remark" />
129
       <el-table-column label="备注" align="center" prop="remark" />
127
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
130
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
128
         <template slot-scope="scope">
131
         <template slot-scope="scope">
221
       // 查询参数
224
       // 查询参数
222
       queryParams: {
225
       queryParams: {
223
         pageNum: 1,
226
         pageNum: 1,
224
-        pageSize: 10,
227
+        pageSize: 50,
225
         materialId: null,
228
         materialId: null,
226
         buyTime: null,
229
         buyTime: null,
227
         place: null,
230
         place: null,

+ 14
- 11
oa-ui/src/views/oa/material/give.vue Datei anzeigen

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

+ 1
- 1
oa-ui/src/views/oa/material/index.vue Datei anzeigen

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

Laden…
Abbrechen
Speichern