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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
368 additions
and
396 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
This diff is collapsed.
Click to expand it.
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,11 +109,11 @@
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
{
components
:
{
printTemplate
,
},
import
djbDetail
from
"./components/djbDetail.vue"
export
default
{
components
:
{
djbDetail
},
data
()
{
return
{
printObj
:
{
...
...
@@ -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