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

// 原则批

parent 7fdc1304
......@@ -195,20 +195,20 @@ extension YHPrincipleUploadListVC {
func checkMustItems() -> Bool {
// 赴港居留同意书
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: "请上传必要文件赴港居留同意书")
return false
}
// 申请人意见访问
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: "请上传必要文件申请人意见访问")
return false
}
// 其他证明条件
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: "请上传必要文件其他证明条件")
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