Commit 8492fae5 authored by Steven杜宇's avatar Steven杜宇

// 续期资料管理

parent 81cee8ff
...@@ -138,6 +138,9 @@ extension YHResignMaterialListVC: UITableViewDelegate, UITableViewDataSource { ...@@ -138,6 +138,9 @@ extension YHResignMaterialListVC: UITableViewDelegate, UITableViewDataSource {
let list = items[indexPath.section] let list = items[indexPath.section]
if 0 <= indexPath.row, indexPath.row < list.materials.count { if 0 <= indexPath.row, indexPath.row < list.materials.count {
let item = list.materials[indexPath.row] let item = list.materials[indexPath.row]
if item.status == YHMaterialStatus.unOpen.rawValue { // 未开始
return
}
if item.status == YHMaterialStatus.preUpload.rawValue { // 待上传 if item.status == YHMaterialStatus.preUpload.rawValue { // 待上传
self.showUploadSheetView(item) { self.showUploadSheetView(item) {
let vc = YHResignMaterialUploadVC() let vc = YHResignMaterialUploadVC()
...@@ -232,6 +235,14 @@ extension YHResignMaterialListVC { ...@@ -232,6 +235,14 @@ extension YHResignMaterialListVC {
func showUploadSheetView(_ material:YHMaterialModel, _ success: (()->())?) { func showUploadSheetView(_ material:YHMaterialModel, _ success: (()->())?) {
let sheetView = YHCertificateUploadSheetView.sheetView() let sheetView = YHCertificateUploadSheetView.sheetView()
sheetView.maxSelectImageCount = 9 sheetView.maxSelectImageCount = 9
sheetView.fileTypes = [ "public.image",
"com.adobe.pdf",
"com.microsoft.word.doc",
"org.openxmlformats.wordprocessingml.document",
"com.microsoft.powerpoint.ppt",
"org.openxmlformats.presentationml.presentation",
"org.openxmlformats.spreadsheetml.sheet",
"com.microsoft.excel.xls",]
sheetView.uploadFilesBlock = { sheetView.uploadFilesBlock = {
[weak self] fileUrl in [weak self] fileUrl in
guard let self = self else { return } guard let self = self else { return }
......
...@@ -134,6 +134,14 @@ class YHResignMaterialUploadVC: YHBaseViewController { ...@@ -134,6 +134,14 @@ class YHResignMaterialUploadVC: YHBaseViewController {
let sheetView = YHCertificateUploadSheetView.sheetView() let sheetView = YHCertificateUploadSheetView.sheetView()
sheetView.maxSelectImageCount = 99-items.count sheetView.maxSelectImageCount = 99-items.count
sheetView.fileTypes = [ "public.image",
"com.adobe.pdf",
"com.microsoft.word.doc",
"org.openxmlformats.wordprocessingml.document",
"com.microsoft.powerpoint.ppt",
"org.openxmlformats.presentationml.presentation",
"org.openxmlformats.spreadsheetml.sheet",
"com.microsoft.excel.xls",]
sheetView.uploadFilesBlock = { sheetView.uploadFilesBlock = {
[weak self] fileUrl in [weak self] fileUrl in
guard let self = self else { return } guard let self = self else { return }
......
...@@ -141,7 +141,7 @@ class YHResinMaterialManageContainerVC: YHBaseViewController { ...@@ -141,7 +141,7 @@ class YHResinMaterialManageContainerVC: YHBaseViewController {
} }
} }
self.titles = ["全部", self.titles = ["全部",
"上传(\(self.viewModel.preuploadGroup.getTotalCount()))", "上传(\(self.viewModel.preuploadGroup.getTotalCount()))",
"已驳回(\(self.viewModel.rejectedGroup.getTotalCount()))", "已驳回(\(self.viewModel.rejectedGroup.getTotalCount()))",
"审核中(\(self.viewModel.reviewGroup.getTotalCount()))", "审核中(\(self.viewModel.reviewGroup.getTotalCount()))",
"已完成(\(self.viewModel.finishGroup.getTotalCount()))",] "已完成(\(self.viewModel.finishGroup.getTotalCount()))",]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment