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

// 预约

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