Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tsndu-web
Overview
Overview
Details
Activity
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
魏吉光
tsndu-web
Commits
f8f14966
Commit
f8f14966
authored
Nov 09, 2020
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
60a7675d
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
37 additions
and
47 deletions
+37
-47
src/libs/axios.js
+2
-2
src/view/driver_contract/bill_logs/helper.js
+2
-2
src/view/driver_contract/list/helper.js
+1
-1
src/view/driver_contract/list/return_deposit/index.vue
+7
-9
src/view/driver_contract/receivables/delay/index.js
+5
-6
src/view/driver_contract/receivables/delay/index.vue
+2
-2
src/view/source_contract/list/helper.js
+1
-1
src/view/source_contract/list/return_deposit/index.js
+4
-4
src/view/source_contract/list/return_deposit/index.vue
+11
-18
src/view/source_contract/sign/index.js
+1
-1
src/view/source_contract/sign/index.vue
+1
-1
No files found.
src/libs/axios.js
View file @
f8f14966
...
...
@@ -32,8 +32,8 @@ service.interceptors.response.use(
return
{
file
:
data
,
fileName
:
headers
[
"content-disposition"
]
};
}
const
{
code
,
msg
}
=
data
;
console
.
log
(
code
);
console
.
log
(
msg
);
//
console.log(code);
//
console.log(msg);
switch
(
code
)
{
case
1
:
return
data
;
...
...
src/view/driver_contract/bill_logs/helper.js
View file @
f8f14966
...
...
@@ -69,13 +69,13 @@ export const columns = (search, showContract, showDriver, showVehicle, showPayin
minWidth
:
120
,
},
{
title
:
"
收款
时间"
,
title
:
"
操作
时间"
,
key
:
"createTime"
,
align
:
"center"
,
minWidth
:
140
,
},
{
title
:
"
收款
人"
,
title
:
"
操作
人"
,
key
:
"createByName"
,
align
:
"center"
,
minWidth
:
120
,
...
...
src/view/driver_contract/list/helper.js
View file @
f8f14966
...
...
@@ -193,7 +193,7 @@ export const columns = (search, showContract, showVehicle, showReturnDeposit, sh
const
params
=
{
edit
:
status
==
1
?
true
:
false
,
terminate
:
status
==
1
?
true
:
false
,
returnDeposit
:
depositStatus
==
1
||
status
==
1
?
false
:
true
,
returnDeposit
:
depositStatus
==
2
||
status
==
1
?
false
:
true
,
};
return
h
(
Actions
,
{
...
...
src/view/driver_contract/list/return_deposit/index.vue
View file @
f8f14966
...
...
@@ -4,24 +4,22 @@
<div>
<Form
ref=
"returnForm"
:model=
"returnForm"
:rules=
"returnFormRule"
:label-width=
"80"
label-colon
>
<Row>
<Col
span=
"
24
"
>
<FormItem
label=
"车牌号"
prop=
"plateNo"
>
{{
returnForm
.
plateNo
}}
</FormItem>
<Col
span=
"
8
"
>
<FormItem
label=
"车牌号"
>
{{
returnForm
.
plateNo
}}
</FormItem>
</Col>
</Row>
<Row>
<Col
span=
"24"
>
<FormItem
label=
"押金状态"
prop=
"status"
>
{{
returnForm
.
depositStatus
}}
</FormItem>
<Col
span=
"8"
>
<FormItem
label=
"押金状态"
>
{{
returnForm
.
depositStatus
}}
</FormItem>
</Col>
</Row>
<Row
:gutter=
"10"
>
<Col
span=
"8"
>
<FormItem
label=
"
应付押金"
prop=
"depositAmount"
>
{{
returnForm
.
payable
DepositAmount
}}
</FormItem>
<FormItem
label=
"
已收押金"
>
{{
returnForm
.
paid
DepositAmount
}}
</FormItem>
</Col>
<Col
span=
"8"
>
<FormItem
label=
"已
付押金"
prop=
"depositAmount"
>
{{
returnForm
.
paid
DepositAmount
}}
</FormItem>
<FormItem
label=
"已
退押金"
>
{{
returnForm
.
return
DepositAmount
}}
</FormItem>
</Col>
<Col
span=
"8"
>
<FormItem
label=
"
已还金额"
prop=
"returnDepositAmount"
>
{{
returnForm
.
returnDepositAmount
}}
</FormItem>
<FormItem
label=
"
未退押金"
>
{{
returnForm
.
paidDepositAmount
-
returnForm
.
returnDepositAmount
}}
</FormItem>
</Col>
</Row>
<Row
:gutter=
"10"
>
...
...
src/view/driver_contract/receivables/delay/index.js
View file @
f8f14966
...
...
@@ -11,14 +11,14 @@ export default {
visible
:
false
,
submitLoading
:
false
,
payingFormRule
:
{
amount
:
[{
required
:
true
,
message
:
"请输入返还金额"
,
trigger
:
"blur"
},
{
validator
:
isInteger
,
trigger
:
"blur"
}
],
delayDateText
:
[{
type
:
"date"
,
required
:
true
,
message
:
"请选择开始日期"
,
trigger
:
"change"
}
],
},
payingForm
:
{
planningId
:
0
,
plateNo
:
null
,
paymentStatus
:
null
,
planDate
:
null
,
delayDate
:
null
,
delayDate
Text
:
null
,
name
:
null
,
payableAmount
:
null
,
paidAmount
:
null
,
...
...
@@ -43,7 +43,6 @@ export default {
this
.
payingForm
.
plateNo
=
null
;
this
.
payingForm
.
paymentStatus
=
null
;
this
.
payingForm
.
planDate
=
null
;
this
.
payingForm
.
delayDate
=
null
;
this
.
payingForm
.
name
=
null
;
this
.
payingForm
.
payableAmount
=
null
;
this
.
payingForm
.
paidAmount
=
null
;
...
...
@@ -56,9 +55,9 @@ export default {
this
.
payingForm
.
plateNo
=
this
.
planning
.
plateNo
;
this
.
payingForm
.
planDate
=
this
.
planning
.
planDate
;
if
(
this
.
planning
.
delayDate
)
{
this
.
payingForm
.
delayDate
=
this
.
planning
.
delayDate
;
this
.
payingForm
.
delayDate
Text
=
this
.
planning
.
delayDate
.
substring
(
0
,
10
)
;
}
else
{
this
.
payingForm
.
delayDate
=
this
.
planning
.
planDate
;
this
.
payingForm
.
delayDate
Text
=
this
.
planning
.
planDate
.
substring
(
0
,
10
)
;
}
this
.
payingForm
.
name
=
this
.
planning
.
name
;
this
.
payingForm
.
payableAmount
=
this
.
planning
.
payableAmount
;
...
...
@@ -77,7 +76,7 @@ export default {
if
(
valid
)
{
const
requestData
=
{
planningId
:
this
.
payingForm
.
planningId
,
delayDate
:
this
.
payingForm
.
delayDate
,
delayDate
:
this
.
payingForm
.
delayDate
Text
.
valueOf
()
,
remark
:
this
.
payingForm
.
remark
,
}
dispatch
(
"invoke/asyncDelay"
,
requestData
).
then
(({
code
})
=>
{
...
...
src/view/driver_contract/receivables/delay/index.vue
View file @
f8f14966
...
...
@@ -32,8 +32,8 @@
</Row>
<Row
:gutter=
"10"
>
<Col
span=
"24"
>
<FormItem
label=
"延期日期"
prop=
"delayDate"
>
<DatePicker
v-model=
"payingForm.delayDate"
style=
"width: 100%"
placeholder=
"请输入延期日期"
:options=
"disabledOption"
></DatePicker>
<FormItem
label=
"延期日期"
prop=
"delayDate
Text
"
>
<DatePicker
v-model=
"payingForm.delayDate
Text
"
style=
"width: 100%"
placeholder=
"请输入延期日期"
:options=
"disabledOption"
></DatePicker>
</FormItem>
</Col>
</Row>
...
...
src/view/source_contract/list/helper.js
View file @
f8f14966
...
...
@@ -166,7 +166,7 @@ export const columns = (search, showContract, showVehicle, showReturnDeposit) =>
const
params
=
{
edit
:
status
==
1
?
true
:
false
,
terminate
:
status
==
1
?
true
:
false
,
returnDeposit
:
depositStatus
==
1
||
status
==
1
?
false
:
true
,
returnDeposit
:
depositStatus
==
2
||
status
==
1
?
false
:
true
,
};
return
h
(
Actions
,
{
...
...
src/view/source_contract/list/return_deposit/index.js
View file @
f8f14966
...
...
@@ -17,7 +17,7 @@ export default {
returnForm
:
{
plateNo
:
null
,
depositStatus
:
null
,
d
epositAmount
:
null
,
paidD
epositAmount
:
null
,
returnDepositAmount
:
null
,
returnAmount
:
null
,
remark
:
null
,
...
...
@@ -32,14 +32,14 @@ export default {
this
.
$refs
.
returnForm
.
resetFields
();
this
.
returnForm
.
plateNo
=
null
;
this
.
returnForm
.
depositStatus
=
null
;
this
.
returnForm
.
d
epositAmount
=
null
;
this
.
returnForm
.
paidD
epositAmount
=
null
;
this
.
returnForm
.
returnDepositAmount
=
null
;
this
.
returnForm
.
returnAmount
=
null
;
this
.
returnForm
.
remark
=
null
;
if
(
show
)
{
this
.
returnForm
.
plateNo
=
this
.
contract
.
vehicleVo
.
plateNo
;
this
.
returnForm
.
depositAmount
=
this
.
contract
.
d
epositAmount
;
this
.
returnForm
.
paidDepositAmount
=
this
.
contract
.
paidD
epositAmount
;
this
.
returnForm
.
returnDepositAmount
=
this
.
contract
.
returnDepositAmount
;
if
(
this
.
contract
.
depositStatus
==
0
)
{
...
...
@@ -54,7 +54,7 @@ export default {
},
methods
:
{
setAll
()
{
this
.
returnForm
.
returnAmount
=
this
.
returnForm
.
depositAmount
-
this
.
returnForm
.
returnDepositAmount
;
this
.
returnForm
.
returnAmount
=
""
+
(
this
.
returnForm
.
paidDepositAmount
-
this
.
returnForm
.
returnDepositAmount
)
;
},
saveReturnDeposit
()
{
this
.
$refs
.
returnForm
.
validate
(
valid
=>
{
...
...
src/view/source_contract/list/return_deposit/index.vue
View file @
f8f14966
...
...
@@ -4,29 +4,22 @@
<div>
<Form
ref=
"returnForm"
:model=
"returnForm"
:rules=
"returnFormRule"
:label-width=
"80"
label-colon
>
<Row>
<Col
span=
"24"
>
<FormItem
label=
"车牌号"
prop=
"plateNo"
>
<Input
v-model
.
trim=
"returnForm.plateNo"
disabled
/>
</FormItem>
<Col
span=
"12"
>
<FormItem
label=
"车牌号"
>
{{
returnForm
.
plateNo
}}
</FormItem>
</Col>
</Row>
<Row>
<Col
span=
"24"
>
<FormItem
label=
"押金状态"
prop=
"status"
>
<Input
v-model
.
trim=
"returnForm.depositStatus"
disabled
/>
</FormItem>
<Col
span=
"12"
>
<FormItem
label=
"押金状态"
>
{{
returnForm
.
depositStatus
}}
</FormItem>
</Col>
</Row>
<Row
:gutter=
"10"
>
<Col
span=
"12"
>
<FormItem
label=
"全部押金"
prop=
"depositAmount"
>
<Input
v-model
.
trim=
"returnForm.depositAmount"
disabled
/>
</FormItem>
<Col
span=
"8"
>
<FormItem
label=
"已收押金"
>
{{
returnForm
.
paidDepositAmount
}}
</FormItem>
</Col>
<Col
span=
"12"
>
<FormItem
label=
"已还金额"
prop=
"returnDepositAmount"
>
<Input
v-model
.
trim=
"returnForm.returnDepositAmount"
disabled
/>
</FormItem>
<Col
span=
"8"
>
<FormItem
label=
"已退押金"
>
{{
returnForm
.
returnDepositAmount
}}
</FormItem>
</Col>
<Col
span=
"8"
>
<FormItem
label=
"未退押金"
>
{{
returnForm
.
paidDepositAmount
-
returnForm
.
returnDepositAmount
}}
</FormItem>
</Col>
</Row>
<Row
:gutter=
"10"
>
...
...
src/view/source_contract/sign/index.js
View file @
f8f14966
...
...
@@ -126,11 +126,11 @@ export default {
saveContract
()
{
this
.
$refs
.
contractForm
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
contractForm
.
startDate
=
this
.
contractForm
.
startDateText
.
valueOf
();
this
.
uploadList
.
forEach
(
f
=>
{
this
.
contractForm
.
files
.
push
(
f
.
id
);
})
dispatch
(
"invoke/asyncSignContract"
,
this
.
contractForm
).
then
(({
code
})
=>
{
this
.
contractForm
.
startDate
=
this
.
contractForm
.
startDateText
.
valueOf
();
this
.
submitLoading
=
false
;
if
(
code
===
1
)
{
this
.
$Message
.
success
(
"合同签订成功"
);
...
...
src/view/source_contract/sign/index.vue
View file @
f8f14966
...
...
@@ -69,7 +69,7 @@
</FormItem>
</Col>
<Col
span=
"8"
>
<FormItem
label=
"首次实
收
租金"
prop=
"firstPaidAmount"
>
<FormItem
label=
"首次实
交
租金"
prop=
"firstPaidAmount"
>
<Input
v-model
.
trim=
"contractForm.firstPaidAmount"
type=
"number"
/>
</FormItem>
</Col>
...
...
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