Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5369328b
authored
Feb 25, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
CRM:完善回款的新增/修改
parent
70bf2341
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
114 additions
and
100 deletions
+114
-100
src/api/crm/receivable/plan/index.ts
+2
-4
src/views/crm/receivable/ReceivableForm.vue
+92
-71
src/views/crm/receivable/index.vue
+0
-1
src/views/crm/receivable/plan/components/ReceivablePlanList.vue
+2
-11
src/views/crm/receivable/plan/index.vue
+18
-13
No files found.
src/api/crm/receivable/plan/index.ts
View file @
5369328b
...
@@ -4,7 +4,6 @@ export interface ReceivablePlanVO {
...
@@ -4,7 +4,6 @@ export interface ReceivablePlanVO {
id
:
number
id
:
number
period
:
number
period
:
number
receivableId
:
number
receivableId
:
number
finishStatus
:
number
price
:
number
price
:
number
returnTime
:
Date
returnTime
:
Date
remindDays
:
number
remindDays
:
number
...
@@ -43,10 +42,9 @@ export const getReceivablePlan = async (id: number) => {
...
@@ -43,10 +42,9 @@ export const getReceivablePlan = async (id: number) => {
}
}
// 查询回款计划下拉数据
// 查询回款计划下拉数据
// TODO @芋艿:再看看这里
export
const
getReceivablePlanSimpleList
=
async
(
customerId
:
number
,
contractId
:
number
)
=>
{
export
const
getReceivablePlanListByContractId
=
async
(
customerId
:
number
,
contractId
:
number
)
=>
{
return
await
request
.
get
({
return
await
request
.
get
({
url
:
`/crm/receivable-plan/
list-all-simple-by-customer
?customerId=
${
customerId
}
&contractId=
${
contractId
}
`
url
:
`/crm/receivable-plan/
simple-list
?customerId=
${
customerId
}
&contractId=
${
contractId
}
`
})
})
}
}
...
...
src/views/crm/receivable/ReceivableForm.vue
View file @
5369328b
This diff is collapsed.
Click to expand it.
src/views/crm/receivable/index.vue
View file @
5369328b
...
@@ -195,7 +195,6 @@
...
@@ -195,7 +195,6 @@
<!-- 表单弹窗:添加/修改 -->
<!-- 表单弹窗:添加/修改 -->
<ReceivableForm
ref=
"formRef"
@
success=
"getList"
/>
<ReceivableForm
ref=
"formRef"
@
success=
"getList"
/>
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
dateFormatter
,
dateFormatter2
}
from
'@/utils/formatTime'
import
{
dateFormatter
,
dateFormatter2
}
from
'@/utils/formatTime'
...
...
src/views/crm/receivable/plan/components/ReceivablePlanList.vue
View file @
5369328b
...
@@ -31,17 +31,6 @@
...
@@ -31,17 +31,6 @@
/>
/>
<el-table-column
label=
"负责人"
prop=
"ownerUserName"
width=
"120"
/>
<el-table-column
label=
"负责人"
prop=
"ownerUserName"
width=
"120"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
/>
<el-table-column
align=
"center"
fixed=
"right"
label=
"完成状态"
prop=
"finishStatus"
width=
"130px"
>
<template
#
default=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
:value=
"scope.row.finishStatus"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
fixed=
"right"
label=
"操作"
width=
"200px"
>
<el-table-column
align=
"center"
fixed=
"right"
label=
"操作"
width=
"200px"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<el-button
<el-button
...
@@ -141,6 +130,7 @@ const openForm = (type: string, id?: number) => {
...
@@ -141,6 +130,7 @@ const openForm = (type: string, id?: number) => {
formRef
.
value
.
open
(
type
,
id
)
formRef
.
value
.
open
(
type
,
id
)
}
}
// todo @puhui999:拼写错误
const
emits
=
defineEmits
<
{
const
emits
=
defineEmits
<
{
(
e
:
'crateReceivable'
,
v
:
ReceivablePlanApi
.
ReceivablePlanVO
)
(
e
:
'crateReceivable'
,
v
:
ReceivablePlanApi
.
ReceivablePlanVO
)
}
>
()
}
>
()
...
@@ -161,6 +151,7 @@ const handleDelete = async (id: number) => {
...
@@ -161,6 +151,7 @@ const handleDelete = async (id: number) => {
await
getList
()
await
getList
()
}
catch
{}
}
catch
{}
}
}
/** 监听打开的 customerId + contractId,从而加载最新的列表 */
/** 监听打开的 customerId + contractId,从而加载最新的列表 */
watch
(
watch
(
()
=>
[
props
.
customerId
,
props
.
contractId
],
()
=>
[
props
.
customerId
,
props
.
contractId
],
...
...
src/views/crm/receivable/plan/index.vue
View file @
5369328b
...
@@ -153,17 +153,6 @@
...
@@ -153,17 +153,6 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
align=
"center"
fixed=
"right"
label=
"完成状态"
prop=
"finishStatus"
width=
"130px"
>
<
template
#
default=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
:value=
"scope.row.finishStatus"
/>
</
template
>
</el-table-column>
<el-table-column
:formatter=
"dateFormatter"
:formatter=
"dateFormatter"
align=
"center"
align=
"center"
label=
"更新时间"
label=
"更新时间"
...
@@ -178,10 +167,18 @@
...
@@ -178,10 +167,18 @@
width=
"180px"
width=
"180px"
/>
/>
<el-table-column
align=
"center"
label=
"创建人"
prop=
"creatorName"
width=
"100px"
/>
<el-table-column
align=
"center"
label=
"创建人"
prop=
"creatorName"
width=
"100px"
/>
<el-table-column
align=
"center"
fixed=
"right"
label=
"操作"
width=
"130px"
>
<el-table-column
align=
"center"
fixed=
"right"
label=
"操作"
width=
"180px"
>
<!-- TODO @puhui999:新建回款 -->
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-button
<el-button
v-hasPermi=
"['crm:receivable:create']"
link
type=
"success"
@
click=
"openReceivableForm(scope.row)"
:disabled=
"scope.row.receivableId"
>
创建回款
</el-button>
<el-button
v-hasPermi=
"['crm:receivable-plan:update']"
v-hasPermi=
"['crm:receivable-plan:update']"
link
link
type=
"primary"
type=
"primary"
...
@@ -211,6 +208,7 @@
...
@@ -211,6 +208,7 @@
<!-- 表单弹窗:添加/修改 -->
<!-- 表单弹窗:添加/修改 -->
<ReceivablePlanForm
ref=
"formRef"
@
success=
"getList"
/>
<ReceivablePlanForm
ref=
"formRef"
@
success=
"getList"
/>
<ReceivableForm
ref=
"receivableFormRef"
@
success=
"getList"
/>
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
...
@@ -222,6 +220,7 @@ import ReceivablePlanForm from './ReceivablePlanForm.vue'
...
@@ -222,6 +220,7 @@ import ReceivablePlanForm from './ReceivablePlanForm.vue'
import
*
as
CustomerApi
from
'@/api/crm/customer'
import
*
as
CustomerApi
from
'@/api/crm/customer'
import
{
erpPriceInputFormatter
,
erpPriceTableColumnFormatter
}
from
'@/utils'
import
{
erpPriceInputFormatter
,
erpPriceTableColumnFormatter
}
from
'@/utils'
import
{
TabsPaneContext
}
from
'element-plus'
import
{
TabsPaneContext
}
from
'element-plus'
import
ReceivableForm
from
'@/views/crm/receivable/ReceivableForm.vue'
defineOptions
({
name
:
'ReceivablePlan'
})
defineOptions
({
name
:
'ReceivablePlan'
})
...
@@ -279,6 +278,12 @@ const openForm = (type: string, id?: number) => {
...
@@ -279,6 +278,12 @@ const openForm = (type: string, id?: number) => {
formRef
.
value
.
open
(
type
,
id
)
formRef
.
value
.
open
(
type
,
id
)
}
}
/** 创建回款操作 */
const
receivableFormRef
=
ref
()
const
openReceivableForm
=
(
row
:
ReceivablePlanApi
.
ReceivablePlanVO
)
=>
{
receivableFormRef
.
value
.
open
(
'create'
,
undefined
,
row
)
}
/** 删除按钮操作 */
/** 删除按钮操作 */
const
handleDelete
=
async
(
id
:
number
)
=>
{
const
handleDelete
=
async
(
id
:
number
)
=>
{
try
{
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment