Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zxtb_to_ssfwpt
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Bugzilla
Bugzilla
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
卢世豪
zxtb_to_ssfwpt
Commits
3ae09800
Commit
3ae09800
authored
May 20, 2020
by
yangyuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
把js+公式+样式换成最新的
parent
7a87adfe
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
88 additions
and
322 deletions
+88
-322
initLoader.js
static/js/tax/initLoader.js
+5
-5
result.js
static/js/tax/result.js
+5
-5
initLoader.js
static/js/year/initLoader.js
+12
-26
result.js
static/js/year/result.js
+14
-43
specialHandler.js
static/js/year/specialHandler.js
+30
-107
util.js
static/js/year/util.js
+6
-76
result.js
static/js/yearGLB/result.js
+8
-20
specialHandler.js
static/js/yearGLB/specialHandler.js
+7
-21
util.js
static/js/yearGLB/util.js
+1
-19
No files found.
static/js/tax/initLoader.js
View file @
3ae09800
...
...
@@ -36,7 +36,7 @@ var isInProduction = true;
window
.
onload
=
function
()
{
getIEVersion
();
var
url
=
window
.
location
.
host
;
if
(
"sbjs.tjsat.gov.cn"
==
url
){
if
(
"sbjs.tjsat.gov.cn
:18080
"
==
url
){
GC
.
Spread
.
Sheets
.
LicenseKey
=
"sbjs.tjsat.gov.cn,736922629637688#B0LBLdFREewVjRiZFNIdmWjtUWldkRhVWa9oFMLNlTwg4UUVTNjtUW0RXcwR5R6EnTIZTRNpXUBB7L0RWciRmaUlnUwQlTLFlYiNkMSFWaxI7bBBzc0VHOFF5M9pXSoRkQPhmZlRUewMncNBXSXZVTV36dSJVS0tEb5lnWI5mNxNzMwYEU7cnMRRUc6xmYF3GakpWYwckVF3mSsJWYlRlb6U6cZpFTGVzYhN7cjx6LphTQOFVSPxUdZVTU5pEeNhDZutmQPZFT6FEdONmc926YCl4drAlNx3Ud8o5LOhGOjJzaPJ4YUtmbx8maiJiOiMlIsIyMDdTRwYER4IiOigkIsEjN6ETO8EzM0IicfJye35XX3JSSGljQiojIDJCLiITMuYHITpEIkFWZyB7UiojIOJyebpjIkJHUiwiIxQDO4gDMggTMyEDOxAjMiojI4J7QiwiIuNmL636ZuQXYzpGduMnaiNnI0IyctRkIsICnCeOqZa+r+SuI0ISYONkIsICO8YzNzYTOyYjMykjNzcjI0ICZJJCL3V6csFmZ0IiczRmI1pjIs9WQisnOiQkIsISP3cXdOBVZwEVZ9V5V7dnTllFSVpHVYd5UZl6a6tUQ6hUQX36NTFVNKhHNC5USDlVOJBVWlJWRq3ERqJDWth7TyMmVnV7QjZWWzNXcxokewYTeBhXOFZnVBhWStt6SsB7TTJkUV3UTGlHSNRWR"
;
}
else
{
GC
.
Spread
.
Sheets
.
LicenseKey
=
"etax.tianjin.chinatax.gov.cn,498254719314719#B0WY39GZUNVZFpUQtZXVxFTRzYkQFtEbvVHRvgDb03yNXljc6R4KqtiTrFUYCF6RhdFTPhTOzpmeCRne7ZXRWVWV9MlUo34NlFDTVp6dyt4TVV7c8pERk94Uml4Y0JDcrsyYyFWbNVzcwsGRslndxw6Yy54SiJDVVZnajZVRXpmTnVVMGJGZ42GRolTSPpkea9mNxITT5YmapRHSN3iZrYWYDhXav3GOnd5LLBXYrd4badlcxwWbElFWzgmZsdWU4JVaYV6bmdWYudDVhR7KhJEOhJnQw4EbKxEdvk4NiZTWmpnN7cVY9tmd9VGZEdzSZZTai9UO8BTYqVkbppWSiojITJCLiYDOEZ4MDJzMiojIIJCL8YzN7MzN8kjM0IicfJye35XX3JSSGljQiojIDJCLiITMuYHITpEIkFWZyB7UiojIOJyebpjIkJHUiwiI5MDM4kDMgMjM7ATOxAjMiojI4J7QiwiIuNmL636ZugXY4Fmbph6Yu8Waq9WYpRnL8FGdlJiOiMXbEJCLig1jlzahlDZmpnInmDoimH9pnnKplnatm19tl1ZpnXKtmnKplLiOiEmTDJCLikTM7QTMzkTM7QTNygTO4IiOiQWSiwSflNHbhZmOiI7ckJye0ICbuFkI1pjIEJCLi4TPBJGc9IFVrJFNwQDZ0tWUKpmS9kHUmZmN6YzZwcFeahEaNNWWmRmMTdVRFxWNRZTcwQzSpt4dthTNHhUbxATNj9Gdp3kNs3mcXZUZDFVQTt6aJJUO6diSM9"
;
...
...
@@ -1136,7 +1136,7 @@ function isSqwsb() {
$
.
ajax
({
type
:
"post"
,
url
:
URL
+
"/online_report/declare/getZzsZt"
,
url
:
URL
+
"/online_report/declare/getZzsZt"
,
dataType
:
"json"
,
data
:{
"djxh"
:
djxh
,
...
...
@@ -1243,7 +1243,7 @@ function dj(msg){
$
.
ajax
({
type
:
"post"
,
url
:
URL
+
"/online_report/declare/sendZzsZt"
,
url
:
URL
+
"/online_report/declare/sendZzsZt"
,
dataType
:
"json"
,
data
:{
"sfgx"
:
ispoint
,
...
...
@@ -1279,7 +1279,7 @@ function statement10101_001_10(){
$
.
ajax
({
type
:
"post"
,
url
:
URL
+
"/online_report/declare/getGovernmentWebsite"
,
url
:
URL
+
"/online_report/declare/getGovernmentWebsite"
,
dataType
:
"json"
,
data
:{
"djxh"
:
djxh
,
...
...
@@ -1322,7 +1322,7 @@ function statement10101_001_15(){
$
.
ajax
({
type
:
"post"
,
url
:
URL
+
"/online_report/declare/getGovernmentWebsite"
,
url
:
URL
+
"/online_report/declare/getGovernmentWebsite"
,
dataType
:
"json"
,
data
:{
"djxh"
:
djxh
,
...
...
static/js/tax/result.js
View file @
3ae09800
...
...
@@ -710,7 +710,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread
.
options
.
highlightInvalidData
=
false
;
}
showLoading
();
var
url
=
URL
+
"/online_report/declare/save"
;
var
url
=
URL
+
"/online_report/declare/save"
;
if
(
localStorage
[
"cancellation"
]
&&
"cancellation"
==
localStorage
[
"cancellation"
]){
pagedata
.
operateType
=
6
;
}
else
{
...
...
@@ -882,7 +882,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread
.
options
.
highlightInvalidData
=
false
;
}
showLoading
();
var
url
=
URL
+
"/online_report/declare/save"
;
var
url
=
URL
+
"/online_report/declare/save"
;
if
(
localStorage
[
"cancellation"
]
&&
"cancellation"
==
localStorage
[
"cancellation"
]){
pagedata
.
operateType
=
6
;
}
else
{
...
...
@@ -1054,7 +1054,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread
.
options
.
highlightInvalidData
=
false
;
}
showLoading
();
var
url
=
URL
+
"/online_report/declare/save"
;
var
url
=
URL
+
"/online_report/declare/save"
;
if
(
localStorage
[
"cancellation"
]
&&
"cancellation"
==
localStorage
[
"cancellation"
]){
pagedata
.
operateType
=
6
;
}
else
{
...
...
@@ -1226,7 +1226,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
spread
.
options
.
highlightInvalidData
=
false
;
}
showLoading
();
var
url
=
URL
+
"/online_report/declare/save"
;
var
url
=
URL
+
"/online_report/declare/save"
;
if
(
localStorage
[
"cancellation"
]
&&
"cancellation"
==
localStorage
[
"cancellation"
]){
pagedata
.
operateType
=
6
;
}
else
{
...
...
@@ -1243,7 +1243,7 @@ function saveData(operateType,isshenbao,isZcfxtx,isconfirm) {
}
if
(
true
==
isZcfxtx
){
url
=
URL
+
"/online_report/declare/zcfxts"
;
url
=
URL
+
"/online_report/declare/zcfxts"
;
}
if
(
operateType
==
3
)
{
...
...
static/js/year/initLoader.js
View file @
3ae09800
...
...
@@ -78,35 +78,21 @@ window.onload = function () {
isInProduction
&&
isSqwsb
();
// 上期未申报
reBindEvent
();
formInfo
();
assignment
();
if
(
"10414"
==
GLOBAL_JSON
.
pzzlDm
){
console
.
log
(
!!
GLOBAL_CACHE_DATA
);
var
index
=
spread
.
getSheetIndex
(
"table_10414_043"
);
getList_fzjg
(
index
);
setCz
(
spread
.
getSheetIndex
(
"table_10414_003"
));
var
index_40
=
spread
.
getSheetIndex
(
"table_10414_040"
);
if
(
index_40
){
setInfo_040
(
index_40
);
setInfo_040_ksje
(
index_40
,
null
,
getCellValue
(
index_40
,
9
,
2
));
}
}
setYearhide
();
};
// 手动给单元格赋值
function
assignment
(){
// console.log(!!GLOBAL_CACHE_DATA);
var
index
=
spread
.
getSheetIndex
(
"table_10414_043"
);
//无辜多掉了两次,还有下面一次 17768
// getList_fzjg(index);
setCz
(
spread
.
getSheetIndex
(
"table_10414_003"
));
var
index_40
=
spread
.
getSheetIndex
(
"table_10414_040"
);
if
(
index_40
){
setInfo_040
(
index_40
);
setInfo_040_ksje
(
index_40
,
null
,
getCellValue
(
index_40
,
9
,
2
));
}
var
index_003
=
spread
.
getSheetIndex
(
"table_10414_003"
);
if
(
index_003
){
var
SWDJ_ZFJGLX_DM
=
GLOBAL_JSON
.
wsxx
?
GLOBAL_JSON
.
wsxx
:
{};
SWDJ_ZFJGLX_DM
=
SWDJ_ZFJGLX_DM
.
SWDJ_ZFJGLX_DM
?
SWDJ_ZFJGLX_DM
.
SWDJ_ZFJGLX_DM
.
value
:
0
;
var
value
=
GLOBAL_JSON
.
param
?
GLOBAL_JSON
.
param
:
{};
value
=
value
.
SBRQZ
?
value
.
SBRQZ
[
0
].
substring
(
0
,
4
)
:
0
;
setCellValue
(
index_003
,
1
,
9
,
SWDJ_ZFJGLX_DM
);
setCellValue
(
index_003
,
2
,
9
,
value
);
}
//无辜多掉了两次,还有上面一次
// getList_fzjg(index);
}
function
setYearhide
()
{
if
(
GLOBAL_JSON
.
pzzlDm
===
'10414'
)
{
// console.log('关联表');
...
...
static/js/year/result.js
View file @
3ae09800
...
...
@@ -106,19 +106,8 @@ function selectNb() {
GLOBAL_SHEET_ERROR
=
{};
// 全局错误对象
NB_cache_data
.
tables
[
1
].
data
.
map
(
function
(
cell
)
{
if
(
cell
.
value
===
1
)
{
var
table_id
=
cell
.
z
.
substring
(
0
,
9
);
if
(
table_id
==
'10414_042'
||
table_id
==
"10414_043"
)
{
var
JDJNBS_ND
=
GLOBAL_JSON
.
wsxx
.
JDJNBS_ND
?
GLOBAL_JSON
.
wsxx
.
JDJNBS_ND
.
value
:
""
;
var
ZFJGBZDM_ND
=
GLOBAL_JSON
.
wsxx
.
ZFJGBZDM_ND
?
GLOBAL_JSON
.
wsxx
.
ZFJGBZDM_ND
.
value
:
""
;
if
(
!
(
20
==
ZFJGBZDM_ND
&&
"Y"
==
JDJNBS_ND
)){
//因为不确定JDJNBS_ND 和 ZFJGBZDM_ND 的逻辑, 所以按addLeftItem里面逻辑写的
}
else
{
NBleft
.
push
(
table_id
);
}
}
else
{
NBleft
.
push
(
table_id
);
}
// NBleft.push(table_id);
var
table_id
=
cell
.
z
.
substring
(
0
,
9
)
NBleft
.
push
(
table_id
);
NBleft
=
uniqueArr
(
NBleft
);
NBsort
(
NBleft
);
GLOBAL_SHEET_REQUIRED
[
table_id
]
=
{
...
...
@@ -129,6 +118,7 @@ function selectNb() {
};
}
})
NB_cache_data
.
tables
.
map
(
function
(
table
)
{
if
(
table
.
bbdm
==
'10414_048'
)
{
table
.
data
.
map
(
function
(
cell
)
{
...
...
@@ -160,7 +150,7 @@ function selectNb() {
// 是否已修改
isChanged
:
true
};
var
url
=
'/static/page_js/_year/'
+
bbdm
+
'.json'
;
var
url
=
'
..
/static/page_js/_year/'
+
bbdm
+
'.json'
;
$
.
ajax
({
type
:
"GET"
,
url
:
url
,
...
...
@@ -197,10 +187,10 @@ function selectNb() {
NB_SPECIAL_HANDLER
[
tableName
]();
}
})
formInfo
();
selectTableArr
.
forEach
(
function
(
item
,
index
){
setCellValue
(
1
,
item
,
3
,
true
);
})
formInfo
();
reBindEvent
();
setYearhide
();
}
...
...
@@ -289,12 +279,18 @@ function formInfo(){
setCellStyle
(
index
,
9
,
3
,
style
);
setCellStyle
(
index
,
10
,
3
,
style
);
setCellStyle
(
index
,
11
,
3
,
style
);
setCellValue
(
index
,
8
,
3
,
false
);
setCellValue
(
index
,
9
,
3
,
false
);
setCellValue
(
index
,
10
,
3
,
false
);
setCellValue
(
index
,
11
,
3
,
false
);
break
;
default
:
break
;
}
}
/**
* 获取应该显示的报表列表
*
...
...
@@ -306,18 +302,8 @@ function getLeftMenu() {
GLOBAL_JSON
.
tables
=
JSON
.
parse
(
GLOBAL_CACHE_DATA
).
tables
;
GLOBAL_JSON
.
tables
[
1
].
data
.
map
(
function
(
cell
)
{
if
(
cell
.
value
===
1
)
{
var
table_id
=
cell
.
z
.
substring
(
0
,
9
);
if
(
table_id
==
'10414_042'
||
table_id
==
"10414_043"
)
{
var
JDJNBS_ND
=
GLOBAL_JSON
.
wsxx
.
JDJNBS_ND
?
GLOBAL_JSON
.
wsxx
.
JDJNBS_ND
.
value
:
""
;
var
ZFJGBZDM_ND
=
GLOBAL_JSON
.
wsxx
.
ZFJGBZDM_ND
?
GLOBAL_JSON
.
wsxx
.
ZFJGBZDM_ND
.
value
:
""
;
if
(
!
(
20
==
ZFJGBZDM_ND
&&
"Y"
==
JDJNBS_ND
)){
//因为不确定JDJNBS_ND 和 ZFJGBZDM_ND 的逻辑, 所以按addLeftItem里面逻辑写的
}
else
{
NBleft
.
push
(
table_id
);
}
}
else
{
NBleft
.
push
(
table_id
);
}
var
table_id
=
cell
.
z
.
substring
(
0
,
9
)
NBleft
.
push
(
table_id
);
NBleft
=
uniqueArr
(
NBleft
);
NBsort
(
NBleft
);
}
...
...
@@ -343,7 +329,7 @@ function getLeftMenu() {
};
if
(
table
!==
'10414_001'
&&
table
!==
'10414_002'
)
{
var
url
=
'/static/page_js/_year/'
+
table
+
'.json'
;
var
url
=
'
..
/static/page_js/_year/'
+
table
+
'.json'
;
$
.
ajax
({
type
:
"GET"
,
url
:
url
,
...
...
@@ -1223,7 +1209,6 @@ function importData() {
* @param {*} operateType 操作类型
*/
function
saveData
(
operateType
,
isZcfxtx
)
{
// console.log("保存按钮"); //需要加提取附表逻辑
if
(
GLOBAL_JSON
.
pzzlDm
==
"10414"
){
var
tableName
=
'table_10414_003'
;
var
sheetIndex
=
spread
.
getSheetIndex
(
tableName
);
...
...
@@ -1724,12 +1709,6 @@ function _bindTopButtonEvent() {
if
(
GLOBAL_JSON
.
pzzlDm
==
"10425"
){
get10425Info
();
}
//038 的解决办法
// var index = spread.getSheetIndex('table_10414_038');
// if (index && !sessionStorage.getItem("pullFjFlag")) {
// myConfirm("提示", "点击保存或申报之前,请点击提取附表按钮!", "确定", "取消", function () {})
// return;
// }
saveData
(
2
);
});
...
...
@@ -1739,7 +1718,6 @@ function _bindTopButtonEvent() {
resetFlag
=
true
myConfirm
(
"提示"
,
"重置操作后,您未保存的所有数据将重置为默认状态,确认要继续操作吗?"
,
"确定"
,
"取消"
,
function
()
{
resetData
(
true
);
//重置数据方法
assignment
();
assignmentLeftMuneClick
();
})
});
...
...
@@ -1749,7 +1727,6 @@ function _bindTopButtonEvent() {
e
.
preventDefault
();
myConfirm
(
"提示"
,
"重置操作后,当前报表未保存的数据将重置为默认状态,确认要继续操作吗?"
,
"确定"
,
"取消"
,
function
()
{
resetCurrentData
();
assignment
();
assignmentLeftMuneClick
();
})
});
...
...
@@ -1772,12 +1749,6 @@ function _bindTopButtonEvent() {
if
(
GLOBAL_JSON
.
pzzlDm
==
"10425"
){
get10425Info
();
}
//038 的解决办法
// var index = spread.getSheetIndex('table_10414_038');
// if (index && !sessionStorage.getItem("pullFjFlag")) {
// myConfirm("提示", "点击保存或申报之前,请点击提取附表按钮!", "确定", "取消", function () {})
// return;
// }
saveData
(
3
);
});
...
...
static/js/year/specialHandler.js
View file @
3ae09800
...
...
@@ -321,55 +321,6 @@ function bindValueChanged() {
getVal_026
(
index
);
}
break
;
case
'10414_015'
:
if
(
pos
==
'O11'
)
{
var
result_15
=
getCellValue
(
activeSheetIndex
,
10
,
14
)
-
getCellValue
(
activeSheetIndex
,
10
,
15
);
setCellValue
(
activeSheetIndex
,
10
,
16
,
result_15
);
}
if
(
pos
==
'P11'
)
{
var
result_15
=
getCellValue
(
activeSheetIndex
,
10
,
14
)
-
getCellValue
(
activeSheetIndex
,
10
,
15
);
setCellValue
(
activeSheetIndex
,
10
,
16
,
result_15
);
}
break
;
case
'10414_027'
:
if
(
pos
==
"E15"
){
// var arr = [];
// $.ajax({
// type: "post",
// url: URL + "/online_report/declare/getFylyxmd2019List",
// dataType: "json",
// async: false,
// data: {},
// async: false,
// success: function(data){
// arr = data;
// }
// })
// var v = GLOBAL_JSON.param ? GLOBAL_JSON.param : {};
// v = v["NSRMC"] ? v["NSRMC"] : {};
// v = v["1"] ? v["1"] : "";
// var flag = true;
// console.log(arr,v)
// arr.forEach(function(item,index){
// if(v == item){
// flag = false;
// }
// })
var
FYLZZ
=
GLOBAL_JSON
.
wsxx
?
GLOBAL_JSON
.
wsxx
:
{};
FYLZZ
=
FYLZZ
.
FYLZZ
?
FYLZZ
.
FYLZZ
:
{};
FYLZZ
=
FYLZZ
[
"value"
]
?
FYLZZ
[
"value"
]
:
null
;
if
(
FYLZZ
&&
"N"
==
FYLZZ
){
myAlert
(
"提示"
,
"目前你尚未进行非营利组织免税资格认定,不能填报本行。"
,
"确定"
,
function
()
{
setCellValue
(
activeSheetIndex
,
14
,
4
,
0
);
});
}
if
(
FYLZZ
&&
"N"
==
FYLZZ
){
myAlert
(
"提示"
,
"目前你尚未进行非营利组织免税资格认定,不能填报本行。"
,
"确定"
,
function
()
{
setCellValue
(
activeSheetIndex
,
14
,
4
,
0
);
});
}
}
break
;
case
'10414_034'
:
//行次 32
if
(
pos
==
'D44'
&&
info
.
newValue
==
true
)
{
...
...
@@ -379,28 +330,6 @@ function bindValueChanged() {
setCellValue
(
activeSheetIndex
,
43
,
3
,
false
)
}
break
;
case
'10414_038'
:
//第11列大于0时,第15列、第16列和第17列应该锁死或者增加校验:
// if (splitExcelPoint(pos)[0] == 'M') {
// var tableName = 'table_10414_038';
// var sheetIndex = spread.getSheetIndex(tableName);
// var style_038 = getCellStyle(sheetIndex, 8, 3);
// var style1 = getCellStyle(sheetIndex, 8, 7);
// var value_038 = getCellValue(sheetIndex, splitExcelPoint(pos)[1]-1, 12);
// if (value_038 > 0) {
// setCellStyle(sheetIndex, splitExcelPoint(pos)[1]-1, 16, style_038);
// setCellValue(sheetIndex, splitExcelPoint(pos)[1]-1, 16, 0);
// setCellStyle(sheetIndex, splitExcelPoint(pos)[1]-1, 17, style_038);
// setCellValue(sheetIndex, splitExcelPoint(pos)[1]-1, 17, 0);
// setCellStyle(sheetIndex, splitExcelPoint(pos)[1]-1, 18, style_038);
// setCellValue(sheetIndex, splitExcelPoint(pos)[1]-1, 18, 0);
// }else {
// setCellStyle(sheetIndex, splitExcelPoint(pos)[1]-1, 16, style1);
// setCellStyle(sheetIndex, splitExcelPoint(pos)[1]-1, 17, style1);
// setCellStyle(sheetIndex, splitExcelPoint(pos)[1]-1, 18, style1);
// }
// }
break
;
case
'10414_035'
:
if
(
row
==
7
&&
col
==
7
)
{
var
dm
=
info
.
newValue
.
split
(
' '
)[
0
];
...
...
@@ -865,35 +794,31 @@ function bindNbCellClickEvent() {
break
;
case
"10414_027"
:
if
(
pos
==
"E15"
){
// var arr = [];
// $.ajax({
// type: "post",
// url: URL + "/online_report/declare/getFylyxmd2019List",
// dataType: "json",
// async: false,
// data: {},
// async: false,
// success: function(data){
// arr = data;
// }
// })
// var v = GLOBAL_JSON.param ? GLOBAL_JSON.param : {};
// v = v["NSRMC"] ? v["NSRMC"] : {};
// v = v["1"] ? v["1"] : "";
// var flag = true;
// console.log(arr,v)
// arr.forEach(function(item,index){
// if(v == item){
// flag = false;
// }
// })
var
FYLZZ
=
GLOBAL_JSON
.
wsxx
?
GLOBAL_JSON
.
wsxx
:
{};
FYLZZ
=
FYLZZ
.
FYLZZ
?
FYLZZ
.
FYLZZ
:
{};
FYLZZ
=
FYLZZ
[
"value"
]
?
FYLZZ
[
"value"
]
:
null
;
if
(
FYLZZ
&&
"Y"
==
FYLZZ
){
myAlert
(
"提示"
,
"目前你尚未进行非营利组织免税资格认定,不能填报本行。"
,
"确定"
,
function
()
{
setCellValue
(
activeSheetIndex
,
14
,
4
,
0
);
});
var
arr
=
[];
$
.
ajax
({
type
:
"post"
,
url
:
URL
+
"/online_report/declare/getFylyxmd2019List"
,
dataType
:
"json"
,
async
:
false
,
data
:
{},
async
:
false
,
success
:
function
(
data
){
arr
=
data
;
}
})
var
v
=
GLOBAL_JSON
.
param
?
GLOBAL_JSON
.
param
:
{};
v
=
v
[
"NSRMC"
]
?
v
[
"NSRMC"
]
:
{};
v
=
v
[
"1"
]
?
v
[
"1"
]
:
""
;
var
flag
=
false
;
console
.
log
(
arr
,
v
)
arr
.
forEach
(
function
(
item
,
index
){
if
(
v
=
item
){
flag
=
true
;
}
})
console
.
log
(
flag
)
if
(
flag
){
myAlert
(
"提示"
,
"目前你尚未进行非营利组织免税资格认定,不能填报本行。"
,
"确定"
,
function
()
{});
}
}
break
;
...
...
@@ -1470,11 +1395,11 @@ function compare10414_027(index){
var
v
=
GLOBAL_JSON
.
param
?
GLOBAL_JSON
.
param
:
{};
v
=
v
[
"NSRMC"
]
?
v
[
"NSRMC"
]
:
{};
v
=
v
[
"1"
]
?
v
[
"1"
]
:
""
;
var
flag
=
tru
e
;
var
flag
=
fals
e
;
arr
.
forEach
(
function
(
item
,
index
){
if
(
item
.
split
(
" "
).
length
>
0
){
if
(
v
=
=
item
.
split
(
" "
)[
1
]){
flag
=
fals
e
;
if
(
v
=
item
.
split
(
" "
)[
1
]){
flag
=
tru
e
;
}
}
})
...
...
@@ -2029,9 +1954,7 @@ function set026_select() {
setCellValue
(
index
,
17
,
21
,
getCellValue
(
index_4
,
24
,
4
));
}
if
(
index
)
{
var
_year
=
Number
(
getCellValue
(
index
,
17
,
3
))
}
var
_year
=
Number
(
getCellValue
(
index
,
17
,
3
))
var
s_210_2rksj
=
Number
(
getCellValue
(
jcIndex
,
14
,
7
)
===
""
||
getCellValue
(
jcIndex
,
14
,
7
)
===
null
?
"1901"
:
getCellValue
(
jcIndex
,
14
,
7
).
split
(
'-'
)[
0
]);
// var s_210_4rksj = Number(getCellValue(jcIndex, 15, 7) === "" || getCellValue(jcIndex, 15, 7) === null ? "1901" : getCellValue(jcIndex, 15, 7).split('-')[0]);
// var s_211_2fzsj = Number(getCellValue(jcIndex, 16, 7) === "" || getCellValue(jcIndex, 16, 7) === null ? "1901" : getCellValue(jcIndex, 16, 7).split('-')[0]);
...
...
@@ -2052,7 +1975,7 @@ function set026_select() {
}
// }
if
((
s_211_2fzsj
&&
s_211_2fzsj
!=
""
&&
_year
&&
(
_year
>=
s_211_2fzsj
&&
_year
<=
(
s_211_2fzsj
+
3
)))
||
(
s_211_4fzsj
&&
s_211_4fzsj
!=
""
&&
_year
&&
(
_year
>=
s_211_4fzsj
&&
_year
<=
(
s_211_4fzsj
+
3
))))
{
if
((
s_211_2fzsj
&&
s_211_2fzsj
!=
""
&&
(
_year
>=
s_211_2fzsj
&&
_year
<=
(
s_211_2fzsj
+
3
)))
||
(
s_211_4fzsj
&&
s_211_4fzsj
!=
""
&&
(
_year
>=
s_211_4fzsj
&&
_year
<=
(
s_211_4fzsj
+
3
))))
{
lx2
=
"200 符合条件的高新技术企业"
;
}
...
...
static/js/year/util.js
View file @
3ae09800
...
...
@@ -9,12 +9,7 @@ var assignmentLeftMuneClick = ""; // 点击左侧菜单时手动给单元格赋
*/
function
toggleSheet
(
index
)
{
if
(
leftMenu
.
length
<=
index
)
{
spread
.
setActiveSheetIndex
(
leftMenu
.
length
-
1
);
}
else
{
spread
.
setActiveSheetIndex
(
index
);
}
spread
.
setActiveSheetIndex
(
index
);
}
/**
* 控制隐藏行列
...
...
@@ -83,22 +78,15 @@ function addLeftItem(flag, NBindex) {
// 手动给单元格赋值
assignmentLeftMuneClick
=
function
assignmentLeftMuneClick
(){
if
(
tableName
==
'table_10414_003'
){
var
value
=
GLOBAL_JSON
.
param
?
GLOBAL_JSON
.
param
:
{};
value
=
value
.
SBRQZ
?
value
.
SBRQZ
[
0
].
substring
(
0
,
4
)
:
0
;
var
SWDJ_ZFJGLX_DM
=
GLOBAL_JSON
.
wsxx
?
GLOBAL_JSON
.
wsxx
:
{};
SWDJ_ZFJGLX_DM
=
SWDJ_ZFJGLX_DM
.
SWDJ_ZFJGLX_DM
?
SWDJ_ZFJGLX_DM
.
SWDJ_ZFJGLX_DM
.
value
:
0
;
var
value
=
GLOBAL_JSON
.
param
.
SBRQZ
[
0
].
substring
(
0
,
4
);
var
index
=
spread
.
getSheetIndex
(
"table_10414_003"
);
if
(
index
){
setCellValue
(
index
,
2
,
9
,
value
);
setCellValue
(
index
,
1
,
9
,
SWDJ_ZFJGLX_DM
);
}
saveData_003
(
1
);
}
if
(
tableName
==
'table_10414_002'
){
// formInfo();
}
if
(
tableName
==
'table_10414_004'
){
loadKjzd
();
formInfo
();
}
if
(
tableName
==
'table_10414_026'
)
{
set026_select
();
...
...
@@ -117,39 +105,16 @@ function addLeftItem(flag, NBindex) {
setInfo_040_ksje
(
index_40
,
null
,
getCellValue
(
index_40
,
9
,
2
));
}
}
//17767 A109010:“应纳所得税额”、“总机构分摊所得税额”、“总机构财政集中分配所得税额”、
// “分支机构分摊所得税额”没有自动提取A109000第11-第14行数据,保存缺少校验;
// setCellValue(3, 36, 4, 400)
var
tableName_004
=
'table_10414_004'
;
var
sheetIndex_004
=
spread
.
getSheetIndex
(
tableName_004
);
if
(
tableName
==
'table_10414_042'
){
var
sheetIndex_042
=
spread
.
getSheetIndex
(
tableName
);
//10414_004\",5,38
if
(
getCellValue
(
sheetIndex_042
,
6
,
3
)
==
0
)
{
setCellValue
(
sheetIndex_042
,
6
,
3
,
getCellValue
(
sheetIndex_004
,
37
,
4
));
}
//"10414_004",5,36
if
(
getCellValue
(
sheetIndex_042
,
7
,
3
)
==
0
)
{
setCellValue
(
sheetIndex_042
,
7
,
3
,
getCellValue
(
sheetIndex_004
,
35
,
4
));
}
//"10414_004",5,37
if
(
getCellValue
(
sheetIndex_042
,
8
,
3
)
==
0
)
{
setCellValue
(
sheetIndex_042
,
8
,
3
,
getCellValue
(
sheetIndex_004
,
36
,
4
));
}
}
// selectNb();
selectNb
();
}
assignmentLeftMuneClick
();
selectNb
();
if
(
tableName
==
'table_10414_002'
){
var
JDJNBS_ND
=
GLOBAL_JSON
.
wsxx
.
JDJNBS_ND
?
GLOBAL_JSON
.
wsxx
.
JDJNBS_ND
.
value
:
""
;
var
ZFJGBZDM_ND
=
GLOBAL_JSON
.
wsxx
.
ZFJGBZDM_ND
?
GLOBAL_JSON
.
wsxx
.
ZFJGBZDM_ND
.
value
:
""
;
if
(
!
(
20
==
ZFJGBZDM_ND
&&
"Y"
==
JDJNBS_ND
)){
setCellValue
(
index
,
41
,
3
,
false
);
setCellValue
(
index
,
42
,
3
,
false
);
hideRowCol
(
index
,
"row"
,
41
,
false
);
hideRowCol
(
index
,
"row"
,
42
,
false
);
}
}
...
...
@@ -1247,10 +1212,7 @@ function NB_getFllsxxBaseInfo(nd) {
}
fllsxxInfo
=
GLOBAL_JSON
.
fllsxx
[
str
];
}
var
keys
=
[];
if
(
fllsxxInfo
){
keys
=
getObjectKeys
(
fllsxxInfo
);
}
var
keys
=
getObjectKeys
(
fllsxxInfo
);
// 获取到过滤的值
var
baseInfo
=
keys
.
length
>
0
?
fllsxxInfo
[
keys
[
0
]]
:
[];
return
baseInfo
;
...
...
@@ -1798,8 +1760,7 @@ function pullFj() {
isFg
=
getCellValue
(
index038
,
4
,
4
),
//获取是否选中分国
isBfg
=
getCellValue
(
index038
,
4
,
3
);
//获取是否选中不分国
//若没有选上分国/不分国,则重新获取003表的选项并勾选
// if (!isFg && !isFg) {
if
(
!
isFg
&&
!
isBfg
)
{
if
(
!
isFg
&&
!
isFg
)
{
var
index003
=
spread
.
getSheetIndex
(
"table_10414_003"
);
isFg
=
getCellValue
(
index003
,
10
,
3
);
isBfg
=
getCellValue
(
index003
,
10
,
5
);
...
...
@@ -1895,8 +1856,6 @@ function pullFj() {
setCellValue
(
index038
,
8
,
5
,
hjRow40
[
"4HJ"
]
+
hjRow40
[
"13HJ"
]);
setCellValue
(
index038
,
8
,
11
,
hjRow39
[
"13HJ"
]);
setCellValue
(
index038
,
8
,
15
,
hjRow41
[
"13HJ"
]);
//添加 提取数据后,038除提取的数据,其他的都清空
clear_10414_038
();
}
//设置分国的数据
if
(
isFg
)
{
...
...
@@ -1934,37 +1893,8 @@ function pullFj() {
setCellValue
(
index038
,
(
8
+
k
),
5
,
data040
[
k
][
"MBJWYQNDKS"
]);
setCellValue
(
index038
,
(
8
+
k
),
11
,
data039
[
k
][
"JWSDKDMSE"
]);
setCellValue
(
index038
,
(
8
+
k
),
15
,
data041
[
k
][
"BNKDMYQND"
]);
//添加 提取数据后,038除提取的数据,其他的都清空
clear_10414_038
();
}
}
}
sessionStorage
.
setItem
(
"pullFjFlag"
,
true
);
//添加 提取数据后,038除提取的数据,其他的都清空
function
clear_10414_038
()
{
setCellValue
(
index038
,
(
8
+
k
),
7
,
0
);
setCellValue
(
index038
,
(
8
+
k
),
9
,
0.25
);
setCellValue
(
index038
,
(
8
+
k
),
12
,
0
);
setCellValue
(
index038
,
(
8
+
k
),
16
,
0
);
setCellValue
(
index038
,
(
8
+
k
),
17
,
0
);
setCellValue
(
index038
,
(
8
+
k
),
18
,
0
);
}
}
//“是”和“否”只能选择一个。 yyx
/**
*
* @param flag 点击单元格的状态
* @param index 非点击单元格的索引
* @param row 非点击单元格的行
* @param col 非点击单元格的列
*/
function
chooseOne
(
flag
,
index
,
row
,
col
)
{
if
(
flag
)
{
setCellValue
(
index
,
row
,
col
,
false
);
}
else
{
setCellValue
(
index
,
row
,
col
,
true
);
}
}
static/js/yearGLB/result.js
View file @
3ae09800
...
...
@@ -141,7 +141,7 @@ function selectNb() {
// 是否已修改
isChanged
:
true
};
var
url
=
'/static/page_js/_yearGLB/'
+
bbdm
+
'.json'
;
var
url
=
'
..
/static/page_js/_yearGLB/'
+
bbdm
+
'.json'
;
$
.
ajax
({
type
:
"GET"
,
url
:
url
,
...
...
@@ -165,10 +165,6 @@ function selectNb() {
_btnsEventHandler
();
setGLBhide
();
getJmxz_026
();
//10420_019 增加货币任务
getJmxz_019
();
//增加“Currencyused”
getJmxz_020
();
addLeftItem
();
getStroageData
(
NB_cache_data
.
tables
);
...
...
@@ -258,7 +254,7 @@ function getLeftMenu() {
};
if
(
table
!==
'10420_001'
&&
table
!==
'10420_002'
)
{
var
url
=
'/static/page_js/_yearGLB/'
+
table
+
'.json'
;
var
url
=
'
..
/static/page_js/_yearGLB/'
+
table
+
'.json'
;
$
.
ajax
({
type
:
"GET"
,
url
:
url
,
...
...
@@ -438,14 +434,10 @@ function getTableVlaue(tables) {
var
list
=
getDmbList
(
lx
,
dm
);
var
options
=
[];
list
.
map
(
function
(
item
)
{
// var obj = {
// text: item.dm + ' ' + item.name,
// value: item.dm
// }
var
obj
=
{
text
:
item
.
split
(
" "
)[
0
]
+
' '
+
item
.
split
(
" "
)[
1
]
,
value
:
item
.
split
(
" "
)[
0
]
}
;
text
:
item
.
dm
+
' '
+
item
.
name
,
value
:
item
.
dm
}
options
.
push
(
obj
)
})
newCellType
(
sheetIndex
,
7
,
9
,
'select'
,
options
)
...
...
@@ -456,14 +448,10 @@ function getTableVlaue(tables) {
var
list
=
getDmbList
(
lx
,
dm
);
var
options
=
[];
list
.
map
(
function
(
item
)
{
// var obj = {
// text: item.dm + ' ' + item.name,
// value: item.dm
// }
var
obj
=
{
text
:
item
.
split
(
" "
)[
0
]
+
' '
+
item
.
split
(
" "
)[
1
]
,
value
:
item
.
split
(
" "
)[
0
]
}
;
text
:
item
.
dm
+
' '
+
item
.
name
,
value
:
item
.
dm
}
options
.
push
(
obj
)
})
newCellType
(
sheetIndex
,
8
,
9
,
'select'
,
options
)
...
...
static/js/yearGLB/specialHandler.js
View file @
3ae09800
...
...
@@ -628,13 +628,11 @@ function setGljynr(tableName, idCell, nameCell) {
if
(
tableName
==
"10420_005"
)
{
$
(
'#gljynrModal .title'
).
text
(
"选择关联关系"
);
$
(
'#gljynrModal .dm-name'
).
text
(
"关联关系代码"
);
// $("#gljynrModal .dm-name").remove();
$
(
'#gljynrModal .content-name'
).
text
(
"关联关系名称"
);
lx
=
"glgxlx_10420_005"
;
}
else
{
$
(
'#gljynrModal .title'
).
text
(
"选择关联交易内容"
);
$
(
'#gljynrModal .dm-name'
).
text
(
"关联交易内容代码"
);
// $("#gljynrModal .dm-name").remove();
$
(
'#gljynrModal .content-name'
).
text
(
"关联交易内容"
);
lx
=
""
;
}
...
...
@@ -647,12 +645,6 @@ function setGljynr(tableName, idCell, nameCell) {
tHtml
+=
'<td>'
+
temp
[
i
].
split
(
" "
)[
1
]
+
'</td>'
tHtml
+=
'</tr>'
}
// for (var i = 0; i < temp.length; i++) {
// tHtml += '<tr>'
// tHtml += '<td><input type="checkbox" class="only-single" value="" data-id="' + temp[i] + '" data-name="' + temp[i] + '" /></td>'
// tHtml += '<td>' + temp[i] + '</td>'
// tHtml += '</tr>'
// }
$
(
"#gljynrModal .modal-table"
).
html
(
tHtml
);
// //默认在弹框中勾选已选中的减免方式
$
(
'#gljynrModal input:checkbox'
).
prop
(
"checked"
,
false
);
...
...
@@ -672,7 +664,7 @@ function setGljynr(tableName, idCell, nameCell) {
name
.
push
(
dName
);
});
setCellValue
(
$
(
'#gljynrModal'
).
attr
(
"data-index"
),
$
(
'#gljynrModal'
).
attr
(
"data-row"
),
idCell
,
dm
.
join
(
','
));
setCellValue
(
$
(
'#gljynrModal'
).
attr
(
"data-index"
),
$
(
'#gljynrModal'
).
attr
(
"data-row"
),
nameCell
,
dm
.
join
(
','
));
setCellValue
(
$
(
'#gljynrModal'
).
attr
(
"data-index"
),
$
(
'#gljynrModal'
).
attr
(
"data-row"
),
nameCell
,
name
.
join
(
','
));
$
(
'#gljynrModal,#Modal'
).
hide
();
});
$
(
'#gljynrModal #czJyLxClose'
).
one
(
'click'
,
function
()
{
...
...
@@ -807,19 +799,13 @@ function getDmbList(lx, dm, isShengJi, isGuanLian) {
shengJiDm
:
dm
}
}
if
(
isGuanLian
){
url
=
URL
+
"/online_report/declare/getglgxList"
;
obj
=
{
lx
:
lx
,
dm
:
dm
}
}
if
(
isGuanLian
&&
(
dm
==
"10420_006"
||
dm
==
"10420_008"
))
{
url
=
URL
+
"/online_report/declare/getGljynr"
;
obj
=
{
code
:
dm
if
(
isGuanLian
){
url
=
URL
+
"/online_report/declare/getglgxList"
;
obj
=
{
lx
:
lx
,
dm
:
dm
}
}
}
$
.
ajax
({
type
:
"POST"
,
url
:
url
,
...
...
static/js/yearGLB/util.js
View file @
3ae09800
...
...
@@ -79,11 +79,9 @@ function addLeftItem(flag, NBindex) {
if
(
tableName
==
'table_10420_020'
){
var
tableName_19
=
'table_10420_019'
;
var
sheetIndex_19
=
spread
.
getSheetIndex
(
tableName_19
);
if
(
sheetIndex_19
&&
getCellValue
(
sheetIndex_19
,
4
,
7
)
&&
getCellValue
(
sheetIndex_19
,
4
,
7
).
length
>
4
)
{
if
(
getCellValue
(
sheetIndex_19
,
4
,
7
)
)
{
var
data_019
=
getCellValue
(
sheetIndex_19
,
4
,
7
).
substring
(
0
,
4
);
setCellValue
(
index
,
5
,
8
,
data_019
);
}
else
{
setCellValue
(
index
,
5
,
8
,
""
);
}
}
if
(
tableName
==
'table_10420_016'
)
{
...
...
@@ -1337,20 +1335,4 @@ function setGlf(name,jwList,jnList) {
break
;
}
}
//“是”和“否”只能选择一个。 yyx
/**
*
* @param flag 点击单元格的状态
* @param index 非点击单元格的索引
* @param row 非点击单元格的行
* @param col 非点击单元格的列
*/
function
chooseOne
(
flag
,
index
,
row
,
col
)
{
if
(
flag
)
{
setCellValue
(
index
,
row
,
col
,
false
);
}
else
{
setCellValue
(
index
,
row
,
col
,
true
);
}
}
\ 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