@@ -167,6 +167,9 @@ def create_contribution_contract_flow(lensman): |
||
167 | 167 |
|
168 | 168 |
def create_contribution_contract_document(lensman, contribution_id, file_ids, FlowId): |
169 | 169 |
# 创建电子签文档 https://qian.tencent.com/developers/companyApis/startFlows/CreateDocument |
170 |
+ IMAGE_COMPONENTIDS = ['ComponentId_37', 'ComponentId_38','ComponentId_39','ComponentId_40','ComponentId_41','ComponentId_42', |
|
171 |
+ 'ComponentId_43','ComponentId_44','ComponentId_45','ComponentId_46','ComponentId_47','ComponentId_48','ComponentId_49','ComponentId_50','ComponentId_51','ComponentId_52','ComponentId_53','ComponentId_54','ComponentId_55', 'ComponentId_55', 'ComponentId_56', 'ComponentId_57', 'ComponentId_58', 'ComponentId_59', 'ComponentId_60', 'ComponentId_9', 'ComponentId_10', 'ComponentId_11', 'ComponentId_12', 'ComponentId_13', 'ComponentId_14', 'ComponentId_15', 'ComponentId_16', 'ComponentId_17', 'ComponentId_18', 'ComponentId_19', 'ComponentId_20', 'ComponentId_21', 'ComponentId_22', 'ComponentId_23', 'ComponentId_24', 'ComponentId_25', 'ComponentId_26', 'ComponentId_27', 'ComponentId_28','ComponentId_29', 'ComponentId_30', 'ComponentId_31', 'ComponentId_32'] |
|
172 |
+ |
|
170 | 173 |
try: |
171 | 174 |
amount = LensmanContributionActivityIncomeExpensesInfo.objects.get(contribution_id=contribution_id, lensman_id=lensman.lensman_id).amount |
172 | 175 |
except LensmanContributionActivityIncomeExpensesInfo.DoesNotExist: |
@@ -188,7 +191,7 @@ def create_contribution_contract_document(lensman, contribution_id, file_ids, Fl |
||
188 | 191 |
|
189 | 192 |
for idx, file_id in enumerate(file_ids): |
190 | 193 |
FormFields.append({ |
191 |
- "ComponentId": "ComponentId_" + str(37 + idx), |
|
194 |
+ "ComponentId": "ComponentId_" + IMAGE_COMPONENTIDS[idx], |
|
192 | 195 |
"ComponentValue": file_id, |
193 | 196 |
}) |
194 | 197 |
create_document_result = create_document(flow_id=FlowId, form_fields=FormFields) |