Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
dcec0e56
authored
2023-09-18 09:50:17 +0800
by
“miaofang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
c33c6254
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
451 additions
and
447 deletions
src/views/registerBook/cfdj.vue
src/views/registerBook/components/djbDetail.vue
src/views/registerBook/components/printTemplate.vue
src/views/registerBook/diyaq.vue
src/views/registerBook/diyiq.vue
src/views/registerBook/fdcq2.vue
src/views/registerBook/jsydsyq.vue
src/views/registerBook/tdsyq.vue
src/views/registerBook/ygdj.vue
src/views/registerBook/yydj.vue
src/views/registerBook/cfdj.vue
View file @
dcec0e5
...
...
@@ -5,7 +5,9 @@
-->
<
template
>
<div
class=
"djxxTable"
>
<div
v-show=
"false"
>
<djbDetail
:title=
"title"
:shows=
"shows"
:propsParam=
"propsParam"
:columns=
"columns"
:tableData=
"tableData"
/>
<!--
<div
v-show=
"false"
>
<printTemplate
id=
"boxcfdj"
:tableData=
"tableData"
:render=
"render"
/>
</div>
<div
class=
"tableBox"
>
...
...
@@ -85,35 +87,31 @@
</tr>
</table>
</div>
</div>
</div>
-->
</div>
</
template
>
<
script
>
import
printTemplate
from
"./components/printTemplate.vue"
;
import
djbDetail
from
"./components/djbDetail.vue"
import
{
datas
}
from
"./qlxxFormData.js"
;
import
{
getSjlx
}
from
"@/utils/dictionary.js"
;
import
{
getCfdjList
}
from
"@/api/djbDetail.js"
;
export
default
{
components
:
{
printTemplate
,
djbDetail
},
data
()
{
return
{
printObj
:
{
id
:
"box"
,
//其他配置项,
},
shows
:
false
,
title
:
"查封登记信息"
,
qsztList
:
datas
.
columns
().
qsztList
,
checkList
:
datas
.
columns
().
checkList
,
//
qsztList: datas.columns().qsztList,
//
checkList: datas.columns().checkList,
//传递参数
propsParam
:
this
.
$attrs
,
//列表数据
tableData
:
[],
//空列值个数
emptycolNum
:
datas
.
columns
().
emptycolNum
,
//
emptycolNum: datas.columns().emptycolNum,
//列名称对象
columns
:
datas
.
columns
().
CFDJ
,
render
:
false
,
...
...
@@ -124,35 +122,6 @@
},
methods
:
{
/**
* @description: openPrint
* @author: miaofang
*/
openPrint
()
{
this
.
render
=
true
;
setTimeout
(()
=>
{
this
.
prinsss
();
},
100
);
},
/**
* @description: prinsss
* @author: miaofang
*/
prinsss
()
{
printJS
({
printable
:
"boxcfdj"
,
// // 文档来源:pdf或图像的url,html元素的id或json数据的对象
type
:
"html"
,
maxWidth
:
800
,
// 最大宽度
font_size
:
""
,
// 不设置则使用默认字体大小
style
:
`@font-face {
font-family: "STZHONGS";
src: url(
${
window
.
ttf
}
) format("truetype");
}`
,
// 继承原来的所有样式
targetStyles
:
[
"*"
],
});
this
.
render
=
false
},
/**
* @description: loadData
* @author: renchao
*/
...
...
@@ -187,60 +156,60 @@
}
});
},
/**
* @description: checkChange
* @author: renchao
*/
checkChange
()
{
if
(
this
.
checkList
.
length
===
0
)
{
this
.
tableData
=
[];
this
.
emptycolNum
=
datas
.
columns
().
emptycolNum
;
}
else
{
this
.
loadData
();
}
},
/**
* @description: getQsztName
* @author: renchao
*/
getQsztName
(
code
)
{
let
name
=
""
;
for
(
let
item
of
this
.
qsztList
)
{
if
(
item
.
value
==
code
)
{
name
=
item
.
label
;
break
;
}
}
return
name
;
},
// 新增一条补录信息
/**
* @description: 新增一条补录信息
* @param {*} row
* @param {*} del
* @author: renchao
*/
editDialog
(
row
,
del
)
{
this
.
$confirm
(
"此操作将新增一条补录信息, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
this
.
$parent
.
addRepairRecord
(
row
,
del
);
/
/ /
**
//
* @description: checkChange
//
* @author: renchao
//
*/
//
checkChange () {
//
if (this.checkList.length === 0) {
//
this.tableData = [];
//
this.emptycolNum = datas.columns().emptycolNum;
//
} else {
//
this.loadData();
//
}
//
},
/
/ /
**
//
* @description: getQsztName
//
* @author: renchao
//
*/
//
getQsztName (code) {
//
let name = "";
//
for (let item of this.qsztList) {
//
if (item.value == code) {
//
name = item.label;
//
break;
//
}
//
}
//
return name;
//
},
//
//
新增一条补录信息
/
/ /
**
//
* @description: 新增一条补录信息
//
* @param {*} row
//
* @param {*} del
//
* @author: renchao
//
*/
//
editDialog (row, del) {
//
this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", {
//
confirmButtonText: "确定",
//
cancelButtonText: "取消",
//
type: "warning",
//
})
//
.then(() => {
//
this.$parent.addRepairRecord(row, del);
this
.
$message
({
type
:
"success"
,
message
:
"补录成功!"
,
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"取消编辑"
,
});
});
},
//
this.$message({
//
type: "success",
//
message: "补录成功!",
//
});
//
})
//
.catch(() => {
//
this.$message({
//
type: "info",
//
message: "取消编辑",
//
});
//
});
//
},
},
};
</
script
>
...
...
src/views/registerBook/components/djbDetail.vue
View file @
dcec0e5
...
...
@@ -13,7 +13,7 @@
</div>
<div
class=
"title"
>
{{
title
}}
<el-button
class=
"print"
v-show=
"shows"
@
click=
"openPrint()"
>
打印
</el-button>
<el-button
class=
"print"
v-show=
"shows"
@
click=
"openPrint()"
>
打印
1
</el-button>
<div
class=
"checkbox"
>
<el-checkbox-group
v-model=
"checkList"
@
change=
"checkChange"
>
<el-checkbox
...
...
@@ -133,6 +133,7 @@
},
methods
:
{
openPrint
()
{
console
.
log
(
"tableData"
,
this
.
tableDataaaa
);
this
.
render
=
true
;
setTimeout
(()
=>
{
this
.
prinsss
();
...
...
src/views/registerBook/components/printTemplate.vue
View file @
dcec0e5
...
...
@@ -69,6 +69,8 @@ export default {
},
render
:
{
handler
(
newValue
,
oldValue
)
{
console
.
log
(
"newValue"
,
newValue
);
console
.
log
(
"columns"
,
this
.
columns
);
if
(
newValue
)
{
this
.
loadData
();
}
...
...
@@ -88,6 +90,7 @@ export default {
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
columns
=
res
.
result
;
console
.
log
(
"columnssssssssssss"
,
this
.
columns
);
}
});
if
(
this
.
tableData
.
length
&&
this
.
datass
.
length
==
0
)
{
...
...
src/views/registerBook/diyaq.vue
View file @
dcec0e5
...
...
@@ -5,7 +5,9 @@
-->
<
template
>
<div
class=
"djxxTable"
>
<div
v-show=
"false"
>
<djbDetail
:title=
"title"
:shows=
"shows"
:propsParam=
"propsParam"
:columns=
"columns"
:tableData=
"tableData"
/>
<!--
<div
v-show=
"false"
>
<printTemplate
id=
"boxdiyaq"
:tableData=
"tableData"
:render=
"render"
/>
</div>
<div
class=
"tableBox"
>
...
...
@@ -87,35 +89,31 @@
</tr>
</table>
</div>
</div>
</div>
-->
</div>
</
template
>
<
script
>
import
djbDetail
from
"./components/djbDetail.vue"
import
{
datas
}
from
"./qlxxFormData.js"
;
import
{
getSjlx
,
getDictLeabel
}
from
"@/utils/dictionary.js"
;
import
{
getDiyaqList
}
from
"@/api/djbDetail.js"
;
import
printTemplate
from
"./components/printTemplate.vue"
;
export
default
{
components
:
{
printTemplate
,
djbDetail
},
data
()
{
return
{
printObj
:
{
id
:
"box"
,
//其他配置项,
},
shows
:
false
,
title
:
"抵押权登记信息"
,
qsztList
:
datas
.
columns
().
qsztList
,
checkList
:
datas
.
columns
().
checkList
,
//
qsztList: datas.columns().qsztList,
//
checkList: datas.columns().checkList,
//传递参数
propsParam
:
this
.
$attrs
,
//列表数据
tableData
:
[],
//空列值个数
emptycolNum
:
datas
.
columns
().
emptycolNum
,
//
emptycolNum: datas.columns().emptycolNum,
//列名称对象
columns
:
datas
.
columns
().
DYAQ
,
render
:
false
,
...
...
@@ -125,35 +123,35 @@
this
.
loadData
();
},
methods
:
{
/**
* @description: openPrint
* @author: miaofang
*/
openPrint
()
{
this
.
render
=
true
;
setTimeout
(()
=>
{
this
.
prinsss
();
},
100
);
},
/**
* @description: prinsss
* @author: miaofang
*/
prinsss
()
{
printJS
({
printable
:
"boxdiyaq"
,
// // 文档来源:pdf或图像的url,html元素的id或json数据的对象
type
:
"html"
,
maxWidth
:
800
,
// 最大宽度
font_size
:
""
,
// 不设置则使用默认字体大小
style
:
`@font-face {
font-family: "STZHONGS";
src: url(
${
window
.
ttf
}
) format("truetype");
}`
,
// 继承原来的所有样式
targetStyles
:
[
"*"
],
});
this
.
render
=
false
},
//
/**
//
* @description: openPrint
//
* @author: miaofang
//
*/
//
openPrint () {
//
this.render = true;
//
setTimeout(() => {
//
this.prinsss();
//
}, 100);
//
},
//
/**
//
* @description: prinsss
//
* @author: miaofang
//
*/
//
prinsss () {
//
printJS({
//
printable: "boxdiyaq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象
//
type: "html",
//
maxWidth: 800, // 最大宽度
//
font_size: "", // 不设置则使用默认字体大小
//
style: `@font-face {
//
font-family: "STZHONGS";
//
src: url(${window.ttf}) format("truetype");
//
}`,
//
// 继承原来的所有样式
//
targetStyles: ["*"],
//
});
//
this.render = false
//
},
/**
* @description: loadData
* @author: renchao
...
...
@@ -183,60 +181,60 @@
}
});
},
/**
* @description: checkChange
* @author: renchao
*/
checkChange
()
{
if
(
this
.
checkList
.
length
===
0
)
{
this
.
tableData
=
[];
this
.
emptycolNum
=
datas
.
columns
().
emptycolNum
;
}
else
{
this
.
loadData
();
}
},
/**
* @description: getQsztName
* @param {*} code
* @author: renchao
*/
getQsztName
(
code
)
{
let
name
=
""
;
for
(
let
item
of
this
.
qsztList
)
{
if
(
item
.
value
==
code
)
{
name
=
item
.
label
;
break
;
}
}
return
name
;
},
// 新增一条补录信息
/**
* @description: 新增一条补录信息
* @param {*} row
* @param {*} del
* @author: renchao
*/
editDialog
(
row
,
del
)
{
this
.
$confirm
(
"此操作将新增一条补录信息, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
this
.
$parent
.
addRepairRecord
(
row
,
del
);
this
.
$message
({
type
:
"success"
,
message
:
"补录成功!"
,
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"取消编辑"
,
});
});
},
/
/ /
**
//
* @description: checkChange
//
* @author: renchao
//
*/
//
checkChange () {
//
if (this.checkList.length === 0) {
//
this.tableData = [];
//
this.emptycolNum = datas.columns().emptycolNum;
//
} else {
//
this.loadData();
//
}
//
},
/
/ /
**
//
* @description: getQsztName
//
* @param {*} code
//
* @author: renchao
//
*/
//
getQsztName (code) {
//
let name = "";
//
for (let item of this.qsztList) {
//
if (item.value == code) {
//
name = item.label;
//
break;
//
}
//
}
//
return name;
//
},
//
//
新增一条补录信息
/
/ /
**
//
* @description: 新增一条补录信息
//
* @param {*} row
//
* @param {*} del
//
* @author: renchao
//
*/
//
editDialog (row, del) {
//
this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", {
//
confirmButtonText: "确定",
//
cancelButtonText: "取消",
//
type: "warning",
//
})
//
.then(() => {
//
this.$parent.addRepairRecord(row, del);
//
this.$message({
//
type: "success",
//
message: "补录成功!",
//
});
//
})
//
.catch(() => {
//
this.$message({
//
type: "info",
//
message: "取消编辑",
//
});
//
});
//
},
},
};
</
script
>
...
...
src/views/registerBook/diyiq.vue
View file @
dcec0e5
...
...
@@ -5,7 +5,9 @@
-->
<
template
>
<div
class=
"djxxTable"
>
<div
v-show=
"false"
>
<djbDetail
:title=
"title"
:shows=
"shows"
:propsParam=
"propsParam"
:columns=
"columns"
:tableData=
"tableData"
/>
<!--
<div
v-show=
"false"
>
<printTemplate
id=
"boxdiyiq"
:tableData=
"tableData"
:render=
"render"
/>
</div>
<div
class=
"tableBox"
>
...
...
@@ -98,35 +100,31 @@
</tr>
</table>
</div>
</div>
</div>
-->
</div>
</
template
>
<
script
>
import
djbDetail
from
"./components/djbDetail.vue"
import
{
datas
}
from
"./qlxxFormData.js"
;
import
{
getSjlx
,
getDictLeabel
}
from
"@/utils/dictionary.js"
;
import
{
getDiyiqList
}
from
"@/api/djbDetail.js"
;
import
printTemplate
from
"./components/printTemplate.vue"
;
export
default
{
components
:
{
printTemplate
,
djbDetail
},
data
()
{
return
{
printObj
:
{
id
:
"box"
,
//其他配置项,
},
shows
:
false
,
title
:
"地役权登记信息"
,
qsztList
:
datas
.
columns
().
qsztList
,
checkList
:
datas
.
columns
().
checkList
,
//
qsztList: datas.columns().qsztList,
//
checkList: datas.columns().checkList,
//传递参数
propsParam
:
this
.
$attrs
,
//列表数据
tableData
:
[],
//空列值个数
emptycolNum
:
datas
.
columns
().
emptycolNum
,
//
emptycolNum: datas.columns().emptycolNum,
//列名称对象
columns
:
datas
.
columns
().
DYIQ
,
render
:
false
,
...
...
@@ -136,34 +134,34 @@ export default {
this
.
loadData
();
},
methods
:
{
/**
* @description: openPrint
* @author: miaofang
*/
openPrint
()
{
this
.
render
=
true
;
setTimeout
(()
=>
{
this
.
prinsss
();
},
100
);
},
/**
* @description: prinsss
* @author: miaofang
*/
prinsss
()
{
printJS
({
printable
:
"boxdiyiq"
,
// // 文档来源:pdf或图像的url,html元素的id或json数据的对象
type
:
"html"
,
maxWidth
:
800
,
// 最大宽度
font_size
:
""
,
// 不设置则使用默认字体大小
style
:
`@font-face {
font-family: "STZHONGS";
src: url(
${
window
.
ttf
}
) format("truetype");
}`
,
// 继承原来的所有样式
targetStyles
:
[
"*"
],
});
this
.
render
=
false
},
//
* @description: openPrint
//
* @author: miaofang
//
*/
//
openPrint() {
//
this.render = true;
//
setTimeout(() => {
//
this.prinsss();
//
}, 100);
//
},
/
/ /
**
//
* @description: prinsss
//
* @author: miaofang
//
*/
//
prinsss() {
//
printJS({
//
printable: "boxdiyiq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象
//
type: "html",
//
maxWidth: 800, // 最大宽度
//
font_size: "", // 不设置则使用默认字体大小
//
style: `@font-face {
//
font-family: "STZHONGS";
//
src: url(${window.ttf}) format("truetype");
//
}`,
//
// 继承原来的所有样式
//
targetStyles: ["*"],
//
});
//
this.render=false
//
},
/**
* @description: loadData
* @author: miaofang
...
...
@@ -193,61 +191,61 @@ export default {
}
});
},
/**
* @description: checkChange
* @author: miaofang
*/
checkChange
()
{
if
(
this
.
checkList
.
length
===
0
)
{
this
.
tableData
=
[];
this
.
emptycolNum
=
datas
.
columns
().
emptycolNum
;
}
else
{
this
.
loadData
();
}
},
/**
* @description: getQsztName
* @param {*} code
* @author: miaofang
*/
getQsztName
(
code
)
{
let
name
=
""
;
for
(
let
item
of
this
.
qsztList
)
{
if
(
item
.
value
==
code
)
{
name
=
item
.
label
;
break
;
}
}
return
name
;
},
// 新增一条补录信息
/**
* @description: 新增一条补录信息
* @param {*} row
* @param {*} del
* @author: miaofang
*/
editDialog
(
row
,
del
)
{
this
.
$confirm
(
"此操作将新增一条补录信息, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
this
.
$parent
.
addRepairRecord
(
row
,
del
);
//
/**
//
* @description: checkChange
//
* @author: miaofang
//
*/
//
checkChange() {
//
if (this.checkList.length === 0) {
//
this.tableData = [];
//
this.emptycolNum = datas.columns().emptycolNum;
//
} else {
//
this.loadData();
//
}
//
},
//
/**
//
* @description: getQsztName
//
* @param {*} code
//
* @author: miaofang
//
*/
//
getQsztName(code) {
//
let name = "";
//
for (let item of this.qsztList) {
//
if (item.value == code) {
//
name = item.label;
//
break;
//
}
//
}
//
return name;
//
},
//
// 新增一条补录信息
//
/**
//
* @description: 新增一条补录信息
//
* @param {*} row
//
* @param {*} del
//
* @author: miaofang
//
*/
//
editDialog(row, del) {
//
this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", {
//
confirmButtonText: "确定",
//
cancelButtonText: "取消",
//
type: "warning",
//
})
//
.then(() => {
//
this.$parent.addRepairRecord(row, del);
this
.
$message
({
type
:
"success"
,
message
:
"补录成功!"
,
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"取消编辑"
,
});
});
},
//
this.$message({
//
type: "success",
//
message: "补录成功!",
//
});
//
})
//
.catch(() => {
//
this.$message({
//
type: "info",
//
message: "取消编辑",
//
});
//
});
//
},
},
};
</
script
>
...
...
src/views/registerBook/fdcq2.vue
View file @
dcec0e5
...
...
@@ -5,14 +5,14 @@
-->
<
template
>
<div
class=
"djxxTable"
>
<djbDetail
:title=
"title"
:shows=
"shows"
:propsParam=
"propsParam"
:columns=
"columns"
:tableData=
"tableData"
/>
<!--
<div
v-show=
"false"
>
<printTemplate
id=
"boxfdcq"
:tableData=
"tableData"
:render=
"render"
/>
</div>
-->
<djbDetail
:title=
"title"
:shows=
"shows"
:propsParam=
"propsParam"
:columns=
"columns"
:tableData=
"tableData"
/>
<!--
<div
class=
"tableBox"
>
<div
class=
"title"
>
{{
title
}}
...
...
@@ -100,10 +100,8 @@
import
{
getSjlx
}
from
"@/utils/dictionary.js"
;
import
{
getFdcq2List
}
from
"@/api/djbDetail.js"
;
import
djbDetail
from
"./components/djbDetail.vue"
import
printTemplate
from
"./components/printTemplate.vue"
;
export
default
{
components
:
{
printTemplate
,
djbDetail
},
...
...
src/views/registerBook/jsydsyq.vue
View file @
dcec0e5
...
...
@@ -5,7 +5,9 @@
-->
<
template
>
<div
class=
"djxxTable"
>
<div
v-show=
"false"
>
<djbDetail
:title=
"title"
:shows=
"shows"
:propsParam=
"propsParam"
:columns=
"columns"
:tableData=
"tableData"
/>
<!--
<div
v-show=
"false"
>
<printTemplate
id=
"boxjsydsyq"
:tableData=
"tableData"
...
...
@@ -30,7 +32,6 @@
</div>
</div>
<div
class=
"xxTableBox rollTable"
>
<!-- 固定前三个 -->
<table
class=
"xxTable"
>
<tr
v-for=
"(item, colindex) in columns"
:key=
"colindex"
>
<td>
...
...
@@ -102,7 +103,7 @@
</tr>
</table>
</div>
</div>
</div>
-->
</div>
</
template
>
...
...
src/views/registerBook/tdsyq.vue
View file @
dcec0e5
...
...
@@ -5,16 +5,25 @@
-->
<
template
>
<div
class=
"djxxTable"
>
<div
v-show=
"false"
>
<printTemplate
id=
"boxtdsyq"
:tableData=
"tableData"
:render=
"render"
/>
<djbDetail
:title=
"title"
:shows=
"shows"
:propsParam=
"propsParam"
:columns=
"columns"
:tableData=
"tableData"
/>
<!--
<div
v-show=
"false"
>
<printTemplate
id=
"boxtdsyq"
:tableData=
"tableData"
:render=
"render"
/>
</div>
<div
class=
"tableBox"
>
<div
class=
"title"
>
{{
title
}}
<el-button
class=
"print"
v-show=
"shows"
@
click=
"openPrint()"
>
打印
</el-button>
<el-button
class=
"print"
v-show=
"shows"
@
click=
"openPrint()"
>
打印
</el-button
>
<div
class=
"checkbox"
>
<el-checkbox-group
v-model=
"checkList"
@
change=
"checkChange"
>
<el-checkbox
v-for=
"item in qsztList"
:key=
"item.value"
:label=
"item.value"
>
{{
item
.
label
}}
</el-checkbox>
<el-checkbox
v-for=
"item in qsztList"
:key=
"item.value"
:label=
"item.value"
>
{{
item
.
label
}}
</el-checkbox
>
</el-checkbox-group>
</div>
</div>
...
...
@@ -25,7 +34,10 @@
<td>
{{
item
.
label
}}
</td>
<td
v-for=
"(row, index) in tableData"
:key=
"index"
:class=
"[
<td
v-for=
"(row, index) in tableData"
:key=
"index"
:class=
"[
row.qszt == '2' ? 'lishi' : '',
row.qszt == '0' ? 'linshi' : '',
row.qlzt == '4' ? 'linshi' : '',
...
...
@@ -33,13 +45,27 @@
item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '',
item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '',
item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '',
item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : ''
]"
>
<div
class=
"setbut"
v-if=
"item.prop == 'cz'&&row.sjlx !='系统数据'"
>
<el-button
type=
"text"
icon=
"el-icon-edit-outline"
@
click=
"editDialog(row)"
>
编辑
</el-button>
<el-button
type=
"text"
icon=
"el-icon-edit-outline"
@
click=
"editDialog(row,'D')"
>
删除
</el-button>
item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '',
]"
>
<div
class=
"setbut"
v-if=
"item.prop == 'cz' && row.sjlx != '系统数据'"
>
<el-button
type=
"text"
icon=
"el-icon-edit-outline"
@
click=
"editDialog(row)"
>
编辑
</el-button
>
<el-button
type=
"text"
icon=
"el-icon-edit-outline"
@
click=
"editDialog(row, 'D')"
>
删除
</el-button
>
</div>
<div
class=
"icon"
v-if=
"item.prop == 'qszt' &&row.qlzt == '1'"
>
<div
class=
"icon"
v-if=
"item.prop == 'qszt' &&
row.qlzt == '1'"
>
有效
</div>
<div
class=
"icon"
v-if=
"item.prop == 'qszt' && row.qlzt == '2'"
>
...
...
@@ -52,14 +78,20 @@
正在注销
</div>
<p
v-if=
"!['djyy','fj'].includes(item.prop)"
>
<p
v-if=
"!['djyy',
'fj'].includes(item.prop)"
>
<span
v-if=
"item.prop == 'qszt'"
>
{{
getQsztName
(
row
[
item
.
prop
])
}}
</span>
<span
v-else
>
{{
row
[
item
.
prop
]
}}
</span>
</p>
<el-tooltip
v-else
effect=
"dark"
:content=
"row[item.prop]"
placement=
"top"
popper-class=
"tooltip-width"
>
<el-tooltip
v-else
effect=
"dark"
:content=
"row[item.prop]"
placement=
"top"
popper-class=
"tooltip-width"
>
<span
class=
"ellipsis-line"
>
{{
row
[
item
.
prop
]
}}
</span>
...
...
@@ -69,14 +101,14 @@
</tr>
</table>
</div>
</div>
</div>
-->
</div>
</
template
>
<
script
>
import
{
datas
}
from
"./qlxxFormData.js"
;
import
{
getSjlx
}
from
"@/utils/dictionary.js"
;
import
{
getTdsyqList
}
from
"@/api/djbDetail.js"
;
import
{
datas
}
from
"./qlxxFormData.js"
;
import
{
getSjlx
}
from
"@/utils/dictionary.js"
;
import
{
getTdsyqList
}
from
"@/api/djbDetail.js"
;
import
printTemplate
from
"./components/printTemplate.vue"
;
export
default
{
components
:
{
...
...
@@ -88,7 +120,7 @@ export default {
id
:
"box"
,
//其他配置项,
},
shows
:
false
,
shows
:
false
,
title
:
"土地所有权信息"
,
qsztList
:
datas
.
columns
().
qsztList
,
checkList
:
datas
.
columns
().
checkList
,
...
...
@@ -100,20 +132,20 @@ export default {
emptycolNum
:
datas
.
columns
().
emptycolNum
,
//列名称对象
columns
:
datas
.
columns
().
TDSYQ
,
render
:
false
render
:
false
,
};
},
created
()
{
created
()
{
this
.
loadData
();
},
methods
:
{
openPrint
()
{
this
.
render
=
true
openPrint
()
{
this
.
render
=
true
;
setTimeout
(()
=>
{
this
.
prinsss
()
},
100
)
this
.
prinsss
();
},
100
);
},
prinsss
()
{
prinsss
()
{
printJS
({
printable
:
"boxtdsyq"
,
// // 文档来源:pdf或图像的url,html元素的id或json数据的对象
type
:
"html"
,
...
...
@@ -124,21 +156,20 @@ export default {
src: url(
${
window
.
ttf
}
) format("truetype");
}`
,
// 继承原来的所有样式
targetStyles
:
[
"*"
]
targetStyles
:
[
"*"
]
,
});
this
.
render
=
false
this
.
render
=
false
;
},
/**
* @description: loadData
* @author: miaofang
*/
loadData
()
{
loadData
()
{
if
(
this
.
$parent
.
addRepairRecord
)
{
this
.
columns
.
unshift
({
prop
:
"cz"
,
label
:
"操作"
})
label
:
"操作"
,
});
}
getTdsyqList
({
bdcdyid
:
this
.
propsParam
.
bdcdyid
,
...
...
@@ -147,10 +178,10 @@ export default {
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
tableData
=
res
.
result
;
this
.
shows
=
this
.
tableData
.
length
>
0
this
.
tableData
.
forEach
(
item
=>
{
item
.
sjlx
=
getSjlx
(
item
.
sjlx
)
})
this
.
shows
=
this
.
tableData
.
length
>
0
;
this
.
tableData
.
forEach
((
item
)
=>
{
item
.
sjlx
=
getSjlx
(
item
.
sjlx
);
});
if
(
this
.
tableData
.
length
<
datas
.
columns
().
emptycolNum
)
{
this
.
emptycolNum
=
datas
.
columns
().
emptycolNum
-
this
.
tableData
.
length
;
...
...
@@ -164,7 +195,7 @@ export default {
* @description: checkChange
* @author: miaofang
*/
checkChange
()
{
checkChange
()
{
if
(
this
.
checkList
.
length
===
0
)
{
this
.
tableData
=
[];
this
.
emptycolNum
=
datas
.
columns
().
emptycolNum
;
...
...
@@ -177,7 +208,7 @@ export default {
* @param {*} code
* @author: miaofang
*/
getQsztName
(
code
)
{
getQsztName
(
code
)
{
let
name
=
""
;
for
(
let
item
of
this
.
qsztList
)
{
if
(
item
.
value
==
code
)
{
...
...
@@ -194,33 +225,34 @@ export default {
* @param {*} del
* @author: miaofang
*/
editDialog
(
row
,
del
)
{
this
.
$confirm
(
'此操作将新增一条补录信息, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$parent
.
addRepairRecord
(
row
,
del
)
editDialog
(
row
,
del
)
{
this
.
$confirm
(
"此操作将新增一条补录信息, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
this
.
$parent
.
addRepairRecord
(
row
,
del
);
this
.
$message
({
type
:
'success'
,
message
:
'补录成功!'
type
:
"success"
,
message
:
"补录成功!"
,
});
}).
catch
(()
=>
{
})
.
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'取消编辑'
type
:
"info"
,
message
:
"取消编辑"
,
});
});
},
},
};
};
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"./qlxxCommon.scss"
;
.title
{
@import
"./qlxxCommon.scss"
;
.title
{
position
:
relative
;
.print
{
//
background-color
:
#0079fe
;
...
...
src/views/registerBook/ygdj.vue
View file @
dcec0e5
...
...
@@ -5,7 +5,9 @@
-->
<
template
>
<div
class=
"djxxTable"
>
<div
v-show=
"false"
>
<djbDetail
:title=
"title"
:shows=
"shows"
:propsParam=
"propsParam"
:columns=
"columns"
:tableData=
"tableData"
/>
<!--
<div
v-show=
"false"
>
<printTemplate
id=
"boxygdj"
:tableData=
"tableData"
:render=
"render"
/>
</div>
<div
class=
"tableBox"
>
...
...
@@ -93,7 +95,7 @@
</tr>
</table>
</div>
</div>
</div>
-->
</div>
</
template
>
...
...
@@ -114,14 +116,14 @@ export default {
// },
shows
:
false
,
title
:
"预告登记信息"
,
qsztList
:
datas
.
columns
().
qsztList
,
checkList
:
datas
.
columns
().
checkList
,
//
qsztList: datas.columns().qsztList,
//
checkList: datas.columns().checkList,
//传递参数
propsParam
:
this
.
$attrs
,
//列表数据
tableData
:
[],
//空列值个数
emptycolNum
:
datas
.
columns
().
emptycolNum
,
//
emptycolNum: datas.columns().emptycolNum,
//列名称对象
columns
:
datas
.
columns
().
YGDJ
,
render
:
false
...
...
@@ -131,27 +133,27 @@ export default {
this
.
loadData
();
},
methods
:
{
openPrint
(){
this
.
render
=
true
setTimeout
(()
=>
{
this
.
prinsss
()
},
100
)
},
prinsss
(){
printJS
({
printable
:
"boxygdj"
,
// // 文档来源:pdf或图像的url,html元素的id或json数据的对象
type
:
"html"
,
maxWidth
:
800
,
// 最大宽度
font_size
:
""
,
// 不设置则使用默认字体大小
style
:
`@font-face {
font-family: "STZHONGS";
src: url(
${
window
.
ttf
}
) format("truetype");
}`
,
// 继承原来的所有样式
targetStyles
:
[
"*"
]
});
this
.
render
=
false
},
//
openPrint(){
//
this.render=true
//
setTimeout(() => {
//
this.prinsss()
//
}, 100)
//
},
//
prinsss(){
//
printJS({
//
printable: "boxygdj", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象
//
type: "html",
//
maxWidth: 800, // 最大宽度
//
font_size: "", // 不设置则使用默认字体大小
//
style: `@font-face {
//
font-family: "STZHONGS";
//
src: url(${window.ttf}) format("truetype");
//
}`,
//
// 继承原来的所有样式
//
targetStyles: ["*"]
//
});
//
this.render=false
//
},
/**
* @description: loadData
* @author: miaofang
...
...
src/views/registerBook/yydj.vue
View file @
dcec0e5
...
...
@@ -5,7 +5,9 @@
-->
<
template
>
<div
class=
"djxxTable"
>
<div
v-show=
"false"
>
<djbDetail
:title=
"title"
:shows=
"shows"
:propsParam=
"propsParam"
:columns=
"columns"
:tableData=
"tableData"
/>
<!--
<div
v-show=
"false"
>
<printTemplate
id=
"boxyydj"
:tableData=
"tableData"
...
...
@@ -99,7 +101,7 @@
</tr>
</table>
</div>
</div>
</div>
-->
</div>
</
template
>
...
...
@@ -107,10 +109,10 @@
import
{
datas
}
from
"./qlxxFormData.js"
;
import
{
getYydjList
}
from
"@/api/djbDetail.js"
;
import
{
getSjlx
,
getDictLeabel
}
from
"@/utils/dictionary.js"
;
import
printTemplate
from
"./components/printTemplate.vue"
;
export
default
{
import
djbDetail
from
"./components/djbDetail.vue"
export
default
{
components
:
{
printTemplate
,
djbDetail
},
data
()
{
return
{
...
...
@@ -137,27 +139,27 @@ export default {
this
.
loadData
();
},
methods
:
{
openPrint
()
{
this
.
render
=
true
;
setTimeout
(()
=>
{
this
.
prinsss
();
},
100
);
},
prinsss
()
{
printJS
({
printable
:
"boxyydj"
,
// // 文档来源:pdf或图像的url,html元素的id或json数据的对象
type
:
"html"
,
maxWidth
:
800
,
// 最大宽度
font_size
:
""
,
// 不设置则使用默认字体大小
style
:
`@font-face {
font-family: "STZHONGS";
src: url(
${
window
.
ttf
}
) format("truetype");
}`
,
// 继承原来的所有样式
targetStyles
:
[
"*"
],
});
this
.
render
=
false
},
//
openPrint() {
//
this.render = true;
//
setTimeout(() => {
//
this.prinsss();
//
}, 100);
//
},
//
prinsss() {
//
printJS({
//
printable: "boxyydj", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象
//
type: "html",
//
maxWidth: 800, // 最大宽度
//
font_size: "", // 不设置则使用默认字体大小
//
style: `@font-face {
//
font-family: "STZHONGS";
//
src: url(${window.ttf}) format("truetype");
//
}`,
//
// 继承原来的所有样式
//
targetStyles: ["*"],
//
});
//
this.render=false
//
},
/**
* @description: loadData
* @author: miaofang
...
...
@@ -190,61 +192,61 @@ export default {
}
});
},
/**
* @description: checkChange
* @author: miaofang
*/
checkChange
()
{
if
(
this
.
checkList
.
length
===
0
)
{
this
.
tableData
=
[];
this
.
emptycolNum
=
datas
.
columns
().
emptycolNum
;
}
else
{
this
.
loadData
();
}
},
/**
* @description: getQsztName
* @param {*} code
* @author: miaofang
*/
getQsztName
(
code
)
{
let
name
=
""
;
for
(
let
item
of
this
.
qsztList
)
{
if
(
item
.
value
==
code
)
{
name
=
item
.
label
;
break
;
}
}
return
name
;
},
// 新增一条补录信息
/**
* @description: 新增一条补录信息
* @param {*} row
* @param {*} del
* @author: miaofang
*/
editDialog
(
row
,
del
)
{
this
.
$confirm
(
"此操作将新增一条补录信息, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
this
.
$parent
.
addRepairRecord
(
row
,
del
);
/
/ /
**
//
* @description: checkChange
//
* @author: miaofang
//
*/
//
checkChange() {
//
if (this.checkList.length === 0) {
//
this.tableData = [];
//
this.emptycolNum = datas.columns().emptycolNum;
//
} else {
//
this.loadData();
//
}
//
},
/
/ /
**
//
* @description: getQsztName
//
* @param {*} code
//
* @author: miaofang
//
*/
//
getQsztName(code) {
//
let name = "";
//
for (let item of this.qsztList) {
//
if (item.value == code) {
//
name = item.label;
//
break;
//
}
//
}
//
return name;
//
},
//
//
新增一条补录信息
/
/ /
**
//
* @description: 新增一条补录信息
//
* @param {*} row
//
* @param {*} del
//
* @author: miaofang
//
*/
//
editDialog(row, del) {
//
this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", {
//
confirmButtonText: "确定",
//
cancelButtonText: "取消",
//
type: "warning",
//
})
//
.then(() => {
//
this.$parent.addRepairRecord(row, del);
this
.
$message
({
type
:
"success"
,
message
:
"补录成功!"
,
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"取消编辑"
,
});
});
},
//
this.$message({
//
type: "success",
//
message: "补录成功!",
//
});
//
})
//
.catch(() => {
//
this.$message({
//
type: "info",
//
message: "取消编辑",
//
});
//
});
//
},
},
};
</
script
>
...
...
Please
register
or
sign in
to post a comment