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
d053f9c4
authored
2023-09-06 16:16:13 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:证书证明预览
1 parent
5ab9d491
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
502 additions
and
506 deletions
src/views/workflow/components/dialog/zsyl.vue
src/views/xxba/qyxxba/components/addDialog.vue
src/views/xxba/qyxxba/data.js
src/views/xxba/qyxxba/index.vue
src/views/xxba/yhjgba/components/addDialog.vue
src/views/xxba/yhjgba/data.js
src/views/xxba/yhjgba/index.vue
src/views/workflow/components/dialog/zsyl.vue
View file @
d053f9c
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-06 1
5:47:54
* @LastEditTime: 2023-09-06 1
6:15:09
-->
<
template
>
<div
class=
"from-clues loadingtext"
v-Loading=
"loading"
element-loading-text=
"拼命加载中..."
style=
"height:720px;text-align: center;"
>
...
...
@@ -208,8 +208,8 @@
// 权利其他状态
let
lines
=
this
.
bdcqz
.
qlqtzk
?
this
.
bdcqz
.
qlqtzk
.
split
(
'\n'
)
:
[];
for
(
let
i
=
0
;
i
<
lines
.
length
;
i
++
)
{
let
num
=
Math
.
ceil
(
getByteLen
(
lines
[
i
])
/
40
)
if
(
getByteLen
(
lines
[
i
])
>
40
)
{
let
num
=
Math
.
ceil
(
getByteLen
(
lines
[
i
])
/
38
)
if
(
getByteLen
(
lines
[
i
])
>
38
)
{
let
currentLine
=
''
;
let
arr
=
[];
for
(
let
word
of
lines
[
i
])
{
...
...
@@ -225,11 +225,11 @@
arr
.
push
(
currentLine
);
if
(
i
>
0
)
{
arr
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
line
,
129
,
480
+
(
26
*
(
i
-
1
))
+
4
*
num
+
(
index
*
1
3
));
// 调整行高
context
.
fillText
(
line
,
129
,
480
+
(
26
*
(
i
-
1
))
+
4
*
num
+
(
index
*
1
4
));
// 调整行高
})
}
else
{
arr
.
forEach
((
line
,
index
)
=>
{
context
.
fillText
(
line
,
129
,
490
+
(
26
*
(
i
-
1
))
+
(
index
*
1
3
));
// 调整行高
context
.
fillText
(
line
,
129
,
490
+
(
26
*
(
i
-
1
))
+
(
index
*
1
4
));
// 调整行高
})
}
}
else
{
...
...
src/views/xxba/qyxxba/components/addDialog.vue
View file @
d053f9c
...
...
@@ -3,24 +3,24 @@
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"企业名称:"
prop=
"qymc"
>
<el-input
v-model=
"ruleForm.qymc"
></el-input>
<el-input
v-model=
"ruleForm.qymc"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"电话:"
prop=
"dh"
>
<el-input
v-model=
"ruleForm.dh"
></el-input>
<el-input
v-model=
"ruleForm.dh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"证件种类:"
>
<el-input
v-model=
"ruleForm.zjzl"
></el-input>
<el-input
v-model=
"ruleForm.zjzl"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"证件号:"
prop=
"zjh"
>
<el-input
v-model=
"ruleForm.zjh"
></el-input>
<el-input
v-model=
"ruleForm.zjh"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -28,237 +28,235 @@
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"法人名称:"
prop=
"frmc"
>
<el-input
v-model=
"ruleForm.frmc"
></el-input>
<el-input
v-model=
"ruleForm.frmc"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"法人电话:"
prop=
"frdh"
>
<el-input
v-model=
"ruleForm.frdh"
></el-input>
<el-input
v-model=
"ruleForm.frdh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位地址:"
>
<el-input
v-model=
"ruleForm.dwdz"
></el-input>
<el-input
v-model=
"ruleForm.dwdz"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"邮编:"
prop=
"yb"
>
<el-input
v-model=
"ruleForm.yb"
></el-input>
<el-input
v-model=
"ruleForm.yb"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
保存
</el-button>
<el-form-item
style=
"text-align:center"
>
<el-button
@
click=
"closeDialog"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
保存
</el-button>
</el-form-item>
</el-form>
</
template
>
<
script
>
import
store
from
'@/store/index.js'
import
{
addQy
}
from
"@/api/xxba.js"
export
default
{
props
:
{
formData
:
{
type
:
Object
,
default
:
()
=>
{
},
},
},
data
()
{
return
{
DJJGLIST
:
store
.
getters
.
dictData
[
'ywly'
],
readOnly
:
false
,
//表单提交数据
ruleForm
:
{
batchno
:
''
,
djjg
:
''
,
operator
:
'超级管理员'
,
operationtime
:
''
,
bz
:
''
,
zsstarno
:
''
,
zsendno
:
''
,
zsnum
:
''
,
zmstarno
:
''
,
zmendno
:
''
,
zmnum
:
''
import
store
from
'@/store/index.js'
import
{
addQy
}
from
"@/api/xxba.js"
export
default
{
props
:
{
formData
:
{
type
:
Object
,
default
:
()
=>
{
},
},
//表格数据
tableForm
:
[
{
name
:
'不动产权证书'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
1
},
data
()
{
return
{
DJJGLIST
:
store
.
getters
.
dictData
[
'ywly'
],
readOnly
:
false
,
//表单提交数据
ruleForm
:
{
batchno
:
''
,
djjg
:
''
,
operator
:
'超级管理员'
,
operationtime
:
''
,
bz
:
''
,
zsstarno
:
''
,
zsendno
:
''
,
zsnum
:
''
,
zmstarno
:
''
,
zmendno
:
''
,
zmnum
:
''
},
{
name
:
'不动产登记证明'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
2
}
],
//证书入库业务号参数
ywhQueryForm
:
{
serialtype
:
'zsrkbh'
,
serialname
:
'证书入库编号'
,
serialcode
:
'zsrk'
,
digit
:
'5'
},
rules
:
{
batchNo
:
[
{
required
:
true
,
message
:
'入库编号不能为空'
,
trigger
:
'blur'
}
],
djjg
:
[
{
required
:
true
,
message
:
'请选择登记机构'
,
trigger
:
'change'
}
],
rksj
:
[
{
required
:
true
,
message
:
'请选择入库时间'
,
trigger
:
'change'
}
//表格数据
tableForm
:
[
{
name
:
'不动产权证书'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
1
},
{
name
:
'不动产登记证明'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
2
}
],
},
}
},
mounted
()
{
if
(
this
.
formData
.
bsmBatch
)
{
this
.
tableForm
[
0
].
bs
=
null
;
this
.
tableForm
[
1
].
bs
=
null
;
this
.
getDetailInfo
(
this
.
formData
.
bsmBatch
);
}
else
{}
},
methods
:
{
//表单提交
/**
* @description: 表单提交
* @author: renchao
*/
submitForm
()
{
this
.
tableForm
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
bs
<
0
)
{
return
;
}
})
addQy
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
'保存成功'
)
this
.
$emit
(
"input"
,
false
);
this
.
$refs
[
'ruleForm'
].
resetFields
();
this
.
resetTableFields
();
this
.
closeDialog
();
this
.
$parent
.
queryClick
();
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
})
//证书入库业务号参数
ywhQueryForm
:
{
serialtype
:
'zsrkbh'
,
serialname
:
'证书入库编号'
,
serialcode
:
'zsrk'
,
digit
:
'5'
},
rules
:
{
batchNo
:
[
{
required
:
true
,
message
:
'入库编号不能为空'
,
trigger
:
'blur'
}
],
djjg
:
[
{
required
:
true
,
message
:
'请选择登记机构'
,
trigger
:
'change'
}
],
rksj
:
[
{
required
:
true
,
message
:
'请选择入库时间'
,
trigger
:
'change'
}
],
},
}
},
//获取详情信息
/**
* @description: 获取详情信息
* @param {*} bsmBatch
* @author: renchao
*/
getDetailInfo
(
bsmBatch
)
{
getZsglInfo
({
"bsmBatch"
:
bsmBatch
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
ruleForm
=
res
.
result
;
this
.
readOnly
=
false
;
this
.
tableForm
[
0
].
ksysxlh
=
res
.
result
.
zsstarno
;
this
.
tableForm
[
0
].
jsysxlh
=
res
.
result
.
zsendno
;
this
.
tableForm
[
0
].
bs
=
res
.
result
.
zsnum
;
this
.
tableForm
[
1
].
ksysxlh
=
res
.
result
.
zmstarno
;
this
.
tableForm
[
1
].
jsysxlh
=
res
.
result
.
zmendno
;
this
.
tableForm
[
1
].
bs
=
res
.
result
.
zmnum
;
}
})
mounted
()
{
if
(
this
.
formData
.
bsmBatch
)
{
this
.
tableForm
[
0
].
bs
=
null
;
this
.
tableForm
[
1
].
bs
=
null
;
this
.
getDetailInfo
(
this
.
formData
.
bsmBatch
);
}
else
{
}
},
//印刷序列号处理
/**
* @description: 印刷序列号处理
* @param {*} item
* @author: renchao
*/
ysxlhDeal
(
item
)
{
if
(
item
.
ksysxlh
&&
item
.
jsysxlh
)
{
if
(
item
.
ksysxlh
.
length
==
item
.
jsysxlh
.
length
)
{
if
(
item
.
ksysxlh
.
length
!=
11
)
{
item
.
bs
=
-
1
;
methods
:
{
/**
* @description: 表单提交
* @author: renchao
*/
submitForm
()
{
this
.
tableForm
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
bs
<
0
)
{
return
;
}
if
(
item
.
ksysxlh
>
item
.
jsysxlh
)
{
})
addQy
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
'保存成功'
)
this
.
$emit
(
"input"
,
false
);
this
.
$refs
[
'ruleForm'
].
resetFields
();
this
.
resetTableFields
();
this
.
closeDialog
();
//刷新列表
store
.
dispatch
(
'user/reWorkFresh'
,
true
)
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
})
},
/**
* @description: 获取详情信息
* @param {*} bsmBatch
* @author: renchao
*/
getDetailInfo
(
bsmBatch
)
{
getZsglInfo
({
"bsmBatch"
:
bsmBatch
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
ruleForm
=
res
.
result
;
this
.
readOnly
=
false
;
this
.
tableForm
[
0
].
ksysxlh
=
res
.
result
.
zsstarno
;
this
.
tableForm
[
0
].
jsysxlh
=
res
.
result
.
zsendno
;
this
.
tableForm
[
0
].
bs
=
res
.
result
.
zsnum
;
this
.
tableForm
[
1
].
ksysxlh
=
res
.
result
.
zmstarno
;
this
.
tableForm
[
1
].
jsysxlh
=
res
.
result
.
zmendno
;
this
.
tableForm
[
1
].
bs
=
res
.
result
.
zmnum
;
}
})
},
/**
* @description: 印刷序列号处理
* @param {*} item
* @author: renchao
*/
ysxlhDeal
(
item
)
{
if
(
item
.
ksysxlh
&&
item
.
jsysxlh
)
{
if
(
item
.
ksysxlh
.
length
==
item
.
jsysxlh
.
length
)
{
if
(
item
.
ksysxlh
.
length
!=
11
)
{
item
.
bs
=
-
1
;
return
;
}
if
(
item
.
ksysxlh
>
item
.
jsysxlh
)
{
item
.
bs
=
-
1
;
return
;
}
item
.
bs
=
item
.
jsysxlh
-
item
.
ksysxlh
+
1
;
if
(
item
.
zslx
==
1
)
{
this
.
ruleForm
.
zsstarno
=
item
.
ksysxlh
;
this
.
ruleForm
.
zsendno
=
item
.
jsysxlh
;
this
.
ruleForm
.
zsnum
=
item
.
bs
}
else
if
(
item
.
zslx
==
2
)
{
this
.
ruleForm
.
zmstarno
=
item
.
ksysxlh
;
this
.
ruleForm
.
zmendno
=
item
.
jsysxlh
;
this
.
ruleForm
.
zmnum
=
item
.
bs
}
}
else
{
item
.
bs
=
-
1
;
return
;
}
item
.
bs
=
item
.
jsysxlh
-
item
.
ksysxlh
+
1
;
}
else
{
item
.
bs
=
0
;
if
(
item
.
zslx
==
1
)
{
this
.
ruleForm
.
zsstarno
=
item
.
ksysxlh
;
this
.
ruleForm
.
zsendno
=
item
.
jsysxlh
;
this
.
ruleForm
.
zsstarno
=
''
;
this
.
ruleForm
.
zsendno
=
''
;
this
.
ruleForm
.
zsnum
=
item
.
bs
}
else
if
(
item
.
zslx
==
2
)
{
this
.
ruleForm
.
zmstarno
=
item
.
ksysxlh
;
this
.
ruleForm
.
zmendno
=
item
.
jsysxlh
;
this
.
ruleForm
.
zmstarno
=
''
;
this
.
ruleForm
.
zmendno
=
''
;
this
.
ruleForm
.
zmnum
=
item
.
bs
}
}
else
{
item
.
bs
=
-
1
;
}
}
else
{
item
.
bs
=
0
;
if
(
item
.
zslx
==
1
)
{
this
.
ruleForm
.
zsstarno
=
''
;
this
.
ruleForm
.
zsendno
=
''
;
this
.
ruleForm
.
zsnum
=
item
.
bs
}
else
if
(
item
.
zslx
==
2
)
{
this
.
ruleForm
.
zmstarno
=
''
;
this
.
ruleForm
.
zmendno
=
''
;
this
.
ruleForm
.
zmnum
=
item
.
bs
}
},
/**
* @description: resetTableFields
* @author: renchao
*/
resetTableFields
()
{
this
.
tableForm
=
[
{
name
:
'不动产权证书'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
1
},
{
name
:
'不动产权登记证明'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
2
}
]
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog
()
{
this
.
$popupCacel
()
this
.
$refs
[
'ruleForm'
].
resetFields
();
this
.
resetTableFields
();
}
},
/**
* @description: resetTableFields
* @author: renchao
*/
resetTableFields
()
{
this
.
tableForm
=
[
{
name
:
'不动产权证书'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
1
},
{
name
:
'不动产权登记证明'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
2
}
]
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog
()
{
this
.
$popupCacel
()
this
.
$refs
[
'ruleForm'
].
resetFields
();
this
.
resetTableFields
();
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/dialogBoxheader.scss"
;
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/dialogBoxheader.scss"
;
.font-red
{
color
:
red
}
.font-red
{
color
:
red
;
}
.middle-margin-bottom
{
margin-top
:
20px
}
.middle-margin-bottom
{
margin-top
:
20px
;
}
</
style
>
...
...
src/views/xxba/qyxxba/data.js
View file @
d053f9c
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-0
1 10:17:27
* @LastEditTime: 2023-09-0
6 16:10:25
*/
import
filter
from
'@/utils/filter.js'
let
vm
=
null
...
...
@@ -35,26 +35,8 @@ class data extends filter {
prop
:
"zjzl"
,
label
:
"证件种类"
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
select
class
=
"width100"
clearable
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onChange
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
}}
>
{
vm
.
dictData
[
"A30"
].
map
((
option
)
=>
{
return
(
<
el
-
option
label
=
{
option
.
dname
}
value
=
{
option
.
dcode
}
><
/el-option
>
);
})}
<
/el-select
>
);
},
return
<
span
>
{
this
.
dicStatus
(
scope
.
row
.
zjzl
,
"A30"
)}
<
/span
>
}
},
{
prop
:
"zjh"
,
...
...
@@ -79,7 +61,7 @@ class data extends filter {
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
button
type
=
"text"
onClick
=
{()
=>
{
this
.
handleDelete
(
scope
.
row
)
}}
>
删除
<
/el-button
>
<
el
-
button
type
=
"text"
onClick
=
{()
=>
{
vm
.
handleDelete
(
scope
.
row
)
}}
>
删除
<
/el-button
>
<
/div
>
)
}
...
...
src/views/xxba/qyxxba/index.vue
View file @
d053f9c
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-0
1 10:17:4
8
* @LastEditTime: 2023-09-0
6 16:08:0
8
-->
<
template
>
<div
class=
"from-clues"
>
...
...
@@ -30,7 +30,7 @@
</el-row>
</el-form>
</div>
<div
class=
"from-clues-content"
>
<div
class=
"from-clues-content
loadingtext
"
>
<lb-table
:page-size=
"pageData.size"
border
:current-page
.
sync=
"pageData.currentPage"
:heightNum=
"280"
:total=
"tableData.total"
@
size-change=
"handleSizeChange"
@
p-current-change=
"handleCurrentChange"
:column=
"tableData.columns"
:data=
"tableData.data"
>
...
...
@@ -39,6 +39,7 @@
</div>
</
template
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
table
from
"@/utils/mixin/table"
import
{
datas
,
sendThis
}
from
"./data"
import
{
queryQyByPage
,
addQy
}
from
"@/api/xxba.js"
;
...
...
@@ -53,6 +54,15 @@
this
.
queryClick
()
},
computed
:
{
...
mapGetters
([
'workFresh'
])
},
watch
:
{
workFresh
:
{
handler
(
newVal
,
oldVal
)
{
console
.
log
(
newVal
,
'newVal'
);
if
(
newVal
)
this
.
queryClick
()
}
}
},
data
()
{
return
{
...
...
@@ -60,10 +70,6 @@
qymc
:
""
,
zjh
:
""
,
},
pageData
:
{
current
:
1
,
size
:
10
,
},
tableData
:
{
total
:
0
,
columns
:
datas
.
columns
(),
...
...
@@ -77,11 +83,7 @@
*/
queryClick
()
{
this
.
$startLoading
();
let
pageForm
=
{
pageSize
:
this
.
pageData
.
size
,
pageNumber
:
this
.
pageData
.
current
}
let
data
=
{...
this
.
queryForm
,
...
pageForm
}
let
data
=
{
...
this
.
queryForm
,
...
this
.
pageData
}
queryQyByPage
(
data
).
then
((
res
)
=>
{
this
.
$endLoading
();
if
(
res
.
code
===
200
)
{
...
...
@@ -89,7 +91,7 @@
this
.
tableData
.
total
=
total
;
this
.
tableData
.
data
=
records
;
}
})
;
})
},
handleSearch
()
{
this
.
queryClick
();
...
...
@@ -97,7 +99,23 @@
handleAdd
()
{
this
.
$popupDialog
(
"添加企业"
,
"xxba/qyxxba/components/addDialog"
,
{},
"50%"
)
},
handleDelete
()
{
}
handleDelete
()
{
this
.
$confirm
(
'此操作将永久删除该文件, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消删除'
});
});
}
}
}
</
script
>
...
...
src/views/xxba/yhjgba/components/addDialog.vue
View file @
d053f9c
...
...
@@ -3,24 +3,24 @@
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"企业名称:"
prop=
"qymc"
>
<el-input
v-model=
"ruleForm.qymc"
></el-input>
<el-input
v-model=
"ruleForm.qymc"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"电话:"
prop=
"dh"
>
<el-input
v-model=
"ruleForm.dh"
></el-input>
<el-input
v-model=
"ruleForm.dh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"证件种类:"
>
<el-input
v-model=
"ruleForm.zjzl"
></el-input>
<el-input
v-model=
"ruleForm.zjzl"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"证件号:"
prop=
"zjh"
>
<el-input
v-model=
"ruleForm.zjh"
></el-input>
<el-input
v-model=
"ruleForm.zjh"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -28,28 +28,28 @@
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"法人名称:"
prop=
"frmc"
>
<el-input
v-model=
"ruleForm.frmc"
></el-input>
<el-input
v-model=
"ruleForm.frmc"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"法人电话:"
prop=
"frdh"
>
<el-input
v-model=
"ruleForm.frdh"
></el-input>
<el-input
v-model=
"ruleForm.frdh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位地址:"
>
<el-input
v-model=
"ruleForm.dwdz"
></el-input>
<el-input
v-model=
"ruleForm.dwdz"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"邮编:"
prop=
"yb"
>
<el-input
v-model=
"ruleForm.yb"
></el-input>
<el-input
v-model=
"ruleForm.yb"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item
>
<el-form-item
style=
"text-align:center"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
保存
</el-button>
<el-button
@
click=
"closeDialog"
>
取消
</el-button>
</el-form-item>
...
...
@@ -57,208 +57,206 @@
</
template
>
<
script
>
import
store
from
'@/store/index.js'
import
{
addYh
}
from
"@/api/xxba.js"
export
default
{
props
:
{
formData
:
{
type
:
Object
,
default
:
()
=>
{
},
},
},
data
()
{
return
{
DJJGLIST
:
store
.
getters
.
dictData
[
'ywly'
],
readOnly
:
false
,
//表单提交数据
ruleForm
:
{
batchno
:
''
,
djjg
:
''
,
operator
:
'超级管理员'
,
operationtime
:
''
,
bz
:
''
,
zsstarno
:
''
,
zsendno
:
''
,
zsnum
:
''
,
zmstarno
:
''
,
zmendno
:
''
,
zmnum
:
''
import
store
from
'@/store/index.js'
import
{
addYh
}
from
"@/api/xxba.js"
export
default
{
props
:
{
formData
:
{
type
:
Object
,
default
:
()
=>
{
},
},
//表格数据
tableForm
:
[
{
name
:
'不动产权证书'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
1
},
data
()
{
return
{
DJJGLIST
:
store
.
getters
.
dictData
[
'ywly'
],
readOnly
:
false
,
//表单提交数据
ruleForm
:
{
batchno
:
''
,
djjg
:
''
,
operator
:
'超级管理员'
,
operationtime
:
''
,
bz
:
''
,
zsstarno
:
''
,
zsendno
:
''
,
zsnum
:
''
,
zmstarno
:
''
,
zmendno
:
''
,
zmnum
:
''
},
{
name
:
'不动产登记证明'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
2
}
],
//证书入库业务号参数
ywhQueryForm
:
{
serialtype
:
'zsrkbh'
,
serialname
:
'证书入库编号'
,
serialcode
:
'zsrk'
,
digit
:
'5'
},
rules
:
{
batchNo
:
[
{
required
:
true
,
message
:
'入库编号不能为空'
,
trigger
:
'blur'
}
],
djjg
:
[
{
required
:
true
,
message
:
'请选择登记机构'
,
trigger
:
'change'
}
],
rksj
:
[
{
required
:
true
,
message
:
'请选择入库时间'
,
trigger
:
'change'
}
//表格数据
tableForm
:
[
{
name
:
'不动产权证书'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
1
},
{
name
:
'不动产登记证明'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
2
}
],
},
}
},
mounted
()
{
if
(
this
.
formData
.
bsmBatch
)
{
this
.
tableForm
[
0
].
bs
=
null
;
this
.
tableForm
[
1
].
bs
=
null
;
this
.
getDetailInfo
(
this
.
formData
.
bsmBatch
);
}
else
{}
},
methods
:
{
//表单提交
/**
* @description: 表单提交
* @author: renchao
*/
submitForm
()
{
this
.
tableForm
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
bs
<
0
)
{
return
;
}
})
addYh
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
'保存成功'
)
this
.
$emit
(
"input"
,
false
);
this
.
$refs
[
'ruleForm'
].
resetFields
();
this
.
resetTableFields
();
this
.
closeDialog
();
this
.
$parent
.
queryClick
();
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
})
//证书入库业务号参数
ywhQueryForm
:
{
serialtype
:
'zsrkbh'
,
serialname
:
'证书入库编号'
,
serialcode
:
'zsrk'
,
digit
:
'5'
},
rules
:
{
batchNo
:
[
{
required
:
true
,
message
:
'入库编号不能为空'
,
trigger
:
'blur'
}
],
djjg
:
[
{
required
:
true
,
message
:
'请选择登记机构'
,
trigger
:
'change'
}
],
rksj
:
[
{
required
:
true
,
message
:
'请选择入库时间'
,
trigger
:
'change'
}
],
},
}
},
//获取详情信息
/**
* @description: 获取详情信息
* @param {*} bsmBatch
* @author: renchao
*/
getDetailInfo
(
bsmBatch
)
{
getZsglInfo
({
"bsmBatch"
:
bsmBatch
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
ruleForm
=
res
.
result
;
this
.
readOnly
=
false
;
this
.
tableForm
[
0
].
ksysxlh
=
res
.
result
.
zsstarno
;
this
.
tableForm
[
0
].
jsysxlh
=
res
.
result
.
zsendno
;
this
.
tableForm
[
0
].
bs
=
res
.
result
.
zsnum
;
this
.
tableForm
[
1
].
ksysxlh
=
res
.
result
.
zmstarno
;
this
.
tableForm
[
1
].
jsysxlh
=
res
.
result
.
zmendno
;
this
.
tableForm
[
1
].
bs
=
res
.
result
.
zmnum
;
}
})
mounted
()
{
if
(
this
.
formData
.
bsmBatch
)
{
this
.
tableForm
[
0
].
bs
=
null
;
this
.
tableForm
[
1
].
bs
=
null
;
this
.
getDetailInfo
(
this
.
formData
.
bsmBatch
);
}
},
//印刷序列号处理
/**
* @description: 印刷序列号处理
* @param {*} item
* @author: renchao
*/
ysxlhDeal
(
item
)
{
if
(
item
.
ksysxlh
&&
item
.
jsysxlh
)
{
if
(
item
.
ksysxlh
.
length
==
item
.
jsysxlh
.
length
)
{
if
(
item
.
ksysxlh
.
length
!=
11
)
{
item
.
bs
=
-
1
;
methods
:
{
/**
* @description: 表单提交
* @author: renchao
*/
submitForm
()
{
this
.
tableForm
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
bs
<
0
)
{
return
;
}
if
(
item
.
ksysxlh
>
item
.
jsysxlh
)
{
})
addYh
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
'保存成功'
)
this
.
$emit
(
"input"
,
false
);
this
.
$refs
[
'ruleForm'
].
resetFields
();
this
.
resetTableFields
();
this
.
closeDialog
();
//刷新列表
store
.
dispatch
(
'user/reWorkFresh'
,
true
)
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
})
},
/**
* @description: 获取详情信息
* @param {*} bsmBatch
* @author: renchao
*/
getDetailInfo
(
bsmBatch
)
{
getZsglInfo
({
"bsmBatch"
:
bsmBatch
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
ruleForm
=
res
.
result
;
this
.
readOnly
=
false
;
this
.
tableForm
[
0
].
ksysxlh
=
res
.
result
.
zsstarno
;
this
.
tableForm
[
0
].
jsysxlh
=
res
.
result
.
zsendno
;
this
.
tableForm
[
0
].
bs
=
res
.
result
.
zsnum
;
this
.
tableForm
[
1
].
ksysxlh
=
res
.
result
.
zmstarno
;
this
.
tableForm
[
1
].
jsysxlh
=
res
.
result
.
zmendno
;
this
.
tableForm
[
1
].
bs
=
res
.
result
.
zmnum
;
}
})
},
/**
* @description: 印刷序列号处理
* @param {*} item
* @author: renchao
*/
ysxlhDeal
(
item
)
{
if
(
item
.
ksysxlh
&&
item
.
jsysxlh
)
{
if
(
item
.
ksysxlh
.
length
==
item
.
jsysxlh
.
length
)
{
if
(
item
.
ksysxlh
.
length
!=
11
)
{
item
.
bs
=
-
1
;
return
;
}
if
(
item
.
ksysxlh
>
item
.
jsysxlh
)
{
item
.
bs
=
-
1
;
return
;
}
item
.
bs
=
item
.
jsysxlh
-
item
.
ksysxlh
+
1
;
if
(
item
.
zslx
==
1
)
{
this
.
ruleForm
.
zsstarno
=
item
.
ksysxlh
;
this
.
ruleForm
.
zsendno
=
item
.
jsysxlh
;
this
.
ruleForm
.
zsnum
=
item
.
bs
}
else
if
(
item
.
zslx
==
2
)
{
this
.
ruleForm
.
zmstarno
=
item
.
ksysxlh
;
this
.
ruleForm
.
zmendno
=
item
.
jsysxlh
;
this
.
ruleForm
.
zmnum
=
item
.
bs
}
}
else
{
item
.
bs
=
-
1
;
return
;
}
item
.
bs
=
item
.
jsysxlh
-
item
.
ksysxlh
+
1
;
}
else
{
item
.
bs
=
0
;
if
(
item
.
zslx
==
1
)
{
this
.
ruleForm
.
zsstarno
=
item
.
ksysxlh
;
this
.
ruleForm
.
zsendno
=
item
.
jsysxlh
;
this
.
ruleForm
.
zsstarno
=
''
;
this
.
ruleForm
.
zsendno
=
''
;
this
.
ruleForm
.
zsnum
=
item
.
bs
}
else
if
(
item
.
zslx
==
2
)
{
this
.
ruleForm
.
zmstarno
=
item
.
ksysxlh
;
this
.
ruleForm
.
zmendno
=
item
.
jsysxlh
;
this
.
ruleForm
.
zmstarno
=
''
;
this
.
ruleForm
.
zmendno
=
''
;
this
.
ruleForm
.
zmnum
=
item
.
bs
}
}
else
{
item
.
bs
=
-
1
;
}
}
else
{
item
.
bs
=
0
;
if
(
item
.
zslx
==
1
)
{
this
.
ruleForm
.
zsstarno
=
''
;
this
.
ruleForm
.
zsendno
=
''
;
this
.
ruleForm
.
zsnum
=
item
.
bs
}
else
if
(
item
.
zslx
==
2
)
{
this
.
ruleForm
.
zmstarno
=
''
;
this
.
ruleForm
.
zmendno
=
''
;
this
.
ruleForm
.
zmnum
=
item
.
bs
}
},
/**
* @description: resetTableFields
* @author: renchao
*/
resetTableFields
()
{
this
.
tableForm
=
[
{
name
:
'不动产权证书'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
1
},
{
name
:
'不动产权登记证明'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
2
}
]
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog
()
{
this
.
$popupCacel
()
this
.
$refs
[
'ruleForm'
].
resetFields
();
this
.
resetTableFields
();
}
},
/**
* @description: resetTableFields
* @author: renchao
*/
resetTableFields
()
{
this
.
tableForm
=
[
{
name
:
'不动产权证书'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
1
},
{
name
:
'不动产权登记证明'
,
ksysxlh
:
''
,
jsysxlh
:
''
,
bs
:
0
,
zslx
:
2
}
]
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog
()
{
this
.
$popupCacel
()
this
.
$refs
[
'ruleForm'
].
resetFields
();
this
.
resetTableFields
();
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/dialogBoxheader.scss"
;
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/dialogBoxheader.scss"
;
.font-red
{
color
:
red
}
.font-red
{
color
:
red
;
}
.middle-margin-bottom
{
margin-top
:
20px
}
.middle-margin-bottom
{
margin-top
:
20px
;
}
</
style
>
...
...
src/views/xxba/yhjgba/data.js
View file @
d053f9c
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-0
1 10:17:27
* @LastEditTime: 2023-09-0
6 16:12:16
*/
import
filter
from
'@/utils/filter.js'
let
vm
=
null
...
...
@@ -35,26 +35,8 @@ class data extends filter {
prop
:
"zjzl"
,
label
:
"证件种类"
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
select
class
=
"width100"
clearable
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onChange
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
}}
>
{
vm
.
dictData
[
"A30"
].
map
((
option
)
=>
{
return
(
<
el
-
option
label
=
{
option
.
dname
}
value
=
{
option
.
dcode
}
><
/el-option
>
);
})}
<
/el-select
>
);
},
return
<
span
>
{
this
.
dicStatus
(
scope
.
row
.
zjzl
,
"A30"
)}
<
/span
>
}
},
{
prop
:
"zjh"
,
...
...
@@ -79,7 +61,7 @@ class data extends filter {
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
button
type
=
"text"
onClick
=
{()
=>
{
this
.
handleDelete
(
scope
.
row
)
}}
>
删除
<
/el-button
>
<
el
-
button
type
=
"text"
onClick
=
{()
=>
{
vm
.
handleDelete
(
scope
.
row
)
}}
>
删除
<
/el-button
>
<
/div
>
)
}
...
...
src/views/xxba/yhjgba/index.vue
View file @
d053f9c
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-0
1 10:17:48
* @LastEditTime: 2023-09-0
6 16:08:32
-->
<
template
>
<div
class=
"from-clues"
>
...
...
@@ -30,78 +30,96 @@
</el-row>
</el-form>
</div>
<div
class=
"from-clues-content"
>
<div
class=
"from-clues-content
loadingtext
"
>
<lb-table
:page-size=
"pageData.size"
border
:current-page
.
sync=
"pageData.currentPage"
:heightNum=
"280"
:total=
"tableData.total"
@
size-change=
"handleSizeChange"
@
p-current-change=
"handleCurrentChange"
:column=
"tableData.columns"
:data=
"tableData.data"
>
:total=
"tableData.total"
@
size-change=
"handleSizeChange"
@
p-current-change=
"handleCurrentChange"
:column=
"tableData.columns"
:data=
"tableData.data"
>
</lb-table>
</div>
</div>
</
template
>
<
script
>
import
table
from
"@/utils/mixin/table"
import
{
datas
,
sendThis
}
from
"./data"
import
{
queryYhByPage
,
addYh
}
from
"@/api/xxba.js"
;
export
default
{
name
:
"cwrz"
,
components
:
{},
mixins
:
[
table
],
mounted
()
{
sendThis
(
this
);
},
activated
()
{
this
.
queryClick
()
},
computed
:
{
},
data
()
{
return
{
queryForm
:
{
qymc
:
""
,
zjh
:
""
,
import
{
mapGetters
}
from
'vuex'
import
table
from
"@/utils/mixin/table"
import
{
datas
,
sendThis
}
from
"./data"
import
{
queryYhByPage
,
addYh
}
from
"@/api/xxba.js"
;
export
default
{
name
:
"cwrz"
,
components
:
{},
mixins
:
[
table
],
mounted
()
{
sendThis
(
this
);
},
activated
()
{
this
.
queryClick
()
},
computed
:
{
...
mapGetters
([
'workFresh'
])
},
watch
:
{
workFresh
:
{
handler
(
newVal
,
oldVal
)
{
console
.
log
(
newVal
,
'newVal'
);
if
(
newVal
)
this
.
queryClick
()
}
}
},
data
()
{
return
{
queryForm
:
{
qymc
:
""
,
zjh
:
""
,
},
tableData
:
{
total
:
0
,
columns
:
datas
.
columns
(),
data
:
[],
},
};
},
methods
:
{
/**
* @description: queryClick
*/
queryClick
()
{
this
.
$startLoading
();
let
data
=
{
...
this
.
queryForm
,
...
this
.
pageData
}
queryYhByPage
(
data
).
then
((
res
)
=>
{
this
.
$endLoading
();
if
(
res
.
code
===
200
)
{
let
{
total
,
records
}
=
res
.
result
;
this
.
tableData
.
total
=
total
;
this
.
tableData
.
data
=
records
;
}
});
},
pageData
:
{
current
:
1
,
size
:
10
,
handleSearch
()
{
this
.
queryClick
();
},
tableData
:
{
total
:
0
,
columns
:
datas
.
columns
(),
data
:
[],
handleAdd
()
{
this
.
$popupDialog
(
"添加企业"
,
"xxba/yhjgba/components/addDialog"
,
{},
"50%"
)
},
};
},
methods
:
{
/**
* @description: queryClick
*/
queryClick
()
{
this
.
$startLoading
();
let
pageForm
=
{
pageSize
:
this
.
pageData
.
size
,
pageNumber
:
this
.
pageData
.
current
handleDelete
()
{
this
.
$confirm
(
'此操作将永久删除该文件, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消删除'
});
});
}
let
data
=
{...
this
.
queryForm
,
...
pageForm
}
queryYhByPage
(
data
).
then
((
res
)
=>
{
this
.
$endLoading
();
if
(
res
.
code
===
200
)
{
let
{
total
,
records
}
=
res
.
result
;
this
.
tableData
.
total
=
total
;
this
.
tableData
.
data
=
records
;
}
});
},
handleSearch
()
{
this
.
queryClick
();
},
handleAdd
()
{
this
.
$popupDialog
(
"添加企业"
,
"xxba/yhjgba/components/addDialog"
,
{},
"50%"
)
},
handleDelete
()
{
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/public.scss"
;
@import
"~@/styles/public.scss"
;
</
style
>
...
...
Please
register
or
sign in
to post a comment