Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
registration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
13
Issues
13
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
丁伟
registration
Commits
8e738829
Commit
8e738829
authored
Jan 11, 2022
by
丁伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修改普票与专票 必填项问题
parent
dba93c75
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
80 deletions
+52
-80
src/main/webapp/WEB-INF/jsp/front/info.jsp
+18
-18
src/main/webapp/WEB-INF/jsp/front/reg.jsp
+0
-0
src/main/webapp/resource/front/js/info.js
+20
-31
src/main/webapp/resource/front/js/reg.js
+14
-31
No files found.
src/main/webapp/WEB-INF/jsp/front/info.jsp
View file @
8e738829
...
...
@@ -441,13 +441,13 @@
</select></td>
<td><span
class=
"reg_body"
></span></td>
</tr>
<tr
name=
"trCompanyName"
id=
"companyNameId"
style=
"display :none"
>
<tr
name=
"trCompanyName"
id=
"companyNameId"
>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
发票抬头:
</td>
<td><input
id=
"companyNameId01"
class=
"required"
name=
"invoiceTitle"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body"
>
请填写您的单位全称
</span></td>
<td><span
class=
"reg_body"
>
必填:
请填写您的单位全称
</span></td>
</tr>
<tr
id=
"subjectNameId"
name=
"trSubjectName"
style=
"display :none"
>
<tr
id=
"subjectNameId"
name=
"trSubjectName"
>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
发票内容:
</td>
<!-- <td><input id="subjectNameId01" class="required" name="subjectName" style="width:220px" type="text"></td> -->
<td>
...
...
@@ -455,42 +455,42 @@
</td>
<td><span
class=
"reg_body"
>
考试只能开具与之相对应的考试费发票
</span></td>
</tr>
<tr
id=
"taxpayerNumId"
name=
"trTaxpayerNum"
style=
"display :none"
>
<tr
id=
"taxpayerNumId"
name=
"trTaxpayerNum"
>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span>
纳税人识别号:
</td>
<td><input
id=
"taxpayerNumId01"
class=
"required"
name=
"taxpayerNum"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body"
>
请填写您的纳税人识别号
</span></td>
<td><span
class=
"reg_body"
>
必填:
请填写您的纳税人识别号
</span></td>
</tr>
<tr
id=
"addressNameId"
name=
"trAddressName"
style=
"display :none"
>
<tr
id=
"addressNameId"
name=
"trAddressName"
>
<div>
<td
class=
"name"
><span
style=
"color: red;
"
>
*
</span>
公司地址:
</td>
<td
class=
"name"
><span
id=
"dizhi_id"
style=
"color: red;display :none
"
>
*
</span>
公司地址:
</td>
<td><input
id=
"addressNameId01"
class=
"required"
name=
"addressName"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body
"
>
请填写您的公司地址
</span></td>
<td><span
class=
"reg_body
"
><span
class=
"xuantian"
style=
"display: none"
>
选填:
</span><span
class=
"bitian"
style=
"display: none;color: red"
>
必填:
</span
>
请填写您的公司地址
</span></td>
</div>
</tr>
<tr
id=
"telephoneId"
name=
"trTelephone"
style=
"display :none"
>
<tr
id=
"telephoneId"
name=
"trTelephone"
>
<div>
<td
class=
"name"
><span
style=
"color: red;
"
>
*
</span>
公司电话:
</td>
<td
class=
"name"
><span
id=
"dianhua_id"
style=
"color: red;display :none
"
>
*
</span>
公司电话:
</td>
<td><input
id=
"telephoneId01"
class=
"required"
name=
"telephone"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body
"
>
请填写您的公司电话
</span></td>
<td><span
class=
"reg_body
"
><span
class=
"xuantian"
style=
"display: none"
>
选填:
</span><span
class=
"bitian"
style=
"display: none;color: red"
>
必填:
</span
>
请填写您的公司电话
</span></td>
</div>
</tr>
<tr
id=
"bankAddressId"
name=
"trBankAddress"
style=
"display :none"
>
<tr
id=
"bankAddressId"
name=
"trBankAddress"
>
<div>
<td
class=
"name"
><span
style=
"color: red;
"
>
*
</span>
开户行:
</td>
<td
class=
"name"
><span
id=
"kaihuhang_id"
style=
"color: red;display :none
"
>
*
</span>
开户行:
</td>
<td><input
id=
"bankAddressId01"
class=
"required"
name=
"bankAddress"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body
"
>
请填写您的开户行
</span></td>
<td><span
class=
"reg_body
"
><span
class=
"xuantian"
style=
"display: none"
>
选填:
</span><span
class=
"bitian"
style=
"display: none;color: red"
>
必填:
</span
>
请填写您的开户行
</span></td>
</div>
</tr>
<tr
id=
"bankAccountId"
name=
"trBankAccount"
style=
"display :none"
>
<tr
id=
"bankAccountId"
name=
"trBankAccount"
>
<div>
<td
class=
"name"
><span
style=
"color: red;
"
>
*
</span>
银行账号:
</td>
<td
class=
"name"
><span
id=
"zhanghao_id"
style=
"color: red;display :none
"
>
*
</span>
银行账号:
</td>
<td><input
id=
"bankAccountId01"
class=
"required"
name=
"bankAccount"
style=
"width:220px"
type=
"text"
></td>
<td><span
class=
"reg_body
"
>
请填写您的开户行账号
</span></td>
<td><span
class=
"reg_body
"
><span
class=
"xuantian"
style=
"display: none"
>
选填:
</span><span
class=
"bitian"
style=
"display: none;color: red"
>
必填:
</span
>
请填写您的开户行账号
</span></td>
</div>
</tr>
<tr>
...
...
@@ -504,7 +504,7 @@
<option
value=
"1"
>
款项到账当年开具
</option>
<option
value=
"2"
>
款项到账次年开具
</option>
</select></td>
<td><span
class=
"reg_body"
>
当年开具为款项到账后的两个月内,次年开具为到账第二年的1月31日前
</span></td>
<td><span
class=
"reg_body"
>
必填:
当年开具为款项到账后的两个月内,次年开具为到账第二年的1月31日前
</span></td>
</tr>
<tr>
<td
align=
"center"
>
...
...
src/main/webapp/WEB-INF/jsp/front/reg.jsp
View file @
8e738829
This diff is collapsed.
Click to expand it.
src/main/webapp/resource/front/js/info.js
View file @
8e738829
...
...
@@ -17,29 +17,33 @@ $(function () {
$
(
"#appreciationTaxTypeId"
).
change
(
function
()
{
var
appreciationTaxType
=
$
(
"#appreciationTaxTypeId"
).
find
(
"option:selected"
).
val
();
if
(
"1"
==
appreciationTaxType
)
{
$
(
"#
companyNameId"
).
css
(
"display"
,
"
"
);
$
(
"#
subjectNameId"
).
css
(
"display"
,
"
"
);
$
(
"#
taxpayerNumId"
).
css
(
"display"
,
"
"
);
$
(
"#
addressNameI
d"
).
css
(
"display"
,
"none"
);
$
(
"
#telephoneId"
).
css
(
"display"
,
"none
"
);
$
(
"
#bankAddressId
"
).
css
(
"display"
,
"none"
);
$
(
"
#bankAccountId"
).
css
(
"display"
,
"none
"
);
$
(
"
#taxpayerNumId01"
).
removeAttr
(
"class
"
);
$
(
"#
dizhi_id"
).
css
(
"display"
,
"none
"
);
$
(
"#
dianhua_id"
).
css
(
"display"
,
"none
"
);
$
(
"#
kaihuhang_id"
).
css
(
"display"
,
"none
"
);
$
(
"#
zhanghao_i
d"
).
css
(
"display"
,
"none"
);
$
(
"
.xuantian"
).
css
(
"display"
,
"
"
);
$
(
"
.bitian
"
).
css
(
"display"
,
"none"
);
$
(
"
.xuantian"
).
css
(
"display"
,
"
"
);
$
(
"
.bitian"
).
css
(
"display"
,
"none
"
);
$
(
"#addressNameId01"
).
removeAttr
(
"class"
);
$
(
"#telephoneId01"
).
removeAttr
(
"class"
);
$
(
"#bankAddressId01"
).
removeAttr
(
"class"
);
$
(
"#bankAccountId01"
).
removeAttr
(
"class"
);
$
(
"#companyNameId01"
).
val
(
$
(
"#invoiceTitle_id"
).
text
());
$
(
"#taxpayerNumId01"
).
val
(
$
(
"#taxpayerNum_id"
).
text
());
$
(
"#addressNameId01"
).
val
(
$
(
"#addressName_id"
).
text
());
$
(
"#telephoneId01"
).
val
(
$
(
"#telephone_id"
).
text
());
$
(
"#bankAddressId01"
).
val
(
$
(
"#bankAddress_id"
).
text
());
$
(
"#bankAccountId01"
).
val
(
$
(
"#bankAccount_id"
).
text
());
}
else
if
(
"2"
==
appreciationTaxType
)
{
$
(
"#
companyNameI
d"
).
css
(
"display"
,
""
);
$
(
"#
subjectNameI
d"
).
css
(
"display"
,
""
);
$
(
"#
taxpayerNumI
d"
).
css
(
"display"
,
""
);
$
(
"#
addressNameI
d"
).
css
(
"display"
,
""
);
$
(
"
#telephoneId"
).
css
(
"display"
,
"
"
);
$
(
"
#bankAddressId
"
).
css
(
"display"
,
""
);
$
(
"
#bankAccountId"
).
css
(
"display"
,
"
"
);
$
(
"
#taxpayerNumId01"
).
attr
(
"class"
,
"required
"
);
$
(
"#
dizhi_i
d"
).
css
(
"display"
,
""
);
$
(
"#
dianhua_i
d"
).
css
(
"display"
,
""
);
$
(
"#
kaihuhang_i
d"
).
css
(
"display"
,
""
);
$
(
"#
zhanghao_i
d"
).
css
(
"display"
,
""
);
$
(
"
.xuantian"
).
css
(
"display"
,
"none
"
);
$
(
"
.bitian
"
).
css
(
"display"
,
""
);
$
(
"
.xuantian"
).
css
(
"display"
,
"none
"
);
$
(
"
.bitian"
).
css
(
"display"
,
"
"
);
$
(
"#addressNameId01"
).
attr
(
"class"
,
"required"
);
$
(
"#telephoneId01"
).
attr
(
"class"
,
"required"
);
$
(
"#bankAddressId01"
).
attr
(
"class"
,
"required"
);
...
...
@@ -50,21 +54,6 @@ $(function () {
$
(
"#telephoneId01"
).
val
(
$
(
"#telephone_id"
).
text
());
$
(
"#bankAddressId01"
).
val
(
$
(
"#bankAddress_id"
).
text
());
$
(
"#bankAccountId01"
).
val
(
$
(
"#bankAccount_id"
).
text
());
}
else
{
$
(
"#companyNameId"
).
css
(
"display"
,
"none"
);
$
(
"#subjectNameId"
).
css
(
"display"
,
"none"
);
$
(
"#taxpayerNumId"
).
css
(
"display"
,
"none"
);
$
(
"#addressNameId"
).
css
(
"display"
,
"none"
);
$
(
"#telephoneId"
).
css
(
"display"
,
"none"
);
$
(
"#bankAddressId"
).
css
(
"display"
,
"none"
);
$
(
"#bankAccountId"
).
css
(
"display"
,
"none"
);
$
(
"#taxpayerNumId01"
).
removeAttr
(
"class"
);
$
(
"#addressNameId01"
).
removeAttr
(
"class"
);
$
(
"#telephoneId01"
).
removeAttr
(
"class"
);
$
(
"#bankAddressId01"
).
removeAttr
(
"class"
);
$
(
"#companyNameId01"
).
removeAttr
(
"class"
);
$
(
"#subjectNameId01"
).
removeAttr
(
"class"
);
$
(
"#bankAccountId01"
).
removeAttr
(
"class"
);
}
});
...
...
src/main/webapp/resource/front/js/reg.js
View file @
8e738829
...
...
@@ -157,46 +157,29 @@ $(function () {
$
(
"#appreciationTaxTypeId"
).
change
(
function
()
{
var
appreciationTaxType
=
$
(
"#appreciationTaxTypeId"
).
find
(
"option:selected"
).
val
();
if
(
"1"
==
appreciationTaxType
)
{
$
(
"#companyNameId"
).
css
(
"display"
,
""
);
$
(
"#subjectNameId"
).
css
(
"display"
,
""
);
$
(
"#taxpayerNumId"
).
css
(
"display"
,
""
);
$
(
"#addressNameId"
).
css
(
"display"
,
"none"
);
$
(
"#telephoneId"
).
css
(
"display"
,
"none"
);
$
(
"#bankAddressId"
).
css
(
"display"
,
"none"
);
$
(
"#bankAccountId"
).
css
(
"display"
,
"none"
);
$
(
"#taxpayerNumId01"
).
removeAttr
(
"class"
);
$
(
"#dizhi_id"
).
css
(
"display"
,
"none"
);
$
(
"#dianhua_id"
).
css
(
"display"
,
"none"
);
$
(
"#kaihuhang_id"
).
css
(
"display"
,
"none"
);
$
(
"#zhanghao_id"
).
css
(
"display"
,
"none"
);
$
(
".reg_body_duli"
).
css
(
"display"
,
"none"
);
$
(
".xuantian"
).
css
(
"display"
,
""
);
$
(
".bitian"
).
css
(
"display"
,
"none"
);
$
(
"#addressNameId01"
).
removeAttr
(
"class"
);
$
(
"#telephoneId01"
).
removeAttr
(
"class"
);
$
(
"#bankAddressId01"
).
removeAttr
(
"class"
);
$
(
"#bankAccountId01"
).
removeAttr
(
"class"
);
}
else
if
(
"2"
==
appreciationTaxType
)
{
$
(
"#companyNameId"
).
css
(
"display"
,
""
);
$
(
"#subjectNameId"
).
css
(
"display"
,
""
);
$
(
"#taxpayerNumId"
).
css
(
"display"
,
""
);
$
(
"#addressNameId"
).
css
(
"display"
,
""
);
$
(
"#telephoneId"
).
css
(
"display"
,
""
);
$
(
"#bankAddressId"
).
css
(
"display"
,
""
);
$
(
"#bankAccountId"
).
css
(
"display"
,
""
);
$
(
"#taxpayerNumId01"
).
attr
(
"class"
,
"required"
);
$
(
"#dizhi_id"
).
css
(
"display"
,
""
);
$
(
"#dianhua_id"
).
css
(
"display"
,
""
);
$
(
"#kaihuhang_id"
).
css
(
"display"
,
""
);
$
(
"#zhanghao_id"
).
css
(
"display"
,
""
);
$
(
".xuantian"
).
css
(
"display"
,
"none"
);
$
(
".bitian"
).
css
(
"display"
,
""
);
$
(
".reg_body_duli"
).
css
(
"display"
,
""
);
$
(
"#addressNameId01"
).
attr
(
"class"
,
"required"
);
$
(
"#telephoneId01"
).
attr
(
"class"
,
"required"
);
$
(
"#bankAddressId01"
).
attr
(
"class"
,
"required"
);
$
(
"#bankAccountId01"
).
attr
(
"class"
,
"required"
);
}
else
{
$
(
"#companyNameId"
).
css
(
"display"
,
"none"
);
$
(
"#subjectNameId"
).
css
(
"display"
,
"none"
);
$
(
"#taxpayerNumId"
).
css
(
"display"
,
"none"
);
$
(
"#addressNameId"
).
css
(
"display"
,
"none"
);
$
(
"#telephoneId"
).
css
(
"display"
,
"none"
);
$
(
"#bankAddressId"
).
css
(
"display"
,
"none"
);
$
(
"#bankAccountId"
).
css
(
"display"
,
"none"
);
$
(
"#taxpayerNumId01"
).
removeAttr
(
"class"
);
$
(
"#addressNameId01"
).
removeAttr
(
"class"
);
$
(
"#telephoneId01"
).
removeAttr
(
"class"
);
$
(
"#bankAddressId01"
).
removeAttr
(
"class"
);
$
(
"#companyNameId01"
).
removeAttr
(
"class"
);
$
(
"#subjectNameId01"
).
removeAttr
(
"class"
);
$
(
"#bankAccountId01"
).
removeAttr
(
"class"
);
}
})
...
...
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