浏览代码

导出委外、采购表

lamphua 8 个月前
父节点
当前提交
3370fcdb0c

+ 20
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcOutsourceController.java 查看文件

2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
 import javax.servlet.http.HttpServletResponse;
4
 import javax.servlet.http.HttpServletResponse;
5
+
6
+import com.ruoyi.oa.domain.CmcProject;
7
+import com.ruoyi.oa.service.ICmcPartnerService;
5
 import org.springframework.beans.factory.annotation.Autowired;
8
 import org.springframework.beans.factory.annotation.Autowired;
6
 import org.springframework.web.bind.annotation.GetMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
7
 import org.springframework.web.bind.annotation.PostMapping;
10
 import org.springframework.web.bind.annotation.PostMapping;
33
     @Autowired
36
     @Autowired
34
     private ICmcOutsourceService cmcOutsourceService;
37
     private ICmcOutsourceService cmcOutsourceService;
35
 
38
 
39
+    @Autowired
40
+    private ICmcPartnerService cmcPartnerService;
41
+
36
     /**
42
     /**
37
      * 查询项目委外列表
43
      * 查询项目委外列表
38
      */
44
      */
41
     {
47
     {
42
         startPage();
48
         startPage();
43
         List<CmcOutsource> list = cmcOutsourceService.selectCmcOutsourceList(cmcOutsource);
49
         List<CmcOutsource> list = cmcOutsourceService.selectCmcOutsourceList(cmcOutsource);
50
+        for (CmcOutsource outsource : list)
51
+            partnerIdToName(outsource);
44
         return getDataTable(list);
52
         return getDataTable(list);
45
     }
53
     }
46
 
54
 
52
     public void export(HttpServletResponse response, CmcOutsource cmcOutsource)
60
     public void export(HttpServletResponse response, CmcOutsource cmcOutsource)
53
     {
61
     {
54
         List<CmcOutsource> list = cmcOutsourceService.selectCmcOutsourceList(cmcOutsource);
62
         List<CmcOutsource> list = cmcOutsourceService.selectCmcOutsourceList(cmcOutsource);
63
+        for (CmcOutsource outsource : list)
64
+            partnerIdToName(outsource);
55
         ExcelUtil<CmcOutsource> util = new ExcelUtil<CmcOutsource>(CmcOutsource.class);
65
         ExcelUtil<CmcOutsource> util = new ExcelUtil<CmcOutsource>(CmcOutsource.class);
56
         util.exportExcel(response, list, "项目委外数据");
66
         util.exportExcel(response, list, "项目委外数据");
57
     }
67
     }
94
     {
104
     {
95
         return toAjax(cmcOutsourceService.deleteCmcOutsourceByOutsoureIds(outsoureIds));
105
         return toAjax(cmcOutsourceService.deleteCmcOutsourceByOutsoureIds(outsoureIds));
96
     }
106
     }
107
+
108
+    public void partnerIdToName(CmcOutsource cmcOutsource) {
109
+        String partnerId = cmcOutsource.getPartnerId();
110
+        StringBuilder partnerName = new StringBuilder();
111
+        if (partnerId != null && !partnerId.equals("") && partnerId.split(",").length > 0) {
112
+            for (String partner : partnerId.split(","))
113
+                partnerName.append(cmcPartnerService.selectCmcPartnerByPartnerId(partner).getPartnerName()).append(",");
114
+            cmcOutsource.setPartnerName(partnerName.substring(0, partnerName.length() - 1));
115
+        }
116
+    }
97
 }
117
 }

+ 95
- 14
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcOutsource.java 查看文件

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;
20
     /** 委外id */
22
     /** 委外id */
21
     private String outsoureId;
23
     private String outsoureId;
22
 
24
 
23
-    /** 委外说明 */
24
-    @Excel(name = "委外说明")
25
-    private String applyReason;
26
-
27
     /** 项目id */
25
     /** 项目id */
28
     @Excel(name = "项目id")
26
     @Excel(name = "项目id")
29
     private String projectId;
27
     private String projectId;
28
+    @Excel(name = "项目编号")
29
+    private String projectNumber;
30
+    @Excel(name = "项目名称")
31
+    private String projectName;
30
 
32
 
31
-    /** 合作单位id */
32
-    @Excel(name = "合作单位id")
33
+    /** 合作单位 */
33
     private String partnerId;
34
     private String partnerId;
35
+    @Excel(name = "合作单位")
36
+    private String partnerName;
37
+
38
+    /** 委外说明 */
39
+    @Excel(name = "委外说明")
40
+    private String applyReason;
34
 
41
 
35
     /** 申请人 */
42
     /** 申请人 */
36
     @Excel(name = "申请人")
43
     @Excel(name = "申请人")
44
+    private String applierUserName;
37
     private Long applier;
45
     private Long applier;
38
 
46
 
39
     /** 申请部门 */
47
     /** 申请部门 */
40
     @Excel(name = "申请部门")
48
     @Excel(name = "申请部门")
49
+    private String deptName;
41
     private Long applyDept;
50
     private Long applyDept;
42
 
51
 
43
     /** 申请时间 */
52
     /** 申请时间 */
45
     @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
54
     @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
46
     private Date applyTime;
55
     private Date applyTime;
47
 
56
 
48
-    /** 分管审核人 */
49
-    @Excel(name = "分管审核人")
50
-    private Long managerUserId;
51
-
52
     /** 分管审核意见 */
57
     /** 分管审核意见 */
53
     @Excel(name = "分管审核意见")
58
     @Excel(name = "分管审核意见")
54
     private String managerComment;
59
     private String managerComment;
55
 
60
 
61
+    /** 分管审核人 */
62
+    @Excel(name = "分管审核人")
63
+    private String managerUserName;
64
+    private Long managerUserId;
65
+
56
     /** 分管审核时间 */
66
     /** 分管审核时间 */
57
     @JsonFormat(pattern = "yyyy-MM-dd")
67
     @JsonFormat(pattern = "yyyy-MM-dd")
58
     @Excel(name = "分管审核时间", width = 30, dateFormat = "yyyy-MM-dd")
68
     @Excel(name = "分管审核时间", width = 30, dateFormat = "yyyy-MM-dd")
59
     private Date managerTime;
69
     private Date managerTime;
60
 
70
 
61
-    /** 总经理审批人 */
62
-    @Excel(name = "总经理审批人")
63
-    private Long zjlUserId;
64
-
65
     /** 总经理审批意见 */
71
     /** 总经理审批意见 */
66
     @Excel(name = "总经理审批意见")
72
     @Excel(name = "总经理审批意见")
67
     private String zjlComment;
73
     private String zjlComment;
68
 
74
 
75
+    /** 总经理审批人 */
76
+    @Excel(name = "总经理审批人")
77
+    private String zjlUserName;
78
+    private Long zjlUserId;
79
+
69
     /** 总经理审批时间 */
80
     /** 总经理审批时间 */
70
     @JsonFormat(pattern = "yyyy-MM-dd")
81
     @JsonFormat(pattern = "yyyy-MM-dd")
71
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
82
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
72
     private Date zjlTime;
83
     private Date zjlTime;
73
 
84
 
85
+    private CmcProject project;
86
+
87
+    private SysUser applierUser;
88
+
89
+    private SysUser managerUser;
90
+
91
+    private SysUser zjlUser;
92
+
93
+    private SysDept dept;
94
+
74
     public void setOutsoureId(String outsoureId) 
95
     public void setOutsoureId(String outsoureId) 
75
     {
96
     {
76
         this.outsoureId = outsoureId;
97
         this.outsoureId = outsoureId;
116
     {
137
     {
117
         return applier;
138
         return applier;
118
     }
139
     }
140
+    public void setApplierUser(SysUser applierUser)
141
+    {
142
+        this.applierUser = applierUser;
143
+        this.applierUserName = applierUser == null ? "" : applierUser.getNickName();
144
+    }
145
+
146
+    public SysUser getApplierUser()
147
+    {
148
+        return applierUser;
149
+    }
119
     public void setApplyDept(Long applyDept) 
150
     public void setApplyDept(Long applyDept) 
120
     {
151
     {
121
         this.applyDept = applyDept;
152
         this.applyDept = applyDept;
125
     {
156
     {
126
         return applyDept;
157
         return applyDept;
127
     }
158
     }
159
+    public void setDept(SysDept dept)
160
+    {
161
+        this.dept = dept;
162
+        this.deptName = dept == null ? "" : dept.getDeptName();
163
+    }
164
+
165
+    public SysDept getDept()
166
+    {
167
+        return dept;
168
+    }
128
     public void setApplyTime(Date applyTime) 
169
     public void setApplyTime(Date applyTime) 
129
     {
170
     {
130
         this.applyTime = applyTime;
171
         this.applyTime = applyTime;
143
     {
184
     {
144
         return managerUserId;
185
         return managerUserId;
145
     }
186
     }
187
+    public void setManagerUser(SysUser managerUser)
188
+    {
189
+        this.managerUser = managerUser;
190
+        this.managerUserName = managerUser == null ? "" : managerUser.getNickName();
191
+    }
192
+
193
+    public SysUser getManagerUser()
194
+    {
195
+        return managerUser;
196
+    }
146
     public void setManagerComment(String managerComment) 
197
     public void setManagerComment(String managerComment) 
147
     {
198
     {
148
         this.managerComment = managerComment;
199
         this.managerComment = managerComment;
170
     {
221
     {
171
         return zjlUserId;
222
         return zjlUserId;
172
     }
223
     }
224
+    public void setZjlUser(SysUser zjlUser)
225
+    {
226
+        this.zjlUser = zjlUser;
227
+        this.zjlUserName = zjlUser == null ? "" : zjlUser.getNickName();
228
+    }
229
+
230
+    public SysUser getZjlUser()
231
+    {
232
+        return zjlUser;
233
+    }
173
     public void setZjlComment(String zjlComment) 
234
     public void setZjlComment(String zjlComment) 
174
     {
235
     {
175
         this.zjlComment = zjlComment;
236
         this.zjlComment = zjlComment;
188
     {
249
     {
189
         return zjlTime;
250
         return zjlTime;
190
     }
251
     }
252
+    public void setPartnerName(String partnerName)
253
+    {
254
+        this.partnerName = partnerName;
255
+    }
256
+
257
+    public String getPartnerName()
258
+    {
259
+        return partnerName;
260
+    }
261
+    public void setProject(CmcProject project)
262
+    {
263
+        this.project = project;
264
+        this.projectNumber = project == null ? "" : project.getProjectNumber();
265
+        this.projectName = project == null ? "" : project.getProjectName();
266
+    }
267
+
268
+    public CmcProject getProject()
269
+    {
270
+        return project;
271
+    }
191
 
272
 
192
     @Override
273
     @Override
193
     public String toString() {
274
     public String toString() {

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

29
     private Long reportDept;
29
     private Long reportDept;
30
 
30
 
31
     /** 附件 */
31
     /** 附件 */
32
-    @Excel(name = "附件")
32
+//    @Excel(name = "附件")
33
     private String document;
33
     private String document;
34
 
34
 
35
     /** 上报日期 */
35
     /** 上报日期 */
37
     @Excel(name = "上报日期", width = 30, dateFormat = "yyyy-MM-dd")
37
     @Excel(name = "上报日期", width = 30, dateFormat = "yyyy-MM-dd")
38
     private Date reportTime;
38
     private Date reportTime;
39
 
39
 
40
-    /** 分管审核人 */
41
-    @Excel(name = "分管审核人")
42
-    private Long managerUserId;
43
-
44
     /** 分管审核意见 */
40
     /** 分管审核意见 */
45
     @Excel(name = "分管审核意见")
41
     @Excel(name = "分管审核意见")
46
     private String managerComment;
42
     private String managerComment;
47
 
43
 
44
+    /** 分管审核人 */
45
+    @Excel(name = "分管审核人")
46
+    private Long managerUserId;
47
+
48
     /** 分管审核时间 */
48
     /** 分管审核时间 */
49
     @JsonFormat(pattern = "yyyy-MM-dd")
49
     @JsonFormat(pattern = "yyyy-MM-dd")
50
     @Excel(name = "分管审核时间", width = 30, dateFormat = "yyyy-MM-dd")
50
     @Excel(name = "分管审核时间", width = 30, dateFormat = "yyyy-MM-dd")
51
     private Date managerTime;
51
     private Date managerTime;
52
 
52
 
53
-    /** 总经理审批人 */
54
-    @Excel(name = "总经理审批人")
55
-    private Long zjlUserId;
56
-
57
     /** 总经理审批意见 */
53
     /** 总经理审批意见 */
58
     @Excel(name = "总经理审批意见")
54
     @Excel(name = "总经理审批意见")
59
     private String zjlComment;
55
     private String zjlComment;
60
 
56
 
57
+    /** 总经理审批人 */
58
+    @Excel(name = "总经理审批人")
59
+    private Long zjlUserId;
60
+
61
     /** 总经理审批时间 */
61
     /** 总经理审批时间 */
62
     @JsonFormat(pattern = "yyyy-MM-dd")
62
     @JsonFormat(pattern = "yyyy-MM-dd")
63
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
63
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")

+ 78
- 11
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProcureApproval.java 查看文件

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;
26
 
28
 
27
     /** 申请人 */
29
     /** 申请人 */
28
     @Excel(name = "申请人")
30
     @Excel(name = "申请人")
31
+    private String applierUserName;
29
     private Long applier;
32
     private Long applier;
30
 
33
 
31
     /** 申请部门 */
34
     /** 申请部门 */
32
     @Excel(name = "申请部门")
35
     @Excel(name = "申请部门")
36
+    private String deptName;
33
     private Long applyDept;
37
     private Long applyDept;
34
 
38
 
35
     /** 申请时间 */
39
     /** 申请时间 */
37
     @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
41
     @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
38
     private Date applyTime;
42
     private Date applyTime;
39
 
43
 
40
-    /** 分管审核人 */
41
-    @Excel(name = "分管审核人")
42
-    private Long managerUserId;
43
-
44
     /** 分管审核意见 */
44
     /** 分管审核意见 */
45
     @Excel(name = "分管审核意见")
45
     @Excel(name = "分管审核意见")
46
     private String managerComment;
46
     private String managerComment;
47
 
47
 
48
+    /** 分管审核人 */
49
+    @Excel(name = "分管审核人")
50
+    private String managerUserName;
51
+    private Long managerUserId;
52
+
48
     /** 分管审核时间 */
53
     /** 分管审核时间 */
49
     @JsonFormat(pattern = "yyyy-MM-dd")
54
     @JsonFormat(pattern = "yyyy-MM-dd")
50
     @Excel(name = "分管审核时间", width = 30, dateFormat = "yyyy-MM-dd")
55
     @Excel(name = "分管审核时间", width = 30, dateFormat = "yyyy-MM-dd")
51
     private Date managerTime;
56
     private Date managerTime;
52
 
57
 
53
-    /** 总经理审批人 */
54
-    @Excel(name = "总经理审批人")
55
-    private Long zjlUserId;
56
-
57
     /** 总经理审批意见 */
58
     /** 总经理审批意见 */
58
     @Excel(name = "总经理审批意见")
59
     @Excel(name = "总经理审批意见")
59
     private String zjlComment;
60
     private String zjlComment;
60
 
61
 
62
+    /** 总经理审批人 */
63
+    @Excel(name = "总经理审批人")
64
+    private String zjlUserName;
65
+    private Long zjlUserId;
66
+
61
     /** 总经理审批时间 */
67
     /** 总经理审批时间 */
62
     @JsonFormat(pattern = "yyyy-MM-dd")
68
     @JsonFormat(pattern = "yyyy-MM-dd")
63
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
69
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
64
     private Date zjlTime;
70
     private Date zjlTime;
65
 
71
 
72
+    /** 计划编制意见 */
73
+    @Excel(name = "计划编制意见")
74
+    private String planComment;
75
+
66
     /** 计划编制人 */
76
     /** 计划编制人 */
67
     @Excel(name = "计划编制人")
77
     @Excel(name = "计划编制人")
78
+    private String planUserName;
68
     private Long planUserId;
79
     private Long planUserId;
69
 
80
 
70
     /** 计划编制时间 */
81
     /** 计划编制时间 */
72
     @Excel(name = "计划编制时间", width = 30, dateFormat = "yyyy-MM-dd")
83
     @Excel(name = "计划编制时间", width = 30, dateFormat = "yyyy-MM-dd")
73
     private Date planTime;
84
     private Date planTime;
74
 
85
 
75
-    /** 计划编制意见 */
76
-    @Excel(name = "计划编制意见")
77
-    private String planComment;
86
+    private SysUser applierUser;
87
+
88
+    private SysUser managerUser;
89
+
90
+    private SysUser zjlUser;
91
+
92
+    private SysUser planUser;
93
+
94
+    private SysDept dept;
78
 
95
 
79
     public void setProcureApplyId(String procureApplyId) 
96
     public void setProcureApplyId(String procureApplyId) 
80
     {
97
     {
103
     {
120
     {
104
         return applier;
121
         return applier;
105
     }
122
     }
123
+    public void setApplierUser(SysUser applierUser)
124
+    {
125
+        this.applierUser = applierUser;
126
+        this.applierUserName = applierUser == null ? "" : applierUser.getNickName();
127
+    }
128
+
129
+    public SysUser getApplierUser()
130
+    {
131
+        return applierUser;
132
+    }
106
     public void setApplyDept(Long applyDept) 
133
     public void setApplyDept(Long applyDept) 
107
     {
134
     {
108
         this.applyDept = applyDept;
135
         this.applyDept = applyDept;
112
     {
139
     {
113
         return applyDept;
140
         return applyDept;
114
     }
141
     }
142
+    public void setDept(SysDept dept)
143
+    {
144
+        this.dept = dept;
145
+        this.deptName = dept == null ? "" : dept.getDeptName();
146
+    }
147
+
148
+    public SysDept getDept()
149
+    {
150
+        return dept;
151
+    }
115
     public void setApplyTime(Date applyTime)
152
     public void setApplyTime(Date applyTime)
116
     {
153
     {
117
         this.applyTime = applyTime;
154
         this.applyTime = applyTime;
130
     {
167
     {
131
         return managerUserId;
168
         return managerUserId;
132
     }
169
     }
170
+    public void setManagerUser(SysUser managerUser)
171
+    {
172
+        this.managerUser = managerUser;
173
+        this.managerUserName = managerUser == null ? "" : managerUser.getNickName();
174
+    }
175
+
176
+    public SysUser getManagerUser()
177
+    {
178
+        return managerUser;
179
+    }
133
     public void setManagerComment(String managerComment) 
180
     public void setManagerComment(String managerComment) 
134
     {
181
     {
135
         this.managerComment = managerComment;
182
         this.managerComment = managerComment;
157
     {
204
     {
158
         return zjlUserId;
205
         return zjlUserId;
159
     }
206
     }
207
+    public void setZjlUser(SysUser zjlUser)
208
+    {
209
+        this.zjlUser = zjlUser;
210
+        this.zjlUserName = zjlUser == null ? "" : zjlUser.getNickName();
211
+    }
212
+
213
+    public SysUser getZjlUser()
214
+    {
215
+        return zjlUser;
216
+    }
160
     public void setZjlComment(String zjlComment) 
217
     public void setZjlComment(String zjlComment) 
161
     {
218
     {
162
         this.zjlComment = zjlComment;
219
         this.zjlComment = zjlComment;
184
     {
241
     {
185
         return planUserId;
242
         return planUserId;
186
     }
243
     }
244
+    public void setPlanUser(SysUser planUser)
245
+    {
246
+        this.planUser = planUser;
247
+        this.planUserName = planUser == null ? "" : planUser.getNickName();
248
+    }
249
+
250
+    public SysUser getPlanUser()
251
+    {
252
+        return planUser;
253
+    }
187
     public void setPlanTime(Date planTime) 
254
     public void setPlanTime(Date planTime) 
188
     {
255
     {
189
         this.planTime = planTime;
256
         this.planTime = planTime;

+ 52
- 14
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcOutsourceMapper.xml 查看文件

18
         <result property="zjlUserId"    column="zjl_user_id"    />
18
         <result property="zjlUserId"    column="zjl_user_id"    />
19
         <result property="zjlComment"    column="zjl_comment"    />
19
         <result property="zjlComment"    column="zjl_comment"    />
20
         <result property="zjlTime"    column="zjl_time"    />
20
         <result property="zjlTime"    column="zjl_time"    />
21
+        <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
22
+        <association property="applierUser"    javaType="SysUser"         resultMap="ApplierUserResult" />
23
+        <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
24
+        <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlUserResult" />
25
+        <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
26
+    </resultMap>
27
+
28
+    <resultMap type="CmcProject" id="CmcProjectResult">
29
+        <result property="projectId"    column="project_id"    />
30
+        <result property="projectNumber"    column="project_number"    />
31
+        <result property="projectName"    column="project_name"    />
32
+    </resultMap>
33
+
34
+    <resultMap type="SysUser" id="ApplierUserResult">
35
+        <result property="userId"    column="user_id"    />
36
+        <result property="nickName"    column="applier_nick_name"    />
37
+    </resultMap>
38
+
39
+    <resultMap type="SysUser" id="ManagerUserResult">
40
+        <result property="userId"    column="user_id"    />
41
+        <result property="nickName"    column="manager_nick_name"    />
42
+    </resultMap>
43
+
44
+    <resultMap type="SysUser" id="ZjlUserResult">
45
+        <result property="userId"    column="user_id"    />
46
+        <result property="nickName"    column="zjl_nick_name"    />
47
+    </resultMap>
48
+
49
+    <resultMap type="SysDept" id="SysDeptResult">
50
+        <result property="deptId"    column="dept_id"    />
51
+        <result property="deptName"    column="dept_name"    />
21
     </resultMap>
52
     </resultMap>
22
 
53
 
23
     <sql id="selectCmcOutsourceVo">
54
     <sql id="selectCmcOutsourceVo">
24
-        select outsoure_id, apply_reason, project_id, partner_id, applier, apply_dept, apply_time, manager_user_id, manager_comment, manager_time, zjl_user_id, zjl_comment, zjl_time from cmc_outsource
55
+        select o.outsoure_id, o.apply_reason, o.project_id, p.project_number, p.project_name, o.partner_id, o.applier, u.nick_name as applier_nick_name,
56
+               o.apply_dept, d.dept_name, o.apply_time, o.manager_user_id, u1.nick_name as manager_nick_name, o.manager_comment, o.manager_time,
57
+               o.zjl_user_id, u2.nick_name as zjl_nick_name, o.zjl_comment, o.zjl_time from cmc_outsource as o
58
+        left join cmc_project as p on o.project_id = p.project_id
59
+        left join sys_user as u on u.user_id = o.applier
60
+        left join sys_user as u1 on u1.user_id = o.manager_user_id
61
+        left join sys_user as u2 on u2.user_id = o.zjl_user_id
62
+        left join sys_dept as d on d.dept_id = o.apply_dept
25
     </sql>
63
     </sql>
26
 
64
 
27
     <select id="selectCmcOutsourceList" parameterType="CmcOutsource" resultMap="CmcOutsourceResult">
65
     <select id="selectCmcOutsourceList" parameterType="CmcOutsource" resultMap="CmcOutsourceResult">
28
         <include refid="selectCmcOutsourceVo"/>
66
         <include refid="selectCmcOutsourceVo"/>
29
         <where>  
67
         <where>  
30
-            <if test="applyReason != null  and applyReason != ''"> and apply_reason = #{applyReason}</if>
31
-            <if test="projectId != null  and projectId != ''"> and project_id = #{projectId}</if>
32
-            <if test="partnerId != null  and partnerId != ''"> and partner_id = #{partnerId}</if>
33
-            <if test="applier != null "> and applier = #{applier}</if>
34
-            <if test="applyDept != null "> and apply_dept = #{applyDept}</if>
35
-            <if test="applyTime != null "> and apply_time = #{applyTime}</if>
36
-            <if test="managerUserId != null "> and manager_user_id = #{managerUserId}</if>
37
-            <if test="managerComment != null  and managerComment != ''"> and manager_comment = #{managerComment}</if>
38
-            <if test="managerTime != null "> and manager_time = #{managerTime}</if>
39
-            <if test="zjlUserId != null "> and zjl_user_id = #{zjlUserId}</if>
40
-            <if test="zjlComment != null  and zjlComment != ''"> and zjl_comment = #{zjlComment}</if>
41
-            <if test="zjlTime != null "> and zjl_time = #{zjlTime}</if>
68
+            <if test="applyReason != null  and applyReason != ''"> and o.apply_reason = #{applyReason}</if>
69
+            <if test="projectId != null  and projectId != ''"> and o.project_id = #{projectId}</if>
70
+            <if test="partnerId != null  and partnerId != ''"> and o.partner_id = #{partnerId}</if>
71
+            <if test="applier != null "> and o.applier = #{applier}</if>
72
+            <if test="applyDept != null "> and o.apply_dept = #{applyDept}</if>
73
+            <if test="applyTime != null "> and o.apply_time = #{applyTime}</if>
74
+            <if test="managerUserId != null "> and o.manager_user_id = #{managerUserId}</if>
75
+            <if test="managerComment != null  and managerComment != ''"> and o.manager_comment = #{managerComment}</if>
76
+            <if test="managerTime != null "> and o.manager_time = #{managerTime}</if>
77
+            <if test="zjlUserId != null "> and o.zjl_user_id = #{zjlUserId}</if>
78
+            <if test="zjlComment != null  and zjlComment != ''"> and o.zjl_comment = #{zjlComment}</if>
79
+            <if test="zjlTime != null "> and o.zjl_time = #{zjlTime}</if>
42
         </where>
80
         </where>
43
     </select>
81
     </select>
44
     
82
     
45
     <select id="selectCmcOutsourceByOutsoureId" parameterType="String" resultMap="CmcOutsourceResult">
83
     <select id="selectCmcOutsourceByOutsoureId" parameterType="String" resultMap="CmcOutsourceResult">
46
         <include refid="selectCmcOutsourceVo"/>
84
         <include refid="selectCmcOutsourceVo"/>
47
-        where outsoure_id = #{outsoureId}
85
+        where o.outsoure_id = #{outsoureId}
48
     </select>
86
     </select>
49
         
87
         
50
     <insert id="insertCmcOutsource" parameterType="CmcOutsource">
88
     <insert id="insertCmcOutsource" parameterType="CmcOutsource">

+ 52
- 15
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProcureApprovalMapper.xml 查看文件

19
         <result property="planUserId"    column="plan_user_id"    />
19
         <result property="planUserId"    column="plan_user_id"    />
20
         <result property="planTime"    column="plan_time"    />
20
         <result property="planTime"    column="plan_time"    />
21
         <result property="planComment"    column="plan_comment"    />
21
         <result property="planComment"    column="plan_comment"    />
22
+        <association property="applierUser"    javaType="SysUser"         resultMap="ApplierUserResult" />
23
+        <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
24
+        <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlUserResult" />
25
+        <association property="planUser"    javaType="SysUser"         resultMap="PlanUserResult" />
26
+        <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
27
+    </resultMap>
28
+
29
+    <resultMap type="SysUser" id="ApplierUserResult">
30
+        <result property="userId"    column="user_id"    />
31
+        <result property="nickName"    column="applier_nick_name"    />
32
+    </resultMap>
33
+
34
+    <resultMap type="SysUser" id="ManagerUserResult">
35
+        <result property="userId"    column="user_id"    />
36
+        <result property="nickName"    column="manager_nick_name"    />
37
+    </resultMap>
38
+
39
+    <resultMap type="SysUser" id="ZjlUserResult">
40
+        <result property="userId"    column="user_id"    />
41
+        <result property="nickName"    column="zjl_nick_name"    />
42
+    </resultMap>
43
+
44
+    <resultMap type="SysUser" id="PlanUserResult">
45
+        <result property="userId"    column="user_id"    />
46
+        <result property="nickName"    column="plan_nick_name"    />
47
+    </resultMap>
48
+
49
+    <resultMap type="SysDept" id="SysDeptResult">
50
+        <result property="deptId"    column="dept_id"    />
51
+        <result property="deptName"    column="dept_name"    />
22
     </resultMap>
52
     </resultMap>
23
 
53
 
24
     <sql id="selectCmcProcureApprovalVo">
54
     <sql id="selectCmcProcureApprovalVo">
25
-        select procure_apply_id, apply_reason, applier, apply_dept, apply_time, manager_user_id, manager_comment, manager_time, zjl_user_id, zjl_comment, zjl_time, plan_user_id, plan_time, plan_comment from cmc_procure_approval
55
+        select pa.procure_apply_id, pa.apply_reason, pa.applier, u.nick_name as applier_nick_name, pa.apply_dept, d.dept_name, pa.apply_time,
56
+               pa.manager_user_id, u1.nick_name as manager_nick_name, pa.manager_comment, pa.manager_time, pa.zjl_user_id, u2.nick_name as zjl_nick_name,
57
+               pa.zjl_comment, pa.zjl_time, pa.plan_user_id, u3.nick_name as plan_nick_name, pa.plan_time, pa.plan_comment from cmc_procure_approval as pa
58
+        left join sys_user as u on u.user_id = pa.applier
59
+        left join sys_user as u1 on u1.user_id = pa.manager_user_id
60
+        left join sys_user as u2 on u2.user_id = pa.zjl_user_id
61
+        left join sys_user as u3 on u3.user_id = pa.plan_user_id
62
+        left join sys_dept as d on d.dept_id = pa.apply_dept
26
     </sql>
63
     </sql>
27
 
64
 
28
     <select id="selectCmcProcureApprovalList" parameterType="CmcProcureApproval" resultMap="CmcProcureApprovalResult">
65
     <select id="selectCmcProcureApprovalList" parameterType="CmcProcureApproval" resultMap="CmcProcureApprovalResult">
29
         <include refid="selectCmcProcureApprovalVo"/>
66
         <include refid="selectCmcProcureApprovalVo"/>
30
         <where>  
67
         <where>  
31
-            <if test="applyReason != null  and applyReason != ''"> and apply_reason = #{applyReason}</if>
32
-            <if test="applier != null "> and applier = #{applier}</if>
33
-            <if test="applyDept != null "> and apply_dept = #{applyDept}</if>
34
-            <if test="applyTime != null "> and apply_time = #{applyTime}</if>
35
-            <if test="managerUserId != null "> and manager_user_id = #{managerUserId}</if>
36
-            <if test="managerComment != null  and managerComment != ''"> and manager_comment = #{managerComment}</if>
37
-            <if test="managerTime != null "> and manager_time = #{managerTime}</if>
38
-            <if test="zjlUserId != null "> and zjl_user_id = #{zjlUserId}</if>
39
-            <if test="zjlComment != null  and zjlComment != ''"> and zjl_comment = #{zjlComment}</if>
40
-            <if test="zjlTime != null "> and zjl_time = #{zjlTime}</if>
41
-            <if test="planUserId != null "> and plan_user_id = #{planUserId}</if>
42
-            <if test="planTime != null "> and plan_time = #{planTime}</if>
43
-            <if test="planComment != null  and planComment != ''"> and plan_comment = #{planComment}</if>
68
+            <if test="applyReason != null  and applyReason != ''"> and pa.apply_reason = #{applyReason}</if>
69
+            <if test="applier != null "> and pa.applier = #{applier}</if>
70
+            <if test="applyDept != null "> and pa.apply_dept = #{applyDept}</if>
71
+            <if test="applyTime != null "> and pa.apply_time = #{applyTime}</if>
72
+            <if test="managerUserId != null "> and pa.manager_user_id = #{managerUserId}</if>
73
+            <if test="managerComment != null  and managerComment != ''"> and pa.manager_comment = #{managerComment}</if>
74
+            <if test="managerTime != null "> and pa.manager_time = #{managerTime}</if>
75
+            <if test="zjlUserId != null "> and pa.zjl_user_id = #{zjlUserId}</if>
76
+            <if test="zjlComment != null  and zjlComment != ''"> and pa.zjl_comment = #{zjlComment}</if>
77
+            <if test="zjlTime != null "> and pa.zjl_time = #{zjlTime}</if>
78
+            <if test="planUserId != null "> and pa.plan_user_id = #{planUserId}</if>
79
+            <if test="planTime != null "> and pa.plan_time = #{planTime}</if>
80
+            <if test="planComment != null  and planComment != ''"> and pa.plan_comment = #{planComment}</if>
44
         </where>
81
         </where>
45
     </select>
82
     </select>
46
     
83
     
47
     <select id="selectCmcProcureApprovalByProcureApplyId" parameterType="String" resultMap="CmcProcureApprovalResult">
84
     <select id="selectCmcProcureApprovalByProcureApplyId" parameterType="String" resultMap="CmcProcureApprovalResult">
48
         <include refid="selectCmcProcureApprovalVo"/>
85
         <include refid="selectCmcProcureApprovalVo"/>
49
-        where procure_apply_id = #{procureApplyId}
86
+        where pa.procure_apply_id = #{procureApplyId}
50
     </select>
87
     </select>
51
         
88
         
52
     <insert id="insertCmcProcureApproval" parameterType="CmcProcureApproval">
89
     <insert id="insertCmcProcureApproval" parameterType="CmcProcureApproval">

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

95
     </resultMap>
95
     </resultMap>
96
 
96
 
97
     <sql id="selectCmcProjectVo">
97
     <sql id="selectCmcProjectVo">
98
-        select p.project_id, p.project_number, p.project_name, p.project_leader, u.nick_name as leader_nick_name, p.is_finished, p.project_source, p.party_a_id, pa.party_a_name, p.contact_person, p.telephone,
98
+        select distinct(p.project_id), p.project_number, p.project_name, p.project_leader, u.nick_name as leader_nick_name, p.is_finished, p.project_source, p.party_a_id, pa.party_a_name, p.contact_person, p.telephone,
99
                p.project_type, p.project_level, p.project_registrant, u1.nick_name as registrant_nick_name, p.undertaking_dept, p.project_planner, p.site_leader, p.organize_document, p.organize_time,
99
                p.project_type, p.project_level, p.project_registrant, u1.nick_name as registrant_nick_name, p.undertaking_dept, p.project_planner, p.site_leader, p.organize_document, p.organize_time,
100
                p.register_time, p.plan_time, p.entry_time, p.exit_time, p.remark, tp.technical_director, u2.nick_name as director_nick_name, tp.quality_inspector, p.project_kml, p.project_cp, p.kml_lng, p.kml_lat,
100
                p.register_time, p.plan_time, p.entry_time, p.exit_time, p.remark, tp.technical_director, u2.nick_name as director_nick_name, tp.quality_inspector, p.project_kml, p.project_cp, p.kml_lng, p.kml_lat,
101
                p.cars, p.drivers, p.devices, p.participates, p.task_document, p.project_request, tp.technical_designer, u3.nick_name as designer_nick_name, u4.nick_name as planner_nick_name,
101
                p.cars, p.drivers, p.devices, p.participates, p.task_document, p.project_request, tp.technical_designer, u3.nick_name as designer_nick_name, u4.nick_name as planner_nick_name,

+ 4
- 4
oa-ui/src/views/flowable/form/outsource/outsourceForm.vue 查看文件

1
 <!--
1
 <!--
2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-09-20 16:09:07
3
  * @Date: 2024-09-20 16:09:07
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-09-23 16:22:14
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-09-24 10:38:33
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
49
             </el-descriptions>
49
             </el-descriptions>
50
           </el-form-item>
50
           </el-form-item>
51
           <el-form-item label="合作单位:" prop="partnerId">
51
           <el-form-item label="合作单位:" prop="partnerId">
52
-            <el-tag class="mr10" v-for="item in partnerList" v-if="partnerList.length != 0">
52
+            <el-tag class="mr10" v-for="item in partnerList" :key="item.partnerId" v-if="partnerList.length != 0">
53
               {{ item.partnerName }}
53
               {{ item.partnerName }}
54
             </el-tag>
54
             </el-tag>
55
             <el-button icon="el-icon-plus" type="primary" @click="partOpen = true" size="mini"
55
             <el-button icon="el-icon-plus" type="primary" @click="partOpen = true" size="mini"
202
       })
202
       })
203
     },
203
     },
204
     async saves() {
204
     async saves() {
205
-      if (this.formTotal) {
205
+      if (this.formTotal != 0) {
206
         if (this.taskName == '分管审核') {
206
         if (this.taskName == '分管审核') {
207
           this.form.managerUserId = this.$refs.fgRef.localSignatureUserId;
207
           this.form.managerUserId = this.$refs.fgRef.localSignatureUserId;
208
           this.form.managerTime = this.$refs.fgRef.loaclSignTime;
208
           this.form.managerTime = this.$refs.fgRef.loaclSignTime;

+ 20
- 4
oa-ui/src/views/flowable/form/procure/procureForm.vue 查看文件

1
 <!--
1
 <!--
2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-09-19 13:45:43
3
  * @Date: 2024-09-19 13:45:43
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-09-23 14:27:46
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-09-24 11:32:36
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
34
           <el-form-item label="采购计划表:">
34
           <el-form-item label="采购计划表:">
35
             <plan ref="planRef" :procureApplyId="form.procureApplyId" :taskName="taskName"></plan>
35
             <plan ref="planRef" :procureApplyId="form.procureApplyId" :taskName="taskName"></plan>
36
           </el-form-item>
36
           </el-form-item>
37
+          <el-form-item label="综合事务部意见:" prop="planComment" label-width="130px">
38
+            <el-input type="textarea" v-model="form.planComment" :autosize="{ minRows: 4 }"
39
+              :disabled="taskName != '编制计划'"></el-input>
40
+            <auditor-row ref="zhRef" :isCurrent="taskName == '编制计划'"
41
+              :signature="form.planUserId ? form.planUserId : null"
42
+              :signTime="form.planTime"></auditor-row>
43
+          </el-form-item>
37
           <el-form-item label="分管审核意见:" prop="managerComment" label-width="130px">
44
           <el-form-item label="分管审核意见:" prop="managerComment" label-width="130px">
38
             <el-input type="textarea" v-model="form.managerComment" :autosize="{ minRows: 4 }"
45
             <el-input type="textarea" v-model="form.managerComment" :autosize="{ minRows: 4 }"
39
               :disabled="taskName != '分管审核'"></el-input>
46
               :disabled="taskName != '分管审核'"></el-input>
148
           this.form.applier = this.$store.getters.userId;
155
           this.form.applier = this.$store.getters.userId;
149
           this.form.applyDept = this.$store.getters.deptId;
156
           this.form.applyDept = this.$store.getters.deptId;
150
           this.form.applyTime = parseTime(new Date(), "{y}-{m}-{d}")
157
           this.form.applyTime = parseTime(new Date(), "{y}-{m}-{d}")
158
+        } else if (this.taskName == '编制计划') {
159
+          this.rules = {
160
+            planComment: [
161
+              { required: true, message: '请输入综合事务部意见', trigger: 'blur' }
162
+            ]
163
+          }
151
         } else if (this.taskName == '分管审核') {
164
         } else if (this.taskName == '分管审核') {
152
           this.rules = {
165
           this.rules = {
153
             managerComment: [
166
             managerComment: [
165
     },
178
     },
166
     // 保存表单
179
     // 保存表单
167
     async saves() {
180
     async saves() {
168
-      if (this.formTotal) {
169
-        if (this.taskName == '分管审核') {
181
+      if (this.formTotal != 0) {
182
+        if (this.taskName == '编制计划') {
183
+          this.form.planUserId = this.$refs.zhRef.localSignatureUserId;
184
+          this.form.planTime = this.$refs.zhRef.loaclSignTime;
185
+        } else if (this.taskName == '分管审核') {
170
           this.form.managerUserId = this.$refs.fgRef.localSignatureUserId;
186
           this.form.managerUserId = this.$refs.fgRef.localSignatureUserId;
171
           this.form.managerTime = this.$refs.fgRef.loaclSignTime;
187
           this.form.managerTime = this.$refs.fgRef.loaclSignTime;
172
         } else if (this.taskName == '总经理审批') {
188
         } else if (this.taskName == '总经理审批') {

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

1
 <!--
1
 <!--
2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-04-08 13:56:14
3
  * @Date: 2024-04-08 13:56:14
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-09-10 15:33:46
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-09-24 10:31:28
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
123
     },
123
     },
124
     confirm() {
124
     confirm() {
125
       this.form.projectId = this.taskForm.formId
125
       this.form.projectId = this.taskForm.formId
126
-      if (this.formTotal) {
126
+      if (this.formTotal != 0) {
127
         updateProjectComment(this.form)
127
         updateProjectComment(this.form)
128
       } else {
128
       } else {
129
         addProjectComment({ projectId: this.taskForm.formId, jyComment: this.form.jyComment })
129
         addProjectComment({ projectId: this.taskForm.formId, jyComment: this.form.jyComment })

+ 69
- 211
oa-ui/src/views/oa/outsource/index.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="app-container">
2
   <div class="app-container">
3
-    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4
-      <el-form-item label="委外说明" prop="applyReason">
5
-        <el-input
6
-          v-model="queryParams.applyReason"
7
-          placeholder="请输入委外说明"
8
-          clearable
9
-          @keyup.enter.native="handleQuery"
10
-        />
11
-      </el-form-item>
12
-      <el-form-item label="项目id" prop="projectId">
13
-        <el-input
14
-          v-model="queryParams.projectId"
15
-          placeholder="请输入项目id"
16
-          clearable
17
-          @keyup.enter.native="handleQuery"
18
-        />
19
-      </el-form-item>
20
-      <el-form-item label="合作单位id" prop="partnerId">
21
-        <el-input
22
-          v-model="queryParams.partnerId"
23
-          placeholder="请输入合作单位id"
24
-          clearable
25
-          @keyup.enter.native="handleQuery"
26
-        />
3
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">      
4
+      <el-form-item label="项目编号" prop="projectId">
5
+        <el-select v-model="queryParams.projectId" clearable filterable remote reserve-keyword placeholder="请输入项目编号"
6
+          :remote-method="remoteMethod" :loading="loading" style="width: 400px;">
7
+          <el-option v-for="project in projectList" :key="project.projectId"
8
+            :label="project.projectNumber + '-' + project.projectName" :value="project.projectId">
9
+          </el-option>
10
+        </el-select>
27
       </el-form-item>
11
       </el-form-item>
28
       <el-form-item label="申请人" prop="applier">
12
       <el-form-item label="申请人" prop="applier">
29
-        <el-input
30
-          v-model="queryParams.applier"
31
-          placeholder="请输入申请人"
32
-          clearable
33
-          @keyup.enter.native="handleQuery"
34
-        />
35
-      </el-form-item>
13
+        <el-select v-model="queryParams.applier" filterable clearable @change="handleQuery">
14
+          <el-option v-for="item in $store.state.user.userList" :key="item.userId" :label="item.nickName"
15
+            :value="item.userId">
16
+          </el-option>
17
+        </el-select>
18
+      </el-form-item>    
36
       <el-form-item label="申请部门" prop="applyDept">
19
       <el-form-item label="申请部门" prop="applyDept">
37
-        <el-input
38
-          v-model="queryParams.applyDept"
39
-          placeholder="请输入申请部门"
40
-          clearable
41
-          @keyup.enter.native="handleQuery"
42
-        />
43
-      </el-form-item>
44
-      <el-form-item label="申请时间" prop="applyTime">
45
-        <el-date-picker clearable
46
-          v-model="queryParams.applyTime"
47
-          type="date"
48
-          value-format="yyyy-MM-dd"
49
-          placeholder="请选择申请时间">
50
-        </el-date-picker>
51
-      </el-form-item>
52
-      <el-form-item label="分管审核人" prop="managerUserId">
53
-        <el-input
54
-          v-model="queryParams.managerUserId"
55
-          placeholder="请输入分管审核人"
56
-          clearable
57
-          @keyup.enter.native="handleQuery"
58
-        />
59
-      </el-form-item>
60
-      <el-form-item label="分管审核意见" prop="managerComment">
61
-        <el-input
62
-          v-model="queryParams.managerComment"
63
-          placeholder="请输入分管审核意见"
64
-          clearable
65
-          @keyup.enter.native="handleQuery"
66
-        />
67
-      </el-form-item>
68
-      <el-form-item label="分管审核时间" prop="managerTime">
69
-        <el-date-picker clearable
70
-          v-model="queryParams.managerTime"
71
-          type="date"
72
-          value-format="yyyy-MM-dd"
73
-          placeholder="请选择分管审核时间">
74
-        </el-date-picker>
75
-      </el-form-item>
76
-      <el-form-item label="总经理审批人" prop="zjlUserId">
77
-        <el-input
78
-          v-model="queryParams.zjlUserId"
79
-          placeholder="请输入总经理审批人"
80
-          clearable
81
-          @keyup.enter.native="handleQuery"
82
-        />
83
-      </el-form-item>
84
-      <el-form-item label="总经理审批意见" prop="zjlComment">
85
-        <el-input
86
-          v-model="queryParams.zjlComment"
87
-          placeholder="请输入总经理审批意见"
88
-          clearable
89
-          @keyup.enter.native="handleQuery"
90
-        />
91
-      </el-form-item>
92
-      <el-form-item label="总经理审批时间" prop="zjlTime">
93
-        <el-date-picker clearable
94
-          v-model="queryParams.zjlTime"
95
-          type="date"
96
-          value-format="yyyy-MM-dd"
97
-          placeholder="请选择总经理审批时间">
98
-        </el-date-picker>
99
-      </el-form-item>
20
+        <el-select v-model="queryParams.applyDept" filterable clearable @change="handleQuery">
21
+          <el-option v-for="item in $store.state.user.deptList" :key="item.deptId" :label="item.deptName"
22
+            :value="item.deptId">
23
+          </el-option>
24
+        </el-select>
25
+      </el-form-item>        
100
       <el-form-item>
26
       <el-form-item>
101
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
27
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
102
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
28
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
103
       </el-form-item>
29
       </el-form-item>
104
     </el-form>
30
     </el-form>
105
 
31
 
106
-    <el-row :gutter="10" class="mb8">
107
-      <el-col :span="1.5">
108
-        <el-button
109
-          type="primary"
110
-          plain
111
-          icon="el-icon-plus"
112
-          size="mini"
113
-          @click="handleAdd"
114
-          v-hasPermi="['oa:outsource:add']"
115
-        >新增</el-button>
116
-      </el-col>
117
-      <el-col :span="1.5">
118
-        <el-button
119
-          type="success"
120
-          plain
121
-          icon="el-icon-edit"
122
-          size="mini"
123
-          :disabled="single"
124
-          @click="handleUpdate"
125
-          v-hasPermi="['oa:outsource:edit']"
126
-        >修改</el-button>
127
-      </el-col>
128
-      <el-col :span="1.5">
129
-        <el-button
130
-          type="danger"
131
-          plain
132
-          icon="el-icon-delete"
133
-          size="mini"
134
-          :disabled="multiple"
135
-          @click="handleDelete"
136
-          v-hasPermi="['oa:outsource:remove']"
137
-        >删除</el-button>
138
-      </el-col>
32
+    <el-row :gutter="10" class="mb8">      
139
       <el-col :span="1.5">
33
       <el-col :span="1.5">
140
         <el-button
34
         <el-button
141
           type="warning"
35
           type="warning"
151
 
45
 
152
     <el-table v-loading="loading" :data="outsourceList" @selection-change="handleSelectionChange">
46
     <el-table v-loading="loading" :data="outsourceList" @selection-change="handleSelectionChange">
153
       <el-table-column type="selection" width="55" align="center" />
47
       <el-table-column type="selection" width="55" align="center" />
154
-      <el-table-column label="委外id" align="center" prop="outsoureId" />
155
-      <el-table-column label="委外说明" align="center" prop="applyReason" />
156
-      <el-table-column label="项目id" align="center" prop="projectId" />
157
-      <el-table-column label="合作单位id" align="center" prop="partnerId" />
158
-      <el-table-column label="申请人" align="center" prop="applier" />
159
-      <el-table-column label="申请部门" align="center" prop="applyDept" />
48
+      <!-- <el-table-column label="委外id" align="center" prop="outsoureId" /> -->
49
+      <el-table-column label="委外说明" align="center" prop="applyReason" />      
50
+      <el-table-column label="项目编号" align="center" prop="project.projectNumber" />
51
+      <el-table-column label="项目名称" align="center" prop="project.projectName" width="200px" />
52
+      <el-table-column label="合作单位" align="center" prop="partnerName" />
53
+      <el-table-column label="申请人" align="center" prop="applier">
54
+        <template slot-scope="scope">
55
+          {{ getUserName(scope.row.applier) }}
56
+        </template>
57
+      </el-table-column>
58
+      <el-table-column label="申请部门" align="center" prop="applyDept" >
59
+        <template slot-scope="scope">
60
+          {{ getDeptName(scope.row.applyDept) }}
61
+        </template>
62
+      </el-table-column>
160
       <el-table-column label="申请时间" align="center" prop="applyTime" width="180">
63
       <el-table-column label="申请时间" align="center" prop="applyTime" width="180">
161
         <template slot-scope="scope">
64
         <template slot-scope="scope">
162
           <span>{{ parseTime(scope.row.applyTime, '{y}-{m}-{d}') }}</span>
65
           <span>{{ parseTime(scope.row.applyTime, '{y}-{m}-{d}') }}</span>
163
         </template>
66
         </template>
164
       </el-table-column>
67
       </el-table-column>
165
-      <el-table-column label="分管审核人" align="center" prop="managerUserId" />
68
+      <!-- <el-table-column label="分管审核人" align="center" prop="managerUserId" /> -->
166
       <el-table-column label="分管审核意见" align="center" prop="managerComment" />
69
       <el-table-column label="分管审核意见" align="center" prop="managerComment" />
167
-      <el-table-column label="分管审核时间" align="center" prop="managerTime" width="180">
70
+      <!-- <el-table-column label="分管审核时间" align="center" prop="managerTime" width="180">
168
         <template slot-scope="scope">
71
         <template slot-scope="scope">
169
           <span>{{ parseTime(scope.row.managerTime, '{y}-{m}-{d}') }}</span>
72
           <span>{{ parseTime(scope.row.managerTime, '{y}-{m}-{d}') }}</span>
170
         </template>
73
         </template>
171
       </el-table-column>
74
       </el-table-column>
172
-      <el-table-column label="总经理审批人" align="center" prop="zjlUserId" />
75
+      <el-table-column label="总经理审批人" align="center" prop="zjlUserId" /> -->
173
       <el-table-column label="总经理审批意见" align="center" prop="zjlComment" />
76
       <el-table-column label="总经理审批意见" align="center" prop="zjlComment" />
174
-      <el-table-column label="总经理审批时间" align="center" prop="zjlTime" width="180">
77
+      <!-- <el-table-column label="总经理审批时间" align="center" prop="zjlTime" width="180">
175
         <template slot-scope="scope">
78
         <template slot-scope="scope">
176
           <span>{{ parseTime(scope.row.zjlTime, '{y}-{m}-{d}') }}</span>
79
           <span>{{ parseTime(scope.row.zjlTime, '{y}-{m}-{d}') }}</span>
177
         </template>
80
         </template>
178
-      </el-table-column>
81
+      </el-table-column> -->
179
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
82
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
180
         <template slot-scope="scope">
83
         <template slot-scope="scope">
181
           <el-button
84
           <el-button
182
             size="mini"
85
             size="mini"
183
             type="text"
86
             type="text"
184
-            icon="el-icon-edit"
185
-            @click="handleUpdate(scope.row)"
186
-            v-hasPermi="['oa:outsource:edit']"
187
-          >修改</el-button>
188
-          <el-button
189
-            size="mini"
190
-            type="text"
191
-            icon="el-icon-delete"
192
-            @click="handleDelete(scope.row)"
193
-            v-hasPermi="['oa:outsource:remove']"
194
-          >删除</el-button>
87
+            icon="el-icon-view"
88
+            @click="handleView(scope.row)"
89
+            v-hasPermi="['oa:outsource:query']"
90
+          >查看</el-button>
195
         </template>
91
         </template>
196
       </el-table-column>
92
       </el-table-column>
197
     </el-table>
93
     </el-table>
203
       :limit.sync="queryParams.pageSize"
99
       :limit.sync="queryParams.pageSize"
204
       @pagination="getList"
100
       @pagination="getList"
205
     />
101
     />
206
-
207
-    <!-- 添加或修改项目委外对话框 -->
208
-    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
209
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
210
-        <el-form-item label="委外说明" prop="applyReason">
211
-          <el-input v-model="form.applyReason" placeholder="请输入委外说明" />
212
-        </el-form-item>
213
-        <el-form-item label="项目id" prop="projectId">
214
-          <el-input v-model="form.projectId" placeholder="请输入项目id" />
215
-        </el-form-item>
216
-        <el-form-item label="合作单位id" prop="partnerId">
217
-          <el-input v-model="form.partnerId" placeholder="请输入合作单位id" />
218
-        </el-form-item>
219
-        <el-form-item label="申请人" prop="applier">
220
-          <el-input v-model="form.applier" placeholder="请输入申请人" />
221
-        </el-form-item>
222
-        <el-form-item label="申请部门" prop="applyDept">
223
-          <el-input v-model="form.applyDept" placeholder="请输入申请部门" />
224
-        </el-form-item>
225
-        <el-form-item label="申请时间" prop="applyTime">
226
-          <el-date-picker clearable
227
-            v-model="form.applyTime"
228
-            type="date"
229
-            value-format="yyyy-MM-dd"
230
-            placeholder="请选择申请时间">
231
-          </el-date-picker>
232
-        </el-form-item>
233
-        <el-form-item label="分管审核人" prop="managerUserId">
234
-          <el-input v-model="form.managerUserId" placeholder="请输入分管审核人" />
235
-        </el-form-item>
236
-        <el-form-item label="分管审核意见" prop="managerComment">
237
-          <el-input v-model="form.managerComment" placeholder="请输入分管审核意见" />
238
-        </el-form-item>
239
-        <el-form-item label="分管审核时间" prop="managerTime">
240
-          <el-date-picker clearable
241
-            v-model="form.managerTime"
242
-            type="date"
243
-            value-format="yyyy-MM-dd"
244
-            placeholder="请选择分管审核时间">
245
-          </el-date-picker>
246
-        </el-form-item>
247
-        <el-form-item label="总经理审批人" prop="zjlUserId">
248
-          <el-input v-model="form.zjlUserId" placeholder="请输入总经理审批人" />
249
-        </el-form-item>
250
-        <el-form-item label="总经理审批意见" prop="zjlComment">
251
-          <el-input v-model="form.zjlComment" placeholder="请输入总经理审批意见" />
252
-        </el-form-item>
253
-        <el-form-item label="总经理审批时间" prop="zjlTime">
254
-          <el-date-picker clearable
255
-            v-model="form.zjlTime"
256
-            type="date"
257
-            value-format="yyyy-MM-dd"
258
-            placeholder="请选择总经理审批时间">
259
-          </el-date-picker>
260
-        </el-form-item>
261
-      </el-form>
262
-      <div slot="footer" class="dialog-footer">
263
-        <el-button type="primary" @click="submitForm">确 定</el-button>
264
-        <el-button @click="cancel">取 消</el-button>
265
-      </div>
102
+    <el-dialog :title="title" :visible.sync="open" width="65%" append-to-body>
103
+      <outsource-form :taskForm="taskForm" :taskName="''" :isFlow="false"></outsource-form>
266
     </el-dialog>
104
     </el-dialog>
267
   </div>
105
   </div>
268
 </template>
106
 </template>
269
 
107
 
270
 <script>
108
 <script>
271
 import { listOutsource, getOutsource, delOutsource, addOutsource, updateOutsource } from "@/api/oa/outsource/outsource";
109
 import { listOutsource, getOutsource, delOutsource, addOutsource, updateOutsource } from "@/api/oa/outsource/outsource";
110
+import outsourceForm from '../../flowable/form/outsource/outsourceForm.vue';
111
+import { listProject } from '@/api/oa/project/project';
272
 
112
 
273
 export default {
113
 export default {
114
+  components: { outsourceForm },
274
   name: "Outsource",
115
   name: "Outsource",
275
   data() {
116
   data() {
276
     return {
117
     return {
313
       form: {},
154
       form: {},
314
       // 表单校验
155
       // 表单校验
315
       rules: {
156
       rules: {
316
-      }
157
+      },
158
+      taskForm: {
159
+        formId: ''
160
+      },      
161
+      projectList: []
317
     };
162
     };
318
   },
163
   },
319
   created() {
164
   created() {
385
         this.title = "修改项目委外";
230
         this.title = "修改项目委外";
386
       });
231
       });
387
     },
232
     },
233
+    handleView(row) {
234
+      this.open = true;
235
+      this.taskForm.formId = row.outsoureId;
236
+    },
388
     /** 提交按钮 */
237
     /** 提交按钮 */
389
     submitForm() {
238
     submitForm() {
390
       this.$refs["form"].validate(valid => {
239
       this.$refs["form"].validate(valid => {
420
       this.download('oa/outsource/export', {
269
       this.download('oa/outsource/export', {
421
         ...this.queryParams
270
         ...this.queryParams
422
       }, `outsource_${new Date().getTime()}.xlsx`)
271
       }, `outsource_${new Date().getTime()}.xlsx`)
423
-    }
272
+    },    
273
+    remoteMethod(val) {
274
+      listProject({
275
+        pageNum: 1,
276
+        pageSize: 20,
277
+        projectNumber: val
278
+      }).then(res => {
279
+        this.projectList = res.rows;
280
+      })
281
+    },
424
   }
282
   }
425
 };
283
 };
426
 </script>
284
 </script>

+ 53
- 200
oa-ui/src/views/oa/procure/approval.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="app-container">
2
   <div class="app-container">
3
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
3
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4
-      <el-form-item label="购置说明" prop="applyReason">
5
-        <el-input
6
-          v-model="queryParams.applyReason"
7
-          placeholder="请输入购置说明"
8
-          clearable
9
-          @keyup.enter.native="handleQuery"
10
-        />
11
-      </el-form-item>
12
       <el-form-item label="申请人" prop="applier">
4
       <el-form-item label="申请人" prop="applier">
13
-        <el-input
14
-          v-model="queryParams.applier"
15
-          placeholder="请输入申请人"
16
-          clearable
17
-          @keyup.enter.native="handleQuery"
18
-        />
19
-      </el-form-item>
5
+        <el-select v-model="queryParams.applier" filterable clearable @change="handleQuery">
6
+          <el-option v-for="item in $store.state.user.userList" :key="item.userId" :label="item.nickName"
7
+            :value="item.userId">
8
+          </el-option>
9
+        </el-select>
10
+      </el-form-item>    
20
       <el-form-item label="申请部门" prop="applyDept">
11
       <el-form-item label="申请部门" prop="applyDept">
21
-        <el-input
22
-          v-model="queryParams.applyDept"
23
-          placeholder="请输入申请部门"
24
-          clearable
25
-          @keyup.enter.native="handleQuery"
26
-        />
27
-      </el-form-item>
28
-      <el-form-item label="分管审核人" prop="managerUserId">
29
-        <el-input
30
-          v-model="queryParams.managerUserId"
31
-          placeholder="请输入分管审核人"
32
-          clearable
33
-          @keyup.enter.native="handleQuery"
34
-        />
35
-      </el-form-item>
36
-      <el-form-item label="分管审核意见" prop="managerComment">
37
-        <el-input
38
-          v-model="queryParams.managerComment"
39
-          placeholder="请输入分管审核意见"
40
-          clearable
41
-          @keyup.enter.native="handleQuery"
42
-        />
43
-      </el-form-item>
44
-      <el-form-item label="分管审核时间" prop="managerTime">
45
-        <el-date-picker clearable
46
-          v-model="queryParams.managerTime"
47
-          type="date"
48
-          value-format="yyyy-MM-dd"
49
-          placeholder="请选择分管审核时间">
50
-        </el-date-picker>
51
-      </el-form-item>
52
-      <el-form-item label="总经理审批人" prop="zjlUserId">
53
-        <el-input
54
-          v-model="queryParams.zjlUserId"
55
-          placeholder="请输入总经理审批人"
56
-          clearable
57
-          @keyup.enter.native="handleQuery"
58
-        />
59
-      </el-form-item>
60
-      <el-form-item label="总经理审批意见" prop="zjlComment">
61
-        <el-input
62
-          v-model="queryParams.zjlComment"
63
-          placeholder="请输入总经理审批意见"
64
-          clearable
65
-          @keyup.enter.native="handleQuery"
66
-        />
67
-      </el-form-item>
68
-      <el-form-item label="总经理审批时间" prop="zjlTime">
69
-        <el-date-picker clearable
70
-          v-model="queryParams.zjlTime"
71
-          type="date"
72
-          value-format="yyyy-MM-dd"
73
-          placeholder="请选择总经理审批时间">
74
-        </el-date-picker>
75
-      </el-form-item>
76
-      <el-form-item label="计划编制人" prop="planUserId">
77
-        <el-input
78
-          v-model="queryParams.planUserId"
79
-          placeholder="请输入计划编制人"
80
-          clearable
81
-          @keyup.enter.native="handleQuery"
82
-        />
83
-      </el-form-item>
84
-      <el-form-item label="计划编制时间" prop="planTime">
85
-        <el-date-picker clearable
86
-          v-model="queryParams.planTime"
87
-          type="date"
88
-          value-format="yyyy-MM-dd"
89
-          placeholder="请选择计划编制时间">
90
-        </el-date-picker>
91
-      </el-form-item>
92
-      <el-form-item label="计划编制意见" prop="planComment">
93
-        <el-input
94
-          v-model="queryParams.planComment"
95
-          placeholder="请输入计划编制意见"
96
-          clearable
97
-          @keyup.enter.native="handleQuery"
98
-        />
99
-      </el-form-item>
12
+          <el-select v-model="queryParams.applyDept" filterable clearable @change="handleQuery">
13
+            <el-option v-for="item in $store.state.user.deptList" :key="item.deptId" :label="item.deptName"
14
+              :value="item.deptId">
15
+            </el-option>
16
+          </el-select>
17
+        </el-form-item>  
100
       <el-form-item>
18
       <el-form-item>
101
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
19
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
102
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
20
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
104
     </el-form>
22
     </el-form>
105
 
23
 
106
     <el-row :gutter="10" class="mb8">
24
     <el-row :gutter="10" class="mb8">
107
-      <el-col :span="1.5">
108
-        <el-button
109
-          type="primary"
110
-          plain
111
-          icon="el-icon-plus"
112
-          size="mini"
113
-          @click="handleAdd"
114
-          v-hasPermi="['oa:procureApproval:add']"
115
-        >新增</el-button>
116
-      </el-col>
117
-      <el-col :span="1.5">
118
-        <el-button
119
-          type="success"
120
-          plain
121
-          icon="el-icon-edit"
122
-          size="mini"
123
-          :disabled="single"
124
-          @click="handleUpdate"
125
-          v-hasPermi="['oa:procureApproval:edit']"
126
-        >修改</el-button>
127
-      </el-col>
128
-      <el-col :span="1.5">
129
-        <el-button
130
-          type="danger"
131
-          plain
132
-          icon="el-icon-delete"
133
-          size="mini"
134
-          :disabled="multiple"
135
-          @click="handleDelete"
136
-          v-hasPermi="['oa:procureApproval:remove']"
137
-        >删除</el-button>
138
-      </el-col>
139
       <el-col :span="1.5">
25
       <el-col :span="1.5">
140
         <el-button
26
         <el-button
141
           type="warning"
27
           type="warning"
151
 
37
 
152
     <el-table v-loading="loading" :data="procureApprovalList" @selection-change="handleSelectionChange">
38
     <el-table v-loading="loading" :data="procureApprovalList" @selection-change="handleSelectionChange">
153
       <el-table-column type="selection" width="55" align="center" />
39
       <el-table-column type="selection" width="55" align="center" />
154
-      <el-table-column label="采购申请id" align="center" prop="procureApplyId" />
40
+      <!-- <el-table-column label="采购申请id" align="center" prop="procureApplyId" /> -->
155
       <el-table-column label="购置说明" align="center" prop="applyReason" />
41
       <el-table-column label="购置说明" align="center" prop="applyReason" />
156
-      <el-table-column label="申请人" align="center" prop="applier" />
157
-      <el-table-column label="申请部门" align="center" prop="applyDept" />
158
-      <el-table-column label="分管审核人" align="center" prop="managerUserId" />
42
+      <el-table-column label="申请人" align="center" prop="applier">
43
+        <template slot-scope="scope">
44
+          {{ getUserName(scope.row.applier) }}
45
+        </template>
46
+      </el-table-column>
47
+      <el-table-column label="申请部门" align="center" prop="applyDept" >
48
+        <template slot-scope="scope">
49
+          {{ getDeptName(scope.row.applyDept) }}
50
+        </template>
51
+      </el-table-column>
52
+      <!-- <el-table-column label="分管审核人" align="center" prop="managerUserId" /> -->
159
       <el-table-column label="分管审核意见" align="center" prop="managerComment" />
53
       <el-table-column label="分管审核意见" align="center" prop="managerComment" />
160
-      <el-table-column label="分管审核时间" align="center" prop="managerTime" width="180">
54
+      <!-- <el-table-column label="分管审核时间" align="center" prop="managerTime" width="180">
161
         <template slot-scope="scope">
55
         <template slot-scope="scope">
162
           <span>{{ parseTime(scope.row.managerTime, '{y}-{m}-{d}') }}</span>
56
           <span>{{ parseTime(scope.row.managerTime, '{y}-{m}-{d}') }}</span>
163
         </template>
57
         </template>
164
-      </el-table-column>
165
-      <el-table-column label="总经理审批人" align="center" prop="zjlUserId" />
58
+      </el-table-column> -->
59
+      <!-- <el-table-column label="总经理审批人" align="center" prop="zjlUserId" /> -->
166
       <el-table-column label="总经理审批意见" align="center" prop="zjlComment" />
60
       <el-table-column label="总经理审批意见" align="center" prop="zjlComment" />
167
-      <el-table-column label="总经理审批时间" align="center" prop="zjlTime" width="180">
61
+      <!-- <el-table-column label="总经理审批时间" align="center" prop="zjlTime" width="180">
168
         <template slot-scope="scope">
62
         <template slot-scope="scope">
169
           <span>{{ parseTime(scope.row.zjlTime, '{y}-{m}-{d}') }}</span>
63
           <span>{{ parseTime(scope.row.zjlTime, '{y}-{m}-{d}') }}</span>
170
         </template>
64
         </template>
171
-      </el-table-column>
172
-      <el-table-column label="计划编制人" align="center" prop="planUserId" />
65
+      </el-table-column> -->
66
+      <!-- <el-table-column label="计划编制人" align="center" prop="planUserId" /> -->
173
       <el-table-column label="计划编制时间" align="center" prop="planTime" width="180">
67
       <el-table-column label="计划编制时间" align="center" prop="planTime" width="180">
174
         <template slot-scope="scope">
68
         <template slot-scope="scope">
175
           <span>{{ parseTime(scope.row.planTime, '{y}-{m}-{d}') }}</span>
69
           <span>{{ parseTime(scope.row.planTime, '{y}-{m}-{d}') }}</span>
176
         </template>
70
         </template>
177
       </el-table-column>
71
       </el-table-column>
178
-      <el-table-column label="计划编制意见" align="center" prop="planComment" />
72
+      <!-- <el-table-column label="计划编制意见" align="center" prop="planComment" /> -->
179
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
73
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
180
         <template slot-scope="scope">
74
         <template slot-scope="scope">
181
-          <el-button
75
+          <!-- <el-button
182
             size="mini"
76
             size="mini"
183
             type="text"
77
             type="text"
184
             icon="el-icon-edit"
78
             icon="el-icon-edit"
191
             icon="el-icon-delete"
85
             icon="el-icon-delete"
192
             @click="handleDelete(scope.row)"
86
             @click="handleDelete(scope.row)"
193
             v-hasPermi="['oa:procureApproval:remove']"
87
             v-hasPermi="['oa:procureApproval:remove']"
194
-          >删除</el-button>
88
+          >删除</el-button> -->
89
+          <el-button
90
+            size="mini"
91
+            type="text"
92
+            icon="el-icon-view"
93
+            @click="handleView(scope.row)"
94
+            v-hasPermi="['oa:procureApproval:query']"
95
+          >查看</el-button>
195
         </template>
96
         </template>
196
       </el-table-column>
97
       </el-table-column>
197
     </el-table>
98
     </el-table>
198
-    
99
+
199
     <pagination
100
     <pagination
200
       v-show="total>0"
101
       v-show="total>0"
201
       :total="total"
102
       :total="total"
203
       :limit.sync="queryParams.pageSize"
104
       :limit.sync="queryParams.pageSize"
204
       @pagination="getList"
105
       @pagination="getList"
205
     />
106
     />
206
-
207
-    <!-- 添加或修改采购审批对话框 -->
208
-    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
209
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
210
-        <el-form-item label="购置说明" prop="applyReason">
211
-          <el-input v-model="form.applyReason" placeholder="请输入购置说明" />
212
-        </el-form-item>
213
-        <el-form-item label="申请人" prop="applier">
214
-          <el-input v-model="form.applier" placeholder="请输入申请人" />
215
-        </el-form-item>
216
-        <el-form-item label="申请部门" prop="applyDept">
217
-          <el-input v-model="form.applyDept" placeholder="请输入申请部门" />
218
-        </el-form-item>
219
-        <el-form-item label="分管审核人" prop="managerUserId">
220
-          <el-input v-model="form.managerUserId" placeholder="请输入分管审核人" />
221
-        </el-form-item>
222
-        <el-form-item label="分管审核意见" prop="managerComment">
223
-          <el-input v-model="form.managerComment" placeholder="请输入分管审核意见" />
224
-        </el-form-item>
225
-        <el-form-item label="分管审核时间" prop="managerTime">
226
-          <el-date-picker clearable
227
-            v-model="form.managerTime"
228
-            type="date"
229
-            value-format="yyyy-MM-dd"
230
-            placeholder="请选择分管审核时间">
231
-          </el-date-picker>
232
-        </el-form-item>
233
-        <el-form-item label="总经理审批人" prop="zjlUserId">
234
-          <el-input v-model="form.zjlUserId" placeholder="请输入总经理审批人" />
235
-        </el-form-item>
236
-        <el-form-item label="总经理审批意见" prop="zjlComment">
237
-          <el-input v-model="form.zjlComment" placeholder="请输入总经理审批意见" />
238
-        </el-form-item>
239
-        <el-form-item label="总经理审批时间" prop="zjlTime">
240
-          <el-date-picker clearable
241
-            v-model="form.zjlTime"
242
-            type="date"
243
-            value-format="yyyy-MM-dd"
244
-            placeholder="请选择总经理审批时间">
245
-          </el-date-picker>
246
-        </el-form-item>
247
-        <el-form-item label="计划编制人" prop="planUserId">
248
-          <el-input v-model="form.planUserId" placeholder="请输入计划编制人" />
249
-        </el-form-item>
250
-        <el-form-item label="计划编制时间" prop="planTime">
251
-          <el-date-picker clearable
252
-            v-model="form.planTime"
253
-            type="date"
254
-            value-format="yyyy-MM-dd"
255
-            placeholder="请选择计划编制时间">
256
-          </el-date-picker>
257
-        </el-form-item>
258
-        <el-form-item label="计划编制意见" prop="planComment">
259
-          <el-input v-model="form.planComment" placeholder="请输入计划编制意见" />
260
-        </el-form-item>
261
-      </el-form>
262
-      <div slot="footer" class="dialog-footer">
263
-        <el-button type="primary" @click="submitForm">确 定</el-button>
264
-        <el-button @click="cancel">取 消</el-button>
265
-      </div>
107
+    
108
+    <el-dialog :title="title" :visible.sync="open" width="65%" append-to-body>
109
+      <procure-form :taskForm="taskForm" :taskName="''" :isFlow="false"></procure-form>
266
     </el-dialog>
110
     </el-dialog>
267
   </div>
111
   </div>
268
 </template>
112
 </template>
269
 
113
 
270
 <script>
114
 <script>
271
 import { listProcureApproval, getProcureApproval, delProcureApproval, addProcureApproval, updateProcureApproval } from "@/api/oa/procure/procureApproval";
115
 import { listProcureApproval, getProcureApproval, delProcureApproval, addProcureApproval, updateProcureApproval } from "@/api/oa/procure/procureApproval";
116
+import procureForm from '../../flowable/form/procure/procureForm.vue';
272
 
117
 
273
 export default {
118
 export default {
119
+  components: { procureForm },
274
   name: "ProcureApproval",
120
   name: "ProcureApproval",
275
   data() {
121
   data() {
276
     return {
122
     return {
313
       form: {},
159
       form: {},
314
       // 表单校验
160
       // 表单校验
315
       rules: {
161
       rules: {
162
+      },
163
+      taskForm: {
164
+        formId: ''
316
       }
165
       }
317
     };
166
     };
318
   },
167
   },
384
         this.open = true;
233
         this.open = true;
385
         this.title = "修改采购审批";
234
         this.title = "修改采购审批";
386
       });
235
       });
236
+    },    
237
+    handleView(row) {
238
+      this.open = true;
239
+      this.taskForm.formId = row.procureApplyId;
387
     },
240
     },
388
     /** 提交按钮 */
241
     /** 提交按钮 */
389
     submitForm() {
242
     submitForm() {

正在加载...
取消
保存