fix bug
Showing
2 changed files
with
27 additions
and
23 deletions
... | @@ -1448,26 +1448,26 @@ SE_AFC_CON_FIELD = ['合同编号-每页', '所购车辆价格-小写-重要条 | ... | @@ -1448,26 +1448,26 @@ SE_AFC_CON_FIELD = ['合同编号-每页', '所购车辆价格-小写-重要条 |
1448 | # '项目1', '用途总金额', '贷款本金', '附加产品融资贷款本金总金额', '购置税校验' | 1448 | # '项目1', '用途总金额', '贷款本金', '附加产品融资贷款本金总金额', '购置税校验' |
1449 | 1449 | ||
1450 | ROLE_LIST = [ | 1450 | ROLE_LIST = [ |
1451 | ('借款人签字及时间', 'Borrower', 0, 0, True), | 1451 | ('借款人签字及时间', 'Borrower', 0, 0, True, True), |
1452 | ('借款人姓名', 'Borrower', 0, 0, True), | 1452 | ('借款人姓名', 'Borrower', 0, 0, True, True), |
1453 | ('借款人证件号', 'Borrower', 0, 2, True), | 1453 | ('借款人证件号', 'Borrower', 0, 2, True, True), |
1454 | ('主借人签字', 'Borrower', 0, 0, True), | 1454 | ('主借人签字', 'Borrower', 0, 0, True, False), |
1455 | ('主借人日期', 'Borrower', 0, '有', True), | 1455 | ('主借人日期', 'Borrower', 0, '有', True, False), |
1456 | 1456 | ||
1457 | ('共借人姓名', 'Co-Borrower', 0, 0, False), | 1457 | ('共借人姓名', 'Co-Borrower', 0, 0, False, True), |
1458 | ('共借人证件号', 'Co-Borrower', 0, 2, False), | 1458 | ('共借人证件号', 'Co-Borrower', 0, 2, False, True), |
1459 | ('共借人签字', 'Co-Borrower', 0, 0, False), | 1459 | ('共借人签字', 'Co-Borrower', 0, 0, False, False), |
1460 | ('共借人日期', 'Co-Borrower', 0, '有', False), | 1460 | ('共借人日期', 'Co-Borrower', 0, '有', False, False), |
1461 | 1461 | ||
1462 | ('保证人姓名1', 'Guarantor', 0, 0, False), | 1462 | ('保证人姓名1', 'Guarantor', 0, 0, False, True), |
1463 | ('保证人证件号1', 'Guarantor', 0, 2, False), | 1463 | ('保证人证件号1', 'Guarantor', 0, 2, False, True), |
1464 | ('保证人签字1', 'Guarantor', 0, 0, False), | 1464 | ('保证人签字1', 'Guarantor', 0, 0, False, False), |
1465 | ('保证人日期1', 'Guarantor', 0, '有', False), | 1465 | ('保证人日期1', 'Guarantor', 0, '有', False, False), |
1466 | 1466 | ||
1467 | ('保证人姓名2', 'Guarantor', 1, 0, False), | 1467 | ('保证人姓名2', 'Guarantor', 1, 0, False, True), |
1468 | ('保证人证件号2', 'Guarantor', 1, 2, False), | 1468 | ('保证人证件号2', 'Guarantor', 1, 2, False, True), |
1469 | ('保证人签字2', 'Guarantor', 1, 0, False), | 1469 | ('保证人签字2', 'Guarantor', 1, 0, False, False), |
1470 | ('保证人日期2', 'Guarantor', 1, '有', False), | 1470 | ('保证人日期2', 'Guarantor', 1, '有', False, False), |
1471 | ] | 1471 | ] |
1472 | 1472 | ||
1473 | GZS_NAME = '车辆购置税' | 1473 | GZS_NAME = '车辆购置税' | ... | ... |
... | @@ -1165,7 +1165,10 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list): | ... | @@ -1165,7 +1165,10 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list): |
1165 | # afc_contract_input.append((consts.SE_AFC_CON_FIELD[22], consts.SPLIT_STR.join(gzs_list))) | 1165 | # afc_contract_input.append((consts.SE_AFC_CON_FIELD[22], consts.SPLIT_STR.join(gzs_list))) |
1166 | 1166 | ||
1167 | # '借款人签字及时间', 'Borrower', 0, 0, True | 1167 | # '借款人签字及时间', 'Borrower', 0, 0, True |
1168 | for key, app_type, id_idx, field_idx, is_force in consts.ROLE_LIST: | 1168 | online_sign = cms_info.get('contractSource', 'Online Sign') == 'Online Sign' |
1169 | for key, app_type, id_idx, field_idx, is_force, e_write in consts.ROLE_LIST: | ||
1170 | if not e_write and not online_sign: | ||
1171 | continue | ||
1169 | is_find = False | 1172 | is_find = False |
1170 | if app_type in main_role_info: | 1173 | if app_type in main_role_info: |
1171 | if len(main_role_info[app_type]) >= id_idx+1: | 1174 | if len(main_role_info[app_type]) >= id_idx+1: |
... | @@ -1177,8 +1180,9 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list): | ... | @@ -1177,8 +1180,9 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list): |
1177 | if not is_find and is_force: | 1180 | if not is_find and is_force: |
1178 | afc_contract_input.append((key, empty_str)) | 1181 | afc_contract_input.append((key, empty_str)) |
1179 | 1182 | ||
1180 | afc_contract_input.append((consts.SE_AFC_CON_FIELD[18], consts.SE_STAMP_VALUE)) | 1183 | if online_sign: |
1181 | afc_contract_input.append((consts.SE_AFC_CON_FIELD[19], empty_str)) | 1184 | afc_contract_input.append((consts.SE_AFC_CON_FIELD[18], consts.SE_STAMP_VALUE)) |
1185 | afc_contract_input.append((consts.SE_AFC_CON_FIELD[19], empty_str)) | ||
1182 | 1186 | ||
1183 | contract_info[consts.AFC_CONTRACT_EN] = afc_contract_input | 1187 | contract_info[consts.AFC_CONTRACT_EN] = afc_contract_input |
1184 | compare_info['contract'] = contract_info | 1188 | compare_info['contract'] = contract_info | ... | ... |
-
Please register or sign in to post a comment