lamphua пре 1 година
родитељ
комит
67db7c7e68

+ 101
- 7
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcTender.java Прегледај датотеку

@@ -3,6 +3,8 @@ 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.SysDept;
7
+import com.ruoyi.common.core.domain.entity.SysUser;
6 8
 import org.apache.commons.lang3.builder.ToStringBuilder;
7 9
 import org.apache.commons.lang3.builder.ToStringStyle;
8 10
 import com.ruoyi.common.annotation.Excel;
@@ -54,11 +56,9 @@ public class CmcTender extends BaseEntity
54 56
     private String place;
55 57
 
56 58
     /** 投标部门 */
57
-    @Excel(name = "投标部门")
58 59
     private Long dept;
59 60
 
60 61
     /** 投标委托人 */
61
-    @Excel(name = "投标委托人")
62 62
     private Long trustee;
63 63
 
64 64
     /** 业主预算 */
@@ -96,7 +96,6 @@ public class CmcTender extends BaseEntity
96 96
     private String projectBriefly;
97 97
 
98 98
     /** 商务标书编写人 */
99
-    @Excel(name = "商务标书编写人")
100 99
     private Long businessWriter;
101 100
 
102 101
     /** 商务标书要求提交时间 */
@@ -105,7 +104,6 @@ public class CmcTender extends BaseEntity
105 104
     private Date businessDeadline;
106 105
 
107 106
     /** 技术标书编写人 */
108
-    @Excel(name = "技术标书编写人")
109 107
     private Long techWriter;
110 108
 
111 109
     /** 技术标书要求提交时间 */
@@ -114,21 +112,46 @@ public class CmcTender extends BaseEntity
114 112
     private Date techDeadline;
115 113
 
116 114
     /** 标书合稿人 */
117
-    @Excel(name = "标书合稿人")
118 115
     private Long tenderCombiner;
119 116
 
120 117
     /** 标书检查人 */
121
-    @Excel(name = "标书检查人")
122 118
     private Long tenderChecker;
123 119
 
124 120
     /** 标书打印装订人 */
125
-    @Excel(name = "标书打印装订人")
126 121
     private Long tenderPrinter;
127 122
 
128 123
     /** 标书文件 */
129 124
     @Excel(name = "标书文件")
130 125
     private String tenderDocument;
131 126
 
127
+    @Excel(name = "投标委托人")
128
+    private String trusteeUserName;
129
+    private SysUser trusteeUser;
130
+
131
+    @Excel(name = "商务标书编写人")
132
+    private String businessUserName;
133
+    private SysUser businessUser;
134
+
135
+    @Excel(name = "技术标书编写人")
136
+    private String techUserName;
137
+    private SysUser techUser;
138
+
139
+    @Excel(name = "标书合稿人")
140
+    private String combinerUserName;
141
+    private SysUser combinerUser;
142
+
143
+    @Excel(name = "标书检查人")
144
+    private String checkerUserName;
145
+    private SysUser checkerUser;
146
+
147
+    @Excel(name = "标书打印装订人")
148
+    private String printerUserName;
149
+    private SysUser printerUser;
150
+
151
+    @Excel(name = "投标部门")
152
+    private String tenderDeptName;
153
+    private SysDept tenderDept;
154
+
132 155
     public void setTenderId(String tenderId) 
133 156
     {
134 157
         this.tenderId = tenderId;
@@ -372,6 +395,77 @@ public class CmcTender extends BaseEntity
372 395
     {
373 396
         return tenderDocument;
374 397
     }
398
+    public void setBusinessUser(SysUser businessUser)
399
+    {
400
+        this.businessUser = businessUser;
401
+        this.businessUserName = businessUser.getNickName();
402
+    }
403
+
404
+    public SysUser getBusinessUser()
405
+    {
406
+        return businessUser;
407
+    }
408
+    public void setTechUser(SysUser techUser)
409
+    {
410
+        this.techUser = techUser;
411
+        this.techUserName = techUser.getNickName();
412
+    }
413
+
414
+    public SysUser getTechUser()
415
+    {
416
+        return techUser;
417
+    }
418
+    public void setCombinerUser(SysUser combinerUser)
419
+    {
420
+        this.combinerUser = combinerUser;
421
+        this.combinerUserName = combinerUser.getNickName();
422
+    }
423
+
424
+    public SysUser getCombinerUser()
425
+    {
426
+        return combinerUser;
427
+    }
428
+    public void setCheckerUser(SysUser checkerUser)
429
+    {
430
+        this.checkerUser = checkerUser;
431
+        this.checkerUserName = checkerUser.getNickName();
432
+    }
433
+
434
+    public SysUser getCheckerUser()
435
+    {
436
+        return checkerUser;
437
+    }
438
+    public void setPrinterUser(SysUser printerUser)
439
+    {
440
+        this.printerUser = printerUser;
441
+        this.printerUserName = printerUser.getNickName();
442
+    }
443
+
444
+    public SysUser getPrinterUser()
445
+    {
446
+        return printerUser;
447
+    }
448
+    public void setTrusteeUser(SysUser trusteeUser)
449
+    {
450
+        this.trusteeUser = trusteeUser;
451
+        this.trusteeUserName = trusteeUser.getNickName();
452
+    }
453
+
454
+    public SysUser getTrusteeUser()
455
+    {
456
+        return trusteeUser;
457
+    }
458
+    public void setTenderDept(SysDept tenderDept)
459
+    {
460
+        this.tenderDept = tenderDept;
461
+        this.tenderDeptName = tenderDept.getDeptName();
462
+    }
463
+
464
+    public SysDept getTenderDept()
465
+    {
466
+        return tenderDept;
467
+    }
468
+
375 469
 
376 470
     @Override
377 471
     public String toString() {

+ 2
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcPriceMapper.xml Прегледај датотеку

@@ -23,8 +23,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
23 23
     <select id="selectCmcPriceList" parameterType="CmcPrice" resultMap="CmcPriceResult">
24 24
         <include refid="selectCmcPriceVo"/>
25 25
         <where>  
26
-            <if test="workType != null  and workType != ''"> and work_type = #{workType}</if>
27
-            <if test="workItem != null  and workItem != ''"> and work_item = #{workItem}</if>
26
+            <if test="workType != null  and workType != ''"> and work_type like concat('%', #{workType}, '%')</if>
27
+            <if test="workItem != null  and workItem != ''"> and work_item like concat('%', #{workItem}, '%')</if>
28 28
             <if test="subItem != null  and subItem != ''"> and sub_item = #{subItem}</if>
29 29
             <if test="pricePercentage != null  and pricePercentage != ''"> and price_percentage = #{pricePercentage}</if>
30 30
             <if test="scaleGrade != null  and scaleGrade != ''"> and scale_grade = #{scaleGrade}</if>

+ 80
- 28
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcTenderMapper.xml Прегледај датотеку

@@ -32,47 +32,99 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
32 32
         <result property="tenderChecker"    column="tender_checker"    />
33 33
         <result property="tenderPrinter"    column="tender_printer"    />
34 34
         <result property="tenderDocument"    column="tender_document"    />
35
+        <association property="trusteeUser"    javaType="SysUser"         resultMap="TrusteeUserResult" />
36
+        <association property="businessUser"    javaType="SysUser"         resultMap="BusinessUserResult" />
37
+        <association property="techUser"    javaType="SysUser"         resultMap="TechUserResult" />
38
+        <association property="combinerUser"    javaType="SysUser"         resultMap="CombinerUserResult" />
39
+        <association property="checkerUser"    javaType="SysUser"         resultMap="CheckerUserResult" />
40
+        <association property="printerUser"    javaType="SysUser"         resultMap="PrinterUserResult" />
41
+        <association property="tenderDept"    javaType="SysDept"         resultMap="SysDeptResult" />
42
+    </resultMap>
43
+
44
+    <resultMap type="SysUser" id="TrusteeUserResult">
45
+        <result property="userId"    column="user_id"    />
46
+        <result property="nickName"    column="trustee_nick_name"    />
47
+    </resultMap>
48
+
49
+    <resultMap type="SysUser" id="BusinessUserResult">
50
+        <result property="userId"    column="user_id"    />
51
+        <result property="nickName"    column="business_nick_name"    />
52
+    </resultMap>
53
+
54
+    <resultMap type="SysUser" id="TechUserResult">
55
+        <result property="userId"    column="user_id"    />
56
+        <result property="nickName"    column="tech_nick_name"    />
57
+    </resultMap>
58
+
59
+    <resultMap type="SysUser" id="CombinerUserResult">
60
+        <result property="userId"    column="user_id"    />
61
+        <result property="nickName"    column="combiner_nick_name"    />
62
+    </resultMap>
63
+
64
+    <resultMap type="SysUser" id="CheckerUserResult">
65
+        <result property="userId"    column="user_id"    />
66
+        <result property="nickName"    column="checker_nick_name"    />
67
+    </resultMap>
68
+
69
+    <resultMap type="SysUser" id="PrinterUserResult">
70
+        <result property="userId"    column="user_id"    />
71
+        <result property="nickName"    column="printer_nick_name"    />
72
+    </resultMap>
73
+
74
+    <resultMap type="SysDept" id="SysDeptResult">
75
+        <result property="deptId"    column="dept_id"    />
76
+        <result property="deptName"    column="dept_name"    />
35 77
     </resultMap>
36 78
 
37 79
     <sql id="selectCmcTenderVo">
38
-        select tender_id, project_name, party_a, a_person, a_phone, agent, agent_person, agent_phone, place, dept, trustee, budget, quote, deposit, tender_time, bid_buy_deadline, bid_website, bid_document, project_briefly, business_writer, business_deadline, tech_writer, tech_deadline, tender_combiner, tender_checker, tender_printer, tender_document from cmc_tender
80
+        select t.tender_id, t.project_name, t.party_a, t.a_person, t.a_phone, t.agent, t.agent_person, t.agent_phone, t.place, t.dept, t.trustee, t.budget, t.quote, t.deposit, t.tender_time,
81
+               t.bid_buy_deadline, t.bid_website, t.bid_document, t.project_briefly, t.business_writer, t.business_deadline, t.tech_writer, t.tech_deadline, t.tender_combiner, t.tender_checker,
82
+               t.tender_printer, t.tender_document, u.nick_name as trustee_nick_name, u1.nick_name as business_nick_name, u2.nick_name as tech_nick_name, u3.nick_name as combiner_nick_name,
83
+               u4.nick_name as checker_nick_name, u5.nick_name as printer_nick_name, d.dept_name from cmc_tender as t
84
+        left join sys_user as u on u.user_id = t.trustee
85
+        left join sys_user as u1 on u1.user_id = t.business_writer
86
+        left join sys_user as u2 on u2.user_id = t.tech_writer
87
+        left join sys_user as u3 on u3.user_id = t.tender_combiner
88
+        left join sys_user as u4 on u4.user_id = t.tender_checker
89
+        left join sys_user as u5 on u5.user_id = t.tender_printer
90
+        left join sys_dept as d on d.dept_id = t.dept
39 91
     </sql>
40 92
 
41 93
     <select id="selectCmcTenderList" parameterType="CmcTender" resultMap="CmcTenderResult">
42 94
         <include refid="selectCmcTenderVo"/>
43 95
         <where>  
44
-            <if test="projectName != null  and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
45
-            <if test="partyA != null  and partyA != ''"> and party_a like concat('%', #{partyA}, '%')</if>
46
-            <if test="aPerson != null  and aPerson != ''"> and a_person like concat('%', #{aPerson}, '%')</if>
47
-            <if test="aPhone != null  and aPhone != ''"> and a_phone like concat('%', #{aPhone}, '%')</if>
48
-            <if test="agent != null  and agent != ''"> and agent like concat('%', #{agent}, '%')</if>
49
-            <if test="agentPerson != null  and agentPerson != ''"> and agent_person like concat('%', #{agentPerson}, '%')</if>
50
-            <if test="agentPhone != null  and agentPhone != ''"> and agent_phone like concat('%', #{agentPhone}, '%')</if>
51
-            <if test="place != null  and place != ''"> and place like concat('%', #{place}, '%')</if>
52
-            <if test="dept != null "> and dept = #{dept}</if>
53
-            <if test="trustee != null "> and trustee = #{trustee}</if>
54
-            <if test="budget != null "> and budget = #{budget}</if>
55
-            <if test="quote != null "> and quote = #{quote}</if>
56
-            <if test="deposit != null "> and deposit = #{deposit}</if>
57
-            <if test="tenderTime != null "> and tender_time = #{tenderTime}</if>
58
-            <if test="bidBuyDeadline != null "> and bid_buy_deadline = #{bidBuyDeadline}</if>
59
-            <if test="bidWebsite != null  and bidWebsite != ''"> and bid_website = #{bidWebsite}</if>
60
-            <if test="bidDocument != null  and bidDocument != ''"> and bid_document = #{bidDocument}</if>
61
-            <if test="projectBriefly != null  and projectBriefly != ''"> and project_briefly = #{projectBriefly}</if>
62
-            <if test="businessWriter != null "> and business_writer = #{businessWriter}</if>
63
-            <if test="businessDeadline != null "> and business_deadline = #{businessDeadline}</if>
64
-            <if test="techWriter != null "> and tech_writer = #{techWriter}</if>
65
-            <if test="techDeadline != null "> and tech_deadline = #{techDeadline}</if>
66
-            <if test="tenderCombiner != null "> and tender_combiner = #{tenderCombiner}</if>
67
-            <if test="tenderChecker != null "> and tender_checker = #{tenderChecker}</if>
68
-            <if test="tenderPrinter != null "> and tender_printer = #{tenderPrinter}</if>
69
-            <if test="tenderDocument != null  and tenderDocument != ''"> and tender_document = #{tenderDocument}</if>
96
+            <if test="projectName != null  and projectName != ''"> and t.project_name like concat('%', #{projectName}, '%')</if>
97
+            <if test="partyA != null  and partyA != ''"> and t.party_a like concat('%', #{partyA}, '%')</if>
98
+            <if test="aPerson != null  and aPerson != ''"> and t.a_person like concat('%', #{aPerson}, '%')</if>
99
+            <if test="aPhone != null  and aPhone != ''"> and t.a_phone like concat('%', #{aPhone}, '%')</if>
100
+            <if test="agent != null  and agent != ''"> and t.agent like concat('%', #{agent}, '%')</if>
101
+            <if test="agentPerson != null  and agentPerson != ''"> and t.agent_person like concat('%', #{agentPerson}, '%')</if>
102
+            <if test="agentPhone != null  and agentPhone != ''"> and t.agent_phone like concat('%', #{agentPhone}, '%')</if>
103
+            <if test="place != null  and place != ''"> and t.place like concat('%', #{place}, '%')</if>
104
+            <if test="dept != null "> and t.dept = #{dept}</if>
105
+            <if test="trustee != null "> and t.trustee = #{trustee}</if>
106
+            <if test="budget != null "> and t.budget = #{budget}</if>
107
+            <if test="quote != null "> and t.quote = #{quote}</if>
108
+            <if test="deposit != null "> and t.deposit = #{deposit}</if>
109
+            <if test="tenderTime != null "> and t.tender_time = #{tenderTime}</if>
110
+            <if test="bidBuyDeadline != null "> and t.bid_buy_deadline = #{bidBuyDeadline}</if>
111
+            <if test="bidWebsite != null  and bidWebsite != ''"> and t.bid_website = #{bidWebsite}</if>
112
+            <if test="bidDocument != null  and bidDocument != ''"> and t.bid_document = #{bidDocument}</if>
113
+            <if test="projectBriefly != null  and projectBriefly != ''"> and t.project_briefly = #{projectBriefly}</if>
114
+            <if test="businessWriter != null "> and t.business_writer = #{businessWriter}</if>
115
+            <if test="businessDeadline != null "> and t.business_deadline = #{businessDeadline}</if>
116
+            <if test="techWriter != null "> and t.tech_writer = #{techWriter}</if>
117
+            <if test="techDeadline != null "> and t.tech_deadline = #{techDeadline}</if>
118
+            <if test="tenderCombiner != null "> and t.tender_combiner = #{tenderCombiner}</if>
119
+            <if test="tenderChecker != null "> and t.tender_checker = #{tenderChecker}</if>
120
+            <if test="tenderPrinter != null "> and t.tender_printer = #{tenderPrinter}</if>
121
+            <if test="tenderDocument != null  and tenderDocument != ''"> and t.tender_document = #{tenderDocument}</if>
70 122
         </where>
71 123
     </select>
72 124
     
73 125
     <select id="selectCmcTenderByTenderId" parameterType="String" resultMap="CmcTenderResult">
74 126
         <include refid="selectCmcTenderVo"/>
75
-        where tender_id = #{tenderId}
127
+        where t.tender_id = #{tenderId}
76 128
     </select>
77 129
         
78 130
     <insert id="insertCmcTender" parameterType="CmcTender">

+ 44
- 31
oa-back/sql/sql.sql Прегледај датотеку

@@ -335,8 +335,8 @@ create table sys_role (
335 335
 insert into sys_role values('1', '超级管理员',  'admin',  1, 1, 1, 1, '0', '0', 'admin', sysdate(), '', null, '超级管理员');
336 336
 insert into sys_role values('2', '普通角色',    'common', 2, 2, 1, 1, '0', '0', 'admin', sysdate(), '', null, '普通角色');
337 337
 insert into sys_role values('3', '人事管理员',	'staff', 3, 3, 1, 1, '0', '0', 'admin', sysdate(), '', null, '人事管理员');
338
-insert into sys_role values('4', '车辆管理员',	'car', 4, 4, 1, 1, '0', '0', 'admin', sysdate(), '', null, '车辆管理员');
339
-insert into sys_role values('5', '设备管理员',	'device', 5, 5, 1, 1, '0', '0', 'admin', sysdate(), '', null, '设备管理员');
338
+insert into sys_role values('4', '设备管理员',	'device', 4, 4, 1, 1, '0', '0', 'admin', sysdate(), '', null, '设备管理员');
339
+insert into sys_role values('5', '车辆管理员',	'car', 5, 5, 1, 1, '0', '0', 'admin', sysdate(), '', null, '车辆管理员');
340 340
 insert into sys_role values('6', '资料归档员',	'archive', 6, 6, 1, 1, '0', '0', 'admin', sysdate(), '', null, '资料归档员');
341 341
 insert into sys_role values('7', '管理层',		'leader', 7, 7, 1, 1, '0', '0', 'admin', sysdate(), '', null, '管理层');
342 342
 
@@ -530,15 +530,17 @@ insert into sys_menu values('1095', '资料修改', '11', '3', '#', '', '', 1, 0
530 530
 insert into sys_menu values('1096', '资料删除', '11', '4', '#', '', '', 1, 0, 'F', '0', '0', 'oa:archive:remove',			'#', 'admin', sysdate(), '', null, '');
531 531
 insert into sys_menu values('1097', '资料导出', '11', '5', '#', '', '', 1, 0, 'F', '0', '0', 'oa:archive:export',			'#', 'admin', sysdate(), '', null, '');
532 532
 -- 设备记录按钮
533
-insert into sys_menu values('1098', '记录新增', '5', '3', '#', '', '', 1, 0, 'F', '0', '0', 'device:record:add',			'#', 'admin', sysdate(), '', null, '');
534
-insert into sys_menu values('1099', '记录修改', '5', '4', '#', '', '', 1, 0, 'F', '0', '0', 'device:record:edit',			'#', 'admin', sysdate(), '', null, '');
535
-insert into sys_menu values('1100', '记录删除', '5', '5', '#', '', '', 1, 0, 'F', '0', '0', 'device:record:remove',			'#', 'admin', sysdate(), '', null, '');
536
-insert into sys_menu values('1101', '记录导出', '5', '6', '#', '', '', 1, 0, 'F', '0', '0', 'device:record:export',			'#', 'admin', sysdate(), '', null, '');
533
+insert into sys_menu values('1098', '记录查询', '5', '3', '#', '', '', 1, 0, 'F', '0', '0', 'device:record:query',			'#', 'admin', sysdate(), '', null, '');
534
+insert into sys_menu values('1099', '记录新增', '5', '4', '#', '', '', 1, 0, 'F', '0', '0', 'device:record:add',			'#', 'admin', sysdate(), '', null, '');
535
+insert into sys_menu values('1100', '记录修改', '5', '5', '#', '', '', 1, 0, 'F', '0', '0', 'device:record:edit',			'#', 'admin', sysdate(), '', null, '');
536
+insert into sys_menu values('1101', '记录删除', '5', '6', '#', '', '', 1, 0, 'F', '0', '0', 'device:record:remove',			'#', 'admin', sysdate(), '', null, '');
537
+insert into sys_menu values('1102', '记录导出', '5', '7', '#', '', '', 1, 0, 'F', '0', '0', 'device:record:export',			'#', 'admin', sysdate(), '', null, '');
537 538
 -- 车辆记录按钮
538
-insert into sys_menu values('1102', '记录新增', '6', '6', '#', '', '', 1, 0, 'F', '0', '0', 'car:record:add',				'#', 'admin', sysdate(), '', null, '');
539
-insert into sys_menu values('1103', '记录修改', '6', '7', '#', '', '', 1, 0, 'F', '0', '0', 'car:record:edit',				'#', 'admin', sysdate(), '', null, '');
540
-insert into sys_menu values('1104', '记录删除', '6', '8', '#', '', '', 1, 0, 'F', '0', '0', 'car:record:remove',			'#', 'admin', sysdate(), '', null, '');
541
-insert into sys_menu values('1105', '记录导出', '6', '9', '#', '', '', 1, 0, 'F', '0', '0', 'car:record:export',			'#', 'admin', sysdate(), '', null, '');
539
+insert into sys_menu values('1103', '记录查询', '6', '6', '#', '', '', 1, 0, 'F', '0', '0', 'car:record:query',				'#', 'admin', sysdate(), '', null, '');
540
+insert into sys_menu values('1104', '记录新增', '6', '7', '#', '', '', 1, 0, 'F', '0', '0', 'car:record:add',				'#', 'admin', sysdate(), '', null, '');
541
+insert into sys_menu values('1105', '记录修改', '6', '8', '#', '', '', 1, 0, 'F', '0', '0', 'car:record:edit',				'#', 'admin', sysdate(), '', null, '');
542
+insert into sys_menu values('1106', '记录删除', '6', '9', '#', '', '', 1, 0, 'F', '0', '0', 'car:record:remove',			'#', 'admin', sysdate(), '', null, '');
543
+insert into sys_menu values('1107', '记录导出', '6', '10', '#', '', '', 1, 0, 'F', '0', '0', 'car:record:export',			'#', 'admin', sysdate(), '', null, '');
542 544
 
543 545
 -- ----------------------------
544 546
 -- 6、用户和角色关联表  用户N-1角色
@@ -586,9 +588,9 @@ insert into `sys_user_role` values (15, 2);
586 588
 insert into `sys_user_role` values (15, 7);
587 589
 insert into `sys_user_role` values (16, 2);
588 590
 insert into `sys_user_role` values (17, 2);
589
-insert into `sys_user_role` values (17, 4);
591
+insert into `sys_user_role` values (17, 5);
590 592
 insert into `sys_user_role` values (18, 2);
591
-insert into `sys_user_role` values (18, 5);
593
+insert into `sys_user_role` values (18, 4);
592 594
 insert into `sys_user_role` values (19, 2);
593 595
 insert into `sys_user_role` values (19, 3);
594 596
 insert into `sys_user_role` values (20, 2);
@@ -752,19 +754,29 @@ insert into `sys_role_menu` values (3, 1005);
752 754
 insert into `sys_role_menu` values (3, 1006);
753 755
 insert into `sys_role_menu` values (3, 1007);
754 756
 insert into `sys_role_menu` values (4, 5);
755
-insert into `sys_role_menu` values (4, 1063);
756
-insert into `sys_role_menu` values (4, 1064);
757
-insert into `sys_role_menu` values (4, 1065);
758
-insert into `sys_role_menu` values (4, 1066);
759
-insert into `sys_role_menu` values (4, 1067);
757
+insert into `sys_role_menu` values (4, 120);
758
+insert into `sys_role_menu` values (4, 121);
759
+insert into `sys_role_menu` values (4, 1068);
760
+insert into `sys_role_menu` values (4, 1069);
761
+insert into `sys_role_menu` values (4, 1070);
762
+insert into `sys_role_menu` values (4, 1071);
763
+insert into `sys_role_menu` values (4, 1072);
764
+insert into `sys_role_menu` values (4, 1098);
765
+insert into `sys_role_menu` values (4, 1099);
766
+insert into `sys_role_menu` values (4, 1100);
767
+insert into `sys_role_menu` values (4, 1101);
768
+insert into `sys_role_menu` values (4, 1102);
760 769
 insert into `sys_role_menu` values (5, 6);
761
-insert into `sys_role_menu` values (5, 120);
762
-insert into `sys_role_menu` values (5, 121);
763
-insert into `sys_role_menu` values (5, 1068);
764
-insert into `sys_role_menu` values (5, 1069);
765
-insert into `sys_role_menu` values (5, 1070);
766
-insert into `sys_role_menu` values (5, 1071);
767
-insert into `sys_role_menu` values (5, 1072);
770
+insert into `sys_role_menu` values (5, 1063);
771
+insert into `sys_role_menu` values (5, 1064);
772
+insert into `sys_role_menu` values (5, 1065);
773
+insert into `sys_role_menu` values (5, 1066);
774
+insert into `sys_role_menu` values (5, 1067);
775
+insert into `sys_role_menu` values (5, 1103);
776
+insert into `sys_role_menu` values (5, 1104);
777
+insert into `sys_role_menu` values (5, 1105);
778
+insert into `sys_role_menu` values (5, 1106);
779
+insert into `sys_role_menu` values (5, 1107);
768 780
 insert into `sys_role_menu` values (6, 11);
769 781
 insert into `sys_role_menu` values (6, 1093);
770 782
 insert into `sys_role_menu` values (6, 1094);
@@ -777,6 +789,7 @@ insert into `sys_role_menu` values (7, 6);
777 789
 insert into `sys_role_menu` values (7, 7);
778 790
 insert into `sys_role_menu` values (7, 8);
779 791
 insert into `sys_role_menu` values (7, 9);
792
+insert into `sys_role_menu` values (7, 10);
780 793
 insert into `sys_role_menu` values (7, 118);
781 794
 insert into `sys_role_menu` values (7, 119);
782 795
 insert into `sys_role_menu` values (7, 120);
@@ -784,17 +797,17 @@ insert into `sys_role_menu` values (7, 121);
784 797
 insert into `sys_role_menu` values (7, 1000);
785 798
 insert into `sys_role_menu` values (7, 1001);
786 799
 insert into `sys_role_menu` values (7, 1063);
787
-insert into `sys_role_menu` values (7, 1064);
788 800
 insert into `sys_role_menu` values (7, 1067);
789 801
 insert into `sys_role_menu` values (7, 1068);
790
-insert into `sys_role_menu` values (7, 1069);
791 802
 insert into `sys_role_menu` values (7, 1072);
792 803
 insert into `sys_role_menu` values (7, 1073);
804
+insert into `sys_role_menu` values (7, 1077);
793 805
 insert into `sys_role_menu` values (7, 1078);
794 806
 insert into `sys_role_menu` values (7, 1082);
795 807
 insert into `sys_role_menu` values (7, 1083);
796 808
 insert into `sys_role_menu` values (7, 1087);
797
-insert into `sys_role_menu` values (7, 1102);
809
+insert into `sys_role_menu` values (7, 1098);
810
+insert into `sys_role_menu` values (7, 1103);
798 811
 insert into `sys_role_menu` values (7, 2023);
799 812
 insert into `sys_role_menu` values (7, 2024);
800 813
 insert into `sys_role_menu` values (7, 2025);
@@ -6445,11 +6458,11 @@ create table `cmc_tender`  (
6445 6458
   `tender_id` 			char(19)  		not null 		comment '投标id(2024-001)',
6446 6459
   `project_name` 		varchar(50)  	default null 	comment '投标项目名称',
6447 6460
   `party_a` 			varchar(50)  	default null 	comment '招标业主',
6448
-  `a_person` 			varchar(10)  	default null 	comment '业主联系人',
6449
-  `a_phone` 			varchar(11)  	default null 	comment '业主联系电话',
6461
+  `a_person` 			varchar(50)  	default null 	comment '业主联系人',
6462
+  `a_phone` 			varchar(50)  	default null 	comment '业主联系电话',
6450 6463
   `agent` 				varchar(50)  	default null 	comment '招标代理',
6451
-  `agent_person` 		varchar(10)  	default null 	comment '代理联系人',
6452
-  `agent_phone` 		varchar(11)  	default null 	comment '代理联系电话',
6464
+  `agent_person` 		varchar(50)  	default null 	comment '代理联系人',
6465
+  `agent_phone` 		varchar(50)  	default null 	comment '代理联系电话',
6453 6466
   `place` 				varchar(50)  	default null 	comment '招标地点',
6454 6467
   `dept` 				bigint 			default null 	comment '投标部门',
6455 6468
   `trustee` 			bigint 			default null 	comment '投标委托人',

+ 1
- 1
oa-ui/src/views/flowable/form/oa/carForm.vue Прегледај датотеку

@@ -543,7 +543,7 @@ export default {
543 543
           });
544 544
         })
545 545
       } else if (this.taskName == '分管审核' || this.taskName == '党工团审核' || this.taskName == '总经理审核') {
546
-        getUserByRole({ roleId: 4 }).then(result => {
546
+        getUserByRole({ roleId: 5 }).then(result => {
547 547
           this.$set(this.taskForm.variables, "approvalList", result.data);
548 548
           complete(this.taskForm).then(response => {
549 549
             this.$modal.msgSuccess(response.msg);

+ 3
- 3
oa-ui/src/views/flowable/form/oa/deviceForm.vue Прегледај датотеку

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-03-07 13:44:39
4 4
  * @LastEditors: wrh
5
- * @LastEditTime: 2024-06-04 10:52:17
5
+ * @LastEditTime: 2024-06-04 13:51:00
6 6
 -->
7 7
 
8 8
 <template>
@@ -393,7 +393,7 @@ export default {
393 393
     // 获取下一个审批人
394 394
     getNextFlowNodeApproval() {
395 395
       if (this.taskName == '设备申请') {
396
-        getUserByRole({ roleId: 5 }).then(result => {
396
+        getUserByRole({ roleId: 4 }).then(result => {
397 397
           this.$set(this.taskForm.variables, "approval", result.data[0]);
398 398
           complete(this.taskForm).then(response => {
399 399
             this.$modal.msgSuccess(response.msg);
@@ -415,7 +415,7 @@ export default {
415 415
           this.$emit('goBack')
416 416
         });
417 417
       } else if (this.taskName == '申请确认') {
418
-        getUserByRole({ roleId: 5 }).then(result => {
418
+        getUserByRole({ roleId: 4 }).then(result => {
419 419
           this.$set(this.taskForm.variables, "approval", result.data[0]);
420 420
           complete(this.taskForm).then(response => {
421 421
             this.$modal.msgSuccess(response.msg);

+ 1
- 1
oa-ui/src/views/flowable/form/settleForm.vue Прегледај датотеку

@@ -990,7 +990,7 @@ export default {
990 990
         if (vaild) {
991 991
           this.preserve();
992 992
           if (this.taskName == "结算发起") {
993
-            getUserByRole({ roleId: 5 }).then((res) => {
993
+            getUserByRole({ roleId: 4 }).then((res) => {
994 994
               this.getNextFlowNodeFn(res.data[0]);
995 995
             });
996 996
           } else if (this.taskName == "综合事务部处理") {

+ 3
- 3
oa-ui/src/views/oa/car/detail.vue Прегледај датотеку

@@ -104,10 +104,10 @@
104 104
               <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
105 105
                 v-hasPermi="['car:record:add']">新增</el-button>
106 106
             </el-col>
107
-            <el-col :span="1.5">
107
+            <!-- <el-col :span="1.5">
108 108
               <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
109 109
                 v-hasPermi="['car:record:edit']">修改</el-button>
110
-            </el-col>
110
+            </el-col> -->
111 111
             <el-col :span="1.5">
112 112
               <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple"
113 113
                 @click="handleDelete" v-hasPermi="['car:record:remove']">删除</el-button>
@@ -133,7 +133,7 @@
133 133
                 {{ scope.row.expense + '元' }}
134 134
               </template>
135 135
             </el-table-column>
136
-            <el-table-column label="发生日期" align="center" prop="occurDate" width="180">
136
+            <el-table-column label="发生日期" align="center" prop="occurDate">
137 137
               <template slot-scope="scope">
138 138
                 {{ scope.row.occurDate }}
139 139
               </template>

+ 2
- 2
oa-ui/src/views/oa/car/index.vue Прегледај датотеку

@@ -70,8 +70,8 @@
70 70
       <el-table-column label="操作" align="center" width="200px">
71 71
 
72 72
         <template slot-scope="scope">
73
-          <el-button size="mini" type="text" icon="el-icon-plus" @click="handleAddDetail(scope.row)"
74
-            v-hasPermi="['oa:car:add']">添加明细</el-button>
73
+          <el-button size="mini" type="text" icon="el-icon-view" @click="handleAddDetail(scope.row)"
74
+            v-hasPermi="['oa:car:query']">查看明细</el-button>
75 75
           <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
76 76
             v-hasPermi="['oa:car:edit']">修改</el-button>
77 77
           <el-button size="mini" type="text" icon="el-icon-delete" style="color: #fc0000;"

+ 2
- 2
oa-ui/src/views/oa/device/detail.vue Прегледај датотеку

@@ -131,7 +131,7 @@
131 131
               </template>
132 132
             </el-table-column>
133 133
             <el-table-column label="费用金额" align="center" prop="expense" />
134
-            <el-table-column label="发生日期" align="center" prop="occurDate" width="180">
134
+            <el-table-column label="发生日期" align="center" prop="occurDate">
135 135
               <template slot-scope="scope">
136 136
                 <span>{{ parseTime(scope.row.occurDate, '{y}-{m}-{d}') }}</span>
137 137
               </template>
@@ -237,7 +237,7 @@
237 237
                 {{ scope.row.receiveDept ? scope.row.receiveDept.deptName : '' }}
238 238
               </template>
239 239
             </el-table-column>
240
-            <el-table-column label="移交日期" align="center" prop="handoverDate" width="180">
240
+            <el-table-column label="移交日期" align="center" prop="handoverDate">
241 241
               <template slot-scope="scope">
242 242
                 <span>{{ parseTime(scope.row.handoverDate, '{y}-{m}-{d}') }}</span>
243 243
               </template>

+ 2
- 2
oa-ui/src/views/oa/device/index.vue Прегледај датотеку

@@ -77,8 +77,8 @@
77 77
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
78 78
 
79 79
         <template slot-scope="scope">
80
-          <el-button size="mini" type="text" icon="el-icon-plus" @click="handleAddDetail(scope.row)"
81
-            v-hasPermi="['oa:device:add']">添加明细</el-button>
80
+          <el-button size="mini" type="text" icon="el-icon-view" @click="handleAddDetail(scope.row)"
81
+            v-hasPermi="['oa:device:query']">查看明细</el-button>
82 82
           <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
83 83
             v-hasPermi="['oa:device:edit']">修改</el-button>
84 84
           <el-button size="mini" type="text" icon="el-icon-delete" style="color: #fc0000;"

+ 13
- 57
oa-ui/src/views/oa/price/index.vue Прегледај датотеку

@@ -1,62 +1,23 @@
1 1
 <template>
2 2
   <div class="app-container">
3 3
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4
-      <el-form-item label="工作内容" prop="workItem">
4
+      <el-form-item label="工作类别" prop="workType">
5 5
         <el-input
6
-          v-model="queryParams.workItem"
7
-          placeholder="请输入工作内容"
6
+          v-model="queryParams.workType"
7
+          placeholder="请输入工作类别"
8 8
           clearable
9 9
           @keyup.enter.native="handleQuery"
10 10
         />
11 11
       </el-form-item>
12
-      <el-form-item label="内容细项" prop="subItem">
13
-        <el-input
14
-          v-model="queryParams.subItem"
15
-          placeholder="请输入内容细项"
16
-          clearable
17
-          @keyup.enter.native="handleQuery"
18
-        />
19
-      </el-form-item>
20
-      <el-form-item label="单价比例" prop="pricePercentage">
21
-        <el-input
22
-          v-model="queryParams.pricePercentage"
23
-          placeholder="请输入单价比例"
24
-          clearable
25
-          @keyup.enter.native="handleQuery"
26
-        />
27
-      </el-form-item>
28
-      <el-form-item label="等级或比例尺" prop="scaleGrade">
29
-        <el-input
30
-          v-model="queryParams.scaleGrade"
31
-          placeholder="请输入等级或比例尺"
32
-          clearable
33
-          @keyup.enter.native="handleQuery"
34
-        />
35
-      </el-form-item>
36
-      <el-form-item label="单位" prop="unit">
37
-        <el-input
38
-          v-model="queryParams.unit"
39
-          placeholder="请输入单位"
40
-          clearable
41
-          @keyup.enter.native="handleQuery"
42
-        />
43
-      </el-form-item>
44
-      <el-form-item label="一般地类单价" prop="commonPrice">
45
-        <el-input
46
-          v-model="queryParams.commonPrice"
47
-          placeholder="请输入一般地类单价"
48
-          clearable
49
-          @keyup.enter.native="handleQuery"
50
-        />
51
-      </el-form-item>
52
-      <el-form-item label="复杂地类单价" prop="complexPrice">
12
+      <el-form-item label="工作内容" prop="workItem">
53 13
         <el-input
54
-          v-model="queryParams.complexPrice"
55
-          placeholder="请输入复杂地类单价"
14
+          v-model="queryParams.workItem"
15
+          placeholder="请输入工作内容"
56 16
           clearable
57 17
           @keyup.enter.native="handleQuery"
58 18
         />
59 19
       </el-form-item>
20
+      
60 21
       <el-form-item>
61 22
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
62 23
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -71,7 +32,6 @@
71 32
           icon="el-icon-plus"
72 33
           size="mini"
73 34
           @click="handleAdd"
74
-          v-hasPermi="['oa:price:add']"
75 35
         >新增</el-button>
76 36
       </el-col>
77 37
       <el-col :span="1.5">
@@ -82,7 +42,6 @@
82 42
           size="mini"
83 43
           :disabled="single"
84 44
           @click="handleUpdate"
85
-          v-hasPermi="['oa:price:edit']"
86 45
         >修改</el-button>
87 46
       </el-col>
88 47
       <el-col :span="1.5">
@@ -93,7 +52,6 @@
93 52
           size="mini"
94 53
           :disabled="multiple"
95 54
           @click="handleDelete"
96
-          v-hasPermi="['oa:price:remove']"
97 55
         >删除</el-button>
98 56
       </el-col>
99 57
       <el-col :span="1.5">
@@ -103,7 +61,6 @@
103 61
           icon="el-icon-download"
104 62
           size="mini"
105 63
           @click="handleExport"
106
-          v-hasPermi="['oa:price:export']"
107 64
         >导出</el-button>
108 65
       </el-col>
109 66
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -114,8 +71,6 @@
114 71
       <el-table-column label="结算单价id" align="center" prop="id" />
115 72
       <el-table-column label="工作类别" align="center" prop="workType" />
116 73
       <el-table-column label="工作内容" align="center" prop="workItem" />
117
-      <el-table-column label="内容细项" align="center" prop="subItem" />
118
-      <el-table-column label="单价比例" align="center" prop="pricePercentage" />
119 74
       <el-table-column label="等级或比例尺" align="center" prop="scaleGrade" />
120 75
       <el-table-column label="单位" align="center" prop="unit" />
121 76
       <el-table-column label="一般地类单价" align="center" prop="commonPrice" />
@@ -127,14 +82,12 @@
127 82
             type="text"
128 83
             icon="el-icon-edit"
129 84
             @click="handleUpdate(scope.row)"
130
-            v-hasPermi="['oa:price:edit']"
131 85
           >修改</el-button>
132 86
           <el-button
133 87
             size="mini"
134 88
             type="text"
135 89
             icon="el-icon-delete"
136 90
             @click="handleDelete(scope.row)"
137
-            v-hasPermi="['oa:price:remove']"
138 91
           >删除</el-button>
139 92
         </template>
140 93
       </el-table-column>
@@ -150,16 +103,19 @@
150 103
 
151 104
     <!-- 添加或修改cmc结算单价对话框 -->
152 105
     <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
153
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
106
+      <el-form ref="form" :model="form" :rules="rules" label-width="120px">
107
+        <el-form-item label="工作类别" prop="workType">
108
+          <el-input v-model="form.workType" placeholder="请输入工作类别" />
109
+        </el-form-item>
154 110
         <el-form-item label="工作内容" prop="workItem">
155 111
           <el-input v-model="form.workItem" placeholder="请输入工作内容" />
156 112
         </el-form-item>
157
-        <el-form-item label="内容细项" prop="subItem">
113
+        <!-- <el-form-item label="内容细项" prop="subItem">
158 114
           <el-input v-model="form.subItem" placeholder="请输入内容细项" />
159 115
         </el-form-item>
160 116
         <el-form-item label="单价比例" prop="pricePercentage">
161 117
           <el-input v-model="form.pricePercentage" placeholder="请输入单价比例" />
162
-        </el-form-item>
118
+        </el-form-item> -->
163 119
         <el-form-item label="等级或比例尺" prop="scaleGrade">
164 120
           <el-input v-model="form.scaleGrade" placeholder="请输入等级或比例尺" />
165 121
         </el-form-item>

+ 2
- 2
oa-ui/src/views/oa/supply/index.vue Прегледај датотеку

@@ -77,8 +77,8 @@
77 77
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
78 78
 
79 79
         <template slot-scope="scope">
80
-          <el-button size="mini" type="text" icon="el-icon-plus" @click="handleAddDetail(scope.row)"
81
-            v-hasPermi="['oa:car:edit']">添加明细</el-button>
80
+          <el-button size="mini" type="text" icon="el-icon-view" @click="handleAddDetail(scope.row)"
81
+            v-hasPermi="['oa:device:query']">查看明细</el-button>
82 82
           <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
83 83
             v-hasPermi="['oa:device:edit']">修改</el-button>
84 84
           <el-button size="mini" type="text" icon="el-icon-delete" style="color: #fc0000;"

+ 2
- 2
oa-ui/src/views/oa/tender/index.vue Прегледај датотеку

@@ -28,10 +28,10 @@
28 28
         <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
29 29
           v-hasPermi="['oa:tender:remove']">删除</el-button>
30 30
       </el-col>
31
-      <!-- <el-col :span="1.5">
31
+      <el-col :span="1.5">
32 32
         <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
33 33
           v-hasPermi="['oa:tender:export']">导出</el-button>
34
-      </el-col> -->
34
+      </el-col>
35 35
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
36 36
     </el-row>
37 37
 

Loading…
Откажи
Сачувај