优化案件模块
This commit is contained in:
@@ -1440,6 +1440,9 @@ class EditCase(APIView):
|
||||
Contractreturn = request.FILES.getlist('Contractreturn')
|
||||
Closingapplication = request.FILES.getlist('Closingapplication')
|
||||
ChangeRequest = request.data.get('ChangeRequest')
|
||||
ChangeItem = request.data.get('change_item') or request.data.get('ChangeItem') or ChangeRequest
|
||||
ChangeReason = request.data.get('change_reason') or request.data.get('ChangeReason')
|
||||
ChangeAgreement = request.FILES.getlist('ChangeAgreement') or request.FILES.getlist('change_agreement')
|
||||
invoice_status = request.data.get('invoice_status') # 已开票
|
||||
paymentcollection = request.data.get('paymentcollection')
|
||||
approvers = request.data.get('approvers')
|
||||
@@ -1831,9 +1834,10 @@ class Application(APIView):
|
||||
username=user.username,
|
||||
)
|
||||
|
||||
team_name = user.team
|
||||
from User.utils import create_approval_with_team_logic
|
||||
approval, approvers_order_json, needs_approval = create_approval_with_team_logic(
|
||||
team_name=user.team,
|
||||
team_name=team_name,
|
||||
approvers=approvers,
|
||||
title=user.username + "申请用印",
|
||||
content=user.username + "在" + date_str + "申请用印,用印事由:" + Reason + ",盖章份数:" + seal_number + "盖着类型:" + seal_type,
|
||||
@@ -1919,7 +1923,9 @@ class EditApplication(APIView):
|
||||
seal_number = request.data.get('seal_number')
|
||||
seal_type = request.data.get('seal_type')
|
||||
file = request.FILES.getlist('file')
|
||||
approvers = request.data.get('approvers')
|
||||
personincharge = request.data.get('personincharge')
|
||||
approvers = normalize_approvers_param(approvers, personincharge)
|
||||
|
||||
if not id:
|
||||
return Response({'status': 'error', 'message': '缺少参数', 'code': 1}, status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
@@ -811,6 +811,17 @@ token: {用户token}
|
||||
}
|
||||
```
|
||||
|
||||
**变更申请示例(上传变更协议文件):**
|
||||
```
|
||||
curl -X POST http://<host>/business/casemanagement \
|
||||
-H "token: <your_token>" \
|
||||
-F "project_id=1" \
|
||||
-F "times=2024-01-15" \
|
||||
-F "change_item=代理方案变更" \
|
||||
-F "change_reason=客户要求调整代理范围" \
|
||||
-F "ChangeAgreement=@/path/to/change-agreement.pdf"
|
||||
```
|
||||
|
||||
**响应示例:**
|
||||
```json
|
||||
{
|
||||
@@ -1042,6 +1053,16 @@ token: {用户token}
|
||||
}
|
||||
```
|
||||
|
||||
**变更申请示例(上传变更协议文件):**
|
||||
```
|
||||
curl -X POST http://<host>/business/editCase \
|
||||
-H "token: <your_token>" \
|
||||
-F "id=1" \
|
||||
-F "change_item=代理方案变更" \
|
||||
-F "change_reason=客户要求调整代理范围" \
|
||||
-F "ChangeAgreement=@/path/to/change-agreement.pdf"
|
||||
```
|
||||
|
||||
**响应示例:**
|
||||
```json
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user