Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zj-app(废弃)
Overview
Overview
Details
Activity
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
new-zhengjiang
zj-app(废弃)
Commits
900e5a16
Commit
900e5a16
authored
Oct 12, 2022
by
@zhang-bin-1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx
parent
c755ab75
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
777 additions
and
547 deletions
+777
-547
App.vue
src/App.vue
+2
-1
deedtax.js
src/api/deedtax.js
+37
-23
policy.js
src/api/policy.js
+3
-2
talents.js
src/api/talents.js
+36
-33
axios.js
src/utils/axios.js
+177
-0
request.js
src/utils/request.js
+3
-4
declare.vue
src/views/deedtax/declare.vue
+1
-1
detail.vue
src/views/deedtax/detail.vue
+3
-1
handling.vue
src/views/deedtax/handling.vue
+68
-62
index.vue
src/views/deedtax/index.vue
+61
-55
detail.vue
src/views/policy/detail.vue
+59
-50
myreportTwo.vue
src/views/policy/myreportTwo.vue
+75
-73
gatreport.vue
src/views/report/gatreport.vue
+24
-23
index.vue
src/views/report/index.vue
+2
-1
replacereport.vue
src/views/report/replacereport.vue
+46
-45
report.vue
src/views/report/report.vue
+46
-45
register.vue
src/views/reverse/register.vue
+46
-45
submit.vue
src/views/reverse/submit.vue
+76
-76
index.vue
src/views/talents/index.vue
+5
-4
report.vue
src/views/talents/report.vue
+5
-1
reportform.vue
src/views/talents/reportform.vue
+2
-2
No files found.
src/App.vue
View file @
900e5a16
...
...
@@ -32,7 +32,8 @@ export default {
userId
:
37393
,
name
:
"124晚6565"
,
realName
:
"梁中全"
,
idCardNo
:
"32092219930813831X"
,
// idCardNo: "32092219930813831X",
idCardNo
:
"321111198502254219"
,
// idCardNo: "321183199610151344",
// idCardNo: "DDfCYHcrBMRhvRt4AQKt+WfGq6l2uT5G",
// mobileNo: 13776475181,
...
...
src/api/deedtax.js
View file @
900e5a16
import
{
request
,
request1
,
config
}
from
'@/utils/request'
// import { request, config } from '@/utils/request'
import
{
request2
,
config2
}
from
'@/utils/axios'
/**
* 上传照片文件
* @param {Object} data
*/
export
function
uploadFile
(
data
)
{
return
request
({
headers
:
{
"Content-Type"
:
"multipart/form-data"
},
// url: `${config.baseUrl}file/DeedTaxUpload`,
url
:
`
${
config
.
baseUrl
}
file/upload`
,
return
request2
({
// headers: {
// "Content-Type": "multipart/form-data",
// "Authorization": "Bearer " + sessionStorage.getItem("token")
// },
url
:
`
${
config2
.
baseUrl
}
app-api/file/DeedTaxUpload`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -18,8 +21,8 @@ export function uploadFile(data) {
* 契税补贴申请列表
*/
export
function
queryListDeedTaxInfoByUserId
(
data
)
{
return
request
1
({
url
:
`
${
config
.
baseUrl
}
deedTax/queryListDeedTaxInfoByUserId`
,
return
request
2
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
deedTax/queryListDeedTaxInfoByUserId`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -29,8 +32,8 @@ export function queryListDeedTaxInfoByUserId(data) {
* 契税补贴申请新增
*/
export
function
addDeedTax
(
data
)
{
return
request
1
({
url
:
`
${
config
.
baseUrl
}
deedTax/addDeedTax`
,
return
request
2
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
deedTax/addDeedTax`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -40,8 +43,8 @@ export function addDeedTax(data) {
* 契税补贴初审审核意见
*/
export
function
queryReviewerDeedTaxRecord
(
data
)
{
return
request
1
({
url
:
`
${
config
.
baseUrl
}
deedTax/queryReviewerDeedTaxRecord`
,
return
request
2
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
deedTax/queryReviewerDeedTaxRecord`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -51,8 +54,8 @@ export function queryReviewerDeedTaxRecord(data) {
* 契税补贴审核意见
*/
export
function
queryDeedTaxRecord
(
data
)
{
return
request
1
({
url
:
`
${
config
.
baseUrl
}
deedTax/queryDeedTaxRecord`
,
return
request
2
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
deedTax/queryDeedTaxRecord`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -62,8 +65,8 @@ export function queryDeedTaxRecord(data) {
* 契税补贴查询详情
*/
export
function
queryDeedTaxInfoByCode
(
data
)
{
return
request
1
({
url
:
`
${
config
.
baseUrl
}
deedTax/queryDeedTaxInfoByCode`
,
return
request
2
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
deedTax/queryDeedTaxInfoByCode`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -73,8 +76,8 @@ export function queryDeedTaxInfoByCode(data) {
* 契税补贴申请修改
*/
export
function
updateDeedTax
(
data
)
{
return
request
1
({
url
:
`
${
config
.
baseUrl
}
deedTax/updateDeedTax`
,
return
request
2
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
deedTax/updateDeedTax`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -84,8 +87,8 @@ export function updateDeedTax(data) {
* 银行卡确认
*/
export
function
updateDeedTaxState
(
data
)
{
return
request
1
({
url
:
`
${
config
.
baseUrl
}
deedTax/updateDeedTaxState`
,
return
request
2
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
deedTax/updateDeedTaxState`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -95,8 +98,8 @@ export function updateDeedTaxState(data) {
* 查询用户申请记录
*/
export
function
queryUserApplyForRecord
(
data
)
{
return
request
1
({
url
:
`
${
config
.
baseUrl
}
deedTax/queryUserApplyForRecord`
,
return
request
2
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
deedTax/queryUserApplyForRecord`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -106,8 +109,19 @@ export function queryUserApplyForRecord(data) {
* 查询用户申请中的详细信息
*/
export
function
queryApplyingDeedTaxInfo
(
data
)
{
return
request1
({
url
:
`
${
config
.
baseUrl
}
deedTax/queryApplyingDeedTaxInfo`
,
return
request2
({
url
:
`
${
config2
.
baseUrl
}
app-api/deedTax/queryApplyingDeedTaxInfo`
,
method
:
'post'
,
data
:
data
})
}
/**
* 身份证验重(判断用户是否享受过相关政策)
*/
export
function
idCardVerification
(
data
)
{
return
request2
({
url
:
`
${
config2
.
baseUrl
}
app-api/deedTax/idCardVerification`
,
method
:
'post'
,
data
:
data
})
...
...
src/api/policy.js
View file @
900e5a16
import
{
request
,
config
}
from
'@/utils/request'
import
{
request2
,
config2
}
from
'@/utils/axios'
/**
* 部门列表
...
...
@@ -54,8 +55,8 @@ export function mattersById(data) {
* @returns
*/
export
function
mattersGuideGet
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/mattersGuideGet`
,
return
request
2
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/mattersGuideGet`
,
method
:
'post'
,
data
:
data
})
...
...
src/api/talents.js
View file @
900e5a16
import
{
request
,
config
,
formatUrl
}
from
'@/utils/request'
import
{
request3
,
config2
}
from
'@/utils/axios'
// /**
// * 通过ticket查询用户实名信息
...
...
@@ -15,13 +16,15 @@ import { request, config, formatUrl } from '@/utils/request'
* 上传照片文件
* @param {Object} data
*/
export
function
uploadFile
(
data
)
{
return
request
({
headers
:
{
"Content-Type"
:
"multipart/form-data"
},
// url: `${config.baseUrl}file/uploadTalent`,
url
:
`
${
config
.
baseUrl
}
file/upload`
,
method
:
'post'
,
data
:
data
export
function
uploadFile
(
data
)
{
return
request3
({
// headers: {
// "Content-Type": "multipart/form-data",
// "Authorization": "Bearer " + sessionStorage.getItem("token")
// },
url
:
`
${
config2
.
baseUrl
}
app-api/file/uploadTalent`
,
method
:
'post'
,
data
:
data
})
}
...
...
@@ -30,8 +33,8 @@ export function uploadFile(data) {
* @param {Object} data
*/
export
function
getType
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/getType`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/getType`
,
method
:
'get'
,
params
:
data
})
...
...
@@ -42,8 +45,8 @@ export function getType(data) {
* @param {Object} data
*/
export
function
getCategory
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/getCategory`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/getCategory`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -54,8 +57,8 @@ export function getCategory(data) {
* @param {Object} data
*/
export
function
addBehavior
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/addBehavior`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
/app-api/
talent/addBehavior`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -77,8 +80,8 @@ export function getCategory(data) {
* 查询用户实名信息
*/
export
function
queryUser
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
user/queryUser
${
formatUrl
(
data
)}
`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/user/queryUser
`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -89,8 +92,8 @@ export function getCategory(data) {
* @param {Object} data
*/
export
function
getContent
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/getContent`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/getContent`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -100,8 +103,8 @@ export function getContent(data) {
* 查询详情
*/
export
function
get
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/get`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/get`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -110,8 +113,8 @@ export function get(data) {
* 根据二维码查询详情
*/
export
function
getCodeDetails
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/getCodeDetails`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/getCodeDetails`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -121,8 +124,8 @@ export function getCodeDetails(data) {
* 提交/保存
*/
export
function
add
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/add`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/add`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -132,8 +135,8 @@ export function add(data) {
* 修改提交/保存
*/
export
function
update
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/update`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/update`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -143,8 +146,8 @@ export function update(data) {
* 删除
*/
export
function
del
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/delete`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/delete`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -154,8 +157,8 @@ export function del(data) {
* 修改状态
*/
export
function
updateState
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/updateState`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/updateState`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -165,8 +168,8 @@ export function updateState(data) {
* 公式名单
*/
export
function
getList
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/getList`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/getList`
,
method
:
'post'
,
data
:
data
})
...
...
@@ -176,8 +179,8 @@ export function getList(data) {
* 查询人才名单
*/
export
function
getPersonnel
(
data
)
{
return
request
({
url
:
`
${
config
.
baseUrl
}
talent/getPersonnel`
,
return
request
3
({
url
:
`
${
config
2
.
baseUrl
}
app-api/
talent/getPersonnel`
,
method
:
'post'
,
data
:
data
})
...
...
src/utils/axios.js
0 → 100644
View file @
900e5a16
import
Vue
from
"vue"
;
import
axios
from
"axios"
;
import
{
Toast
}
from
"vant"
;
Vue
.
use
(
Toast
);
// 配置环境
const
env
=
process
.
env
.
NODE_ENV
===
"development"
?
"dev"
:
"prod"
;
const
baseUrl
=
{
dev
:
"http://192.168.3.144:10010/"
,
// dev: "http://81.69.231.72:10010/",
// dev: "https://www.smart-zj.cn:55901/cert/",
// prod: 'http://81.69.231.72:9090/',
prod
:
"https://www.smart-zj.cn:55901/cert/"
,
};
const
baseH5
=
{
// dev: "http://www.smart-zj.cn:55902/zjh/html/pages/#/",
dev
:
"http://81.69.44.115/zjh/html/pages2/#/"
,
// prod: 'http://81.69.44.115/zjh/html/pages/#/',
prod
:
"http://www.smart-zj.cn:55902/zjh/html/pages/#/"
,
};
const
config2
=
{
baseUrl
:
baseUrl
[
env
],
baseH5
:
baseH5
[
env
],
// baseUrl: 'http://81.69.231.72:9090/', // 测试
// baseH5: 'http://81.69.44.115/zjh/html/pages/#/', // 测试
// baseUrl: 'https://www.smart-zj.cn:55901/cert/', // 生产
// baseH5: 'http://www.smart-zj.cn:55902/zjh/html/pages/#/', // 生产
baseSocUrl
:
"https://www.smart-zj.cn:55901/soc/"
,
// 公积金社保
baseServiceUrl
:
"http://58.217.53.110/epoint-web-zwdt/rest/"
,
// 政务np服务
basePurchase
:
"http://zfcg.ggzy.zhenjiang.gov.cn/WebBuilderMobileService/appservice/"
,
// 公共资源采购
};
const
request2
=
axios
.
create
({
timeout
:
30000
,
withCredentials
:
false
,
});
request2
.
interceptors
.
request
.
use
(
(
config
)
=>
{
config
.
headers
=
{
"Content-Type"
:
"application/json;multipart/form-data;"
,
"Authorization"
:
"Bearer "
+
sessionStorage
.
getItem
(
"token"
)
};
// alert(JSON.stringify(config.headers))
// if (config.method === 'post') {
// config.data = { ...config.data }
// } else if (config.method === 'get') {
// config.params = { ...config.params }
// }
return
config
;
},
(
error
)
=>
{
console
.
log
(
error
);
return
Promise
.
reject
(
error
);
}
);
request2
.
interceptors
.
response
.
use
(
(
response
)
=>
{
const
res
=
response
.
data
;
if
(
response
.
config
.
url
.
indexOf
(
config2
.
basePurchase
)
!==
-
1
)
{
if
(
res
.
EpointDataBody
.
DATA
.
ReturnInfo
.
Status
===
"True"
)
{
return
res
;
}
else
{
Toast
(
res
.
EpointDataBody
.
DATA
.
ReturnInfo
.
Description
||
"网络错误"
);
return
Promise
.
reject
(
new
Error
(
res
.
EpointDataBody
.
DATA
.
ReturnInfo
.
Description
||
"网络错误"
)
);
}
}
else
if
(
response
.
config
.
url
.
indexOf
(
config2
.
baseServiceUrl
)
!==
-
1
)
{
if
(
res
.
status
.
code
===
200
)
{
return
res
;
}
else
{
Toast
(
res
.
status
.
text
||
"网络错误"
);
return
Promise
.
reject
(
new
Error
(
res
.
status
.
text
||
"网络错误"
));
}
}
else
{
// alert(JSON.stringify(res))
if
(
parseInt
(
res
.
code
)
===
200
)
{
return
res
;
}
else
{
Toast
(
res
.
message
||
res
.
msg
||
"网络错误"
);
return
Promise
.
reject
(
new
Error
(
res
.
message
||
"网络错误"
));
}
}
},
(
error
)
=>
{
Toast
.
clear
();
console
.
log
(
"err"
+
error
);
Toast
(
error
.
message
||
"网络错误"
);
return
Promise
.
reject
(
error
);
}
);
const
request3
=
axios
.
create
({
timeout
:
30000
,
withCredentials
:
false
,
});
request3
.
interceptors
.
request
.
use
(
(
config
)
=>
{
config
.
headers
=
{
"Content-Type"
:
"application/json;multipart/form-data;"
,
"Authorization"
:
"Bearer "
+
sessionStorage
.
getItem
(
"token"
)
};
// if (config.method === 'post') {
// config.data = { ...config.data }
// } else if (config.method === 'get') {
// config.params = { ...config.params }
// }
return
config
;
},
(
error
)
=>
{
console
.
log
(
error
);
return
Promise
.
reject
(
error
);
}
);
request3
.
interceptors
.
response
.
use
(
(
response
)
=>
{
const
res
=
response
.
data
;
if
(
response
.
config
.
url
.
indexOf
(
config2
.
basePurchase
)
!==
-
1
)
{
if
(
res
.
EpointDataBody
.
DATA
.
ReturnInfo
.
Status
===
"True"
)
{
return
res
;
}
else
{
Toast
(
res
.
EpointDataBody
.
DATA
.
ReturnInfo
.
Description
||
"网络错误"
);
return
Promise
.
reject
(
new
Error
(
res
.
EpointDataBody
.
DATA
.
ReturnInfo
.
Description
||
"网络错误"
)
);
}
}
else
if
(
response
.
config
.
url
.
indexOf
(
config2
.
baseServiceUrl
)
!==
-
1
)
{
if
(
res
.
status
.
code
===
200
)
{
return
res
;
}
else
{
Toast
(
res
.
status
.
text
||
"网络错误"
);
return
Promise
.
reject
(
new
Error
(
res
.
status
.
text
||
"网络错误"
));
}
}
else
{
// alert(JSON.stringify(res))
if
(
parseInt
(
res
.
code
)
===
200
)
{
return
res
.
data
||
res
.
message
;
}
else
{
Toast
(
res
.
message
||
"网络错误"
);
return
Promise
.
reject
(
new
Error
(
res
.
message
||
"网络错误"
));
}
}
},
(
error
)
=>
{
Toast
.
clear
();
console
.
log
(
"err"
+
error
);
Toast
(
error
.
message
||
"网络错误"
);
return
Promise
.
reject
(
error
);
}
);
const
formatUrl
=
(
params
)
=>
{
let
ary
=
[];
Object
.
keys
(
params
).
map
((
key
)
=>
{
ary
.
push
(
encodeURIComponent
(
key
)
+
"="
+
encodeURIComponent
(
params
[
key
]));
// if (params[key]) {
// ary.push(encodeURIComponent(key) + '=' + encodeURIComponent(params[key]));
// }
});
let
urlStr
=
ary
.
join
(
"&"
);
return
`?
${
urlStr
}
`
;
};
export
{
config2
,
request2
,
request3
,
formatUrl
};
src/utils/request.js
View file @
900e5a16
...
...
@@ -7,9 +7,8 @@ Vue.use(Toast);
const
env
=
process
.
env
.
NODE_ENV
===
"development"
?
"dev"
:
"prod"
;
const
baseUrl
=
{
// dev: "http://192.168.3.98:9090/",
// dev: "http://192.168.3.144:9090/",
dev
:
"http://81.69.231.72:
909
0/"
,
dev
:
"http://81.69.231.72:
1001
0/"
,
// dev: "https://www.smart-zj.cn:55901/cert/",
// prod: 'http://81.69.231.72:9090/',
...
...
@@ -17,9 +16,9 @@ const baseUrl = {
};
const
baseH5
=
{
// dev: "http://www.smart-zj.cn:55902/zjh/html/pages/#/",
dev
:
"http://81.69.44.115/zjh/html/pages/#/"
,
dev
:
"http://81.69.44.115/zjh/html/pages
2
/#/"
,
// prod: 'http://81.69.44.115/zjh/html/pages/#/',
prod
:
"http://www.smart-zj.cn:55902/zjh/html/pages/#/"
,
prod
:
"http://www.smart-zj.cn:55902/zjh/html/pages
2
/#/"
,
};
const
config
=
{
baseUrl
:
baseUrl
[
env
],
...
...
src/views/deedtax/declare.vue
View file @
900e5a16
...
...
@@ -1067,7 +1067,7 @@ export default {
},
];
}
params
.
userId
=
this
.
userInfo
.
userId
?
this
.
userInfo
.
userId
:
"37393"
;
//
params.userId = this.userInfo.userId ? this.userInfo.userId : "37393";
delete
params
.
idimg
;
delete
params
.
bankimg
;
delete
params
.
certificate
;
...
...
src/views/deedtax/detail.vue
View file @
900e5a16
...
...
@@ -63,7 +63,7 @@ export default {
mattersGuideGet
({
appId
:
1234
,
id
:
this
.
id
}).
then
(
res
=>
{
console
.
log
(
"详情的res---"
,
res
);
this
.
$toast
.
clear
();
this
.
detail
=
res
;
this
.
detail
=
res
.
data
;
});
},
report
()
{
...
...
@@ -121,6 +121,8 @@ export default {
}
sessionStorage
.
setItem
(
"ZJCD-UserInfo"
,
res
);
this
.
userInfo
=
userInfo
;
sessionStorage
.
setItem
(
'token'
,
this
.
userInfo
.
token
),
// alert(sessionStorage.getItem("token"))
this
.
init
()
},
},
...
...
src/views/deedtax/handling.vue
View file @
900e5a16
...
...
@@ -537,8 +537,10 @@ import {
updateDeedTaxState
,
queryUserApplyForRecord
,
queryApplyingDeedTaxInfo
,
idCardVerification
}
from
"@/api/deedtax.js"
;
import
{
decryptByDES
,
encryptByDES
}
from
"@/utils/utils"
;
// import { decryptByDES, encryptByDES } from "@/utils/utils";
import
{
decryptByDES
}
from
"@/utils/utils"
;
Vue
.
use
(
Button
)
.
use
(
Tab
)
...
...
@@ -749,68 +751,72 @@ export default {
});
},
jump
()
{
// console.log(this.code);
// // console.log(decryptByDES(this.code, "MnuYbhGv"));
// console.log(this.userInfo);
let
newCard
=
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
);
console
.
log
(
newCard
);
let
params
=
{
userId
:
encryptByDES
(
this
.
userInfo
.
userId
,
"MnuYbhGv"
),
idCard
:
newCard
,
};
// alert(JSON.stringify(params))
queryUserApplyForRecord
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
// alert(JSON.stringify(res))
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
state
==
0
)
{
this
.
$router
.
replace
({
name
:
"DeedtaxDeclare"
,
query
:
{
code
:
this
.
code
},
});
}
else
if
(
res
.
data
.
state
==
2
)
{
Dialog
.
confirm
({
confirmButtonText
:
"申报"
,
message
:
res
.
data
.
msg
||
"您已享受契税补贴,是否再次申报?"
,
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
"DeedtaxDeclare"
});
});
}
else
if
(
res
.
data
.
state
==
1
)
{
Dialog
.
confirm
({
confirmButtonText
:
"查看"
,
message
:
res
.
data
.
msg
||
"您的申请已提交"
,
}).
then
(()
=>
{
queryApplyingDeedTaxInfo
({
code
:
""
,
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
),
name
:
""
,
pageNum
:
1
,
pageSize
:
10
,
state
:
0
,
userId
:
""
,
}).
then
((
res
)
=>
{
// alert(JSON.stringify(res))
console
.
log
(
res
);
// this.$router.push({ name: 'DeedtaxHandling', query: { code: res.data.code } })
this
.
code
=
res
.
data
.
code
;
this
.
init
();
});
});
}
else
if
(
res
.
data
.
state
==
11
)
{
console
.
log
(
111
);
Dialog
.
confirm
({
confirmButtonText
:
"查看"
,
message
:
res
.
data
.
msg
||
"您的申请已提交"
,
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
"PolicyReportTwo"
,
query
:
{
code
:
res
.
data
.
code
},
});
});
}
idCardVerification
({
idCard
:
this
.
userInfo
.
idCardNo
}).
then
((
res
)
=>
{
if
(
res
.
data
)
{
let
newCard
=
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
);
console
.
log
(
newCard
);
let
params
=
{
idCard
:
newCard
,
};
queryUserApplyForRecord
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
// alert(JSON.stringify(res))
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
state
==
0
)
{
this
.
$router
.
replace
({
name
:
"DeedtaxDeclare"
,
query
:
{
code
:
this
.
code
},
});
}
else
if
(
res
.
data
.
state
==
2
)
{
Dialog
.
confirm
({
confirmButtonText
:
"申报"
,
message
:
res
.
data
.
msg
||
"您已享受契税补贴,是否再次申报?"
,
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
"DeedtaxDeclare"
});
});
}
else
if
(
res
.
data
.
state
==
1
)
{
Dialog
.
confirm
({
confirmButtonText
:
"查看"
,
message
:
res
.
data
.
msg
||
"您的申请已提交"
,
}).
then
(()
=>
{
queryApplyingDeedTaxInfo
({
code
:
""
,
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
),
name
:
""
,
pageNum
:
1
,
pageSize
:
10
,
state
:
0
,
// userId: "",
}).
then
((
res
)
=>
{
// alert(JSON.stringify(res))
console
.
log
(
res
);
// this.$router.push({ name: 'DeedtaxHandling', query: { code: res.data.code } })
this
.
code
=
res
.
data
.
code
;
this
.
init
();
});
});
}
else
if
(
res
.
data
.
state
==
11
)
{
console
.
log
(
111
);
Dialog
.
confirm
({
confirmButtonText
:
"查看"
,
message
:
res
.
data
.
msg
||
"您的申请已提交"
,
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
"PolicyReportTwo"
,
query
:
{
code
:
res
.
data
.
code
},
});
});
}
}
});
}
else
{
Dialog
.
confirm
({
title
:
'提示'
,
messageAlign
:
'left'
,
message
:
"经系统查询,您已享受过相关政策补贴 ,不能再次申报契税补贴政策。如有异议请联系市财政窗口,地址:镇江市政务服务中心(冠城路8号工人大厦)二楼市财政局窗口,联系电话:0511-89881850"
,
})
}
})
;
})
// this.$router.replace({ name: 'DeedtaxDeclare', query: { code: this.code } })
},
// 初始化获取userInfo
...
...
src/views/deedtax/index.vue
View file @
900e5a16
...
...
@@ -142,6 +142,7 @@ import {
queryListDeedTaxInfoByUserId
,
queryUserApplyForRecord
,
queryApplyingDeedTaxInfo
,
idCardVerification
}
from
"@/api/deedtax.js"
;
import
{
decryptByDES
,
encryptByDES
}
from
"@/utils/utils"
;
Vue
.
use
(
Step
)
...
...
@@ -164,67 +165,72 @@ export default {
pageNum
:
1
,
pageSize
:
20
,
state
:
null
,
userId
:
""
,
//
userId: "",
},
};
},
methods
:
{
go
()
{
// alert(JSON.stringify(this.userInfo))
let
params
=
{
userId
:
this
.
userInfo
.
userId
,
idCard
:
encryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
),
};
// alert(JSON.stringify(params))
queryUserApplyForRecord
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
// alert(JSON.stringify(res))
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
state
==
0
)
{
this
.
$router
.
push
({
name
:
"DeedtaxDeclare"
});
}
else
if
(
res
.
data
.
state
==
2
)
{
Dialog
.
confirm
({
confirmButtonText
:
"申报"
,
message
:
res
.
data
.
msg
||
"您已享受契税补贴,是否再次申报?"
,
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
"DeedtaxDeclare"
});
});
}
else
if
(
res
.
data
.
state
==
1
)
{
Dialog
.
confirm
({
confirmButtonText
:
"查看"
,
message
:
res
.
data
.
msg
||
"您的申请已提交"
,
}).
then
(()
=>
{
queryApplyingDeedTaxInfo
({
code
:
""
,
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
),
name
:
""
,
pageNum
:
1
,
pageSize
:
10
,
state
:
0
,
userId
:
""
,
}).
then
((
res
)
=>
{
// alert(JSON.stringify(res))
console
.
log
(
res
);
this
.
$router
.
push
({
name
:
"DeedtaxHandling"
,
query
:
{
code
:
res
.
data
.
code
},
idCardVerification
({
idCard
:
this
.
userInfo
.
idCardNo
}).
then
((
res
)
=>
{
if
(
res
.
data
)
{
let
params
=
{
idCard
:
encryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
),
};
queryUserApplyForRecord
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
state
==
0
)
{
this
.
$router
.
push
({
name
:
"DeedtaxDeclare"
});
}
else
if
(
res
.
data
.
state
==
2
)
{
Dialog
.
confirm
({
confirmButtonText
:
"申报"
,
message
:
res
.
data
.
msg
||
"您已享受契税补贴,是否再次申报?"
,
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
"DeedtaxDeclare"
});
});
}
else
if
(
res
.
data
.
state
==
1
)
{
Dialog
.
confirm
({
confirmButtonText
:
"查看"
,
message
:
res
.
data
.
msg
||
"您的申请已提交"
,
}).
then
(()
=>
{
queryApplyingDeedTaxInfo
({
code
:
""
,
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
),
name
:
""
,
pageNum
:
1
,
pageSize
:
10
,
state
:
0
,
userId
:
""
,
}).
then
((
res
)
=>
{
// alert(JSON.stringify(res))
console
.
log
(
res
);
this
.
$router
.
push
({
name
:
"DeedtaxHandling"
,
query
:
{
code
:
res
.
data
.
code
},
});
});
});
}
else
if
(
res
.
data
.
state
==
11
)
{
console
.
log
(
111
);
Dialog
.
confirm
({
confirmButtonText
:
"查看"
,
message
:
res
.
data
.
msg
||
"您的申请已提交"
,
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
"PolicyReportTwo"
,
query
:
{
code
:
res
.
data
.
code
},
});
});
});
});
}
else
if
(
res
.
data
.
state
==
11
)
{
console
.
log
(
111
);
Dialog
.
confirm
({
confirmButtonText
:
"查看"
,
message
:
res
.
data
.
msg
||
"您的申请已提交"
,
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
"PolicyReportTwo"
,
query
:
{
code
:
res
.
data
.
code
},
});
});
}
}
}
});
}
else
{
Dialog
.
confirm
({
title
:
'提示'
,
messageAlign
:
'left'
,
message
:
"经系统查询,您已享受过相关政策补贴 ,不能再次申报契税补贴政策。如有异议请联系市财政窗口,地址:镇江市政务服务中心(冠城路8号工人大厦)二楼市财政局窗口,联系电话:0511-89881850"
,
})
}
})
;
})
},
change
(
val
)
{
console
.
log
(
val
);
...
...
@@ -247,7 +253,7 @@ export default {
this
.
init
();
},
init
()
{
this
.
params
.
userId
=
encryptByDES
(
this
.
userInfo
.
userId
,
"MnuYbhGv"
);
//
this.params.userId = encryptByDES(this.userInfo.userId, "MnuYbhGv");
queryListDeedTaxInfoByUserId
(
this
.
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
mockData
=
res
.
data
.
list
;
...
...
src/views/policy/detail.vue
View file @
900e5a16
...
...
@@ -32,7 +32,7 @@ import {
/*mattersById,*/
mattersByUserId
,
mattersGuideGet
}
from
"@/api/policy"
;
import
{
queryUserApplyForRecord
,
queryApplyingDeedTaxInfo
}
from
'@/api/deedtax'
import
{
queryUserApplyForRecord
,
queryApplyingDeedTaxInfo
,
idCardVerification
}
from
'@/api/deedtax'
import
{
decryptByDES
}
from
"@/utils/utils"
;
import
imgUrl
from
"@/assets/policy/banner.png"
;
...
...
@@ -185,58 +185,67 @@ export default {
this
.
detail
.
matterType
===
5
||
this
.
detail
.
matterType
===
6
)
{
let
params
=
{
userId
:
this
.
userInfo
.
userId
,
// idCard: this.userInfo.idCardNo
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
)
}
// alert(JSON.stringify(params))
queryUserApplyForRecord
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
// alert(JSON.stringify(res))
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
state
==
0
)
{
// 人才“镇兴”行动购住房契税补贴(住宅)||人才“镇兴”行动购住房契税补贴(商办)
this
.
$router
.
push
({
name
:
"HousePurchase"
,
query
:
{
departmentCode
:
this
.
detail
.
departmentCode
,
guideId
:
this
.
detail
.
id
,
talentCode
:
this
.
talentCode
,
matterType
:
this
.
detail
.
matterType
,
type
:
"add"
}
});
}
else
if
(
res
.
data
.
state
==
1
)
{
Dialog
.
confirm
({
confirmButtonText
:
'查看'
,
message
:
res
.
data
.
msg
||
'您的申请已提交'
,
}).
then
(()
=>
{
queryApplyingDeedTaxInfo
({
code
:
""
,
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
),
name
:
""
,
pageNum
:
1
,
pageSize
:
10
,
state
:
0
,
userId
:
""
}).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
$router
.
push
({
name
:
'DeedtaxHandling'
,
query
:
{
code
:
res
.
data
.
code
}
})
})
})
}
else
if
(
res
.
data
.
state
==
11
)
{
console
.
log
(
111
)
Dialog
.
confirm
({
confirmButtonText
:
'查看'
,
message
:
res
.
data
.
msg
||
'您的申请已提交'
,
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
'PolicyReportTwo'
,
query
:
{
code
:
res
.
data
.
code
}
})
})
idCardVerification
({
idCard
:
this
.
userInfo
.
idCardNo
}).
then
((
res
)
=>
{
if
(
res
.
data
)
{
let
params
=
{
// userId: this.userInfo.userId,
// idCard: this.userInfo.idCardNo
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
)
}
// alert(JSON.stringify(params))
queryUserApplyForRecord
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
// alert(JSON.stringify(res))
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
state
==
0
)
{
// 人才“镇兴”行动购住房契税补贴(住宅)||人才“镇兴”行动购住房契税补贴(商办)
this
.
$router
.
push
({
name
:
"HousePurchase"
,
query
:
{
departmentCode
:
this
.
detail
.
departmentCode
,
guideId
:
this
.
detail
.
id
,
talentCode
:
this
.
talentCode
,
matterType
:
this
.
detail
.
matterType
,
type
:
"add"
}
});
}
else
if
(
res
.
data
.
state
==
1
)
{
Dialog
.
confirm
({
confirmButtonText
:
'查看'
,
message
:
res
.
data
.
msg
||
'您的申请已提交'
,
}).
then
(()
=>
{
queryApplyingDeedTaxInfo
({
code
:
""
,
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
),
name
:
""
,
pageNum
:
1
,
pageSize
:
10
,
state
:
0
,
userId
:
""
}).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
$router
.
push
({
name
:
'DeedtaxHandling'
,
query
:
{
code
:
res
.
data
.
code
}
})
})
})
}
else
if
(
res
.
data
.
state
==
11
)
{
console
.
log
(
111
)
Dialog
.
confirm
({
confirmButtonText
:
'查看'
,
message
:
res
.
data
.
msg
||
'您的申请已提交'
,
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
'PolicyReportTwo'
,
query
:
{
code
:
res
.
data
.
code
}
})
})
}
}
})
}
else
{
Dialog
.
confirm
({
title
:
'提示'
,
messageAlign
:
'left'
,
message
:
"经系统查询,您已享受过相关政策补贴 ,不能再次申报契税补贴政策。如有异议请联系市财政窗口,地址:镇江市政务服务中心(冠城路8号工人大厦)二楼市财政局窗口,联系电话:0511-89881850"
,
})
}
})
}
}
}
...
...
src/views/policy/myreportTwo.vue
View file @
900e5a16
...
...
@@ -75,7 +75,7 @@ import Vue from "vue";
import
{
Tab
,
Tabs
,
PullRefresh
,
List
,
Search
,
Button
,
Dialog
}
from
"vant"
;
import
{
mattersHousingList
,
mattersHousingUpdateState
}
from
"@/api/policy"
;
import
{
policyEnume
}
from
"@/utils/utils"
;
import
{
queryUserApplyForRecord
,
queryApplyingDeedTaxInfo
}
from
'@/api/deedtax'
import
{
queryUserApplyForRecord
,
queryApplyingDeedTaxInfo
,
idCardVerification
}
from
'@/api/deedtax'
import
{
decryptByDES
,
encryptByDES
}
from
"@/utils/utils"
;
Vue
.
use
(
Tab
)
...
...
@@ -191,81 +191,83 @@ export default {
},
// 修改
update
(
record
)
{
let
params
=
{
userId
:
this
.
userInfo
.
userId
,
// idCard: this.userInfo.idCardNo
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
)
}
// alert(JSON.stringify(params))
queryUserApplyForRecord
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
// alert(JSON.stringify(res))
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
state
==
0
)
{
// 人才“镇兴”行动购住房契税补贴(住宅)||人才“镇兴”行动购住房契税补贴(商办)
this
.
$router
.
push
({
name
:
"HousePurchase"
,
query
:
{
code
:
record
.
code
,
matterType
:
record
.
housingType
===
2
?
5
:
6
,
type
:
"edit"
}
});
// this.$router.push({
// name: "HousePurchase",
// query: {
// departmentCode: this.detail.departmentCode,
// guideId: this.detail.id,
// talentCode: this.talentCode,
// matterType: this.detail.matterType,
// type: "add"
// }
// });
}
else
if
(
res
.
data
.
state
==
1
)
{
Dialog
.
confirm
({
confirmButtonText
:
'查看'
,
message
:
res
.
data
.
msg
||
'您的申请已提交'
,
}).
then
(()
=>
{
queryApplyingDeedTaxInfo
({
code
:
""
,
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
),
name
:
""
,
pageNum
:
1
,
pageSize
:
10
,
state
:
0
,
userId
:
""
}).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
$router
.
push
({
name
:
'DeedtaxHandling'
,
query
:
{
code
:
res
.
data
.
code
}
})
})
})
}
else
if
(
res
.
data
.
state
==
11
)
{
console
.
log
(
111
)
Dialog
.
confirm
({
confirmButtonText
:
'查看'
,
message
:
res
.
data
.
msg
||
'您的申请已提交'
,
}).
then
(()
=>
{
// this.$router.push({ name: 'PolicyReportTwo', query: { code: res.data.code } })
this
.
$router
.
push
({
name
:
"HousePurchase"
,
query
:
{
code
:
record
.
code
,
matterType
:
record
.
housingType
===
2
?
5
:
6
,
type
:
"edit"
}
});
})
idCardVerification
({
idCard
:
this
.
userInfo
.
idCardNo
}).
then
((
res
)
=>
{
if
(
res
.
data
)
{
let
params
=
{
// userId: this.userInfo.userId,
// idCard: this.userInfo.idCardNo
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
)
}
// alert(JSON.stringify(params))
queryUserApplyForRecord
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
// alert(JSON.stringify(res))
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
state
==
0
)
{
// 人才“镇兴”行动购住房契税补贴(住宅)||人才“镇兴”行动购住房契税补贴(商办)
this
.
$router
.
push
({
name
:
"HousePurchase"
,
query
:
{
code
:
record
.
code
,
matterType
:
record
.
housingType
===
2
?
5
:
6
,
type
:
"edit"
}
});
// this.$router.push({
// name: "HousePurchase",
// query: {
// departmentCode: this.detail.departmentCode,
// guideId: this.detail.id,
// talentCode: this.talentCode,
// matterType: this.detail.matterType,
// type: "add"
// }
// });
}
else
if
(
res
.
data
.
state
==
1
)
{
Dialog
.
confirm
({
confirmButtonText
:
'查看'
,
message
:
res
.
data
.
msg
||
'您的申请已提交'
,
}).
then
(()
=>
{
queryApplyingDeedTaxInfo
({
code
:
""
,
idCard
:
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
),
name
:
""
,
pageNum
:
1
,
pageSize
:
10
,
state
:
0
,
userId
:
""
}).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
$router
.
push
({
name
:
'DeedtaxHandling'
,
query
:
{
code
:
res
.
data
.
code
}
})
})
})
}
else
if
(
res
.
data
.
state
==
11
)
{
console
.
log
(
111
)
Dialog
.
confirm
({
confirmButtonText
:
'查看'
,
message
:
res
.
data
.
msg
||
'您的申请已提交'
,
}).
then
(()
=>
{
// this.$router.push({ name: 'PolicyReportTwo', query: { code: res.data.code } })
this
.
$router
.
push
({
name
:
"HousePurchase"
,
query
:
{
code
:
record
.
code
,
matterType
:
record
.
housingType
===
2
?
5
:
6
,
type
:
"edit"
}
});
})
}
}
})
}
else
{
Dialog
.
confirm
({
title
:
'提示'
,
messageAlign
:
'left'
,
message
:
"经系统查询,您已享受过相关政策补贴 ,不能再次申报契税补贴政策。如有异议请联系市财政窗口,地址:镇江市政务服务中心(冠城路8号工人大厦)二楼市财政局窗口,联系电话:0511-89881850"
,
})
}
})
// this.$router.push({
// name: "HousePurchase",
// query: {
// code: record.code,
// matterType: record.housingType === 2 ? 5 : 6,
// type: "edit"
// }
// });
},
handleChange
(
index
)
{
this
.
currentPage
=
index
;
...
...
src/views/report/gatreport.vue
View file @
900e5a16
...
...
@@ -123,30 +123,31 @@ export default {
}).
then
((
res
)
=>
{
this
.
isolatedState
=
res
.
data
.
data
?
res
.
data
.
data
:
''
this
.
riskArea
=
res
.
data
.
message
?
res
.
data
.
message
:
''
axios
({
url
:
'https://appointment.smart-zj.cn/applet/applet/epidemic/queryHealthCodeColor'
,
methods
:
'get'
,
headers
:
{
"Content-Type"
:
"application/json"
,
},
params
:
{
idCard
:
params
.
idCard
,
name
:
params
.
uploadName
}
}).
then
((
res
)
=>
{
this
.
healthType
=
res
.
data
.
data
.
levelData
?
res
.
data
.
data
.
levelData
:
'4'
// axios({
// url: 'https://appointment.smart-zj.cn/applet/applet/epidemic/queryHealthCodeColor',
// methods: 'get',
// headers: {
// "Content-Type": "application/json",
// },
// params: {
// idCard: params.idCard,
// name: params.uploadName
// }
// }).then((res) => {
// this.healthType = res.data.data.levelData ? res.data.data.levelData : '4'
this
.
healthType
=
'1'
this
.
upLoad
()
}).
catch
(
err
=>
{
if
(
err
.
data
.
status
==
500
)
{
this
.
upLoad
()
}
else
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"服务异常,请稍后重试"
,
showCancelButton
:
false
,
})
}
})
//
}).catch(err => {
//
if (err.data.status == 500) {
//
this.upLoad()
//
} else {
//
this.$toast.clear();
//
this.$dialog.confirm({
//
message: "服务异常,请稍后重试",
//
showCancelButton: false,
//
})
//
}
//
})
}).
catch
(()
=>
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
...
...
src/views/report/index.vue
View file @
900e5a16
...
...
@@ -37,6 +37,7 @@ import Vue from "vue";
import
{
Field
,
Button
,
CellGroup
,
Form
,
Overlay
}
from
"vant"
;
// import BaiDuMap from "@/components/baidumap/Main.vue";
import
{
addPermitStatistics
,
queryCacheUser
,
isManageUser
}
from
"@/api/epidemic"
;
import
{
config
}
from
"@/utils/request"
;
Vue
.
use
(
Field
).
use
(
Button
).
use
(
CellGroup
).
use
(
Form
).
use
(
Overlay
);
export
default
{
components
:
{
...
...
@@ -247,7 +248,7 @@ export default {
window
.
AlipayJSBridge
.
call
(
"popWindow"
);
});
}
else
if
(
whatWebView
()
===
"wetchat"
)
{
let
link
=
'http://www.smart-zj.cn:55902/zjh/html/pages/#/report/index'
+
'?area='
+
this
.
area
+
'&address='
+
this
.
address
+
'&place='
+
this
.
place
+
'&permitCode='
+
this
.
permitCode
let
link
=
`
${
config
.
baseH5
}
report/index`
+
'?area='
+
this
.
area
+
'&address='
+
this
.
address
+
'&place='
+
this
.
place
+
'&permitCode='
+
this
.
permitCode
location
.
replace
(
link
);
}
else
if
(
window
.
android
?.
getUserInfo
||
...
...
src/views/report/replacereport.vue
View file @
900e5a16
...
...
@@ -175,52 +175,53 @@ export default {
}).
then
((
res
)
=>
{
this
.
isolatedState
=
res
.
data
.
data
?
res
.
data
.
data
:
''
this
.
riskArea
=
res
.
data
.
message
?
res
.
data
.
message
:
''
axios
({
url
:
'https://appointment.smart-zj.cn/applet/applet/epidemic/queryHealthCodeColor'
,
methods
:
'get'
,
headers
:
{
"Content-Type"
:
"application/json"
,
},
params
:
{
idCard
:
params
.
idCard
,
name
:
params
.
uploadName
}
}).
then
((
res
)
=>
{
if
(
res
.
data
.
status
==
550
)
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"请填写正确的身份信息"
,
showCancelButton
:
false
,
})
}
else
{
this
.
healthType
=
res
.
data
.
data
.
levelData
?
res
.
data
.
data
.
levelData
:
''
if
(
res
.
data
.
data
.
code
==
407
)
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"请先更新苏康码再进行填报"
,
showCancelButton
:
false
,
})
}
else
if
(
res
.
data
.
data
.
code
==
404
)
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"请先申领苏康码再进行填报"
,
showCancelButton
:
false
,
})
}
else
{
// axios({
// url: 'https://appointment.smart-zj.cn/applet/applet/epidemic/queryHealthCodeColor',
// methods: 'get',
// headers: {
// "Content-Type": "application/json",
// },
// params: {
// idCard: params.idCard,
// name: params.uploadName
// }
// }).then((res) => {
// if (res.data.status == 550) {
// this.$toast.clear();
// this.$dialog.confirm({
// message: "请填写正确的身份信息",
// showCancelButton: false,
// })
// } else {
// this.healthType = res.data.data.levelData ? res.data.data.levelData : ''
// if (res.data.data.code == 407) {
// this.$toast.clear();
// this.$dialog.confirm({
// message: "请先更新苏康码再进行填报",
// showCancelButton: false,
// })
// }else if (res.data.data.code == 404) {
// this.$toast.clear();
// this.$dialog.confirm({
// message: "请先申领苏康码再进行填报",
// showCancelButton: false,
// })
// } else {
this
.
healthType
=
'1'
this
.
upLoad
()
}
}
}).
catch
(
err
=>
{
if
(
err
.
data
.
status
==
500
)
{
this
.
upLoad
()
}
else
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"服务异常,请稍后重试"
,
showCancelButton
:
false
,
})
}
})
//
}
//
}
//
}).catch(err => {
//
if(err.data.status == 500) {
//
this.upLoad()
//
} else {
//
this.$toast.clear();
//
this.$dialog.confirm({
//
message: "服务异常,请稍后重试",
//
showCancelButton: false,
//
})
//
}
//
})
}).
catch
(()
=>
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
...
...
src/views/report/report.vue
View file @
900e5a16
...
...
@@ -166,52 +166,53 @@ export default {
}).
then
((
res
)
=>
{
this
.
isolatedState
=
res
.
data
.
data
?
res
.
data
.
data
:
'0'
this
.
riskArea
=
res
.
data
.
message
?
res
.
data
.
message
:
''
axios
({
url
:
'https://appointment.smart-zj.cn/applet/applet/epidemic/queryHealthCodeColor'
,
methods
:
'get'
,
headers
:
{
"Content-Type"
:
"application/json"
,
},
params
:
{
idCard
:
params
.
idCard
,
name
:
params
.
realUserName
}
}).
then
((
res
)
=>
{
if
(
res
.
data
.
status
==
550
)
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"请填写正确的身份信息"
,
showCancelButton
:
false
,
})
}
else
{
this
.
healthType
=
res
.
data
.
data
.
levelData
?
res
.
data
.
data
.
levelData
:
''
if
(
res
.
data
.
data
.
code
==
407
)
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"请先更新苏康码再进行填报"
,
showCancelButton
:
false
,
})
}
else
if
(
res
.
data
.
data
.
code
==
404
)
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"请先申领苏康码再进行填报"
,
showCancelButton
:
false
,
})
}
else
{
// axios({
// url: 'https://appointment.smart-zj.cn/applet/applet/epidemic/queryHealthCodeColor',
// methods: 'get',
// headers: {
// "Content-Type": "application/json",
// },
// params: {
// idCard: params.idCard,
// name: params.realUserName
// }
// }).then((res) => {
// if (res.data.status == 550) {
// this.$toast.clear();
// this.$dialog.confirm({
// message: "请填写正确的身份信息",
// showCancelButton: false,
// })
// } else {
// this.healthType = res.data.data.levelData ? res.data.data.levelData : ''
// if (res.data.data.code == 407) {
// this.$toast.clear();
// this.$dialog.confirm({
// message: "请先更新苏康码再进行填报",
// showCancelButton: false,
// })
// } else if (res.data.data.code == 404) {
// this.$toast.clear();
// this.$dialog.confirm({
// message: "请先申领苏康码再进行填报",
// showCancelButton: false,
// })
// } else {
this
.
healthType
=
'1'
this
.
upLoad
()
}
}
}).
catch
(
err
=>
{
if
(
err
.
data
.
status
==
500
)
{
this
.
upLoad
()
}
else
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"服务异常,请稍后重试"
,
showCancelButton
:
false
,
})
}
})
//
}
//
}
//
}).catch(err => {
//
if (err.data.status == 500) {
//
this.upLoad()
//
} else {
//
this.$toast.clear();
//
this.$dialog.confirm({
//
message: "服务异常,请稍后重试",
//
showCancelButton: false,
//
})
//
}
//
})
}).
catch
(()
=>
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
...
...
src/views/reverse/register.vue
View file @
900e5a16
...
...
@@ -151,52 +151,53 @@ export default {
}).
then
((
res
)
=>
{
this
.
isolatedState
=
res
.
data
.
data
?
res
.
data
.
data
:
''
this
.
riskArea
=
res
.
data
.
message
?
res
.
data
.
message
:
''
axios
({
url
:
'https://appointment.smart-zj.cn/applet/applet/epidemic/queryHealthCodeColor'
,
methods
:
'get'
,
headers
:
{
"Content-Type"
:
"application/json"
,
},
params
:
{
idCard
:
params
.
idCard
,
name
:
params
.
uploadName
}
}).
then
((
res
)
=>
{
if
(
res
.
data
.
status
==
550
)
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"请填写正确的身份信息"
,
showCancelButton
:
false
,
})
}
else
{
this
.
healthType
=
res
.
data
.
data
.
levelData
?
res
.
data
.
data
.
levelData
:
''
if
(
res
.
data
.
data
.
code
==
407
)
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"请先更新苏康码再进行填报"
,
showCancelButton
:
false
,
})
}
else
if
(
res
.
data
.
data
.
code
==
404
)
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"请先申领苏康码再进行填报"
,
showCancelButton
:
false
,
})
}
else
{
// axios({
// url: 'https://appointment.smart-zj.cn/applet/applet/epidemic/queryHealthCodeColor',
// methods: 'get',
// headers: {
// "Content-Type": "application/json",
// },
// params: {
// idCard: params.idCard,
// name: params.uploadName
// }
// }).then((res) => {
// if (res.data.status == 550) {
// this.$toast.clear();
// this.$dialog.confirm({
// message: "请填写正确的身份信息",
// showCancelButton: false,
// })
// } else {
// this.healthType = res.data.data.levelData ? res.data.data.levelData : ''
// if (res.data.data.code == 407) {
// this.$toast.clear();
// this.$dialog.confirm({
// message: "请先更新苏康码再进行填报",
// showCancelButton: false,
// })
// } else if (res.data.data.code == 404) {
// this.$toast.clear();
// this.$dialog.confirm({
// message: "请先申领苏康码再进行填报",
// showCancelButton: false,
// })
// } else {
this
.
healthType
=
'1'
this
.
upLoad1
()
}
}
}).
catch
(
err
=>
{
if
(
err
.
data
.
status
==
500
)
{
this
.
upLoad1
()
}
else
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"服务异常,请稍后重试"
,
showCancelButton
:
false
,
})
}
})
//
}
//
}
//
}).catch(err => {
//
if (err.data.status == 500) {
//
this.upLoad1()
//
} else {
//
this.$toast.clear();
//
this.$dialog.confirm({
//
message: "服务异常,请稍后重试",
//
showCancelButton: false,
//
})
//
}
//
})
}).
catch
(()
=>
{
this
.
$toast
.
clear
();
this
.
$dialog
.
confirm
({
...
...
src/views/reverse/submit.vue
View file @
900e5a16
...
...
@@ -270,38 +270,38 @@ export default {
})
// this.form.idCard = JSON.parse(JSON.stringify(this.idCard))
this
.
form
.
idCard
=
encryptByDES
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
idCard
)),
"MnuYbhGv"
);
axios
({
url
:
'https://appointment.smart-zj.cn/applet/applet/epidemic/queryHealthCodeColor'
,
methods
:
'get'
,
headers
:
{
"Content-Type"
:
"application/json"
,
},
params
:
{
idCard
:
this
.
form
.
idCard
,
name
:
this
.
form
.
name
}
}).
then
((
res
)
=>
{
// alert(JSON.stringify(res))
if
(
res
.
data
.
status
==
550
)
{
a
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"请填写正确的身份信息"
,
showCancelButton
:
false
,
})
}
else
{
if
(
res
.
data
.
data
.
code
==
407
)
{
a
.
clear
();
this
.
$dialog
.
confirm
({
message
:
"请先更新苏康码再进行填报"
,
showCancelButton
:
false
,
})
}
else
if
(
res
.
data
.
data
.
code
==
404
)
{
a
.
clear
();
this
.
$dialog
.
confirm
({
message
:
res
.
data
.
data
.
maessage
||
"请先申领苏康码再进行填报"
,
showCancelButton
:
false
,
})
}
else
{
//
axios({
//
url: 'https://appointment.smart-zj.cn/applet/applet/epidemic/queryHealthCodeColor',
//
methods: 'get',
//
headers: {
//
"Content-Type": "application/json",
//
},
//
params: {
//
idCard: this.form.idCard,
//
name: this.form.name
//
}
//
}).then((res) => {
//
// alert(JSON.stringify(res))
//
if (res.data.status == 550) {
//
a.clear();
//
this.$dialog.confirm({
//
message: "请填写正确的身份信息",
//
showCancelButton: false,
//
})
//
} else {
//
if (res.data.data.code == 407) {
//
a.clear();
//
this.$dialog.confirm({
//
message: "请先更新苏康码再进行填报",
//
showCancelButton: false,
//
})
//
} else if (res.data.data.code == 404) {
//
a.clear();
//
this.$dialog.confirm({
//
message: res.data.data.maessage || "请先申领苏康码再进行填报",
//
showCancelButton: false,
//
})
//
} else {
if
(
JSON
.
parse
(
sessionStorage
.
getItem
(
"code"
)))
{
this
.
form
.
code
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"code"
))
updateUserPermitCode
(
this
.
form
).
then
((
res
)
=>
{
...
...
@@ -334,50 +334,50 @@ export default {
this
.
$toast
.
file
(
err
.
message
)
})
}
}
}
}).
catch
(
err
=>
{
if
(
err
.
data
.
status
==
500
)
{
if
(
JSON
.
parse
(
sessionStorage
.
getItem
(
"code"
)))
{
this
.
form
.
code
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"code"
))
updateUserPermitCode
(
this
.
form
).
then
((
res
)
=>
{
a
.
clear
()
if
(
res
.
code
==
200
)
{
this
.
$toast
.
success
(
res
.
data
)
if
(
this
.
type
==
0
)
{
this
.
$router
.
replace
({
name
:
'ReverseGrDetail'
})
}
else
{
this
.
$router
.
replace
({
name
:
'ReverseJrList'
})
}
}
}).
catch
((
err
)
=>
{
a
.
clear
()
this
.
$toast
.
file
(
err
.
message
)
})
}
else
{
addUserPermitCode
(
this
.
form
).
then
((
res
)
=>
{
a
.
clear
()
if
(
res
.
code
==
200
)
{
this
.
$toast
.
success
(
res
.
data
)
if
(
this
.
type
==
0
)
{
this
.
$router
.
replace
({
name
:
'ReverseGrDetail'
})
}
else
{
this
.
$router
.
replace
({
name
:
'ReverseJrList'
})
}
}
}).
catch
((
err
)
=>
{
a
.
clear
()
this
.
$toast
.
file
(
err
.
message
)
})
}
}
else
{
a
.
clear
()
this
.
$dialog
.
confirm
({
message
:
"服务异常,请稍后重试"
,
showCancelButton
:
false
,
})
}
})
//
}
//
}
//
}).catch(err => {
//
if (err.data.status == 500) {
//
if (JSON.parse(sessionStorage.getItem("code"))) {
//
this.form.code = JSON.parse(sessionStorage.getItem("code"))
//
updateUserPermitCode(this.form).then((res) => {
//
a.clear()
//
if (res.code == 200) {
//
this.$toast.success(res.data)
//
if (this.type == 0) {
//
this.$router.replace({ name: 'ReverseGrDetail' })
//
} else {
//
this.$router.replace({ name: 'ReverseJrList' })
//
}
//
}
//
}).catch((err) => {
//
a.clear()
//
this.$toast.file(err.message)
//
})
//
} else {
//
addUserPermitCode(this.form).then((res) => {
//
a.clear()
//
if (res.code == 200) {
//
this.$toast.success(res.data)
//
if (this.type == 0) {
//
this.$router.replace({ name: 'ReverseGrDetail' })
//
} else {
//
this.$router.replace({ name: 'ReverseJrList' })
//
}
//
}
//
}).catch((err) => {
//
a.clear()
//
this.$toast.file(err.message)
//
})
//
}
//
} else {
//
a.clear()
//
this.$dialog.confirm({
//
message: "服务异常,请稍后重试",
//
showCancelButton: false,
//
})
//
}
//
})
},
// 初始化获取userInfo
JSBgetUserInfo
()
{
...
...
src/views/talents/index.vue
View file @
900e5a16
...
...
@@ -190,7 +190,8 @@ import {
}
from
"vant"
;
import
{
get
,
getList
,
del
,
querySfbUserInfo
}
from
"@/api/talents"
;
import
{
config
}
from
"@/utils/request"
;
import
{
encryptByDES
,
decryptByDES
}
from
"@/utils/utils"
;
// import { encryptByDES,decryptByDES } from "@/utils/utils";
import
{
decryptByDES
}
from
"@/utils/utils"
;
Vue
.
use
(
Button
)
.
use
(
Picker
)
...
...
@@ -246,12 +247,11 @@ export default {
// alert(this.userInfo)
get
({
appId
:
1234
,
// userId: this.userInfo.userId,
userId
:
encryptByDES
(
this
.
userInfo
.
userId
.
toString
(),
"MnuYbhGv"
),
// userId: encryptByDES(this.userInfo.userId.toString(), "MnuYbhGv"),
idCard
:
this
.
userInfo
.
idCardNo
?
decryptByDES
(
this
.
userInfo
.
idCardNo
,
"MnuYbhGv"
)
:
null
}).
then
((
res
)
=>
{
console
.
log
(
"res------"
,
res
);
// alert(JSON.stringify(res))
this
.
$toast
.
clear
();
if
(
!
res
)
{
// 说明还未申请过人才码
...
...
@@ -494,6 +494,7 @@ export default {
}
sessionStorage
.
setItem
(
"ZJCD-UserInfo"
,
res
);
this
.
userInfo
=
userInfo
;
sessionStorage
.
setItem
(
'token'
,
this
.
userInfo
.
token
),
this
.
init
();
},
callPhone
(
branchPhone
)
{
...
...
src/views/talents/report.vue
View file @
900e5a16
...
...
@@ -128,10 +128,11 @@ export default {
methods
:
{
onIndustryConfirm
(
value
,
index
)
{
this
.
industry
.
name
=
value
;
this
.
industry
.
code
=
this
.
industryList
[
index
].
typeC
ode
;
this
.
industry
.
code
=
this
.
industryList
[
index
].
c
ode
;
this
.
category
=
""
;
// 每次选完行业都要先清空类别
this
.
getCategory
();
this
.
showIndustryPicker
=
false
;
// alert(JSON.stringify(this.industry))
},
getCategory
()
{
this
.
$toast
.
loading
({
...
...
@@ -180,6 +181,7 @@ export default {
});
},
setContent
(
item
)
{
alert
(
JSON
.
stringify
(
item
))
// console.log(item);
this
.
result
=
item
;
this
.
contentCode
=
item
.
contentCode
;
...
...
@@ -274,6 +276,8 @@ export default {
});
Promise
.
all
([
getType
({
appId
:
1234
}),
getCategory
({
appId
:
1234
})]).
then
(
(
res
)
=>
{
// alert(JSON.stringify(res))
this
.
$toast
.
clear
();
this
.
industryList
=
res
[
0
];
this
.
industryList
.
unshift
({
...
...
src/views/talents/reportform.vue
View file @
900e5a16
...
...
@@ -351,7 +351,7 @@
:rules=
"[
{ required: true, message: '请选择单位类别', trigger: 'onChange' },
]"
v-if=
"this.genera != '企业全职人员' && this.classType != 'AB'"
v-if=
"this.genera != '企业全职人员' && this.classType != 'AB'
&& this.genera != '海外设立研发中心等机构的全职引进人才'
"
>
<
template
#
input
>
<van-radio-group
...
...
@@ -373,7 +373,7 @@
:rules=
"[
{ required: true, message: '请选择单位类别', trigger: 'onChange' },
]"
v-if=
"this.classType == 'AB'"
v-if=
"this.classType == 'AB'
|| this.genera == '海外设立研发中心等机构的全职引进人才'
"
>
<
template
#
input
>
<van-radio-group
...
...
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