def docRegistCaseAudit_saveCaseByAppro(save_json):
    """:arg
        通过新建立案审批表,给案件添加数据
    """
    url = environment.get_IP_PORT(
    ) + "safety/api/" + doc_type + "/saveCaseByAppro"
    payload = save_json
    data = s_request.post(payload, url)
    return json.loads(data)
def securityCase_list():
    url = environment.get_IP_PORT(
    ) + "safety/api/" + "securityCase" + "/loadCaseBaseList"
    payload = {
        "allGridGuid": "",
        "caseName": "",
        "caseType": 1,
        "countTotal": True,
        "endDate": None,
        "order": "DESC",
        "pageIndex": 1,
        "pageSize": 15,
        "sort": "acceptanceDate",
        "startDate": None,
        "steps": None,
        "total": 16
    }
    data = s_request.post(payload, url)
    return json.loads(data)
def docNewServiceReceipt_saveDoc(case_guid):
    url = environment.get_IP_PORT(
    ) + "safety/api/" + "docNewServiceReceipt" + "/saveDoc"
    payload = {
        "caseGuid": "9bea3ad9-01f8-4bfa-be09-afdbfe4f4284",
        "caseName": "123",
        "caseNode": 6,
        "departmentNum": "",
        "docDate": "2020-06-30 18:02:38",
        "docNewServiceInfoList": [],
        "docNumber": "(辽)应急回〔2020〕001号",
        "docSimpleName": "辽",
        "docType": "应急回",
        "guid": "8f72e52f-1d71-4613-9422-3b261e5dd58d",
        "isManualInputNum": False,
        "serviceUnit": "测试企业银行",
        "wsGuid": ""
    }
    data = s_request.post(payload, url)
    return json.loads(data)
def doc_getDocList(ws_guid):
    url = environment.get_IP_PORT() + "safety/api/" + "doc" + "/list"
    payload = {"wsGuid": ws_guid}
    data = s_request.post(payload, url)
    return json.loads(data)
def securityCase_get_by_guid(guid):
    url = environment.get_IP_PORT(
    ) + "safety/api/" + "securityCase" + "/getByGuid" + "/" + guid
    payload = {"guid": guid}
    data = s_request.post(payload, url)
    return json.loads(data)
def securityCase_remove(id):
    url = environment.get_IP_PORT(
    ) + "safety/api/" + "securityCase" + "/removeCaseByIds"
    payload = [id]
    data = s_request.post(payload, url)
    return json.loads(data)
def docNewServiceReceipt_createDoc(case_guid):
    url = environment.get_IP_PORT(
    ) + "safety/api/" + "docNewServiceReceipt" + "/createDoc"
    payload = {"caseGuid": case_guid, "caseNode": 6}
    data = s_request.post(payload, url)
    return json.loads(data)
def docRegistCaseAudit_get_by_guid(guid):
    url = environment.get_IP_PORT(
    ) + "safety/api/" + doc_type + "/getByGuid" + "/" + guid
    payload = {"guid": guid}
    data = s_request.post(payload, url)
    return json.loads(data)