Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
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
micro_app
gk
Commits
94b77fab
Commit
94b77fab
authored
Jun 30, 2025
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(invoice): 新增是否是是否是单位字段和后台显示
parent
88185416
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
5 deletions
+39
-5
Invoice.java
.../java/com/dlbridge/jadp/plugins/partner/bean/Invoice.java
+4
-0
InvoiceParam.java
.../com/dlbridge/jadp/plugins/partner/bean/InvoiceParam.java
+3
-0
InvoiceMapper.xml
...om/dlbridge/jadp/plugins/partner/mapper/InvoiceMapper.xml
+9
-2
invoice.jsp
src/main/webapp/WEB-INF/views/cmpt/invoice.jsp
+23
-3
No files found.
src/main/java/com/dlbridge/jadp/plugins/partner/bean/Invoice.java
View file @
94b77fab
...
@@ -25,6 +25,10 @@ public class Invoice extends JaapRecord<BagDelivery> {
...
@@ -25,6 +25,10 @@ public class Invoice extends JaapRecord<BagDelivery> {
@ApiModelProperty
(
value
=
"参赛号"
,
notes
=
"参赛号"
)
@ApiModelProperty
(
value
=
"参赛号"
,
notes
=
"参赛号"
)
private
String
markNo
;
private
String
markNo
;
@ApiModelProperty
(
value
=
"是否是公司(0:个人,1:公司)"
,
notes
=
"是否是公司(0:个人,1:公司)"
)
private
String
isCompany
;
@ApiModelProperty
(
value
=
"发票类型(1:普通发票,2:增值税专票)"
,
notes
=
"发票类型(1:普通发票,2:增值税专票)"
)
@ApiModelProperty
(
value
=
"发票类型(1:普通发票,2:增值税专票)"
,
notes
=
"发票类型(1:普通发票,2:增值税专票)"
)
private
String
invoiceType
;
private
String
invoiceType
;
...
...
src/main/java/com/dlbridge/jadp/plugins/partner/bean/InvoiceParam.java
View file @
94b77fab
...
@@ -23,4 +23,7 @@ public class InvoiceParam {
...
@@ -23,4 +23,7 @@ public class InvoiceParam {
@ApiModelProperty
(
value
=
"开票方式(0:电子发票,1:纸质发票)"
,
notes
=
"开票方式(0:电子发票,1:纸质发票)"
)
@ApiModelProperty
(
value
=
"开票方式(0:电子发票,1:纸质发票)"
,
notes
=
"开票方式(0:电子发票,1:纸质发票)"
)
private
String
paperInvoice
;
private
String
paperInvoice
;
@ApiModelProperty
(
value
=
"是否是公司(0:个人,1:公司)"
,
notes
=
"是否是公司(0:个人,1:公司)"
)
private
String
isCompany
;
}
}
\ No newline at end of file
src/main/java/com/dlbridge/jadp/plugins/partner/mapper/InvoiceMapper.xml
View file @
94b77fab
...
@@ -5,10 +5,10 @@
...
@@ -5,10 +5,10 @@
<insert
id=
"insertInvoice"
>
<insert
id=
"insertInvoice"
>
insert into invoice_record(cmpt_id, mark_no, invoice_type, paper_invoice, amount, header, tax_payer_id, tax_bank,
insert into invoice_record(cmpt_id, mark_no, invoice_type, paper_invoice, amount, header, tax_payer_id, tax_bank,
tax_bank_account, tax_registered_address, tax_phone,email,receiver_name,receiver_phone,
tax_bank_account, tax_registered_address, tax_phone,email,receiver_name,receiver_phone,
receiver_address,remark,status,del_flag, create_date)
receiver_address,remark,status,del_flag, create_date
,is_company
)
values (#{cmptId}, #{markNo}, #{invoiceType}, #{paperInvoice}, #{amount}, #{header},#{taxPayerId}, #{taxBank},
values (#{cmptId}, #{markNo}, #{invoiceType}, #{paperInvoice}, #{amount}, #{header},#{taxPayerId}, #{taxBank},
#{taxBankAccount}, #{taxRegisteredAddress}, #{taxPhone}, #{email}, #{receiverName}, #{receiverPhone},
#{taxBankAccount}, #{taxRegisteredAddress}, #{taxPhone}, #{email}, #{receiverName}, #{receiverPhone},
#{receiverAddress},#{remark}, 1, 0, now())
#{receiverAddress},#{remark}, 1, 0, now()
,#{isCompany}
)
</insert>
</insert>
<update
id=
"delInvoice"
>
<update
id=
"delInvoice"
>
...
@@ -22,6 +22,9 @@
...
@@ -22,6 +22,9 @@
<if
test=
"markNo != null"
>
<if
test=
"markNo != null"
>
,mark_no=#{markNo}
,mark_no=#{markNo}
</if>
</if>
<if
test=
"isCompany != null"
>
,is_company=#{isCompany}
</if>
<if
test=
"invoiceType != null"
>
<if
test=
"invoiceType != null"
>
,invoice_type=#{invoiceType}
,invoice_type=#{invoiceType}
</if>
</if>
...
@@ -81,6 +84,7 @@
...
@@ -81,6 +84,7 @@
id,
id,
cmpt_id cmptId,
cmpt_id cmptId,
mark_no markNo,
mark_no markNo,
is_company isCompany,
invoice_type invoiceType,
invoice_type invoiceType,
paper_invoice paperInvoice,
paper_invoice paperInvoice,
amount,
amount,
...
@@ -125,6 +129,9 @@
...
@@ -125,6 +129,9 @@
<if
test=
"param.markNo != null and param.markNo != '' "
>
<if
test=
"param.markNo != null and param.markNo != '' "
>
and mark_no=#{param.markNo}
and mark_no=#{param.markNo}
</if>
</if>
<if
test=
"param.isCompany != null and param.isCompany != '' "
>
and is_company=#{param.isCompany}
</if>
</sql>
</sql>
</mapper>
</mapper>
\ No newline at end of file
src/main/webapp/WEB-INF/views/cmpt/invoice.jsp
View file @
94b77fab
...
@@ -352,6 +352,9 @@
...
@@ -352,6 +352,9 @@
<span
class=
"lh-1.2"
>
<span
class=
"lh-1.2"
>
发票类型:{{invoiceEnum[item.invoiceType]}}
发票类型:{{invoiceEnum[item.invoiceType]}}
</span>
</span>
<span
class=
"lh-1.2"
>
开票方式:{{isCompanyEnum[item.isCompany]}}
</span>
<span
class=
"lh-1.2"
>
<span
class=
"lh-1.2"
>
发票状态:{{statusEnum[item.status]}}
发票状态:{{statusEnum[item.status]}}
</span>
</span>
...
@@ -394,7 +397,7 @@
...
@@ -394,7 +397,7 @@
编辑
编辑
</span>
</span>
</div>
</div>
<div
class=
"opt del"
@
click=
"del
i
nvoice(item)"
>
<div
class=
"opt del"
@
click=
"del
I
nvoice(item)"
>
<span
class=
"icon-del"
></span>
<span
class=
"icon-del"
></span>
<span
class=
"del"
>
<span
class=
"del"
>
删除
删除
...
@@ -451,6 +454,18 @@
...
@@ -451,6 +454,18 @@
</label>
</label>
</div>
</div>
</div>
</div>
<!-- 发票方式 -->
<div
class=
"form-item"
>
<span
class=
"form-label"
>
发票方式
</span>
<div
class=
"label-box"
>
<label>
<input
type=
"radio"
v-model=
"invoice.isCompany"
value=
"0"
>
个人
</label>
<label>
<input
type=
"radio"
v-model=
"invoice.isCompany"
value=
"1"
>
单位
</label>
</div>
</div>
<!-- 开票方式 -->
<!-- 开票方式 -->
<div
class=
"form-item"
>
<div
class=
"form-item"
>
...
@@ -475,7 +490,6 @@
...
@@ -475,7 +490,6 @@
placeholder=
"请输入开票金额"
>
placeholder=
"请输入开票金额"
>
</div>
</div>
</div>
</div>
<!-- 开票抬头 -->
<!-- 开票抬头 -->
<div
class=
"form-item"
>
<div
class=
"form-item"
>
<div>
<div>
...
@@ -656,6 +670,10 @@
...
@@ -656,6 +670,10 @@
1
:
"普通发票"
,
1
:
"普通发票"
,
2
:
"增值税专票"
,
2
:
"增值税专票"
,
},
},
isCompanyEnum
:
{
0
:
"个人"
,
1
:
"单位"
,
},
paperEnum
:
{
paperEnum
:
{
0
:
"电子发票"
,
0
:
"电子发票"
,
1
:
"纸质发票"
,
1
:
"纸质发票"
,
...
@@ -664,6 +682,7 @@
...
@@ -664,6 +682,7 @@
cmptId
:
getCId
(),
cmptId
:
getCId
(),
invoiceType
:
'1'
,
// 1:普通发票 2:增值税专票
invoiceType
:
'1'
,
// 1:普通发票 2:增值税专票
paperInvoice
:
'0'
,
// 0:电子发票 1:纸质发票
paperInvoice
:
'0'
,
// 0:电子发票 1:纸质发票
isCompany
:
'0'
,
// 0: 个人 1: 企业
amount
:
null
,
amount
:
null
,
header
:
null
,
header
:
null
,
taxPayerId
:
null
,
taxPayerId
:
null
,
...
@@ -720,6 +739,7 @@
...
@@ -720,6 +739,7 @@
cmptId
:
getCId
(),
cmptId
:
getCId
(),
invoiceType
:
'1'
,
// 1:普通发票 2:增值税专票
invoiceType
:
'1'
,
// 1:普通发票 2:增值税专票
paperInvoice
:
'0'
,
// 0:电子发票 1:纸质发票
paperInvoice
:
'0'
,
// 0:电子发票 1:纸质发票
isCompany
:
'0'
,
// 0: 个人 1: 企业
amount
:
null
,
amount
:
null
,
header
:
null
,
header
:
null
,
taxPayerId
:
null
,
taxPayerId
:
null
,
...
@@ -739,7 +759,7 @@
...
@@ -739,7 +759,7 @@
this
.
dialog
=
true
;
this
.
dialog
=
true
;
},
},
// 删除
// 删除
del
i
nvoice
(
data
)
{
del
I
nvoice
(
data
)
{
layer
.
confirm
(
"确认要删除吗?"
,
function
()
{
layer
.
confirm
(
"确认要删除吗?"
,
function
()
{
$
.
ajax
({
$
.
ajax
({
url
:
'/gk/invoice/delete?id='
+
data
.
id
,
url
:
'/gk/invoice/delete?id='
+
data
.
id
,
...
...
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