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
154f84a8
authored
Feb 25, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
CRM:完善合同的待回款金额
parent
25665f54
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
11 deletions
+62
-11
src/api/crm/contract/index.ts
+1
-0
src/views/crm/backlog/components/ContractAuditList.vue
+19
-2
src/views/crm/backlog/components/ContractRemindList.vue
+19
-2
src/views/crm/contract/detail/ContractDetailsHeader.vue
+3
-2
src/views/crm/contract/index.vue
+19
-2
src/views/crm/receivable/ReceivableForm.vue
+1
-2
src/views/crm/receivable/index.vue
+0
-1
No files found.
src/api/crm/contract/index.ts
View file @
154f84a8
...
@@ -21,6 +21,7 @@ export interface ContractVO {
...
@@ -21,6 +21,7 @@ export interface ContractVO {
totalProductPrice
:
number
totalProductPrice
:
number
discountPercent
:
number
discountPercent
:
number
totalPrice
:
number
totalPrice
:
number
totalReceivablePrice
:
number
signContactId
:
number
signContactId
:
number
signContactName
?:
string
signContactName
?:
string
signUserId
:
number
signUserId
:
number
...
...
src/views/crm/backlog/components/ContractAuditList.vue
View file @
154f84a8
...
@@ -101,7 +101,24 @@
...
@@ -101,7 +101,24 @@
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"公司签约人"
prop=
"signUserName"
width=
"130"
/>
<el-table-column
align=
"center"
label=
"公司签约人"
prop=
"signUserName"
width=
"130"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
width=
"200"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
width=
"200"
/>
<!-- TODO @puhui999:后续可加 【已收款金额】、【未收款金额】 -->
<el-table-column
align=
"center"
label=
"已回款金额(元)"
prop=
"totalReceivablePrice"
width=
"140"
:formatter=
"erpPriceTableColumnFormatter"
/>
<el-table-column
align=
"center"
label=
"未回款金额(元)"
prop=
"totalReceivablePrice"
width=
"140"
:formatter=
"erpPriceTableColumnFormatter"
>
<
template
#
default=
"scope"
>
{{
erpPriceInputFormatter
(
scope
.
row
.
totalPrice
-
scope
.
row
.
totalReceivablePrice
)
}}
</
template
>
</el-table-column>
<el-table-column
<el-table-column
:formatter=
"dateFormatter"
:formatter=
"dateFormatter"
align=
"center"
align=
"center"
...
@@ -159,7 +176,7 @@ import { dateFormatter, dateFormatter2 } from '@/utils/formatTime'
...
@@ -159,7 +176,7 @@ import { dateFormatter, dateFormatter2 } from '@/utils/formatTime'
import
*
as
ContractApi
from
'@/api/crm/contract'
import
*
as
ContractApi
from
'@/api/crm/contract'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
AUDIT_STATUS
}
from
'./common'
import
{
AUDIT_STATUS
}
from
'./common'
import
{
erpPriceTableColumnFormatter
}
from
'@/utils'
import
{
erpPrice
InputFormatter
,
erpPrice
TableColumnFormatter
}
from
'@/utils'
const
loading
=
ref
(
true
)
// 列表的加载中
const
loading
=
ref
(
true
)
// 列表的加载中
const
total
=
ref
(
0
)
// 列表的总页数
const
total
=
ref
(
0
)
// 列表的总页数
...
...
src/views/crm/backlog/components/ContractRemindList.vue
View file @
154f84a8
...
@@ -101,7 +101,24 @@
...
@@ -101,7 +101,24 @@
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"公司签约人"
prop=
"signUserName"
width=
"130"
/>
<el-table-column
align=
"center"
label=
"公司签约人"
prop=
"signUserName"
width=
"130"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
width=
"200"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
width=
"200"
/>
<!-- TODO @puhui999:后续可加 【已收款金额】、【未收款金额】 -->
<el-table-column
align=
"center"
label=
"已回款金额(元)"
prop=
"totalReceivablePrice"
width=
"140"
:formatter=
"erpPriceTableColumnFormatter"
/>
<el-table-column
align=
"center"
label=
"未回款金额(元)"
prop=
"totalReceivablePrice"
width=
"140"
:formatter=
"erpPriceTableColumnFormatter"
>
<
template
#
default=
"scope"
>
{{
erpPriceInputFormatter
(
scope
.
row
.
totalPrice
-
scope
.
row
.
totalReceivablePrice
)
}}
</
template
>
</el-table-column>
<el-table-column
<el-table-column
:formatter=
"dateFormatter"
:formatter=
"dateFormatter"
align=
"center"
align=
"center"
...
@@ -160,7 +177,7 @@ import * as ContractApi from '@/api/crm/contract'
...
@@ -160,7 +177,7 @@ import * as ContractApi from '@/api/crm/contract'
import
{
fenToYuanFormat
}
from
'@/utils/formatter'
import
{
fenToYuanFormat
}
from
'@/utils/formatter'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
CONTRACT_EXPIRY_TYPE
}
from
'./common'
import
{
CONTRACT_EXPIRY_TYPE
}
from
'./common'
import
{
erpPriceTableColumnFormatter
}
from
'@/utils'
import
{
erpPrice
InputFormatter
,
erpPrice
TableColumnFormatter
}
from
'@/utils'
const
loading
=
ref
(
true
)
// 列表的加载中
const
loading
=
ref
(
true
)
// 列表的加载中
const
total
=
ref
(
0
)
// 列表的总页数
const
total
=
ref
(
0
)
// 列表的总页数
...
...
src/views/crm/contract/detail/ContractDetailsHeader.vue
View file @
154f84a8
...
@@ -26,8 +26,9 @@
...
@@ -26,8 +26,9 @@
<el-descriptions-item
label=
"下单时间"
>
<el-descriptions-item
label=
"下单时间"
>
{{
formatDate
(
contract
.
orderDate
)
}}
{{
formatDate
(
contract
.
orderDate
)
}}
</el-descriptions-item>
</el-descriptions-item>
<!-- TODO 芋艿:回款金额 -->
<el-descriptions-item
label=
"回款金额(元)"
>
<el-descriptions-item
label=
"回款金额(元)"
>
待实现
</el-descriptions-item>
{{
erpPriceInputFormatter
(
contract
.
totalReceivablePrice
)
}}
</el-descriptions-item>
<el-descriptions-item
label=
"负责人"
>
<el-descriptions-item
label=
"负责人"
>
{{
contract
.
ownerUserName
}}
{{
contract
.
ownerUserName
}}
</el-descriptions-item>
</el-descriptions-item>
...
...
src/views/crm/contract/index.vue
View file @
154f84a8
...
@@ -150,7 +150,24 @@
...
@@ -150,7 +150,24 @@
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"公司签约人"
prop=
"signUserName"
width=
"130"
/>
<el-table-column
align=
"center"
label=
"公司签约人"
prop=
"signUserName"
width=
"130"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
width=
"200"
/>
<el-table-column
align=
"center"
label=
"备注"
prop=
"remark"
width=
"200"
/>
<!-- TODO @puhui999:后续可加 【已收款金额】、【未收款金额】 -->
<el-table-column
align=
"center"
label=
"已回款金额(元)"
prop=
"totalReceivablePrice"
width=
"140"
:formatter=
"erpPriceTableColumnFormatter"
/>
<el-table-column
align=
"center"
label=
"未回款金额(元)"
prop=
"totalReceivablePrice"
width=
"140"
:formatter=
"erpPriceTableColumnFormatter"
>
<
template
#
default=
"scope"
>
{{
erpPriceInputFormatter
(
scope
.
row
.
totalPrice
-
scope
.
row
.
totalReceivablePrice
)
}}
</
template
>
</el-table-column>
<el-table-column
<el-table-column
:formatter=
"dateFormatter"
:formatter=
"dateFormatter"
align=
"center"
align=
"center"
...
@@ -246,7 +263,7 @@ import download from '@/utils/download'
...
@@ -246,7 +263,7 @@ import download from '@/utils/download'
import
*
as
ContractApi
from
'@/api/crm/contract'
import
*
as
ContractApi
from
'@/api/crm/contract'
import
ContractForm
from
'./ContractForm.vue'
import
ContractForm
from
'./ContractForm.vue'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
erpPriceTableColumnFormatter
}
from
'@/utils'
import
{
erpPrice
InputFormatter
,
erpPrice
TableColumnFormatter
}
from
'@/utils'
import
*
as
CustomerApi
from
'@/api/crm/customer'
import
*
as
CustomerApi
from
'@/api/crm/customer'
import
{
TabsPaneContext
}
from
'element-plus'
import
{
TabsPaneContext
}
from
'element-plus'
...
...
src/views/crm/receivable/ReceivableForm.vue
View file @
154f84a8
...
@@ -270,8 +270,7 @@ const handleContractChange = async (contractId: number) => {
...
@@ -270,8 +270,7 @@ const handleContractChange = async (contractId: number) => {
// 设置金额
// 设置金额
const
contract
=
contractList
.
value
.
find
((
item
)
=>
item
.
id
===
contractId
)
const
contract
=
contractList
.
value
.
find
((
item
)
=>
item
.
id
===
contractId
)
if
(
contract
)
{
if
(
contract
)
{
// TODO @芋艿:后续可以改成未还款金额
formData
.
value
.
price
=
contract
.
totalPrice
-
contract
.
totalReceivablePrice
formData
.
value
.
price
=
contract
.
totalPrice
}
}
}
}
}
}
...
...
src/views/crm/receivable/index.vue
View file @
154f84a8
...
@@ -308,7 +308,6 @@ const handleProcessDetail = (row: ReceivableApi.ReceivableVO) => {
...
@@ -308,7 +308,6 @@ const handleProcessDetail = (row: ReceivableApi.ReceivableVO) => {
push
({
name
:
'BpmProcessInstanceDetail'
,
query
:
{
id
:
row
.
processInstanceId
}
})
push
({
name
:
'BpmProcessInstanceDetail'
,
query
:
{
id
:
row
.
processInstanceId
}
})
}
}
// TODO puhui999: 回款流程审批表单详情查看后面完善
/** 导出按钮操作 */
/** 导出按钮操作 */
const
handleExport
=
async
()
=>
{
const
handleExport
=
async
()
=>
{
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