Commit 24b7ddd4 authored by Alex朱枝文's avatar Alex朱枝文

续签文书签字接口接入

parent 98330698
......@@ -174,8 +174,24 @@ extension YHResignDocumentDetailViewController {
printLog("###submitEvent")
}
signatureConfirmationEvent = {
printLog("###signatureConfirmationEvent")
signatureConfirmationEvent = { [weak self] in
guard let self = self else {
return
}
self.viewModel.resginDocumentSignature(model.docId, nil) { [weak self] signatureModel, error in
guard let self = self else {
return
}
guard let signatureModel = signatureModel else {
if let error = error {
printLog("###续期文书签字: \(error.errorMsg)")
}
return
}
let url = signatureModel.url
// 跳签字
}
}
previewEvent = {
......
......@@ -17,11 +17,11 @@ enum YHResignDocumentStage: Int {
func title() -> String {
switch self {
case .initialSubmission:
return "首次递交文书"
return "​续期递交文书"
case .supplementarySubmission:
return "补件递交文书"
return "补件递交文书"
case .resubmissionAfterRejection:
return "拒签递交文书"
return "拒签递交文书"
}
}
......
......@@ -12,7 +12,7 @@ class YHResignDocumentViewModel: YHBaseViewModel {
var documentList: YHResignDocumentListModel = YHResignDocumentListModel()
func getDocumentList(orderId: Int, id: Int, callback: @escaping (_ success: Bool, _ error: YHErrorModel?) -> ()) {
let params = ["order_id" : orderId, "id": id]
let params = ["order_id": orderId, "id": id]
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.ResignDocument.resignDocumentList
let _ = YHNetRequest.getRequest(url: strUrl,params: params) { [weak self] json, code in
//1. json字符串 转 对象
......@@ -62,8 +62,11 @@ class YHResignDocumentViewModel: YHBaseViewModel {
}
}
func resginDocumentSignature(_ docId: Int, _ userMobile: String, callBackBlock: @escaping (_ signatureModel: YHResignDocumentSignatureModel?, _ error:YHErrorModel?) -> () ) {
let params: [String : Any] = ["docId" : docId, "userMobile": userMobile]
func resginDocumentSignature(_ docId: Int, _ userMobile: String?, callBackBlock: @escaping (_ signatureModel: YHResignDocumentSignatureModel?, _ error:YHErrorModel?) -> () ) {
var params: [String : Any] = ["docId": docId]
if let userMobile = userMobile {
params["userMobile"] = userMobile
}
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.ResignDocument.resginDocumentSignature
let _ = YHNetRequest.postRequest(url: strUrl, params: params) { 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