diff --git a/src/api/crm/receivable/index.ts b/src/api/crm/receivable/index.ts
index a9812a76..7d2d3a2d 100644
--- a/src/api/crm/receivable/index.ts
+++ b/src/api/crm/receivable/index.ts
@@ -12,7 +12,6 @@ export interface ReceivableVO {
returnType: string
price: number
ownerUserId: number
- sort: number
remark: string
}
@@ -50,3 +49,8 @@ export const deleteReceivable = async (id: number) => {
export const exportReceivable = async (params) => {
return await request.download({ url: `/crm/receivable/export-excel`, params })
}
+
+// 提交审核
+export const submitReceivable = async (id: number) => {
+ return await request.put({ url: `/crm/receivable/submit?id=${id}` })
+}
diff --git a/src/api/crm/receivable/plan/index.ts b/src/api/crm/receivable/plan/index.ts
index 98fadb0d..be5a4535 100644
--- a/src/api/crm/receivable/plan/index.ts
+++ b/src/api/crm/receivable/plan/index.ts
@@ -31,6 +31,13 @@ export const getReceivablePlan = async (id: number) => {
return await request.get({ url: `/crm/receivable-plan/get?id=` + id })
}
+// 查询回款计划下拉数据
+export const getReceivablePlanListByContractId = async (customerId: number, contractId: number) => {
+ return await request.get({
+ url: `/crm/receivable-plan/list-all-simple-by-customer?customerId=${customerId}&contractId=${contractId}`
+ })
+}
+
// 新增回款计划
export const createReceivablePlan = async (data: ReceivablePlanVO) => {
return await request.post({ url: `/crm/receivable-plan/create`, data })
diff --git a/src/views/crm/receivable/ReceivableForm.vue b/src/views/crm/receivable/ReceivableForm.vue
index 60206bf7..a7f975b3 100644
--- a/src/views/crm/receivable/ReceivableForm.vue
+++ b/src/views/crm/receivable/ReceivableForm.vue
@@ -1,98 +1,134 @@
-
-
diff --git a/src/views/crm/receivable/index.vue b/src/views/crm/receivable/index.vue
index c5478c2f..17a1eb33 100644
--- a/src/views/crm/receivable/index.vue
+++ b/src/views/crm/receivable/index.vue
@@ -2,49 +2,63 @@
-
+ placeholder="请选择客户"
+ @keyup.enter="handleQuery"
+ >
+
+
- 搜索
- 重置
-
- 新增
+
+
+ 搜索
+
+
+
+ 重置
- 导出
+
+ 新增
+
+
+
+ 导出
@@ -52,66 +66,63 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
-
+
-
-
-
+
-
-
编辑
+ 提交审核
+
+
+ 查看审批
+
+
删除
@@ -120,9 +131,9 @@
@@ -131,26 +142,27 @@
-
diff --git a/src/views/crm/receivable/plan/index.vue b/src/views/crm/receivable/plan/index.vue
index 16b54aee..9cf21647 100644
--- a/src/views/crm/receivable/plan/index.vue
+++ b/src/views/crm/receivable/plan/index.vue
@@ -8,7 +8,7 @@
class="-mb-15px"
label-width="68px"
>
-
+
-
+