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

// 预约

parent 1d1ed3ec
...@@ -320,7 +320,7 @@ class YHResignAppointScheduleListViewController: YHBaseViewController { ...@@ -320,7 +320,7 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
func requestConfirmInHK(_ model: YHResignAppointGroup) { func requestConfirmInHK(_ model: YHResignAppointGroup) {
YHHUD.show(.progress(message: "提交中...")) YHHUD.show(.progress(message: "提交中..."))
self.viewModel.submitConfirmInHK(id: model.id) { self.viewModel.submitConfirmInHK(id: model.id, is_edit: model.is_edit) {
[weak self] success, error in [weak self] success, error in
YHHUD.hide() YHHUD.hide()
guard let self else { return } guard let self else { return }
......
...@@ -36,6 +36,7 @@ class YHResignAppointGroup: SmartCodable { ...@@ -36,6 +36,7 @@ class YHResignAppointGroup: SmartCodable {
var determine_hk_at: String = "" var determine_hk_at: String = ""
var actually_submit_at: String = "" var actually_submit_at: String = ""
var result_file_at: String = "" var result_file_at: String = ""
var is_edit: Int = 0
// 自定义 第几批 // 自定义 第几批
var batchIndex: Int = 0 var batchIndex: Int = 0
......
...@@ -112,8 +112,9 @@ class YHResignAppointViewModel: NSObject { ...@@ -112,8 +112,9 @@ class YHResignAppointViewModel: NSObject {
} }
// 点击确认在港 // 点击确认在港
func submitConfirmInHK(id: Int, callBack: @escaping (_ success: Bool,_ error: YHErrorModel?)->()) { func submitConfirmInHK(id: Int, is_edit: Int, callBack: @escaping (_ success: Bool,_ error: YHErrorModel?)->()) {
let params:[String : Any] = ["id" : id] let params:[String : Any] = ["id" : id,
"is_edit" : is_edit]
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.ResignAppoint.confirmInHK let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.ResignAppoint.confirmInHK
let _ = YHNetRequest.postRequest(url: strUrl, params:params) { [weak self] json, code in let _ = YHNetRequest.postRequest(url: strUrl, params:params) { [weak self] json, code in
//1. json字符串 转 对象 //1. json字符串 转 对象
......
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