Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
ems3.3
Commits
aab9e0ac
Commit
aab9e0ac
authored
Nov 22, 2023
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1853
parent
55902baf
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
728 additions
and
376 deletions
+728
-376
proxy.js
config/proxy.js
+2
-2
FormItems.jsx
src/components/InitForm/FormItems.jsx
+3
-3
global.less
src/global.less
+13
-1
Details.jsx
src/pages/lease/contract/Details.jsx
+94
-16
columns.js
src/pages/lease/contract/columns.js
+327
-274
index.jsx
src/pages/lease/contract/index.jsx
+206
-54
columns.js
src/pages/lease/costanalysis/columns.js
+82
-25
index.jsx
src/pages/lease/costanalysis/index.jsx
+1
-1
No files found.
config/proxy.js
View file @
aab9e0ac
...
...
@@ -23,7 +23,7 @@ export default {
dev
:
{
[
defaultSetting
.
proxypath
]:
{
// 要代理的地址
target
:
'http://192.168.40.
203
:8000'
,
//jf哥
target
:
'http://192.168.40.
110
:8000'
,
//jf哥
// target: 'http://192.168.40.248:8080', //jf哥
// target: 'http://192.168.40.64:28000', //gc哥
// target: 'http://192.168.40.203:8000', //dj哥
...
...
@@ -32,7 +32,7 @@ export default {
},
'/token'
:
{
// 要代理的地址
target
:
'http://192.168.40.
203
:8000'
,
target
:
'http://192.168.40.
110
:8000'
,
changeOrigin
:
true
,
},
'/staticfile/'
:
{
...
...
src/components/InitForm/FormItems.jsx
View file @
aab9e0ac
...
...
@@ -181,7 +181,7 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
<
Col
{
...
item
.
colProps
}
style=
{
{
height
:
68
}
}
key=
{
index
}
>
<
div
>
<
label
htmlFor=
""
style=
{
{
marginBottom
:
14
,
display
:
'inline-block'
}
}
>
{
item
.
title
}
</
label
>
<
div
style=
{
{
margin
:
0
}
}
>
<
div
title=
{
value
[
item
?.
key
??
item
?.
dataIndex
]
??
"-"
}
style=
{
{
margin
:
0
}
}
>
{
value
[
item
?.
key
??
item
?.
dataIndex
]
??
"-"
}
</
div
>
</
div
>
...
...
@@ -189,7 +189,7 @@ let FormRender = memo(({ fields = [], name, curindex, formRef, action }) => {
)
:
(
<
Col
{
...
item
.
colProps
}
style=
{
{
height
:
40
,
display
:
'flex'
,
alignItems
:
'center'
}
}
key=
{
index
}
>
<
div
>
<
div
style=
{
{
margin
:
0
}
}
>
<
div
title=
{
value
[
item
?.
key
??
item
?.
dataIndex
]
??
"-"
}
style=
{
{
margin
:
0
}
}
>
{
value
[
item
?.
key
??
item
?.
dataIndex
]
??
"-"
}
</
div
>
</
div
>
...
...
@@ -1466,7 +1466,7 @@ function FormList(props) {
}, [props]);
return (
<Col {...col}>
<div className="formlist">
<div className="formlist"
style={{ '--bordered': item.bordered ? '1px solid #dbdbdb' : 'none' }}
>
{
item?.creatorButtonProps === false ?
!isEmpty ?
...
...
src/global.less
View file @
aab9e0ac
...
...
@@ -617,11 +617,13 @@ ol {
.formlist {
>div {
overflow-x: auto;
>div {
>div {
>div {
>div:last-child {
border:
1px solid #dbdbdb
;
border:
var(--bordered)
;
padding: 12px;
}
}
...
...
@@ -636,6 +638,16 @@ ol {
.ant-form-item {
margin-bottom: 12px !important;
}
.ant-pro-form-group {
>div {
>.ant-row {
flex-flow: row nowrap !important;
align-items: baseline !important;
}
}
}
}
.screenwh {
...
...
src/pages/lease/contract/Details.jsx
View file @
aab9e0ac
...
...
@@ -11,7 +11,7 @@ const fields = [
key
:
'contractNo'
},
{
title
:
'合同金额
(元)
'
,
title
:
'合同金额'
,
dataIndex
:
'amount'
,
key
:
'amount'
},
...
...
@@ -46,15 +46,25 @@ const fields = [
key
:
'undertakingId'
},
{
title
:
'
合同负责人
'
,
title
:
'
销售经理
'
,
dataIndex
:
'head'
,
key
:
'head'
},
{
title
:
'
登记
日期'
,
title
:
'
签订
日期'
,
dataIndex
:
'registrationDate'
,
key
:
'registrationDate'
},
{
title
:
'到货日期'
,
dataIndex
:
'arriveDate'
,
key
:
'arriveDate'
},
{
title
:
'退还日期'
,
dataIndex
:
'returnDate'
,
key
:
'returnDate'
},
{
title
:
'状态'
,
dataIndex
:
'statusName'
,
...
...
@@ -89,7 +99,7 @@ const fields = [
valueType
:
'split'
},
{
title
:
'
去程运费(元)
'
,
title
:
'
交付运费
'
,
dataIndex
:
'tripFreight'
,
key
:
'tripFreight'
},
...
...
@@ -99,21 +109,16 @@ const fields = [
key
:
'tripBearName'
},
{
title
:
'
返程运费(元)
'
,
title
:
'
退还运费
'
,
dataIndex
:
'returnFreight'
,
key
:
'returnFreight'
},
{
title
:
'返程运费承担方'
,
dataIndex
:
'returnBearName'
,
key
:
'returnBearName'
},
{
title
:
''
,
valueType
:
'split'
},
{
title
:
'退还押金
(元)
'
,
title
:
'退还押金'
,
dataIndex
:
'refund'
,
key
:
'refund'
},
...
...
@@ -127,6 +132,12 @@ const fields = [
dataIndex
:
'handleTime'
,
key
:
'handleTime'
},
{
title
:
'备注'
,
dataIndex
:
'remark'
,
key
:
'remark'
,
colProps
:
{
span
:
24
},
},
{
title
:
'相关文件'
,
valueType
:
'split'
...
...
@@ -224,35 +235,77 @@ const Details = ({ drawer }) => {
dataIndex
:
'equipmentName'
,
key
:
'equipmentName'
,
},
{
title
:
'设备型号'
,
dataIndex
:
'equipmentModelName'
,
key
:
'equipmentModelName'
,
hideInSearch
:
true
},
{
title
:
'莫格云眼'
,
dataIndex
:
'intelligentUnitNo'
,
key
:
'intelligentUnitNo'
,
},
{
title
:
'每期单价(元)'
,
title
:
'出库区域'
,
dataIndex
:
'equipmentModelName'
,
key
:
'equipmentModelName'
,
hideInSearch
:
true
},
{
title
:
'入库区域'
,
dataIndex
:
'equipmentModelName'
,
key
:
'equipmentModelName'
,
hideInSearch
:
true
},
{
title
:
'每期单价'
,
dataIndex
:
'unitPrice'
,
key
:
'unitPrice'
,
hideInSearch
:
true
},
{
title
:
'智享价
(元)
'
,
title
:
'智享价'
,
dataIndex
:
'zxPrice'
,
key
:
'zxPrice'
,
hideInSearch
:
true
},
{
title
:
'返利金额
(元)
'
,
title
:
'返利金额'
,
dataIndex
:
'rebatePrice'
,
key
:
'rebatePrice'
,
hideInSearch
:
true
},
{
title
:
'押金(元)'
,
title
:
'交付运费'
,
dataIndex
:
'deliveryPrice'
,
key
:
'deliveryPrice'
,
hideInSearch
:
true
},
{
title
:
'交付日期'
,
dataIndex
:
'deliveryDate'
,
key
:
'deliveryDate'
,
hideInSearch
:
true
},
{
title
:
'押金'
,
dataIndex
:
'deposit'
,
key
:
'deposit'
,
hideInSearch
:
true
},
{
title
:
'开始租赁时间'
,
dataIndex
:
'startLeaseDate'
,
key
:
'startLeaseDate'
,
hideInSearch
:
true
},
{
title
:
'结束租赁时间'
,
dataIndex
:
'endLeaseDate'
,
key
:
'endLeaseDate'
,
hideInSearch
:
true
},
{
title
:
'实际结束时间'
,
dataIndex
:
'realEndDate'
,
...
...
@@ -260,11 +313,35 @@ const Details = ({ drawer }) => {
hideInSearch
:
true
},
{
title
:
'违约金
(元)
'
,
title
:
'违约金'
,
dataIndex
:
'violatePrice'
,
key
:
'violatePrice'
,
hideInSearch
:
true
},
{
title
:
'退还运费'
,
dataIndex
:
'returnFreight'
,
key
:
'returnFreight'
,
hideInSearch
:
true
},
{
title
:
'退还日期'
,
dataIndex
:
'returnDate'
,
key
:
'returnDate'
,
hideInSearch
:
true
},
{
title
:
'返程运费承担方'
,
dataIndex
:
'returnBearName'
,
key
:
'returnBearName'
,
hideInSearch
:
true
},
{
title
:
'备注'
,
dataIndex
:
'remark'
,
key
:
'remark'
,
hideInSearch
:
true
},
];
const
items
=
useMemo
(()
=>
{
return
[
...
...
@@ -288,6 +365,7 @@ const Details = ({ drawer }) => {
bordered=
{
false
}
extraparams=
{
{
contractId
:
drawer
?.
item
?.
id
}
}
pagination=
{
'false'
}
x=
{
2300
}
/>,
}
]
...
...
src/pages/lease/contract/columns.js
View file @
aab9e0ac
import
{
Tooltip
,
Image
}
from
'antd'
;
import
Filedetail
from
"@/components/Filedetail"
;
function
getcolumns
(
setdrawer
,
valtype
,
itemId
)
{
let
common
=
[
let
common
a
=
[
{
title
:
'合同单号'
,
dataIndex
:
'contractNo'
,
...
...
@@ -31,7 +31,7 @@ function getcolumns(setdrawer, valtype, itemId) {
}
},
{
title
:
'客户'
,
title
:
'客户
名称
'
,
dataIndex
:
'customerName'
,
key
:
'customerId'
,
colProps
:
{
span
:
8
},
...
...
@@ -43,7 +43,7 @@ function getcolumns(setdrawer, valtype, itemId) {
},
},
{
title
:
'合同金额
(元)
'
,
title
:
'合同金额'
,
dataIndex
:
'amount'
,
key
:
'amount'
,
hideInSearch
:
true
,
...
...
@@ -55,16 +55,11 @@ function getcolumns(setdrawer, valtype, itemId) {
key
:
'startLeaseDateList'
,
hideInForm
:
true
,
valueType
:
'dateRange'
},
{
title
:
'本期应收回款'
,
dataIndex
:
'thisCollection'
,
key
:
'thisCollection'
,
hideInSearch
:
true
,
hideInForm
:
true
,
},
}
],
commonb
=
[
{
title
:
'设备台数
'
,
title
:
'设备数量
'
,
dataIndex
:
'equipmentNum'
,
key
:
'equipmentNum'
,
hideInSearch
:
true
,
...
...
@@ -90,13 +85,14 @@ function getcolumns(setdrawer, valtype, itemId) {
}
},
{
title
:
'去程
运费'
,
title
:
'交付
运费'
,
dataIndex
:
'tripFreight'
,
key
:
'tripFreight'
,
colProps
:
{
span
:
8
},
valueType
:
'digit'
,
hideInSearch
:
true
,
hideInTable
:
true
,
hideInForm
:
true
,
precision
:
2
},
{
...
...
@@ -111,6 +107,7 @@ function getcolumns(setdrawer, valtype, itemId) {
],
colProps
:
{
span
:
8
},
hideInTable
:
true
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
}
},
{
title
:
'回款设置(自然日)'
,
...
...
@@ -144,7 +141,6 @@ function getcolumns(setdrawer, valtype, itemId) {
colProps
:
{
span
:
8
},
hideInSearch
:
true
,
valueType
:
'digit'
,
hideInTable
:
true
,
precision
:
0
,
min
:
1
},
...
...
@@ -178,7 +174,7 @@ function getcolumns(setdrawer, valtype, itemId) {
],
},
colProps
:
{
sm
:
6
,
sm
:
4
,
},
options
:
{
path
:
'/lease/umLeaseLedger/queryLedgerSelectbox'
,
...
...
@@ -186,7 +182,7 @@ function getcolumns(setdrawer, valtype, itemId) {
},
},
{
title
:
'每期单价(元)
'
,
title
:
'每期单价
'
,
dataIndex
:
'unitPrice'
,
key
:
'unitPrice'
,
valueType
:
'digit'
,
...
...
@@ -202,10 +198,10 @@ function getcolumns(setdrawer, valtype, itemId) {
colProps
:
{
sm
:
3
,
},
min
:
0.01
min
:
0.00
},
{
title
:
'智享价(元)
'
,
title
:
'智享价
'
,
dataIndex
:
'zxPrice'
,
key
:
'zxPrice'
,
valueType
:
'digit'
,
...
...
@@ -221,10 +217,10 @@ function getcolumns(setdrawer, valtype, itemId) {
colProps
:
{
sm
:
3
,
},
min
:
0.01
min
:
0.00
},
{
title
:
'返利金额(元)
'
,
title
:
'返利金额
'
,
dataIndex
:
'rebatePrice'
,
key
:
'rebatePrice'
,
valueType
:
'digit'
,
...
...
@@ -246,7 +242,35 @@ function getcolumns(setdrawer, valtype, itemId) {
min
:
0.00
},
{
title
:
'押金(元)'
,
title
:
'交付运费'
,
dataIndex
:
'deliveryPrice'
,
key
:
'deliveryPrice'
,
valueType
:
'digit'
,
precision
:
2
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
colProps
:
{
sm
:
3
,
},
min
:
0.00
},
{
title
:
'交付日期'
,
dataIndex
:
'deliveryDate'
,
key
:
'deliveryDate'
,
valueType
:
'date'
,
colProps
:
{
sm
:
3
,
}
},
{
title
:
'押金'
,
dataIndex
:
'deposit'
,
key
:
'deposit'
,
valueType
:
'digit'
,
...
...
@@ -260,16 +284,16 @@ function getcolumns(setdrawer, valtype, itemId) {
],
},
colProps
:
{
sm
:
3
,
sm
:
2
,
},
min
:
0.01
min
:
0.00
},
{
title
:
'备注'
,
dataIndex
:
'remark'
,
key
:
'remark'
,
colProps
:
{
sm
:
6
,
sm
:
3
,
},
}
],
...
...
@@ -282,7 +306,6 @@ function getcolumns(setdrawer, valtype, itemId) {
key
:
'marketRegion'
,
hideInSearch
:
true
,
colProps
:
{
span
:
8
},
hideInTable
:
true
,
},
{
title
:
'智享店'
,
...
...
@@ -293,13 +316,13 @@ function getcolumns(setdrawer, valtype, itemId) {
hideInTable
:
true
,
},
{
title
:
'登记
日期'
,
title
:
'签订
日期'
,
dataIndex
:
'registrationDate'
,
key
:
'registrationDate'
,
colProps
:
{
span
:
8
},
hideInSearch
:
true
,
hideInTable
:
true
,
valueType
:
'date'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
},
{
title
:
'承接合同编号'
,
...
...
@@ -312,15 +335,22 @@ function getcolumns(setdrawer, valtype, itemId) {
options
:
{
path
:
'/lease/umContract/querySelect'
,
params
:
{
id
:
valtype
==
'edit'
?
itemId
:
''
}
},
},
{
title
:
'合同负责人
'
,
title
:
'销售经理
'
,
dataIndex
:
'head'
,
key
:
'head'
,
hideInSearch
:
true
,
hideInTable
:
true
,
colProps
:
{
span
:
8
},
},
{
title
:
'合同上传(最多5个)'
,
title
:
'到货日期'
,
dataIndex
:
'arriveDate'
,
key
:
'arriveDate'
,
colProps
:
{
span
:
8
},
hideInSearch
:
true
,
valueType
:
'date'
},
{
title
:
'合同(最多5个)'
,
dataIndex
:
'contractFileList'
,
key
:
'contractFileList'
,
hideInSearch
:
true
,
...
...
@@ -341,7 +371,15 @@ function getcolumns(setdrawer, valtype, itemId) {
tab
:
'未完成'
,
key
:
'1'
,
columns
:
[
...
common
,
...
commona
,
{
title
:
'本期应收回款'
,
dataIndex
:
'thisCollection'
,
key
:
'thisCollection'
,
hideInSearch
:
true
,
hideInForm
:
true
,
},
...
commonb
,
{
title
:
'状态'
,
dataIndex
:
'statusName'
,
...
...
@@ -381,7 +419,22 @@ function getcolumns(setdrawer, valtype, itemId) {
tab
:
'已完成'
,
key
:
'2'
,
columns
:
[
...
common
,
...
commona
,
{
title
:
'合同终止日'
,
dataIndex
:
'endLeaseDate'
,
key
:
'endLeaseDate'
,
hideInSearch
:
true
,
hideInForm
:
true
,
},
{
title
:
'退还日期'
,
dataIndex
:
'returnDate'
,
key
:
'returnDate'
,
hideInSearch
:
true
,
hideInForm
:
true
,
},
...
commonb
,
{
title
:
'状态'
,
dataIndex
:
'statusName'
,
...
...
src/pages/lease/contract/index.jsx
View file @
aab9e0ac
This diff is collapsed.
Click to expand it.
src/pages/lease/costanalysis/columns.js
View file @
aab9e0ac
...
...
@@ -8,7 +8,7 @@ const statusColors = {
function
getcolumns
(
setdrawer
,
activeKey
)
{
const
commona
=
[
{
title
:
'客户'
,
title
:
'客户
名称
'
,
dataIndex
:
'customerName'
,
key
:
'customerId'
,
valueType
:
'select'
,
...
...
@@ -35,37 +35,86 @@ function getcolumns(setdrawer, activeKey) {
key
:
'equipmentName'
,
},
{
title
:
'智能单元莫格云眼编号'
,
title
:
'设备型号'
,
dataIndex
:
'equipmentModelName'
,
key
:
'equipmentModelName'
,
hideInSearch
:
true
},
{
title
:
'莫格云眼'
,
dataIndex
:
'intelligentUnitNo'
,
key
:
'intelligentUnitNo'
,
width
:
170
},
{
title
:
'每期单价(元)'
,
title
:
'出库区域'
,
dataIndex
:
'intelligentUnitNo'
,
key
:
'intelligentUnitNo'
,
}
],
commonb
=
[
{
title
:
'每期单价'
,
dataIndex
:
'unitPrice'
,
key
:
'unitPrice'
,
hideInSearch
:
true
},
{
title
:
'智享价(元)
'
,
title
:
'智享价
'
,
dataIndex
:
'zxPrice'
,
key
:
'zxPrice'
,
hideInSearch
:
true
},
{
title
:
'返利金额(元)
'
,
title
:
'返利金额
'
,
dataIndex
:
'rebatePrice'
,
key
:
'rebatePrice'
,
hideInSearch
:
true
},
{
title
:
'押金(元)'
,
title
:
'交付运费'
,
dataIndex
:
'deliveryPrice'
,
key
:
'deliveryPrice'
,
hideInSearch
:
true
},
{
title
:
'交付日期'
,
dataIndex
:
'deliveryDate'
,
key
:
'deliveryDate'
,
hideInSearch
:
true
},
{
title
:
'退还运费'
,
dataIndex
:
'returnFreight'
,
key
:
'returnFreight'
,
hideInSearch
:
true
},
{
title
:
'退还日期'
,
dataIndex
:
'returnDate'
,
key
:
'returnDate'
,
hideInSearch
:
true
},
{
title
:
'返程运费承担方'
,
dataIndex
:
'returnBearName'
,
key
:
'returnBearName'
,
hideInSearch
:
true
},
{
title
:
'押金'
,
dataIndex
:
'deposit'
,
key
:
'deposit'
,
hideInSearch
:
true
},
{
title
:
'违约金'
,
dataIndex
:
'violatePrice'
,
key
:
'violatePrice'
,
hideInSearch
:
true
}
],
common
b
=
[
common
c
=
[
{
title
:
'开票期数'
,
dataIndex
:
'openNum'
,
...
...
@@ -153,6 +202,7 @@ function getcolumns(setdrawer, activeKey) {
hideInSearch
:
true
},
...
commonb
,
...
commonc
,
{
title
:
'回款状态'
,
dataIndex
:
'collectionStatusName'
,
...
...
@@ -202,7 +252,14 @@ function getcolumns(setdrawer, activeKey) {
},
hideInSearch
:
true
},
...
commonb
,]
...
commonb
,
{
title
:
'入库区域'
,
dataIndex
:
'intelligentUnitNo'
,
key
:
'intelligentUnitNo'
,
},
...
commonc
]
}
]
...
...
src/pages/lease/costanalysis/index.jsx
View file @
aab9e0ac
...
...
@@ -135,7 +135,7 @@ const Costanalysis = () => {
title
:
'租金减免'
,
fields
:
[
{
title
:
'当前减免金额
(元)
'
,
title
:
'当前减免金额'
,
dataIndex
:
'reducePrice'
,
key
:
'reducePrice'
,
valueType
:
'digit'
,
...
...
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