Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dwsproject
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dws
dwsproject
Commits
6fd41d42
Commit
6fd41d42
authored
Jun 04, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 玖姿前端问题
parent
60a51a54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
roke_product_income_expense/controller/main.py
+6
-0
roke_product_income_expense/static/src/js/index.html
+6
-0
No files found.
roke_product_income_expense/controller/main.py
View file @
6fd41d42
...
@@ -52,6 +52,7 @@ class ProductIncomeExpenseIframe(http.Controller):
...
@@ -52,6 +52,7 @@ class ProductIncomeExpenseIframe(http.Controller):
type_str
=
_self
.
jsonrequest
.
get
(
"type_str"
,
False
)
# income收入/expenditure支出
type_str
=
_self
.
jsonrequest
.
get
(
"type_str"
,
False
)
# income收入/expenditure支出
machinery_type
=
_self
.
jsonrequest
.
get
(
"machinery_type"
,
False
)
machinery_type
=
_self
.
jsonrequest
.
get
(
"machinery_type"
,
False
)
customer
=
_self
.
jsonrequest
.
get
(
"customer"
,
False
)
customer
=
_self
.
jsonrequest
.
get
(
"customer"
,
False
)
abstract
=
_self
.
jsonrequest
.
get
(
"abstract"
,
False
)
domain
=
[]
domain
=
[]
if
start_date
and
end_date
:
if
start_date
and
end_date
:
domain
.
append
((
"business_date"
,
">="
,
start_date
))
domain
.
append
((
"business_date"
,
">="
,
start_date
))
...
@@ -62,6 +63,8 @@ class ProductIncomeExpenseIframe(http.Controller):
...
@@ -62,6 +63,8 @@ class ProductIncomeExpenseIframe(http.Controller):
domain
.
append
((
"machinery_type"
,
"="
,
machinery_type
))
domain
.
append
((
"machinery_type"
,
"="
,
machinery_type
))
if
customer
:
if
customer
:
domain
.
append
((
"customer"
,
"ilike"
,
customer
))
domain
.
append
((
"customer"
,
"ilike"
,
customer
))
if
abstract
:
domain
.
append
((
"abstract"
,
"ilike"
,
abstract
))
data_list
=
_self
.
env
[
"roke.product.income.expense"
]
.
sudo
()
.
search
(
domain
,
limit
=
limit
,
data_list
=
_self
.
env
[
"roke.product.income.expense"
]
.
sudo
()
.
search
(
domain
,
limit
=
limit
,
offset
=
(
page
-
1
)
*
limit
,
offset
=
(
page
-
1
)
*
limit
,
order
=
"business_date desc, create_date desc"
)
order
=
"business_date desc, create_date desc"
)
...
@@ -102,6 +105,7 @@ class ProductIncomeExpenseIframe(http.Controller):
...
@@ -102,6 +105,7 @@ class ProductIncomeExpenseIframe(http.Controller):
type_str
=
kwargs
.
get
(
"type_str"
,
False
)
# income收入/expenditure支出
type_str
=
kwargs
.
get
(
"type_str"
,
False
)
# income收入/expenditure支出
machinery_type
=
kwargs
.
get
(
"machinery_type"
,
False
)
machinery_type
=
kwargs
.
get
(
"machinery_type"
,
False
)
customer
=
kwargs
.
get
(
"customer"
,
False
)
customer
=
kwargs
.
get
(
"customer"
,
False
)
abstract
=
kwargs
.
get
(
"abstract"
,
False
)
domain
=
[]
domain
=
[]
if
start_date
and
end_date
:
if
start_date
and
end_date
:
domain
.
append
((
"business_date"
,
">="
,
start_date
))
domain
.
append
((
"business_date"
,
">="
,
start_date
))
...
@@ -112,6 +116,8 @@ class ProductIncomeExpenseIframe(http.Controller):
...
@@ -112,6 +116,8 @@ class ProductIncomeExpenseIframe(http.Controller):
domain
.
append
((
"machinery_type"
,
"="
,
machinery_type
))
domain
.
append
((
"machinery_type"
,
"="
,
machinery_type
))
if
customer
:
if
customer
:
domain
.
append
((
"customer"
,
"ilike"
,
customer
))
domain
.
append
((
"customer"
,
"ilike"
,
customer
))
if
abstract
:
domain
.
append
((
"abstract"
,
"ilike"
,
abstract
))
data_list
=
_self
.
env
[
"roke.product.income.expense"
]
.
sudo
()
.
search
(
domain
,
order
=
"business_date desc, create_date desc"
)
data_list
=
_self
.
env
[
"roke.product.income.expense"
]
.
sudo
()
.
search
(
domain
,
order
=
"business_date desc, create_date desc"
)
data
=
[]
data
=
[]
for
v
in
data_list
:
for
v
in
data_list
:
...
...
roke_product_income_expense/static/src/js/index.html
View file @
6fd41d42
...
@@ -77,6 +77,8 @@
...
@@ -77,6 +77,8 @@
<div
style=
"display: flex;justify-content: flex-end; text-align: right; margin-bottom: 5px;"
>
<div
style=
"display: flex;justify-content: flex-end; text-align: right; margin-bottom: 5px;"
>
<el-input
style=
"width: 15%;"
v-model=
"abstract_value"
placeholder=
"请填写摘要信息"
@
change=
"select_change"
></el-input>
<el-select
v-model=
"select_value"
clearable
placeholder=
"请选择收支类型"
@
change=
"select_change"
>
<el-select
v-model=
"select_value"
clearable
placeholder=
"请选择收支类型"
@
change=
"select_change"
>
<el-option
v-for=
"item in select_options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
<el-option
v-for=
"item in select_options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-option>
...
@@ -224,6 +226,7 @@
...
@@ -224,6 +226,7 @@
}],
}],
select_value
:
''
,
select_value
:
''
,
machinery_type_value
:
''
,
machinery_type_value
:
''
,
abstract_value
:
''
,
customer_value
:
''
customer_value
:
''
};
};
},
},
...
@@ -271,6 +274,7 @@
...
@@ -271,6 +274,7 @@
end_date
:
this
.
datePickerValue
[
1
],
end_date
:
this
.
datePickerValue
[
1
],
type_str
:
this
.
select_value
,
type_str
:
this
.
select_value
,
machinery_type
:
this
.
machinery_type_value
,
machinery_type
:
this
.
machinery_type_value
,
abstract
:
this
.
abstract_value
,
customer
:
this
.
customer_value
customer
:
this
.
customer_value
}
}
axios
.
request
({
axios
.
request
({
...
@@ -344,6 +348,7 @@
...
@@ -344,6 +348,7 @@
formData
.
append
(
"end_date"
,
this
.
datePickerValue
[
1
]);
formData
.
append
(
"end_date"
,
this
.
datePickerValue
[
1
]);
formData
.
append
(
"type_str"
,
this
.
select_value
);
formData
.
append
(
"type_str"
,
this
.
select_value
);
formData
.
append
(
"machinery_type"
,
this
.
machinery_type_value
);
formData
.
append
(
"machinery_type"
,
this
.
machinery_type_value
);
formData
.
append
(
"abstract"
,
this
.
abstract_value
);
formData
.
append
(
"customer"
,
this
.
customer_value
);
formData
.
append
(
"customer"
,
this
.
customer_value
);
axios
.
post
(
"/roke/product/product_income_expense/export"
,
axios
.
post
(
"/roke/product/product_income_expense/export"
,
formData
,
formData
,
...
@@ -415,6 +420,7 @@
...
@@ -415,6 +420,7 @@
this
.
select_value
=
''
this
.
select_value
=
''
this
.
machinery_type_value
=
''
this
.
machinery_type_value
=
''
this
.
customer_value
=
''
this
.
customer_value
=
''
this
.
abstract_value
=
''
this
.
datePickerValue
=
''
this
.
datePickerValue
=
''
this
.
getDataList
()
this
.
getDataList
()
}
else
{
}
else
{
...
...
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