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
a1eb3493
Commit
a1eb3493
authored
Jun 10, 2021
by
刘明珠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并分支,逾期、清算集成财行税
parent
b4099c78
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
468 additions
and
462 deletions
+468
-462
cancellation_grid.js
static/biz/cancellation_grid.js
+10
-3
declare_grid.js
static/biz/declare_grid.js
+423
-437
overdue_grid.js
static/biz/overdue_grid.js
+10
-4
config.js
static/config.js
+25
-18
No files found.
static/biz/cancellation_grid.js
View file @
a1eb3493
var
zjhm
=
''
;
var
initpage
;
var
yearBblxDm
=
[
'10414'
,
'10420'
];
var
ccxwsBblxDm
=
[
'12101'
]
$
(
function
()
{
...
...
@@ -218,12 +219,18 @@ function initPage(companyInfo) {
data
.
saveUserId
=
"zxtb"
;
// 用户id
data
.
zjhm
=
zjhm
window
.
mlistener
.
selectRowData
=
data
;
if
(
yearBblxDm
.
indexOf
(
data
.
bblxDm
)
==
-
1
)
{
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
}
else
{
// 财产行为税
if
(
ccxwsBblxDm
.
indexOf
(
data
.
bblxDm
)
!=
-
1
)
{
// 测试环境start
var
openUrl
=
config
.
ccxwsTaxTable
+
'?djxh='
+
data
.
djxh
+
'&zsDjxh='
+
data
.
zsDjxh
+
'&nsrsbh='
+
data
.
nsrsbh
+
'&nsrmc='
+
data
.
nsrmc
+
'&operateType=cancellation'
+
'&lybz=online'
+
'&token='
+
data
.
token
//测试环境
// var openUrl = config.ccxwsTaxTable +'?lybz=online' +'&operateType=cancellation'+'&sblx=js' + '&token=' + data.token //正式环境
window
.
open
(
openUrl
,
'_blank'
);
}
else
if
(
yearBblxDm
.
indexOf
(
data
.
bblxDm
)
!=
-
1
){
data
.
saveUserId
=
"zxtb_singleReport"
;
// 用户id
data
.
userId
=
"zxtb"
;
// userId
window
.
open
(
config
.
yearTaxTable
,
'_blank'
);
}
else
{
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
}
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
...
...
static/biz/declare_grid.js
View file @
a1eb3493
...
...
@@ -3,7 +3,7 @@ var initpage;
var
sbqDate
=
''
;
var
yearBblxDm
=
[
'10414'
,
'10420'
];
$
(
function
()
{
$
(
function
()
{
showLoading
();
getInitTable
();
})
...
...
@@ -23,7 +23,7 @@ function getInitTable() {
// beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定")
// },
success
:
function
(
data
)
{
//客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
success
:
function
(
data
)
{
//客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
hideLoading
();
//el表达式变jqa
// $("#token").attr("value","");
...
...
@@ -45,20 +45,6 @@ function getInitTable() {
companyInfo
.
bean
.
return
=
true
;
/* @Author ygy @Date 10:12 2020/7/8 @Description 前端判断接口成功返回数据标记用于区分是否执行初始化table方法*/
config
.
return
=
true
;
initpage
=
initPage
(
companyInfo
.
bean
);
myAlert
(
"通知"
,
"尊敬的纳税人:<br/> 按照国家税务总局工作要求,天津市税务局自2021年6月1日起全面推行财产和行为税合并申报,涉及房产税、城镇土地使用税、印花税、契税、土地增值税、资源税(不含水资源税)、环境保护税、车船税以及耕地占用税。请您在申报相关税种前阅读操作指南,如遇问题可拨打12366纳税服务热线或者联系主管税务机关,我们会第一时间进行解答,感谢您对税收工作的支持!<br/> 操作指南链接:<a href='http://tianjin.chinatax.gov.cn/nsrxt/d_toCourseWare.action?id=c5e0e1c737e7f2380147e7f8d1140261' class='alertA' target='_blank'>http://tianjin.chinatax.gov.cn/nsrxt/d_toCourseWare.action?id=c5e0e1c737e7f2380147e7f8d1140261</a>"
,
"我已知晓,并准备好进行申报"
);
$
(
"#mb_con"
).
css
({
width
:
'600px'
})
$
(
"#mb_con .alertA"
).
css
({
color
:
'#4c4c4c'
,
wordBreak
:
'break-all'
})
$
(
"#mb_btn_ok"
).
css
({
width
:
'fit-content'
,
padding
:
'0 12px'
})
}
else
{
hideLoading
();
if
(
data
.
errmsg
!=
undefined
)
{
...
...
@@ -75,18 +61,18 @@ function getInitTable() {
initpage
=
initPage
(
companyInfo
.
bean
);
// 弹出错误对话框
}
$
(
"#getInputValue"
).
on
(
"focus"
,
function
()
{
$
(
"#getInputValue"
).
on
(
"focus"
,
function
()
{
WdatePicker
({
isShowClear
:
false
,
dateFmt
:
'yyyy-MM'
,
onpicking
:
function
(
dp
)
{
onpicking
:
function
(
dp
)
{
initpage
.
changeDate
(
this
,
dp
);
}
});
});
},
error
:
function
(
xhr
)
{
error
:
function
(
xhr
)
{
hideLoading
();
//jsonp 方式此方法不被触发
console
.
log
(
"=======error======================"
)
...
...
@@ -115,7 +101,7 @@ function initPage(companyInfo) {
/**
* 展示税种申报信息
*/
var
showTax
=
function
(
taxInfo
)
{
var
showTax
=
function
(
taxInfo
)
{
if
(
taxInfo
.
length
>
0
)
{
for
(
var
i
=
0
;
i
<
taxInfo
.
length
;
i
++
)
{
if
(
taxInfo
[
i
].
sbrq
)
{
...
...
@@ -157,7 +143,7 @@ function initPage(companyInfo) {
* @param {*} ddt
* @param {*} buttonHtml
*/
var
getTableDeclaration
=
function
(
id
,
order
,
headerList
,
ddt
,
buttonHtml
,
promptStatement
)
{
var
getTableDeclaration
=
function
(
id
,
order
,
headerList
,
ddt
,
buttonHtml
,
promptStatement
)
{
var
tableObj
=
{
id
:
id
,
//tabel父元素的id
autoHeight
:
ddt
.
length
>
0
?
10
:
""
,
...
...
@@ -175,7 +161,7 @@ function initPage(companyInfo) {
pageSize
:
ddt
.
length
},
jsonReady
:
ddt
,
callback
:
function
(
data
,
node
)
{
callback
:
function
(
data
,
node
)
{
data
.
operateType
=
'3'
;
data
.
sbbz
=
'3'
;
data
.
value
=
config
.
value
;
...
...
@@ -199,8 +185,8 @@ function initPage(companyInfo) {
window
.
open
(
config
.
yearTaxTable
,
'_blank'
);
}
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxDeclaration
(
sbqDate
,
"N"
,
'2'
);
},
1000
);
}
...
...
@@ -212,7 +198,7 @@ function initPage(companyInfo) {
data
.
nssbq
=
nowdate
;
data
.
checkTime
=
false
;
if
(
data
.
pzzlDm
===
'11602'
)
{
var
List
=
companyInfo
.
taxInfos
.
filter
(
function
(
item
)
{
var
List
=
companyInfo
.
taxInfos
.
filter
(
function
(
item
)
{
return
item
.
pzzlDm
==
'10101'
||
item
.
pzzlDm
==
'10102'
})
if
(
List
.
length
===
0
)
{
...
...
@@ -256,7 +242,7 @@ function initPage(companyInfo) {
if
(
companyInfo
)
{
url
=
companyInfo
.
config
.
url
;
}
var
getTaxDeclaration
=
function
(
date
,
type
,
refreshSbzt
)
{
var
getTaxDeclaration
=
function
(
date
,
type
,
refreshSbzt
)
{
// TODO 开始加载等待动画
showLoading
();
var
param
=
{
...
...
@@ -275,7 +261,7 @@ function initPage(companyInfo) {
// beforeSend:function(){
// myAlert("提示", "正在获取初始化信息", "确定")
// },
}).
done
(
function
(
data
)
{
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
if
(
data
.
bean
.
url
==
"error.jsp"
)
{
myAlert
(
"提示"
,
data
.
bean
.
errorInfo
,
"确定"
)
...
...
@@ -295,23 +281,23 @@ function initPage(companyInfo) {
alertWarning
(
data
.
returnMessage
);
}
}
}).
always
(
function
(
data
)
{
}).
always
(
function
(
data
)
{
hideLoading
();
});
};
/**
* 隐藏modal
*/
var
closeModal
=
function
()
{
var
closeModal
=
function
()
{
$
(
'#ybName'
).
html
(
""
);
$
(
'#dName'
).
html
(
""
);
$
(
'#myMask'
).
hide
();
$
(
'#myModal'
).
hide
();
}
var
drawGrid
=
function
(
bean
)
{
var
drawGrid
=
function
(
bean
)
{
//两个表合成一个表
$
.
each
(
bean
.
financialInfos
,
function
(
i
,
item
)
{
$
.
each
(
bean
.
financialInfos
,
function
(
i
,
item
)
{
bean
.
taxInfos
.
push
(
item
);
});
if
(
bean
.
taxInfos
.
length
==
0
)
{
...
...
@@ -328,23 +314,23 @@ function initPage(companyInfo) {
* @param {*} obj
* @param {*} dp
*/
var
changeDate
=
function
(
obj
,
dp
)
{
var
changeDate
=
function
(
obj
,
dp
)
{
date
=
dp
.
cal
.
getNewDateStr
();
nowdate
=
date
;
// 给缓存时间赋值
// 加了一个延时,时间改变后时间框没有收起隐藏就加载数据,没有找到好的解决办法,暂时用延时处理
sbqDate
=
date
setTimeout
(
function
()
{
setTimeout
(
function
()
{
getTaxDeclaration
(
date
,
"N"
,
'1'
);
},
50
);
};
var
refresh
=
function
()
{
myConfirm
(
"消息"
,
"您确定需要重置申报清册吗?点击确定继续"
,
"确定"
,
"取消"
,
function
()
{
var
refresh
=
function
()
{
myConfirm
(
"消息"
,
"您确定需要重置申报清册吗?点击确定继续"
,
"确定"
,
"取消"
,
function
()
{
getTaxDeclaration
(
nowdate
,
"Y"
,
'1'
);
});
};
//申报方式 当iszzsybjc=01同时pzzlDm=010101时,调用改方法
var
declarationMethod
=
function
(
statu
)
{
var
declarationMethod
=
function
(
statu
)
{
submitData
.
ybjcState
=
statu
;
submitData
.
value
=
config
.
value
;
//需要判断在线还是税表的开关
...
...
@@ -364,8 +350,8 @@ function initPage(companyInfo) {
window
.
open
(
config
.
yearTaxTable
,
'_blank'
);
}
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
set
:
function
(
val
)
{
setTimeout
(
function
()
{
getTaxDeclaration
(
sbqDate
,
"N"
,
'2'
);
},
1000
);
}
...
...
@@ -452,7 +438,7 @@ function initPage(companyInfo) {
* @param {} params
*/
$
(
"#reset,#reset1"
).
on
(
"click"
,
refresh
);
$
(
"#goRecord"
).
click
(
function
()
{
$
(
"#goRecord"
).
click
(
function
()
{
//TODO 调用备案接口
});
// 格式化后台返回的时间
...
...
@@ -462,7 +448,7 @@ function initPage(companyInfo) {
drawGrid
(
companyInfo
);
}
//页面出现滚动条,监听滚动条变化将高赋值给模态框
window
.
onscroll
=
function
()
{
window
.
onscroll
=
function
()
{
$
(
"#myModal"
).
css
(
"top"
,
$
(
document
).
scrollTop
()
+
235
);
}
return
{
...
...
static/biz/overdue_grid.js
View file @
a1eb3493
...
...
@@ -8,7 +8,7 @@
var
initpage
;
var
yearBblxDm
=
[
'10414'
,
'10420'
];
var
ccxwsBblxDm
=
[
'12101'
]
$
(
function
()
{
showLoading
();
getInitTable
();
...
...
@@ -222,12 +222,18 @@ function initPage(companyInfo) {
data
.
fillingFlag
=
"overdue"
// 填报标记
data
.
saveUserId
=
"zxtb"
;
// 用户id
window
.
mlistener
.
selectRowData
=
data
;
if
(
yearBblxDm
.
indexOf
(
data
.
bblxDm
)
==
-
1
)
{
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
}
else
{
// 财产行为税
if
(
ccxwsBblxDm
.
indexOf
(
data
.
bblxDm
)
!=
-
1
)
{
// 测试环境start
var
openUrl
=
config
.
ccxwsTaxTable
+
'?djxh='
+
data
.
djxh
+
'&zsDjxh='
+
data
.
zsDjxh
+
'&nsrsbh='
+
data
.
nsrsbh
+
'&nsrmc='
+
data
.
nsrmc
+
'&operateType=overdue'
+
'&lybz=online'
+
'&token='
+
data
.
token
//测试环境
// var openUrl = config.ccxwsTaxTable +'?lybz=online' +'&operateType=overdue' + '&sblx=yq' + '&token=' + data.token //正式环境
window
.
open
(
openUrl
,
'_blank'
);
}
else
if
(
yearBblxDm
.
indexOf
(
data
.
bblxDm
)
!=
-
1
){
data
.
saveUserId
=
"zxtb_singleReport"
;
// 用户id
data
.
userId
=
"zxtb"
;
// userId
window
.
open
(
config
.
yearTaxTable
,
'_blank'
);
}
else
{
window
.
open
(
config
.
ssfwptPage
,
'_blank'
);
}
Object
.
defineProperty
(
mlistener
,
'returnSelectRowData'
,
{
set
:
function
(
val
)
{
...
...
static/config.js
View file @
a1eb3493
...
...
@@ -5,7 +5,7 @@
* @Param
* @return
**/
function
getUrlParam
(
name
)
{
function
getUrlParam
(
name
)
{
var
reg
=
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
return
decodeURIComponent
(
r
[
2
]);
...
...
@@ -14,24 +14,31 @@ function getUrlParam (name) {
// 公共配置 生产环境
var
config
=
{
environmental
:
"test"
,
//production 生产 test 测试
webUrl
:
"/web/online
/online
Report/jsp/"
,
// 预生产环境解开
webUrl
:
"/web/onlineReport/jsp/"
,
// 预生产环境解开
url
:
""
,
// 开发环境配置跨域设置 // 开发环境
spreadUrl
:
""
,
// 局端生产 值为空 其余全部指向在线的域名
ssfwptPage
:
"/web/online/taxservicedesk/index.html#/taxTableList"
,
// 涉税服务平台填报页面地址
zhsbPage
:
"/web/online/taxservicedesk/index.html#/syntheticalReport"
,
// 涉税 综合申报页面
taxFormComponent
:
"/web/taxFormComponent/index.html?param="
,
// 涉税服务平台填报页面地址
value
:
''
,
//加密token
nsrsbq
:
''
,
spreadUrl
:
""
,
// 局端生产 值为空 其余全部指向在线的域名
ssfwptPage
:
"/web/online/taxservicedesk/index.html#/taxTableList"
,
// 涉税服务平台填报页面地址 月季报
yearTaxTable
:
"/web/online/taxservicedesk/index.html#/yearTaxTable"
,
// 涉税服务平台填报页面地址 年报
zhsbPage
:
"/web/online/taxservicedesk/index.html#/syntheticalReport"
,
// 涉税 综合申报页面
taxFormComponent
:
"/web/taxFormComponent/index.html?param="
,
// 涉税服务平台填报页面地址
ccxwsTaxTable
:
"/web/tax-plugin/index.html"
,
//财产行为税跳转页面
}
//公共配置 本地环境,测试环境
/*var config = {
environmental:"test",//production 生产 test 测试
webUrl:"http://localhost:80/web/online/onlineReport/jsp/", // 开发环境
url:"",// 开发环境配置跨域设置 // 开发环境
spreadUrl:"sbjs.tjsat.gov.cn:18001",// 注册地址
ssfwptPage:"/web/taxservicedesk/index.html#/taxTableList",// 涉税服务平台填报页面地址
value:'',//加密token
}*/
// var config = {
// environmental: "test", //production 生产 test 测试
// webUrl: "/web/onlineReport/jsp/", // 预生产环境解开
// url: "", // 开发环境配置跨域设置 // 开发环境
// value: '', //加密token
// nsrsbq: '',
// spreadUrl: "http://sbjs.tjsat.gov.cn", // 局端生产 值为空 其余全部指向在线的域名
// ssfwptPage: "/web/#/taxTableList", // 涉税服务平台填报页面地址 月季报
// yearTaxTable: "/web/#/yearTaxTable", // 涉税服务平台填报页面地址 年报
// zhsbPage: "/web/#/syntheticalReport", // 涉税 综合申报页面
// taxFormComponent: "/web/taxFormComponent/index.html?param=", // 涉税服务平台填报页面地址
// ccxwsTaxTable:"http://dev-web.htyfw.com.cn/page/property_tax_plugin_web/index.html",//财产行为税跳转页面
// }
// if(config.environmental=="production" && getUrlParam("djxh")){
// window.open(config.webUrl + "/error/newError.html",'_self')
...
...
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