Commit d8587709 authored by Steven杜宇's avatar Steven杜宇

// 原则批

parent 7fdc1304
...@@ -195,20 +195,20 @@ extension YHPrincipleUploadListVC { ...@@ -195,20 +195,20 @@ extension YHPrincipleUploadListVC {
func checkMustItems() -> Bool { func checkMustItems() -> Bool {
// 赴港居留同意书 // 赴港居留同意书
let agreementModel = self.viewModel.uploadDetailModel.file_data.agreement let agreementModel = self.viewModel.uploadDetailModel.file_data.agreement
if agreementModel.isMust, agreementModel.content_url.count <= 0 { if agreementModel.isMust, agreementModel.id > 0, agreementModel.content_url.count <= 0 {
YHHUD.flash(message: "请上传必要文件赴港居留同意书") YHHUD.flash(message: "请上传必要文件赴港居留同意书")
return false return false
} }
// 申请人意见访问 // 申请人意见访问
let opinionModel = self.viewModel.uploadDetailModel.file_data.opinion let opinionModel = self.viewModel.uploadDetailModel.file_data.opinion
if opinionModel.isMust, opinionModel.content_url.count <= 0 { if opinionModel.isMust, opinionModel.id > 0, opinionModel.content_url.count <= 0 {
YHHUD.flash(message: "请上传必要文件申请人意见访问") YHHUD.flash(message: "请上传必要文件申请人意见访问")
return false return false
} }
// 其他证明条件 // 其他证明条件
let otherModel = self.viewModel.uploadDetailModel.file_data.opinion let otherModel = self.viewModel.uploadDetailModel.file_data.opinion
if otherModel.isMust, otherModel.content_url.count <= 0 { if otherModel.isMust, otherModel.id > 0, otherModel.content_url.count <= 0 {
YHHUD.flash(message: "请上传必要文件其他证明条件") YHHUD.flash(message: "请上传必要文件其他证明条件")
return false return false
} }
......
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