Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
ae455a49
Commit
ae455a49
authored
Nov 23, 2022
by
蒋凌峰
😉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
8254fab6
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
263 additions
and
193 deletions
+263
-193
ruoyi-system/src/main/resources/mapper/finance/FncInvoiceMapper.xml
...em/src/main/resources/mapper/finance/FncInvoiceMapper.xml
+95
-89
ruoyi-ui/src/views/finance/invoice/index.vue
ruoyi-ui/src/views/finance/invoice/index.vue
+41
-21
ruoyi-ui/src/views/system/menu/index.vue
ruoyi-ui/src/views/system/menu/index.vue
+5
-0
sql/ry-vue.sql
sql/ry-vue.sql
+122
-83
No files found.
ruoyi-system/src/main/resources/mapper/finance/FncInvoiceMapper.xml
View file @
ae455a49
...
@@ -5,29 +5,33 @@
...
@@ -5,29 +5,33 @@
<mapper
namespace=
"com.ruoyi.system.mapper.FncInvoiceMapper"
>
<mapper
namespace=
"com.ruoyi.system.mapper.FncInvoiceMapper"
>
<sql
id=
"querySql"
>
<sql
id=
"querySql"
>
select
<include
refid=
"allField"
/>
select
<include
refid=
"allField"
/>
from fnc_invoice A
from fnc_invoice A
<include
refid=
"search"
/>
<include
refid=
"search"
/>
</sql>
</sql>
<select
id=
"queryList"
resultType=
"com.ruoyi.system.domain.vo.FncInvoiceVo"
>
<select
id=
"queryList"
resultType=
"com.ruoyi.system.domain.vo.FncInvoiceVo"
>
<include
refid=
"querySql"
/>
<include
refid=
"querySql"
></include>
<where>
<if
test=
"entity.companyId != null and entity.companyId != 0"
>
<if
test=
"entity.companyId != null and entity.companyId != 0"
>
and A.company_id = #{entity.companyId}
and A.company_id = #{entity.companyId}
</if>
</if>
<if
test=
"entity.companyName != null and entity.companyName != ''"
>
<if
test=
"entity.companyName != null and entity.companyName != ''"
>
and A.company_name like concat('%', #{entity.companyName}, '%')
and A.company_name like concat('%', #{entity.companyName}, '%')
</if>
</if>
<if
test=
"entity.invoiceType != null and entity.invoiceType != 0"
>
and A.invoice_type = #{entity.invoiceType}
<if
test=
"entity.invoiceType != null"
>
and A.invoice_type = #{entity.invoiceType,jdbcType=INTEGER}
</if>
</if>
<if
test=
"entity.invoiceNature != null and entity.invoiceNature != 0
"
>
<if
test=
"entity.invoiceNature != null
"
>
and A.invoice_nature = #{entity.invoiceNature
}
and A.invoice_nature = #{entity.invoiceNature,jdbcType=INTEGER
}
</if>
</if>
<if
test=
"entity.depName != null and entity.depName != ''"
>
<if
test=
"entity.depName != null and entity.depName != ''"
>
and A.dep_name like concat('%', #{entity.depName}, '%')
and A.dep_name like concat('%', #{entity.depName}, '%')
</if>
</if>
<if
test=
"entity.invoiceDate != null and entity.invoiceDate != 0
"
>
<if
test=
"entity.invoiceDate != null and entity.invoiceDate != ''
"
>
and A.invoice_date = #{entity.invoiceDate}
and A.invoice_date = #{entity.invoiceDate}
</if>
</if>
<if
test=
"entity.buyName != null and entity.buyName != ''"
>
<if
test=
"entity.buyName != null and entity.buyName != ''"
>
...
@@ -57,16 +61,16 @@
...
@@ -57,16 +61,16 @@
<if
test=
"entity.projectOrInvoiceNo != null and entity.projectOrInvoiceNo != ''"
>
<if
test=
"entity.projectOrInvoiceNo != null and entity.projectOrInvoiceNo != ''"
>
and A.project_or_invoice_no like concat('%', #{entity.projectOrInvoiceNo}, '%')
and A.project_or_invoice_no like concat('%', #{entity.projectOrInvoiceNo}, '%')
</if>
</if>
<if
test=
"entity.amountSum != null and entity.amountSum != 0
"
>
<if
test=
"entity.amountSum != null and entity.amountSum != ''
"
>
and A.amount_sum = #{entity.amountSum}
and A.amount_sum = #{entity.amountSum}
</if>
</if>
<if
test=
"entity.taxSum != null and entity.taxSum != 0
"
>
<if
test=
"entity.taxSum != null and entity.taxSum != ''
"
>
and A.tax_sum = #{entity.taxSum}
and A.tax_sum = #{entity.taxSum}
</if>
</if>
<if
test=
"entity.amountTaxCapital != null and entity.amountTaxCapital != ''"
>
<if
test=
"entity.amountTaxCapital != null and entity.amountTaxCapital != ''"
>
and A.amount_tax_capital like concat('%', #{entity.amountTaxCapital}, '%')
and A.amount_tax_capital like concat('%', #{entity.amountTaxCapital}, '%')
</if>
</if>
<if
test=
"entity.amountTaxLower != null and entity.amountTaxLower != 0
"
>
<if
test=
"entity.amountTaxLower != null and entity.amountTaxLower != ''
"
>
and A.amount_tax_lower = #{entity.amountTaxLower}
and A.amount_tax_lower = #{entity.amountTaxLower}
</if>
</if>
<if
test=
"entity.saleName != null and entity.saleName != ''"
>
<if
test=
"entity.saleName != null and entity.saleName != ''"
>
...
@@ -99,6 +103,8 @@
...
@@ -99,6 +103,8 @@
<if
test=
"entity.drawer != null and entity.drawer != ''"
>
<if
test=
"entity.drawer != null and entity.drawer != ''"
>
and A.drawer like concat('%', #{entity.drawer}, '%')
and A.drawer like concat('%', #{entity.drawer}, '%')
</if>
</if>
</where>
order by A.create_time desc
order by A.create_time desc
</select>
</select>
...
...
ruoyi-ui/src/views/finance/invoice/index.vue
View file @
ae455a49
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<el-form-item
label=
"公司名称"
prop=
"companyName"
>
<el-form-item
label=
"公司名称"
prop=
"companyName"
>
<!--
<el-input
v-model=
"queryParams.companyName"
placeholder=
"请输入公司名称"
clearable
<!--
<el-input
v-model=
"queryParams.companyName"
placeholder=
"请输入公司名称"
clearable
@
keyup.enter.native=
"handleQuery"
/>
-->
@
keyup.enter.native=
"handleQuery"
/>
-->
<el-select
v-model=
"queryParams.company
Name
"
placeholder=
"请选择公司名称"
clearable
>
<el-select
v-model=
"queryParams.company
Id
"
placeholder=
"请选择公司名称"
clearable
>
<el-option
v-for=
"item in companyList"
:key=
"item.companyId"
:label=
"item.companyName"
<el-option
v-for=
"item in companyList"
:key=
"item.companyId"
:label=
"item.companyName"
:value=
"item.companyId"
>
:value=
"item.companyId"
>
</el-option>
</el-option>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"发票日期"
prop=
"invoiceDate"
>
<el-form-item
label=
"发票日期"
prop=
"invoiceDate"
>
<el-date-picker
clearable
v-model=
"queryParams.invoiceDate"
type=
"date"
<el-date-picker
clearable
v-model=
"queryParams.invoiceDate"
type=
"date"
value-format=
"yyyy-MM-dd
HH:mm:ss
"
placeholder=
"请选择发票日期"
>
value-format=
"yyyy-MM-dd"
placeholder=
"请选择发票日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
...
@@ -63,12 +63,22 @@
...
@@ -63,12 +63,22 @@
<!--
<el-table-column
label=
"发票id"
align=
"center"
prop=
"invoiceId"
/>
-->
<!--
<el-table-column
label=
"发票id"
align=
"center"
prop=
"invoiceId"
/>
-->
<!--
<el-table-column
label=
"公司id"
align=
"center"
prop=
"companyId"
/>
-->
<!--
<el-table-column
label=
"公司id"
align=
"center"
prop=
"companyId"
/>
-->
<el-table-column
label=
"公司名称"
align=
"center"
prop=
"companyName"
/>
<el-table-column
label=
"公司名称"
align=
"center"
prop=
"companyName"
/>
<el-table-column
label=
"发票类型"
align=
"center"
prop=
"invoiceType"
/>
<el-table-column
label=
"发票类型"
align=
"center"
prop=
"invoiceType"
>
<el-table-column
label=
"发票性质"
align=
"center"
prop=
"invoiceNature"
/>
<template
slot-scope=
"scope"
>
<el-tag
type=
"info"
v-if=
"scope.row.invoiceType == 0"
>
普通发票
</el-tag>
<el-tag
type=
"info"
v-else-if=
"scope.row.invoiceType == 1"
>
增值税专用发票
</el-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"发票性质"
align=
"center"
prop=
"invoiceNature"
>
<
template
slot-scope=
"scope"
>
<el-tag
type=
"info"
v-if=
"scope.row.invoiceNature == '0'"
>
进项
</el-tag>
<el-tag
type=
"info"
v-else-if=
"scope.row.invoiceNature == '1'"
>
出项
</el-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"部门名称"
align=
"center"
prop=
"depName"
/>
<el-table-column
label=
"部门名称"
align=
"center"
prop=
"depName"
/>
<el-table-column
label=
"发票日期"
align=
"center"
prop=
"invoiceDate"
width=
"180"
>
<el-table-column
label=
"发票日期"
align=
"center"
prop=
"invoiceDate"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
invoiceDate
)
}}
</span>
<span>
{{
scope
.
row
.
invoiceDate
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"购买方名称"
align=
"center"
prop=
"buyName"
/>
<el-table-column
label=
"购买方名称"
align=
"center"
prop=
"buyName"
/>
...
@@ -83,7 +93,7 @@
...
@@ -83,7 +93,7 @@
<el-table-column label="项目编号/发票号码" align="center" prop="projectOrInvoiceNo" /> -->
<el-table-column label="项目编号/发票号码" align="center" prop="projectOrInvoiceNo" /> -->
<el-table-column
label=
"合计金额"
align=
"center"
prop=
"amountSum"
/>
<el-table-column
label=
"合计金额"
align=
"center"
prop=
"amountSum"
/>
<el-table-column
label=
"合计税额"
align=
"center"
prop=
"taxSum"
/>
<el-table-column
label=
"合计税额"
align=
"center"
prop=
"taxSum"
/>
<el-table-column
label=
"价税合计"
align=
"center"
prop=
"amountTaxCapital"
/>
<el-table-column
label=
"价税合计
(大写)
"
align=
"center"
prop=
"amountTaxCapital"
/>
<el-table-column
label=
"价税合计"
align=
"center"
prop=
"amountTaxLower"
/>
<el-table-column
label=
"价税合计"
align=
"center"
prop=
"amountTaxLower"
/>
<!-- <el-table-column label="销售方纳税人识别号" align="center" prop="saleTaxpayerNo" />
<!-- <el-table-column label="销售方纳税人识别号" align="center" prop="saleTaxpayerNo" />
<el-table-column label="销售方地址" align="center" prop="saleAddress" />
<el-table-column label="销售方地址" align="center" prop="saleAddress" />
...
@@ -411,7 +421,9 @@
...
@@ -411,7 +421,9 @@
<el-col
:span=
"15"
:offset=
"0"
style=
"height: 500px;"
>
<el-col
:span=
"15"
:offset=
"0"
style=
"height: 500px;"
>
<body
style=
"height: 100%"
>
<el-button
type=
"primary"
v-print=
"printObj"
>
打印
</el-button>
<body
style=
"height: 100%"
id=
"printDiv"
>
<div
class=
"toptip c-red"
>
<div
class=
"toptip c-red"
>
模板样式仅供参考,不可用于实际开票依据!
模板样式仅供参考,不可用于实际开票依据!
</div>
</div>
...
@@ -465,11 +477,11 @@
...
@@ -465,11 +477,11 @@
<label>
纳税人识别号:
</label><span
class=
"f-big"
>
{{form.buyTaxpayerNo}}
</span>
<label>
纳税人识别号:
</label><span
class=
"f-big"
>
{{form.buyTaxpayerNo}}
</span>
</li>
</li>
<li>
<li>
<label>
地址、
电话:
</label><span
class=
"f-small"
>
{{form.buyAddress}}
<label>
地址、
电话:
</label><span
class=
"f-small"
style=
"font-size:15px"
>
{{form.buyAddress}}
{{form.buyPhone}}
</span>
{{form.buyPhone}}
</span>
</li>
</li>
<li>
<li>
<label>
开户行及账号:
</label><span
class=
"f-small"
>
{{form.buyBankDeposit}}
<label>
开户行及账号:
</label><span
class=
"f-small"
style=
"font-size:15px"
>
{{form.buyBankDeposit}}
{{form.buyBankAccount}}
</span>
{{form.buyBankAccount}}
</span>
</li>
</li>
</ul>
</ul>
...
@@ -700,11 +712,11 @@
...
@@ -700,11 +712,11 @@
<label>
纳税人识别号:
</label><span
class=
"f-big"
>
{{form.saleTaxpayerNo}}
</span>
<label>
纳税人识别号:
</label><span
class=
"f-big"
>
{{form.saleTaxpayerNo}}
</span>
</li>
</li>
<li>
<li>
<label>
地址、
电话:
</label><span
class=
"f-small2"
>
{{form.saleAddress}}
<label>
地址、
电话:
</label><span
class=
"f-small2"
style=
"font-size:15px"
>
{{form.saleAddress}}
{{form.salePhone}}
</span>
{{form.salePhone}}
</span>
</li>
</li>
<li>
<li>
<label>
开户行及账号:
</label><span
class=
"f-small"
>
{{form.saleBankDeposit}}
<label>
开户行及账号:
</label><span
class=
"f-small"
style=
"font-size:15px"
>
{{form.saleBankDeposit}}
{{form.saleBankAccount}}
</span>
{{form.saleBankAccount}}
</span>
</li>
</li>
</ul>
</ul>
...
@@ -750,7 +762,8 @@ export default {
...
@@ -750,7 +762,8 @@ export default {
name
:
"
Invoice
"
,
name
:
"
Invoice
"
,
filters
:
{
filters
:
{
typeFilter
(
value
,
this_
)
{
typeFilter
(
value
,
this_
)
{
if
(
!
value
)
{
if
(
value
===
""
||
value
===
undefined
||
value
===
null
)
{
console
.
log
(
value
)
return
""
return
""
}
}
return
this_
.
invoiceTypeList
.
find
((
item
,
index
,
array
)
=>
{
return
this_
.
invoiceTypeList
.
find
((
item
,
index
,
array
)
=>
{
...
@@ -758,7 +771,7 @@ export default {
...
@@ -758,7 +771,7 @@ export default {
}).
label
}).
label
},
},
natureFilter
(
value
,
this_
)
{
natureFilter
(
value
,
this_
)
{
if
(
!
value
)
{
if
(
value
===
""
||
value
===
undefined
||
value
===
null
)
{
return
""
return
""
}
}
return
this_
.
invoiceNatureList
.
find
((
item
,
index
,
array
)
=>
{
return
this_
.
invoiceNatureList
.
find
((
item
,
index
,
array
)
=>
{
...
@@ -771,13 +784,13 @@ export default {
...
@@ -771,13 +784,13 @@ export default {
this_
:
this
,
this_
:
this
,
//发票类型
//发票类型
invoiceTypeList
:
[
invoiceTypeList
:
[
{
label
:
"
普通发票
"
,
value
:
"
0
"
},
{
label
:
"
普通发票
"
,
value
:
0
},
{
label
:
"
增值税专用发票
"
,
value
:
"
1
"
},
{
label
:
"
增值税专用发票
"
,
value
:
1
},
],
],
//发票性质
//发票性质
invoiceNatureList
:
[
invoiceNatureList
:
[
{
label
:
"
进项
"
,
value
:
"
0
"
},
{
label
:
"
进项
"
,
value
:
0
},
{
label
:
"
出项
"
,
value
:
"
1
"
},
{
label
:
"
出项
"
,
value
:
1
},
],
],
// 根路径
// 根路径
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
...
@@ -805,6 +818,10 @@ export default {
...
@@ -805,6 +818,10 @@ export default {
title
:
""
,
title
:
""
,
// 是否显示弹出层
// 是否显示弹出层
open
:
false
,
open
:
false
,
printObj
:
{
id
:
"
printDiv
"
,
popTitle
:
"
发票打印
"
,
},
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
...
@@ -1376,9 +1393,11 @@ label {
...
@@ -1376,9 +1393,11 @@ label {
}
}
.headerMiddle
{
.headerMiddle
{
width
:
300px
;
width
:
50%
;
margin
:
auto
;
margin
-left
:
200px
;
text-align
:
right
;
text-align
:
right
;
}
}
.headerMiddle
h1
{
.headerMiddle
h1
{
...
@@ -1387,8 +1406,9 @@ label {
...
@@ -1387,8 +1406,9 @@ label {
padding-bottom
:
22px
;
padding-bottom
:
22px
;
}
}
.headerRight
{
.headerRight
{
width
:
300px
;
width
:
50%
;
margin
:
auto
;
margin-right
:
230px
;
}
}
.headerRight
h1
{
.headerRight
h1
{
font-size
:
32px
;
font-size
:
32px
;
...
...
ruoyi-ui/src/views/system/menu/index.vue
View file @
ae455a49
...
@@ -309,6 +309,11 @@ export default {
...
@@ -309,6 +309,11 @@ export default {
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
//打印参数
printObj
:
{
id
:
"
printDiv
"
,
popTitle
:
"
发票打印
"
,
},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
menuName
:
[
menuName
:
[
...
...
sql/ry-vue.sql
View file @
ae455a49
This diff is collapsed.
Click to expand it.
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