Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zj-manage
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-manage
Commits
eee0cab7
Commit
eee0cab7
authored
Dec 26, 2023
by
swl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: gx
parent
7c818779
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
766 additions
and
564 deletions
+766
-564
.DS_Store
.DS_Store
+0
-0
.DS_Store
public/.DS_Store
+0
-0
index.js
src/config/index.js
+2
-2
request.js
src/utils/request.js
+2
-2
dy_house.vue
src/views/Commercialdeedtax/dy_house.vue
+1
-10
house.vue
src/views/Commercialdeedtax/house.vue
+7
-7
index.vue
src/views/Commercialdeedtax/index.vue
+176
-122
dy_house.vue
src/views/Deedtax/dy_house.vue
+1
-10
house.vue
src/views/Deedtax/house.vue
+7
-8
index.vue
src/views/Deedtax/index.vue
+174
-122
dy_house.vue
src/views/Housedeedtax/dy_house.vue
+2
-10
house.vue
src/views/Housedeedtax/house.vue
+10
-9
index.vue
src/views/Housedeedtax/index.vue
+174
-122
dy_house.vue
src/views/Multipledeedtax/dy_house.vue
+2
-10
house.vue
src/views/Multipledeedtax/house.vue
+40
-13
index.vue
src/views/Multipledeedtax/index.vue
+166
-115
vue.config.js
vue.config.js
+2
-2
No files found.
.DS_Store
View file @
eee0cab7
No preview for this file type
public/.DS_Store
View file @
eee0cab7
No preview for this file type
src/config/index.js
View file @
eee0cab7
const
domain
=
{
// dev: "http://192.168.3.87:8881", // 姚镇接口
// dev: "http://81.69.231.72:8881", // 姚镇接口
dev
:
"http://81.69.231.72:8881"
,
// 测试接口
//
dev: "https://exam.smart-zj.cn:9100/smartExam/", // 新正式接口
//
dev: "http://81.69.231.72:8881", // 测试接口
dev
:
"https://exam.smart-zj.cn:9100/smartExam/"
,
// 新正式接口
};
// 腾讯地图 key
const
map
=
{
...
...
src/utils/request.js
View file @
eee0cab7
...
...
@@ -5,9 +5,9 @@ import { TokenKey } from "@/utils/auth";
const
config
=
{
// proxy: "https://exam.smart-zj.cn:9100/exam/", // 新线上地址
proxy
:
"http://81.69.231.72:8881"
,
// 测试地址
//
proxy: "http://81.69.231.72:8881", // 测试地址
// proxy: "http://192.168.3.87:8881", //本地
//
proxy: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs
proxy
:
"https://exam.smart-zj.cn:9100/smartExam"
,
// 新正式接口zs
// proxy: "http://81.69.231.72:9089/", // 测试地址
// proxy1: "http://81.69.231.72:8881/admin-api", // 测试地址
// proxy1: "https://exam.smart-zj.cn:9100/smartExam/admin-api", // 新正式接口
...
...
src/views/Commercialdeedtax/dy_house.vue
View file @
eee0cab7
...
...
@@ -996,7 +996,7 @@ export default {
updateCommerDeedTaxState
(
params
).
then
(()
=>
{
this
.
$message
.
success
(
`复审驳回成功`
);
this
.
init
();
this
.
init
New
();
});
}
});
...
...
@@ -1157,15 +1157,6 @@ export default {
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
...
...
src/views/Commercialdeedtax/house.vue
View file @
eee0cab7
...
...
@@ -1382,13 +1382,13 @@ export default {
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
if
(
this
.
templateType
==
"danYang"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
arr
.
arr4
=
that
.
arr4
||
""
;
// 住建
this
.
docxsrc
=
"./static/deedTax1_danYang.docx"
;
//模板文件的位置
if
(
this
.
templateType
==
"danYang"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
arr
.
arr4
=
that
.
arr4
||
""
;
// 住建
this
.
docxsrc
=
"./static/deedTax1_danYang.docx"
;
//模板文件的位置
}
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax2.docx"
;
//模板文件的位置
...
...
src/views/Commercialdeedtax/index.vue
View file @
eee0cab7
...
...
@@ -730,6 +730,7 @@ export default {
date
:
""
,
docxsrc
:
""
,
rowDetail
:
""
,
appLoading
:
null
,
};
},
watch
:
{
...
...
@@ -784,6 +785,44 @@ export default {
}
});
},
initNew
()
{
return
new
Promise
((
resolve
)
=>
{
this
.
tableData
=
[];
this
.
loading
=
true
;
let
parmas
=
{
name
:
this
.
searchForm
.
name
,
phone
:
this
.
searchForm
.
phone
,
state
:
this
.
searchForm
.
state
,
departmentCode
:
this
.
searchForm
.
departmentCode
,
pageNum
:
this
.
pagination
.
currentPage
,
pageSize
:
this
.
pagination
.
pageSize
,
checkArea
:
this
.
realEstateArea
,
checkArealEstateArea
:
this
.
searchForm
.
checkArealEstateArea
,
};
queryCommerListDeedTaxFromInitDepartment
(
parmas
).
then
((
res
)
=>
{
this
.
loading
=
false
;
// console.log(res.data)
if
(
res
.
success
)
{
this
.
pagination
.
total
=
res
.
data
.
total
;
if
(
res
.
data
.
total
)
{
this
.
tableData
=
res
.
data
.
list
.
map
((
item
)
=>
{
item
.
stateName
=
this
.
getSatusArr
(
item
.
reviewerState
).
stateName
;
item
.
type
=
this
.
getSatusArr
(
item
.
reviewerState
).
type
;
return
item
;
});
if
(
localStorage
.
getItem
(
"userName"
)
==
"admin"
)
{
this
.
tableData
=
changeList
(
this
.
tableData
);
}
resolve
();
}
else
{
this
.
tableData
=
[];
}
}
console
.
log
(
" this.appLoading?.close();--->"
,
111
);
this
.
appLoading
?.
close
();
});
});
},
getSatusArr
(
state
)
{
return
this
.
stateList
.
filter
((
item
)
=>
{
return
item
.
state
==
state
;
...
...
@@ -902,6 +941,13 @@ export default {
this
.
$message
.
error
(
"未输入原因"
);
return
;
}
this
.
appLoading
=
this
.
$loading
({
lock
:
true
,
text
:
"审核中"
,
spinner
:
"el-icon-loading"
,
background
:
"rgba(0, 0, 0, 0.7)"
,
customClass
:
"fullLoading"
,
});
queryCommerDeedTaxDetailInfo
({
code
:
row
.
code
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
let
params
=
{
...
...
@@ -945,6 +991,8 @@ export default {
:
""
;
});
this
.
initTemplate
();
}
else
{
this
.
appLoading
?.
close
();
}
});
}
else
{
...
...
@@ -961,140 +1009,146 @@ export default {
});
},
initTemplate
()
{
let
that
=
this
;
return
new
Promise
((
resolve
)
=>
{
let
that
=
this
;
let
promiseText
=
that
.
$store
.
state
.
utils
.
promiseText
;
let
text
=
""
;
if
(
that
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"1"
)
{
// 单独所有、共同共有
text
=
promiseText
.
alone
;
}
else
if
(
that
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"2"
)
{
// 按份共有
let
promiseText
=
that
.
$store
.
state
.
utils
.
promiseText
;
let
text
=
""
;
if
(
that
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"1"
)
{
// 单独所有、共同共有
text
=
promiseText
.
alone
;
}
else
if
(
that
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"2"
)
{
// 按份共有
text
=
promiseText
.
together
;
}
else
{
text
=
promiseText
.
default
;
}
let
arr
=
{};
arr
.
promiseText
=
text
;
text
=
promiseText
.
together
;
}
else
{
text
=
promiseText
.
default
;
}
let
arr
=
{};
arr
.
promiseText
=
text
;
arr
.
time
=
that
.
detail
.
createTime
.
split
(
" "
)[
0
];
arr
.
commitmentTypeName
=
that
.
detail
.
commitmentType
==
1
?
"单独所有、共同共有"
:
"按份共有"
;
arr
.
name
=
that
.
detail
.
name
;
arr
.
idCard
=
that
.
detail
.
idCard
;
arr
.
title
=
"商办用房"
;
arr
.
birthDate
=
that
.
detail
.
idCard
.
substring
(
6
,
10
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
10
,
12
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
12
,
14
);
arr
.
address
=
that
.
detail
.
address
;
arr
.
phone
=
that
.
detail
.
phone
;
arr
.
realEstateAddress
=
that
.
detail
.
realEstateAddress
;
arr
.
realEstateCard
=
that
.
detail
.
realEstateCard
;
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
time
=
that
.
detail
.
createTime
.
split
(
" "
)[
0
];
arr
.
commitmentTypeName
=
that
.
detail
.
commitmentType
==
1
?
"单独所有、共同共有"
:
"按份共有"
;
arr
.
name
=
that
.
detail
.
name
;
arr
.
idCard
=
that
.
detail
.
idCard
;
arr
.
title
=
"商办用房"
;
arr
.
birthDate
=
that
.
detail
.
idCard
.
substring
(
6
,
10
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
10
,
12
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
12
,
14
);
arr
.
address
=
that
.
detail
.
address
;
arr
.
phone
=
that
.
detail
.
phone
;
arr
.
realEstateAddress
=
that
.
detail
.
realEstateAddress
;
arr
.
realEstateCard
=
that
.
detail
.
realEstateCard
;
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax2.docx"
;
//模板文件的位置
}
// let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容
JSZipUtils
.
getBinaryContent
(
this
.
docxsrc
,
function
(
error
,
content
)
{
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
// 抛出异常
// debugger
if
(
error
)
{
throw
error
;
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax2.docx"
;
//模板文件的位置
}
// 创建一个PizZip实例,内容为模板的内容
let
zip
=
new
PizZip
(
content
);
// 创建并加载docx templater实例对象
let
doc
=
new
docxtemplater
().
loadZip
(
zip
);
// 设置模板变量的值
// console.log("arr666---", arr);
doc
.
setData
({
...
arr
,
// e中的数据可以再模板中直接使用
});
try
{
// 用模板变量的值替换所有模板变量
doc
.
render
();
}
catch
(
error
)
{
// let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容
JSZipUtils
.
getBinaryContent
(
this
.
docxsrc
,
function
(
error
,
content
)
{
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
// 抛出异常
let
e
=
{
message
:
error
.
message
,
name
:
error
.
name
,
stack
:
error
.
stack
,
properties
:
error
.
properties
,
};
console
.
log
(
JSON
.
stringify
({
error
:
e
,
})
);
throw
error
;
}
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let
out
=
doc
.
getZip
().
generate
({
type
:
"blob"
,
mimeType
:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
,
});
console
.
log
(
"out----"
,
out
);
uploadWordFile
(
new
File
([
out
],
"deed-text"
+
new
Date
().
valueOf
()
+
".docx"
,
{
type
:
out
.
type
,
})
).
then
((
res
)
=>
{
console
.
log
(
"文件的res----"
,
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
detail
.
code
,
fileUrl
:
res
.
data
,
// debugger
if
(
error
)
{
throw
error
;
}
// 创建一个PizZip实例,内容为模板的内容
let
zip
=
new
PizZip
(
content
);
// 创建并加载docx templater实例对象
let
doc
=
new
docxtemplater
().
loadZip
(
zip
);
// 设置模板变量的值
// console.log("arr666---", arr);
doc
.
setData
({
...
arr
,
// e中的数据可以再模板中直接使用
});
try
{
// 用模板变量的值替换所有模板变量
doc
.
render
();
}
catch
(
error
)
{
// 抛出异常
let
e
=
{
message
:
error
.
message
,
name
:
error
.
name
,
stack
:
error
.
stack
,
properties
:
error
.
properties
,
};
saveCommerFileUrl
(
params
).
then
((
res
)
=>
{
console
.
log
(
"初审通过后的传填充文件给后端---"
,
res
);
});
}
else
{
that
.
$message
.
error
(
res
.
msg
);
queryCommerDeedTaxDetailInfo
({
code
:
that
.
rowDetail
.
code
}).
then
(
(
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
rowDetail
.
code
,
phone
:
res
.
data
.
phone
,
reviewerId
:
that
.
rowDetail
.
reviewerId
,
state
:
res
.
data
.
state
,
};
initCommerDepartmentRevocation
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
that
.
init
();
});
}
}
console
.
log
(
JSON
.
stringify
({
error
:
e
,
})
);
throw
error
;
}
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let
out
=
doc
.
getZip
().
generate
({
type
:
"blob"
,
mimeType
:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
,
});
console
.
log
(
"out----"
,
out
);
uploadWordFile
(
new
File
([
out
],
"deed-text"
+
new
Date
().
valueOf
()
+
".docx"
,
{
type
:
out
.
type
,
})
).
then
((
res
)
=>
{
console
.
log
(
"文件的res----"
,
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
detail
.
code
,
fileUrl
:
res
.
data
,
};
saveCommerFileUrl
(
params
).
then
(
async
(
res
)
=>
{
console
.
log
(
"初审通过后的传填充文件给后端---"
,
res
);
await
that
.
initNew
();
resolve
();
});
}
else
{
that
.
$message
.
error
(
res
.
msg
);
queryCommerDeedTaxDetailInfo
({
code
:
that
.
rowDetail
.
code
}).
then
(
(
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
rowDetail
.
code
,
phone
:
res
.
data
.
phone
,
reviewerId
:
that
.
rowDetail
.
reviewerId
,
state
:
res
.
data
.
state
,
};
initCommerDepartmentRevocation
(
params
).
then
(
async
(
res
)
=>
{
console
.
log
(
res
);
await
that
.
initNew
();
resolve
();
});
}
}
);
}
});
// 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname);
});
// 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname);
});
},
deny
(
row
)
{
...
...
src/views/Deedtax/dy_house.vue
View file @
eee0cab7
...
...
@@ -996,7 +996,7 @@ export default {
updateDeedTaxState
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
$message
.
success
(
`复审驳回成功`
);
this
.
init
();
this
.
init
New
();
});
}
});
...
...
@@ -1156,15 +1156,6 @@ export default {
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
...
...
src/views/Deedtax/house.vue
View file @
eee0cab7
...
...
@@ -1276,7 +1276,6 @@ export default {
queryDeedTaxDetailInfo
(
params
),
queryDeedTaxRecord
(
params
),
]).
then
((
res
)
=>
{
console
.
log
(
res
,
"111"
);
// if (res[0].data?.state == 1) {
this
.
detail
=
res
[
0
].
data
;
this
.
arrList
=
res
[
1
].
data
;
...
...
@@ -1369,13 +1368,13 @@ export default {
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
if
(
this
.
templateType
==
"danYang"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
arr
.
arr4
=
that
.
arr4
||
""
;
// 住建
this
.
docxsrc
=
"./static/deedTax1_danYang.docx"
;
//模板文件的位置
if
(
this
.
templateType
==
"danYang"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
arr
.
arr4
=
that
.
arr4
||
""
;
// 住建
this
.
docxsrc
=
"./static/deedTax1_danYang.docx"
;
//模板文件的位置
}
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax2.docx"
;
//模板文件的位置
...
...
src/views/Deedtax/index.vue
View file @
eee0cab7
...
...
@@ -727,6 +727,7 @@ export default {
date
:
""
,
docxsrc
:
""
,
rowDetail
:
""
,
appLoading
:
null
,
};
},
watch
:
{
...
...
@@ -781,6 +782,43 @@ export default {
}
});
},
initNew
()
{
return
new
Promise
((
resolve
)
=>
{
this
.
tableData
=
[];
this
.
loading
=
true
;
let
parmas
=
{
name
:
this
.
searchForm
.
name
,
phone
:
this
.
searchForm
.
phone
,
state
:
this
.
searchForm
.
state
,
departmentCode
:
this
.
searchForm
.
departmentCode
,
pageNum
:
this
.
pagination
.
currentPage
,
pageSize
:
this
.
pagination
.
pageSize
,
checkArea
:
this
.
realEstateArea
,
checkArealEstateArea
:
this
.
searchForm
.
checkArealEstateArea
,
};
queryListDeedTaxFromInitDepartment
(
parmas
).
then
((
res
)
=>
{
this
.
loading
=
false
;
// console.log(res.data)
if
(
res
.
success
)
{
this
.
pagination
.
total
=
res
.
data
.
total
;
if
(
res
.
data
.
total
)
{
this
.
tableData
=
res
.
data
.
list
.
map
((
item
)
=>
{
item
.
stateName
=
this
.
getSatusArr
(
item
.
reviewerState
).
stateName
;
item
.
type
=
this
.
getSatusArr
(
item
.
reviewerState
).
type
;
return
item
;
});
if
(
localStorage
.
getItem
(
"userName"
)
==
"admin"
)
{
this
.
tableData
=
changeList
(
this
.
tableData
);
}
resolve
();
}
else
{
this
.
tableData
=
[];
}
}
this
.
appLoading
?.
close
();
});
});
},
getSatusArr
(
state
)
{
return
this
.
stateList
.
filter
((
item
)
=>
{
return
item
.
state
==
state
;
...
...
@@ -897,6 +935,13 @@ export default {
this
.
$message
.
error
(
"未输入原因"
);
return
;
}
this
.
appLoading
=
this
.
$loading
({
lock
:
true
,
text
:
"审核中"
,
spinner
:
"el-icon-loading"
,
background
:
"rgba(0, 0, 0, 0.7)"
,
customClass
:
"fullLoading"
,
});
queryDeedTaxDetailInfo
({
code
:
row
.
code
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
let
params
=
{
...
...
@@ -942,6 +987,8 @@ export default {
:
""
;
});
this
.
initTemplate
();
}
else
{
this
.
appLoading
?.
close
();
}
});
}
else
{
...
...
@@ -958,142 +1005,147 @@ export default {
});
},
initTemplate
()
{
let
that
=
this
;
return
new
Promise
((
resolve
)
=>
{
let
that
=
this
;
let
promiseText
=
that
.
$store
.
state
.
utils
.
promiseText
;
let
text
=
""
;
if
(
that
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"1"
)
{
// 单独所有、共同共有
text
=
promiseText
.
alone
;
}
else
if
(
that
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"2"
)
{
// 按份共有
let
promiseText
=
that
.
$store
.
state
.
utils
.
promiseText
;
let
text
=
""
;
if
(
that
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"1"
)
{
// 单独所有、共同共有
text
=
promiseText
.
alone
;
}
else
if
(
that
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"2"
)
{
// 按份共有
text
=
promiseText
.
together
;
}
else
{
text
=
promiseText
.
default
;
}
let
arr
=
{};
arr
.
promiseText
=
text
;
text
=
promiseText
.
together
;
}
else
{
text
=
promiseText
.
default
;
}
let
arr
=
{};
arr
.
promiseText
=
text
;
arr
.
time
=
that
.
detail
.
createTime
.
split
(
" "
)[
0
];
arr
.
time
=
that
.
detail
.
createTime
.
split
(
" "
)[
0
];
arr
.
commitmentTypeName
=
that
.
detail
.
commitmentType
==
1
?
"单独所有、共同共有"
:
"按份共有"
;
arr
.
name
=
that
.
detail
.
name
;
arr
.
idCard
=
that
.
detail
.
idCard
;
arr
.
commitmentTypeName
=
that
.
detail
.
commitmentType
==
1
?
"单独所有、共同共有"
:
"按份共有"
;
arr
.
name
=
that
.
detail
.
name
;
arr
.
idCard
=
that
.
detail
.
idCard
;
arr
.
title
=
"首套商品住房"
;
arr
.
birthDate
=
that
.
detail
.
idCard
.
substring
(
6
,
10
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
10
,
12
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
12
,
14
);
arr
.
address
=
that
.
detail
.
address
;
arr
.
phone
=
that
.
detail
.
phone
;
arr
.
realEstateAddress
=
that
.
detail
.
realEstateAddress
;
arr
.
realEstateCard
=
that
.
detail
.
realEstateCard
;
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
title
=
"首套商品住房"
;
arr
.
birthDate
=
that
.
detail
.
idCard
.
substring
(
6
,
10
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
10
,
12
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
12
,
14
);
arr
.
address
=
that
.
detail
.
address
;
arr
.
phone
=
that
.
detail
.
phone
;
arr
.
realEstateAddress
=
that
.
detail
.
realEstateAddress
;
arr
.
realEstateCard
=
that
.
detail
.
realEstateCard
;
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax2.docx"
;
//模板文件的位置
}
// let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容
JSZipUtils
.
getBinaryContent
(
this
.
docxsrc
,
function
(
error
,
content
)
{
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
// 抛出异常
// debugger
if
(
error
)
{
throw
error
;
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax2.docx"
;
//模板文件的位置
}
// 创建一个PizZip实例,内容为模板的内容
let
zip
=
new
PizZip
(
content
);
// 创建并加载docx templater实例对象
let
doc
=
new
docxtemplater
().
loadZip
(
zip
);
// 设置模板变量的值
// console.log("arr666---", arr);
doc
.
setData
({
...
arr
,
// e中的数据可以再模板中直接使用
});
try
{
// 用模板变量的值替换所有模板变量
doc
.
render
();
}
catch
(
error
)
{
// let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容
JSZipUtils
.
getBinaryContent
(
this
.
docxsrc
,
function
(
error
,
content
)
{
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
// 抛出异常
let
e
=
{
message
:
error
.
message
,
name
:
error
.
name
,
stack
:
error
.
stack
,
properties
:
error
.
properties
,
};
console
.
log
(
JSON
.
stringify
({
error
:
e
,
})
);
throw
error
;
}
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let
out
=
doc
.
getZip
().
generate
({
type
:
"blob"
,
mimeType
:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
,
});
console
.
log
(
"out----"
,
out
);
uploadWordFile
(
new
File
([
out
],
"deed-text"
+
new
Date
().
valueOf
()
+
".docx"
,
{
type
:
out
.
type
,
})
).
then
((
res
)
=>
{
console
.
log
(
"文件的res----"
,
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
detail
.
code
,
fileUrl
:
res
.
data
,
// debugger
if
(
error
)
{
throw
error
;
}
// 创建一个PizZip实例,内容为模板的内容
let
zip
=
new
PizZip
(
content
);
// 创建并加载docx templater实例对象
let
doc
=
new
docxtemplater
().
loadZip
(
zip
);
// 设置模板变量的值
// console.log("arr666---", arr);
doc
.
setData
({
...
arr
,
// e中的数据可以再模板中直接使用
});
try
{
// 用模板变量的值替换所有模板变量
doc
.
render
();
}
catch
(
error
)
{
// 抛出异常
let
e
=
{
message
:
error
.
message
,
name
:
error
.
name
,
stack
:
error
.
stack
,
properties
:
error
.
properties
,
};
saveFileUrl
(
params
).
then
((
res
)
=>
{
console
.
log
(
"初审通过后的传填充文件给后端---"
,
res
);
});
}
else
{
that
.
$message
.
error
(
res
.
msg
);
queryDeedTaxDetailInfo
({
code
:
that
.
rowDetail
.
code
}).
then
(
(
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
rowDetail
.
code
,
phone
:
res
.
data
.
phone
,
reviewerId
:
that
.
rowDetail
.
reviewerId
,
state
:
res
.
data
.
state
,
};
initDepartmentRevocation
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
that
.
init
();
});
}
}
console
.
log
(
JSON
.
stringify
({
error
:
e
,
})
);
throw
error
;
}
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let
out
=
doc
.
getZip
().
generate
({
type
:
"blob"
,
mimeType
:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
,
});
console
.
log
(
"out----"
,
out
);
uploadWordFile
(
new
File
([
out
],
"deed-text"
+
new
Date
().
valueOf
()
+
".docx"
,
{
type
:
out
.
type
,
})
).
then
((
res
)
=>
{
console
.
log
(
"文件的res----"
,
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
detail
.
code
,
fileUrl
:
res
.
data
,
};
saveFileUrl
(
params
).
then
(
async
(
res
)
=>
{
console
.
log
(
"初审通过后的传填充文件给后端---"
,
res
);
await
that
.
initNew
();
resolve
();
});
}
else
{
that
.
$message
.
error
(
res
.
msg
);
queryDeedTaxDetailInfo
({
code
:
that
.
rowDetail
.
code
}).
then
(
(
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
rowDetail
.
code
,
phone
:
res
.
data
.
phone
,
reviewerId
:
that
.
rowDetail
.
reviewerId
,
state
:
res
.
data
.
state
,
};
initDepartmentRevocation
(
params
).
then
(
async
(
res
)
=>
{
console
.
log
(
res
);
await
that
.
initNew
();
resolve
();
});
}
}
);
}
});
// 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname);
});
// 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname);
});
},
deny
(
row
)
{
...
...
src/views/Housedeedtax/dy_house.vue
View file @
eee0cab7
...
...
@@ -995,7 +995,7 @@ export default {
updateHouseDeedTaxState
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
$message
.
success
(
`复审驳回成功`
);
this
.
init
();
this
.
init
New
();
});
}
});
...
...
@@ -1155,15 +1155,7 @@ export default {
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
...
...
src/views/Housedeedtax/house.vue
View file @
eee0cab7
...
...
@@ -185,7 +185,7 @@
>
<el-dropdown
size=
"mini"
@
command=
"handleCommand(scope.row, $event)"
@
command=
"handleCommand(scope.row, $event
, 'default'
)"
>
<span
class=
"el-dropdown-link"
>
申请表
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
...
...
@@ -1348,6 +1348,7 @@ export default {
}
let
arr
=
{};
arr
.
promiseText
=
text
;
arr
.
time
=
that
.
detail
.
createTime
.
split
(
" "
)[
0
];
...
...
@@ -1374,18 +1375,19 @@ export default {
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
if
(
this
.
templateType
==
"danYang"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
arr
.
arr4
=
that
.
arr4
||
""
;
// 住建
this
.
docxsrc
=
"./static/deedTax1_danYang.docx"
;
//模板文件的位置
if
(
this
.
templateType
==
"danYang"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
arr
.
arr4
=
that
.
arr4
||
""
;
// 住建
this
.
docxsrc
=
"./static/deedTax1_danYang.docx"
;
//模板文件的位置
}
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax2.docx"
;
//模板文件的位置
...
...
@@ -1447,7 +1449,6 @@ export default {
};
saveHouseFileUrl
(
params
).
then
(
async
(
res
)
=>
{
console
.
log
(
"初审通过后的传填充文件给后端---"
,
res
);
await
that
.
initNew
();
resolve
();
});
...
...
src/views/Housedeedtax/index.vue
View file @
eee0cab7
...
...
@@ -727,6 +727,7 @@ export default {
date
:
""
,
docxsrc
:
""
,
rowDetail
:
""
,
appLoading
:
null
,
};
},
watch
:
{
...
...
@@ -781,6 +782,43 @@ export default {
}
});
},
initNew
()
{
return
new
Promise
((
resolve
)
=>
{
this
.
tableData
=
[];
this
.
loading
=
true
;
let
parmas
=
{
name
:
this
.
searchForm
.
name
,
phone
:
this
.
searchForm
.
phone
,
state
:
this
.
searchForm
.
state
,
departmentCode
:
this
.
searchForm
.
departmentCode
,
pageNum
:
this
.
pagination
.
currentPage
,
pageSize
:
this
.
pagination
.
pageSize
,
checkArea
:
this
.
realEstateArea
,
checkArealEstateArea
:
this
.
searchForm
.
checkArealEstateArea
,
};
queryHouseListDeedTaxFromInitDepartment
(
parmas
).
then
((
res
)
=>
{
this
.
loading
=
false
;
// console.log(res.data)
if
(
res
.
success
)
{
this
.
pagination
.
total
=
res
.
data
.
total
;
if
(
res
.
data
.
total
)
{
this
.
tableData
=
res
.
data
.
list
.
map
((
item
)
=>
{
item
.
stateName
=
this
.
getSatusArr
(
item
.
reviewerState
).
stateName
;
item
.
type
=
this
.
getSatusArr
(
item
.
reviewerState
).
type
;
return
item
;
});
if
(
localStorage
.
getItem
(
"userName"
)
==
"admin"
)
{
this
.
tableData
=
changeList
(
this
.
tableData
);
}
resolve
();
}
else
{
this
.
tableData
=
[];
}
}
this
.
appLoading
?.
close
();
});
});
},
getSatusArr
(
state
)
{
return
this
.
stateList
.
filter
((
item
)
=>
{
return
item
.
state
==
state
;
...
...
@@ -899,6 +937,13 @@ export default {
this
.
$message
.
error
(
"未输入原因"
);
return
;
}
this
.
appLoading
=
this
.
$loading
({
lock
:
true
,
text
:
"审核中"
,
spinner
:
"el-icon-loading"
,
background
:
"rgba(0, 0, 0, 0.7)"
,
customClass
:
"fullLoading"
,
});
queryHouseDeedTaxDetailInfo
({
code
:
row
.
code
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
let
params
=
{
...
...
@@ -951,6 +996,8 @@ export default {
:
""
;
});
this
.
initTemplate
();
}
else
{
this
.
appLoading
?.
close
();
}
});
}
else
{
...
...
@@ -969,141 +1016,146 @@ export default {
});
},
initTemplate
()
{
let
that
=
this
;
return
new
Promise
((
resolve
)
=>
{
let
that
=
this
;
let
promiseText
=
that
.
$store
.
state
.
utils
.
promiseText
;
let
text
=
""
;
if
(
this
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"1"
)
{
// 单独所有、共同共有
text
=
promiseText
.
alone
;
}
else
if
(
this
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"2"
)
{
// 按份共有
let
promiseText
=
that
.
$store
.
state
.
utils
.
promiseText
;
let
text
=
""
;
if
(
this
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"1"
)
{
// 单独所有、共同共有
text
=
promiseText
.
alone
;
}
else
if
(
this
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"2"
)
{
// 按份共有
text
=
promiseText
.
together
;
}
else
{
text
=
promiseText
.
default
;
}
let
arr
=
{};
arr
.
promiseText
=
text
;
text
=
promiseText
.
together
;
}
else
{
text
=
promiseText
.
default
;
}
let
arr
=
{};
arr
.
promiseText
=
text
;
arr
.
time
=
that
.
detail
.
createTime
.
split
(
" "
)[
0
];
arr
.
time
=
that
.
detail
.
createTime
.
split
(
" "
)[
0
];
arr
.
commitmentTypeName
=
that
.
detail
.
commitmentType
==
1
?
"单独所有、共同共有"
:
"按份共有"
;
arr
.
name
=
that
.
detail
.
name
;
arr
.
idCard
=
that
.
detail
.
idCard
;
arr
.
title
=
"改善型住房"
;
arr
.
birthDate
=
that
.
detail
.
idCard
.
substring
(
6
,
10
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
10
,
12
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
12
,
14
);
arr
.
address
=
that
.
detail
.
address
;
arr
.
phone
=
that
.
detail
.
phone
;
arr
.
realEstateAddress
=
that
.
detail
.
realEstateAddress
;
arr
.
realEstateCard
=
that
.
detail
.
realEstateCard
;
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
commitmentTypeName
=
that
.
detail
.
commitmentType
==
1
?
"单独所有、共同共有"
:
"按份共有"
;
arr
.
name
=
that
.
detail
.
name
;
arr
.
idCard
=
that
.
detail
.
idCard
;
arr
.
title
=
"改善型住房"
;
arr
.
birthDate
=
that
.
detail
.
idCard
.
substring
(
6
,
10
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
10
,
12
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
12
,
14
);
arr
.
address
=
that
.
detail
.
address
;
arr
.
phone
=
that
.
detail
.
phone
;
arr
.
realEstateAddress
=
that
.
detail
.
realEstateAddress
;
arr
.
realEstateCard
=
that
.
detail
.
realEstateCard
;
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax2.docx"
;
//模板文件的位置
}
// let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容
JSZipUtils
.
getBinaryContent
(
this
.
docxsrc
,
function
(
error
,
content
)
{
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
// 抛出异常
// debugger
if
(
error
)
{
throw
error
;
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax2.docx"
;
//模板文件的位置
}
// 创建一个PizZip实例,内容为模板的内容
let
zip
=
new
PizZip
(
content
);
// 创建并加载docx templater实例对象
let
doc
=
new
docxtemplater
().
loadZip
(
zip
);
// 设置模板变量的值
// console.log("arr666---", arr);
doc
.
setData
({
...
arr
,
// e中的数据可以再模板中直接使用
});
try
{
// 用模板变量的值替换所有模板变量
doc
.
render
();
}
catch
(
error
)
{
// let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容
JSZipUtils
.
getBinaryContent
(
this
.
docxsrc
,
function
(
error
,
content
)
{
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
// 抛出异常
let
e
=
{
message
:
error
.
message
,
name
:
error
.
name
,
stack
:
error
.
stack
,
properties
:
error
.
properties
,
};
console
.
log
(
JSON
.
stringify
({
error
:
e
,
})
);
throw
error
;
}
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let
out
=
doc
.
getZip
().
generate
({
type
:
"blob"
,
mimeType
:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
,
});
console
.
log
(
"out----"
,
out
);
uploadWordFile
(
new
File
([
out
],
"deed-text"
+
new
Date
().
valueOf
()
+
".docx"
,
{
type
:
out
.
type
,
})
).
then
((
res
)
=>
{
console
.
log
(
"文件的res----"
,
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
detail
.
code
,
fileUrl
:
res
.
data
,
// debugger
if
(
error
)
{
throw
error
;
}
// 创建一个PizZip实例,内容为模板的内容
let
zip
=
new
PizZip
(
content
);
// 创建并加载docx templater实例对象
let
doc
=
new
docxtemplater
().
loadZip
(
zip
);
// 设置模板变量的值
// console.log("arr666---", arr);
doc
.
setData
({
...
arr
,
// e中的数据可以再模板中直接使用
});
try
{
// 用模板变量的值替换所有模板变量
doc
.
render
();
}
catch
(
error
)
{
// 抛出异常
let
e
=
{
message
:
error
.
message
,
name
:
error
.
name
,
stack
:
error
.
stack
,
properties
:
error
.
properties
,
};
saveHouseFileUrl
(
params
).
then
((
res
)
=>
{
console
.
log
(
"初审通过后的传填充文件给后端---"
,
res
);
});
}
else
{
that
.
$message
.
error
(
res
.
msg
);
queryHouseDeedTaxDetailInfo
({
code
:
that
.
rowDetail
.
code
}).
then
(
(
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
rowDetail
.
code
,
phone
:
res
.
data
.
phone
,
reviewerId
:
that
.
rowDetail
.
reviewerId
,
state
:
res
.
data
.
state
,
};
initHouseDepartmentRevocation
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
that
.
init
();
});
}
}
console
.
log
(
JSON
.
stringify
({
error
:
e
,
})
);
throw
error
;
}
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let
out
=
doc
.
getZip
().
generate
({
type
:
"blob"
,
mimeType
:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
,
});
console
.
log
(
"out----"
,
out
);
uploadWordFile
(
new
File
([
out
],
"deed-text"
+
new
Date
().
valueOf
()
+
".docx"
,
{
type
:
out
.
type
,
})
).
then
((
res
)
=>
{
console
.
log
(
"文件的res----"
,
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
detail
.
code
,
fileUrl
:
res
.
data
,
};
saveHouseFileUrl
(
params
).
then
(
async
(
res
)
=>
{
console
.
log
(
"初审通过后的传填充文件给后端---"
,
res
);
await
that
.
initNew
();
resolve
();
});
}
else
{
that
.
$message
.
error
(
res
.
msg
);
queryHouseDeedTaxDetailInfo
({
code
:
that
.
rowDetail
.
code
}).
then
(
(
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
rowDetail
.
code
,
phone
:
res
.
data
.
phone
,
reviewerId
:
that
.
rowDetail
.
reviewerId
,
state
:
res
.
data
.
state
,
};
initHouseDepartmentRevocation
(
params
).
then
(
async
(
res
)
=>
{
console
.
log
(
res
);
await
that
.
initNew
();
resolve
();
});
}
}
);
}
});
// 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname);
});
// 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname);
});
},
deny
(
row
)
{
...
...
src/views/Multipledeedtax/dy_house.vue
View file @
eee0cab7
...
...
@@ -995,7 +995,7 @@ export default {
updateMultipleDeedTaxState
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
$message
.
success
(
`复审驳回成功`
);
this
.
init
();
this
.
init
New
();
});
}
});
...
...
@@ -1155,15 +1155,7 @@ export default {
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
...
...
src/views/Multipledeedtax/house.vue
View file @
eee0cab7
...
...
@@ -799,6 +799,8 @@ export default {
],
},
refundForm
:
{},
fileDownload
:
false
,
row
:
null
,
};
},
watch
:
{
...
...
@@ -860,9 +862,18 @@ export default {
}
else
{
this
.
tableData
=
[];
}
if
(
this
.
fileDownload
&&
this
.
row
)
{
const
url
=
this
.
tableData
.
filter
((
item
)
=>
{
return
item
.
code
===
this
.
row
.
code
;
})[
0
]?.
fileUrl
;
window
.
location
.
href
=
url
;
this
.
fileDownload
=
false
;
this
.
row
=
null
;
}
}
});
},
initNew
()
{
return
new
Promise
((
resolve
)
=>
{
this
.
tableData
=
[];
...
...
@@ -894,6 +905,14 @@ export default {
}
else
{
this
.
tableData
=
[];
}
if
(
this
.
fileDownload
&&
this
.
row
)
{
const
url
=
this
.
tableData
.
filter
((
item
)
=>
{
return
item
.
code
===
this
.
row
.
code
;
})[
0
]?.
fileUrl
;
window
.
location
.
href
=
url
;
this
.
fileDownload
=
false
;
this
.
row
=
null
;
}
}
});
});
...
...
@@ -1275,7 +1294,7 @@ export default {
},
async
handleCommand
(
row
,
com
,
type
)
{
this
.
templateType
=
type
;
// let url = "";
// this.downloadUrl=row.fileUrl
switch
(
com
)
{
case
"reset"
:
...
...
@@ -1283,8 +1302,17 @@ export default {
break
;
default
:
// await this.resetHandle(row);
window
.
location
.
href
=
row
.
fileUrl
;
this
.
row
=
row
;
this
.
fileDownload
=
true
;
await
this
.
resetHandle
(
row
);
// url = this.tableData.filter(
// ((item) => {
// return item.code === row.code;
// })[0]
// ).fileUrl;
// window.location.href = url;
break
;
}
},
...
...
@@ -1296,7 +1324,7 @@ export default {
Promise
.
all
([
queryMultipleDeedTaxDetailInfo
(
params
),
queryMultipleDeedTaxRecord
(
params
),
]).
then
((
res
)
=>
{
]).
then
(
async
(
res
)
=>
{
this
.
detail
=
res
[
0
].
data
;
this
.
arrList
=
res
[
1
].
data
;
if
(
this
.
templateType
==
"default"
)
{
...
...
@@ -1328,7 +1356,7 @@ export default {
});
}
this
.
initTemplate
();
await
this
.
initTemplate
();
resolve
();
// }
});
...
...
@@ -1388,18 +1416,17 @@ export default {
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax1.docx"
;
//模板文件的位置
}
if
(
this
.
templateType
==
"danYang"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
arr
.
arr4
=
that
.
arr4
||
""
;
// 住建
this
.
docxsrc
=
"./static/deedTax1_danYang.docx"
;
//模板文件的位置
if
(
this
.
templateType
==
"danYang"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
arr
.
arr4
=
that
.
arr4
||
""
;
// 住建
this
.
docxsrc
=
"./static/deedTax1_danYang.docx"
;
//模板文件的位置
}
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/deedTax2.docx"
;
//模板文件的位置
}
console
.
log
(
this
.
docxsrc
,
"docxsrc"
);
// let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容
...
...
src/views/Multipledeedtax/index.vue
View file @
eee0cab7
...
...
@@ -728,6 +728,7 @@ export default {
date
:
""
,
docxsrc
:
""
,
rowDetail
:
""
,
appLoading
:
null
,
};
},
watch
:
{
...
...
@@ -782,6 +783,44 @@ export default {
}
});
},
initNew
()
{
return
new
Promise
((
resolve
)
=>
{
this
.
tableData
=
[];
this
.
loading
=
true
;
let
parmas
=
{
name
:
this
.
searchForm
.
name
,
phone
:
this
.
searchForm
.
phone
,
state
:
this
.
searchForm
.
state
,
departmentCode
:
this
.
searchForm
.
departmentCode
,
pageNum
:
this
.
pagination
.
currentPage
,
pageSize
:
this
.
pagination
.
pageSize
,
checkArea
:
this
.
realEstateArea
,
checkArealEstateArea
:
this
.
searchForm
.
checkArealEstateArea
,
};
queryMultipleListDeedTaxFromInitDepartment
(
parmas
).
then
((
res
)
=>
{
this
.
loading
=
false
;
// console.log(res.data)
if
(
res
.
success
)
{
this
.
pagination
.
total
=
res
.
data
.
total
;
if
(
res
.
data
.
total
)
{
this
.
tableData
=
res
.
data
.
list
.
map
((
item
)
=>
{
item
.
stateName
=
this
.
getSatusArr
(
item
.
reviewerState
).
stateName
;
item
.
type
=
this
.
getSatusArr
(
item
.
reviewerState
).
type
;
return
item
;
});
if
(
localStorage
.
getItem
(
"userName"
)
==
"admin"
)
{
this
.
tableData
=
changeList
(
this
.
tableData
);
}
resolve
();
}
else
{
this
.
tableData
=
[];
}
}
this
.
appLoading
?.
close
();
});
});
},
getSatusArr
(
state
)
{
return
this
.
stateList
.
filter
((
item
)
=>
{
return
item
.
state
==
state
;
...
...
@@ -897,6 +936,13 @@ export default {
this
.
$message
.
error
(
"未输入原因"
);
return
;
}
this
.
appLoading
=
this
.
$loading
({
lock
:
true
,
text
:
"审核中"
,
spinner
:
"el-icon-loading"
,
background
:
"rgba(0, 0, 0, 0.7)"
,
customClass
:
"fullLoading"
,
});
queryMultipleDeedTaxDetailInfo
({
code
:
row
.
code
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
let
params
=
{
...
...
@@ -926,7 +972,6 @@ export default {
queryMultipleDeedTaxDetailInfo
(
params
),
queryMultipleDeedTaxRecord
(
params
),
]).
then
((
res
)
=>
{
console
.
log
(
res
,
"初审"
);
if
(
res
[
0
].
data
.
state
==
1
)
{
this
.
detail
=
res
[
0
].
data
;
this
.
arrList
=
res
[
1
].
data
;
...
...
@@ -943,6 +988,8 @@ export default {
:
""
;
});
this
.
initTemplate
();
}
else
{
this
.
appLoading
?.
close
();
}
});
}
else
{
...
...
@@ -961,123 +1008,126 @@ export default {
});
},
initTemplate
()
{
let
that
=
this
;
return
new
Promise
((
resolve
)
=>
{
let
that
=
this
;
let
promiseText
=
that
.
$store
.
state
.
utils
.
promiseText
;
let
text
=
""
;
if
(
this
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"1"
)
{
// 单独所有、共同共有
text
=
promiseText
.
alone
;
}
else
if
(
this
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"2"
)
{
// 按份共有
text
=
promiseText
.
together
;
}
else
{
text
=
promiseText
.
default
;
}
let
arr
=
{};
arr
.
promiseText
=
text
;
let
promiseText
=
that
.
$store
.
state
.
utils
.
promiseText
;
let
text
=
""
;
if
(
this
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"1"
)
{
// 单独所有、共同共有
text
=
promiseText
.
alone
;
}
else
if
(
this
.
realEstateArea
==
"丹阳市"
&&
that
.
detail
.
commitmentType
==
"2"
)
{
// 按份共有
arr
.
time
=
that
.
detail
.
createTime
.
split
(
" "
)[
0
];
text
=
promiseText
.
together
;
}
else
{
text
=
promiseText
.
default
;
}
let
arr
=
{};
arr
.
promiseText
=
text
;
arr
.
commitmentTypeName
=
that
.
detail
.
commitmentType
==
1
?
"单独所有、共同共有"
:
"按份共有"
;
arr
.
name
=
that
.
detail
.
name
;
arr
.
idCard
=
that
.
detail
.
idCard
;
arr
.
title
=
"多子女家庭"
;
arr
.
time
=
that
.
detail
.
createTime
.
split
(
" "
)[
0
];
arr
.
birthDate
=
that
.
detail
.
idCard
.
substring
(
6
,
10
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
10
,
12
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
12
,
14
);
arr
.
address
=
that
.
detail
.
address
;
arr
.
phone
=
that
.
detail
.
phone
;
arr
.
realEstateAddress
=
that
.
detail
.
realEstateAddress
;
arr
.
realEstateCard
=
that
.
detail
.
realEstateCard
;
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
commitmentTypeName
=
that
.
detail
.
commitmentType
==
1
?
"单独所有、共同共有"
:
"按份共有"
;
arr
.
name
=
that
.
detail
.
name
;
arr
.
idCard
=
that
.
detail
.
idCard
;
arr
.
title
=
"多子女家庭"
;
arr
.
birthDate
=
that
.
detail
.
idCard
.
substring
(
6
,
10
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
10
,
12
)
+
"-"
+
that
.
detail
.
idCard
.
substring
(
12
,
14
);
arr
.
address
=
that
.
detail
.
address
;
arr
.
phone
=
that
.
detail
.
phone
;
arr
.
realEstateAddress
=
that
.
detail
.
realEstateAddress
;
arr
.
realEstateCard
=
that
.
detail
.
realEstateCard
;
arr
.
square
=
that
.
detail
.
square
;
arr
.
bank
=
that
.
detail
.
bank
;
arr
.
bankCard
=
that
.
detail
.
bankCard
;
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/multiDeedTax1.docx"
;
//模板文件的位置
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/multiDeedTax2.docx"
;
//模板文件的位置
}
// let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容
JSZipUtils
.
getBinaryContent
(
this
.
docxsrc
,
function
(
error
,
content
)
{
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
// 抛出异常
// debugger
if
(
error
)
{
throw
error
;
if
(
this
.
$route
.
query
.
realEstateArea
!=
"句容市"
)
{
arr
.
arr1
=
that
.
arr1
||
""
;
// 财政
arr
.
arr2
=
that
.
arr2
||
""
;
// 不动产
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/multiDeedTax1.docx"
;
//模板文件的位置
}
else
{
arr
.
arr3
=
that
.
arr3
||
""
;
// 税务
this
.
docxsrc
=
"./static/multiDeedTax2.docx"
;
//模板文件的位置
}
// 创建一个PizZip实例,内容为模板的内容
let
zip
=
new
PizZip
(
content
);
// 创建并加载docx templater实例对象
let
doc
=
new
docxtemplater
().
loadZip
(
zip
);
// 设置模板变量的值
// console.log("arr666---", arr);
doc
.
setData
({
...
arr
,
// e中的数据可以再模板中直接使用
});
try
{
// 用模板变量的值替换所有模板变量
doc
.
render
();
}
catch
(
error
)
{
// let docxname = '购房契税补贴申请表'; //导出文件的名字
// 读取并获得模板文件的二进制内容
JSZipUtils
.
getBinaryContent
(
this
.
docxsrc
,
function
(
error
,
content
)
{
// docxsrc是模板。我们在导出的时候,会根据此模板来导出对应的数据
// 抛出异常
let
e
=
{
message
:
error
.
message
,
name
:
error
.
name
,
stack
:
error
.
stack
,
properties
:
error
.
properties
,
};
console
.
log
(
JSON
.
stringify
({
error
:
e
,
})
);
throw
error
;
}
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let
out
=
doc
.
getZip
().
generate
({
type
:
"blob"
,
mimeType
:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
,
});
console
.
log
(
"out----"
,
out
);
uploadWordFile
(
new
File
([
out
],
"deed-text"
+
new
Date
().
valueOf
()
+
".docx"
,
{
type
:
out
.
type
,
})
).
then
((
res
)
=>
{
console
.
log
(
"文件的res----"
,
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
detail
.
code
,
fileUrl
:
res
.
data
,
// debugger
if
(
error
)
{
throw
error
;
}
// 创建一个PizZip实例,内容为模板的内容
let
zip
=
new
PizZip
(
content
);
// 创建并加载docx templater实例对象
let
doc
=
new
docxtemplater
().
loadZip
(
zip
);
// 设置模板变量的值
// console.log("arr666---", arr);
doc
.
setData
({
...
arr
,
// e中的数据可以再模板中直接使用
});
try
{
// 用模板变量的值替换所有模板变量
doc
.
render
();
}
catch
(
error
)
{
// 抛出异常
let
e
=
{
message
:
error
.
message
,
name
:
error
.
name
,
stack
:
error
.
stack
,
properties
:
error
.
properties
,
};
saveMultipleFileUrl
(
params
).
then
((
res
)
=>
{
console
.
log
(
"初审通过后的传填充文件给后端---"
,
res
);
});
}
else
{
that
.
$message
.
error
(
res
.
msg
);
queryMultipleDeedTaxDetailInfo
({
code
:
that
.
rowDetail
.
code
}).
then
(
(
res
)
=>
{
console
.
log
(
JSON
.
stringify
({
error
:
e
,
})
);
throw
error
;
}
// 生成一个代表docxtemplater对象的zip文件(不是一个真实的文件,而是在内存中的表示)
let
out
=
doc
.
getZip
().
generate
({
type
:
"blob"
,
mimeType
:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
,
});
console
.
log
(
"out----"
,
out
);
uploadWordFile
(
new
File
([
out
],
"deed-text"
+
new
Date
().
valueOf
()
+
".docx"
,
{
type
:
out
.
type
,
})
).
then
((
res
)
=>
{
console
.
log
(
"文件的res----"
,
res
);
if
(
res
.
success
)
{
let
params
=
{
code
:
that
.
detail
.
code
,
fileUrl
:
res
.
data
,
};
saveMultipleFileUrl
(
params
).
then
(
async
(
res
)
=>
{
console
.
log
(
"初审通过后的传填充文件给后端---"
,
res
);
await
that
.
initNew
();
resolve
();
});
}
else
{
that
.
$message
.
error
(
res
.
msg
);
queryMultipleDeedTaxDetailInfo
({
code
:
that
.
rowDetail
.
code
,
}).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
success
)
{
let
params
=
{
...
...
@@ -1086,17 +1136,18 @@ export default {
reviewerId
:
that
.
rowDetail
.
reviewerId
,
state
:
res
.
data
.
state
,
};
initMultipleDepartmentRevocation
(
params
).
then
((
res
)
=>
{
initMultipleDepartmentRevocation
(
params
).
then
(
async
(
res
)
=>
{
console
.
log
(
res
);
that
.
init
();
await
that
.
initNew
();
resolve
();
});
}
}
);
}
});
}
});
// 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname);
});
// 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, docxname);
});
},
deny
(
row
)
{
...
...
vue.config.js
View file @
eee0cab7
const
env
=
process
.
env
.
NODE_ENV
===
"production"
;
//
const publicPath = env ? "/manage-h5/" : "/"; //正式
const
publicPath
=
env
?
"/smartExam-h5/"
:
"/"
;
//测试
const
publicPath
=
env
?
"/manage-h5/"
:
"/"
;
//正式
//
const publicPath = env ? "/smartExam-h5/" : "/"; //测试
module
.
exports
=
{
publicPath
,
...
...
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