Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
Project
Project
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
徐俊
yn-science-front
Commits
fa2eef81
Commit
fa2eef81
authored
Nov 29, 2024
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
e63f2230
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
10 deletions
+46
-10
budgetEdit.vue
src/views/report/project/components/budgetEdit.vue
+2
-2
equipmentsEdit.vue
src/views/report/project/components/equipmentsEdit.vue
+16
-7
equipmentsInfo.vue
src/views/report/project/components/equipmentsInfo.vue
+0
-0
unitPaymentEdit.vue
src/views/report/project/components/unitPaymentEdit.vue
+17
-1
unitPaymentInfo.vue
src/views/report/project/components/unitPaymentInfo.vue
+11
-0
No files found.
src/views/report/project/components/budgetEdit.vue
View file @
fa2eef81
...
@@ -69,8 +69,8 @@ export default {
...
@@ -69,8 +69,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
invisibleTotalBudget
:
[],
invisibleTotalBudget
:
[],
invisibleApplyFunds
:
[
0
,
3
,
4
],
invisibleApplyFunds
:
[
0
,
2
,
3
,
4
],
invisibleSelfFunds
:
[
0
,
3
,
4
],
invisibleSelfFunds
:
[
0
,
1
,
3
,
4
],
};
};
},
},
props
:
{
props
:
{
...
...
src/views/report/project/components/equipmentsEdit.vue
View file @
fa2eef81
...
@@ -90,12 +90,12 @@
...
@@ -90,12 +90,12 @@
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'equipments.' + index + '.unitPrice'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'equipments.' + index + '.unitPrice'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.unitPrice"
@
change=
"outUnitPriceChange(index)"
:min=
"0"
:step=
"0.01"
style=
"width:
8
0%"
/>
<a-input-number
v-model=
"item.unitPrice"
@
change=
"outUnitPriceChange(index)"
:min=
"0"
:step=
"0.01"
style=
"width:
9
0%"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"1"
>
<a-col
:span=
"1"
>
<a-form-model-item
:prop=
"'equipments.' + index + '.quantity'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'equipments.' + index + '.quantity'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.quantity"
@
change=
"outNumberChange(index)"
:min=
"1"
:step=
"1"
style=
"width:
8
0%"
/>
<a-input-number
v-model=
"item.quantity"
@
change=
"outNumberChange(index)"
:min=
"1"
:step=
"1"
style=
"width:
9
0%"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
...
@@ -114,27 +114,27 @@
...
@@ -114,27 +114,27 @@
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'equipments.' + index + '.equipmentType'"
:rules=
"
{required:
tru
e, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'equipments.' + index + '.equipmentType'"
:rules=
"
{required:
fals
e, message: '*', trigger: 'blur',}">
<a-input
v-model=
"item.equipmentType"
:maxLength=
"100"
style=
"width: 90%;"
/>
<a-input
v-model=
"item.equipmentType"
:maxLength=
"100"
style=
"width: 90%;"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'equipments.' + index + '.manufacturer'"
:rules=
"
{required:
tru
e, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'equipments.' + index + '.manufacturer'"
:rules=
"
{required:
fals
e, message: '*', trigger: 'blur',}">
<a-input
v-model=
"item.manufacturer"
:maxLength=
"100"
style=
"width: 90%;"
/>
<a-input
v-model=
"item.manufacturer"
:maxLength=
"100"
style=
"width: 90%;"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'equipments.' + index + '.specificationType'"
:rules=
"
{required:
tru
e, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'equipments.' + index + '.specificationType'"
:rules=
"
{required:
fals
e, message: '*', trigger: 'blur',}">
<a-input
v-model=
"item.specificationType"
:maxLength=
"100"
style=
"width: 90%;"
/>
<a-input
v-model=
"item.specificationType"
:maxLength=
"100"
style=
"width: 90%;"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'equipments.' + index + '.sharedScope'"
:rules=
"
{required:
tru
e, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'equipments.' + index + '.sharedScope'"
:rules=
"
{required:
fals
e, message: '*', trigger: 'blur',}">
<a-input
v-model=
"item.sharedScope"
:maxLength=
"100"
style=
"width: 90%;"
/>
<a-input
v-model=
"item.sharedScope"
:maxLength=
"100"
style=
"width: 90%;"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'equipments.' + index + '.useFrom'"
:rules=
"
{required:
tru
e, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'equipments.' + index + '.useFrom'"
:rules=
"
{required:
fals
e, message: '*', trigger: 'blur',}">
<a-input
v-model=
"item.useFrom"
:maxLength=
"200"
style=
"width: 90%;"
/>
<a-input
v-model=
"item.useFrom"
:maxLength=
"200"
style=
"width: 90%;"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
...
@@ -342,5 +342,13 @@ export default {
...
@@ -342,5 +342,13 @@ export default {
this
.
calNumberAmount
()
this
.
calNumberAmount
()
},
},
},
},
watch
:
{
equipments
:
{
handler
(
equipments
)
{
if
(
!!
equipments
)
this
.
calNumberAmount
()
},
},
}
};
};
</
script
>
</
script
>
\ No newline at end of file
src/views/report/project/components/equipmentsInfo.vue
View file @
fa2eef81
This diff is collapsed.
Click to expand it.
src/views/report/project/components/unitPaymentEdit.vue
View file @
fa2eef81
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'unitPayment.' + index + '.unitRole'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'unitPayment.' + index + '.unitRole'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<
a-input
v-model=
"item.unitRole"
:maxLength=
"100"
style=
"width: 90%;
"
/>
<
para-select
v-model=
"item.unitRole"
:typeId=
"65"
:isAll=
"true"
:width=
"110
"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"4"
>
<a-col
:span=
"4"
>
...
@@ -151,6 +151,8 @@
...
@@ -151,6 +151,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
paraSelect
from
'@/views/components/common/paraSelect'
const
Payment
=
{
const
Payment
=
{
id
:
""
,
id
:
""
,
objectId
:
""
,
objectId
:
""
,
...
@@ -168,6 +170,9 @@ const Payment = {
...
@@ -168,6 +170,9 @@ const Payment = {
export
default
{
export
default
{
name
:
"UnitPaymentEdit"
,
name
:
"UnitPaymentEdit"
,
components
:
{
paraSelect
},
props
:
{
props
:
{
unitPayment
:
{
unitPayment
:
{
type
:
Array
,
type
:
Array
,
...
@@ -184,6 +189,8 @@ export default {
...
@@ -184,6 +189,8 @@ export default {
TselfAmount
:
0.00
,
TselfAmount
:
0.00
,
};
};
},
},
created
()
{
},
methods
:
{
methods
:
{
addArrey
()
{
addArrey
()
{
this
.
unitPayment
.
push
(
Object
.
assign
({
...
Payment
}))
this
.
unitPayment
.
push
(
Object
.
assign
({
...
Payment
}))
...
@@ -220,5 +227,13 @@ export default {
...
@@ -220,5 +227,13 @@ export default {
})
})
}
}
},
},
watch
:
{
unitPayment
:
{
handler
(
unitPayment
)
{
if
(
!!
unitPayment
)
this
.
calTotalAmount
()
},
},
}
};
};
</
script
>
</
script
>
\ No newline at end of file
src/views/report/project/components/unitPaymentInfo.vue
View file @
fa2eef81
...
@@ -166,6 +166,8 @@ export default {
...
@@ -166,6 +166,8 @@ export default {
TselfAmount
:
0.00
,
TselfAmount
:
0.00
,
};
};
},
},
created
()
{
},
methods
:
{
methods
:
{
outAmountChange
(
index
)
{
outAmountChange
(
index
)
{
this
.
unitPayment
[
index
].
totalAmount
=
this
.
unitPayment
[
index
].
fundAmount
+
this
.
unitPayment
[
index
].
selfAmount
this
.
unitPayment
[
index
].
totalAmount
=
this
.
unitPayment
[
index
].
fundAmount
+
this
.
unitPayment
[
index
].
selfAmount
...
@@ -193,5 +195,13 @@ export default {
...
@@ -193,5 +195,13 @@ export default {
})
})
}
}
},
},
watch
:
{
unitPayment
:
{
handler
(
unitPayment
)
{
if
(
!!
unitPayment
)
this
.
calTotalAmount
()
},
},
}
};
};
</
script
>
</
script
>
\ No newline at end of file
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