Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
910dabe6
Commit
910dabe6
authored
May 08, 2023
by
张超军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
美亚日志控制
parent
8eaf333d
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
1852 additions
and
1100 deletions
+1852
-1100
.prettierrc
+2
-1
src/utils/rem.js
+1
-1
src/views/AllPersonnelBase/modules/fcx.vue
+1
-0
src/views/AllPersonnelBase/modules/fcx1.vue
+1
-0
src/views/Editor/modules/rydaxx.vue
+350
-209
src/views/Home.vue
+1
-0
src/views/Home/Home.vue
+1
-0
src/views/cxyrd/LL.vue
+1
-0
src/views/cxyrd/LT.vue
+1
-0
src/views/cxyrd/TL.vue
+1
-0
src/views/cxyrd/TT.vue
+1
-0
src/views/drFPTX/Index.vue
+1
-0
src/views/login/modules/AccountsLogin.vue
+18
-14
src/views/rgrd/rgLL.vue
+1
-0
src/views/rgrd/rgLT.vue
+1
-0
src/views/rgrd/rgTL.vue
+1
-0
src/views/rgrd/rgTT.vue
+1
-0
src/views/zljc/jcxq.vue
+1
-0
src/views/zzwlr/xzry.vue
+835
-538
src/views/zzwlr/xzryedit.vue
+629
-334
vue.config.js
+3
-3
No files found.
.prettierrc
View file @
910dabe6
...
...
@@ -15,5 +15,5 @@
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": false,
"printWidth":
8
0
"printWidth":
12
0
}
\ No newline at end of file
src/utils/rem.js
View file @
910dabe6
...
...
@@ -9,7 +9,7 @@
const
baseSize
=
16
// 设置 rem 函数
function
setRem
()
{
console
.
log
(
document
.
documentElement
.
clientWidth
);
//
console.log(document.documentElement.clientWidth);
// 当前页面宽度相对于 1920宽的缩放比例,可根据自己需要修改。
const
scale
=
document
.
documentElement
.
clientWidth
/
1920
// 设置页面根节点字体大小(“Math.min(scale, 2)” 指最高放大比例为2,可根据实际业务需求调整)
...
...
src/views/AllPersonnelBase/modules/fcx.vue
View file @
910dabe6
...
...
@@ -620,6 +620,7 @@ export default {
* @return {*}
*/
sendLog
()
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/AllPersonnelBase/modules/fcx1.vue
View file @
910dabe6
...
...
@@ -599,6 +599,7 @@ export default {
* @return {*}
*/
sendLog
()
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/Editor/modules/rydaxx.vue
View file @
910dabe6
<
template
>
<el-drawer
size=
"50%"
class=
"rydaxx-drawer"
:modal=
"false"
@
close=
"closeDrawer"
:append-to-body=
"true"
:modal-append-to-body=
"false"
:visible
.
sync=
"drawer"
:with-header=
"false"
>
<el-drawer
size=
"50%"
class=
"rydaxx-drawer"
:modal=
"false"
@
close=
"closeDrawer"
:append-to-body=
"true"
:modal-append-to-body=
"false"
:visible
.
sync=
"drawer"
:with-header=
"false"
>
<div
class=
"header"
>
<div
class=
"header-title"
>
人员档案信息
</div>
<div
class=
"header-close"
@
click=
"closeDrawer"
>
...
...
@@ -9,7 +18,15 @@
</div>
</div>
<div
class=
"content drawer-content"
>
<el-form
:model=
"ruleForm"
label-position=
"left"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"10.125rem"
class=
"demo-ruleForm"
:status-icon=
"true"
>
<el-form
:model=
"ruleForm"
label-position=
"left"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"10.125rem"
class=
"demo-ruleForm"
:status-icon=
"true"
>
<div
class=
"ayzzwjbxx"
>
<div
class=
"title"
>
<div
class=
"line"
></div>
...
...
@@ -18,24 +35,54 @@
<div
class=
"ayzzwjbxx-items"
>
<div
class=
"ayzzwjbxx-item"
>
<el-form-item
label=
"人员编号:"
prop=
"rybh"
>
<el-input
placeholder=
"请输入人员编号"
v-model=
"ruleForm.rybh"
maxlength=
"23"
show-word-limit
disabled
></el-input>
<el-input
placeholder=
"请输入人员编号"
v-model=
"ruleForm.rybh"
maxlength=
"23"
show-word-limit
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"警综人员编号:"
prop=
"jzrybh"
>
<el-input
placeholder=
"请输入警综人员编号"
v-model=
"ruleForm.jzrybh"
maxlength=
"23"
show-word-limit
></el-input>
<el-input
placeholder=
"请输入警综人员编号"
v-model=
"ruleForm.jzrybh"
maxlength=
"23"
show-word-limit
></el-input>
</el-form-item>
</div>
<div
class=
"ayzzwjbxx-item"
>
<el-form-item
label=
"采集信息原因:"
prop=
"cjxxyydm"
>
<SelectCode
codeUrl=
"/api/code/cjxxyydm"
width=
"16.5"
:clearable=
"true"
:form=
"ruleForm"
id=
"cjxxyydm"
ref=
"cjxxyydm"
multiple
:multipleLimit=
"5"
></SelectCode>
<SelectCode
codeUrl=
"/api/code/cjxxyydm"
width=
"16.5"
:clearable=
"true"
:form=
"ruleForm"
id=
"cjxxyydm"
ref=
"cjxxyydm"
multiple
:multipleLimit=
"5"
></SelectCode>
</el-form-item>
<el-form-item
label=
"指掌纹卡编号:"
prop=
"zzhwkbh"
>
<el-input
placeholder=
"请输入指掌纹卡编号"
v-model=
"ruleForm.zzhwkbh"
maxlength=
"23"
show-word-limit
></el-input>
<el-input
placeholder=
"请输入指掌纹卡编号"
v-model=
"ruleForm.zzhwkbh"
maxlength=
"23"
show-word-limit
></el-input>
</el-form-item>
</div>
<div
class=
"ayzzwjbxx-item"
>
<div></div>
<el-form-item
label=
"案事件相关人员编号:"
prop=
"asjxgrybh"
>
<el-input
placeholder=
"请输入案事件相关人员编号"
v-model=
"ruleForm.asjxgrybh"
maxlength=
"23"
show-word-limit
></el-input>
<el-input
placeholder=
"请输入案事件相关人员编号"
v-model=
"ruleForm.asjxgrybh"
maxlength=
"23"
show-word-limit
></el-input>
</el-form-item>
</div>
</div>
...
...
@@ -50,33 +97,86 @@
<el-input
placeholder=
"请输入姓名"
v-model=
"ruleForm.xm"
maxlength=
"50"
show-word-limit
></el-input>
</el-form-item>
<el-form-item
label=
"别名/绰号:"
prop=
"bmch"
>
<el-input
placeholder=
"请输入别名/绰号"
v-model=
"ruleForm.bmch"
maxlength=
"50"
show-word-limit
></el-input>
<el-input
placeholder=
"请输入别名/绰号"
v-model=
"ruleForm.bmch"
maxlength=
"50"
show-word-limit
></el-input>
</el-form-item>
</div>
<div
class=
"ayzzwjbxx-item"
>
<el-form-item
class=
"no_require"
label=
"身高(cm):"
prop=
"height"
>
<el-input
v-model
.
trim=
"ruleForm.height"
placeholder=
"请输入身高"
clearable
>
</el-input>
</el-form-item>
<el-form-item
class=
"no_require"
label=
"体重(kg):"
prop=
"weight"
>
<el-input
v-model
.
trim=
"ruleForm.weight"
placeholder=
"请输入体重"
clearable
>
</el-input>
</el-form-item>
</div>
<div
class=
"ayzzwjbxx-item"
>
<el-form-item
label=
"性别:"
prop=
"xbdm"
>
<SelectCode
ref=
"xbdm"
codeUrl=
"/api/code/sex"
width=
"16.5"
:clearable=
"true"
:multiple=
"false"
:form=
"ruleForm"
id=
"xbdm"
></SelectCode>
<SelectCode
ref=
"xbdm"
codeUrl=
"/api/code/sex"
width=
"16.5"
:clearable=
"true"
:multiple=
"false"
:form=
"ruleForm"
id=
"xbdm"
></SelectCode>
</el-form-item>
<el-form-item
label=
"出生日期:"
prop=
"csrq"
>
<el-date-picker
ref=
"csrq"
type=
"date"
placeholder=
"请输入出生日期"
v-model=
"ruleForm.csrq"
:picker-options=
"
{
disabledDate: disabledDate,
}">
</el-date-picker>
<el-date-picker
ref=
"csrq"
type=
"date"
placeholder=
"请输入出生日期"
v-model=
"ruleForm.csrq"
:picker-options=
"
{
disabledDate: disabledDate,
}"
>
</el-date-picker>
</el-form-item>
</div>
<div
class=
"ayzzwjbxx-item"
>
<el-form-item
label=
"国籍:"
prop=
"gjdm"
>
<SelectCode
codeUrl=
"/api/code/nationality"
width=
"16.5"
:clearable=
"true"
:multiple=
"false"
:form=
"ruleForm"
id=
"gjdm"
></SelectCode>
<SelectCode
codeUrl=
"/api/code/nationality"
width=
"16.5"
:clearable=
"true"
:multiple=
"false"
:form=
"ruleForm"
id=
"gjdm"
></SelectCode>
</el-form-item>
<el-form-item
label=
"民族:"
prop=
"mzdm"
>
<SelectCode
codeUrl=
"/api/code/nation"
width=
"16.5"
:clearable=
"true"
:multiple=
"false"
:form=
"ruleForm"
id=
"mzdm"
></SelectCode>
<SelectCode
codeUrl=
"/api/code/nation"
width=
"16.5"
:clearable=
"true"
:multiple=
"false"
:form=
"ruleForm"
id=
"mzdm"
></SelectCode>
</el-form-item>
</div>
<div
class=
"ayzzwjbxx-item"
>
<el-form-item
label=
"证件类型:"
prop=
"cyzjdm"
class=
"select"
>
<SelectCode
codeUrl=
"/api/code/certificates"
width=
"16.5"
:clearable=
"true"
:multiple=
"false"
:form=
"ruleForm"
id=
"cyzjdm"
></SelectCode>
<SelectCode
codeUrl=
"/api/code/certificates"
width=
"16.5"
:clearable=
"true"
:multiple=
"false"
:form=
"ruleForm"
id=
"cyzjdm"
></SelectCode>
</el-form-item>
<el-form-item
label=
"证件号码:"
prop=
"zjhm"
class=
"input2"
>
<el-input
placeholder=
"请输入证件号码"
v-model=
"ruleForm.zjhm"
maxlength=
"30"
show-word-limit
></el-input>
<el-input
placeholder=
"请输入证件号码"
v-model=
"ruleForm.zjhm"
maxlength=
"30"
show-word-limit
></el-input>
</el-form-item>
</div>
<div
class=
"ayzzwjbxx-item"
>
...
...
@@ -92,7 +192,12 @@
></SelectCode>
-->
</el-form-item>
<el-form-item
label=
"户籍地址:"
prop=
"hjdzDzmc"
class=
"input2"
>
<el-input
placeholder=
"请输入户籍地址"
v-model=
"ruleForm.hjdzDzmc"
maxlength=
"100"
show-word-limit
></el-input>
<el-input
placeholder=
"请输入户籍地址"
v-model=
"ruleForm.hjdzDzmc"
maxlength=
"100"
show-word-limit
></el-input>
</el-form-item>
</div>
<div
class=
"ayzzwjbxx-item"
>
...
...
@@ -108,12 +213,24 @@
></SelectCode>
-->
</el-form-item>
<el-form-item
label=
"现地址:"
prop=
"xzzDzmc"
class=
"input2"
>
<el-input
placeholder=
"请输入现住址"
v-model=
"ruleForm.xzzDzmc"
maxlength=
"100"
show-word-limit
></el-input>
<el-input
placeholder=
"请输入现住址"
v-model=
"ruleForm.xzzDzmc"
maxlength=
"100"
show-word-limit
></el-input>
</el-form-item>
</div>
<div
class=
"ayzzwjbxx-item ayzzwjbxx-item2"
>
<el-form-item
label=
"备注信息:"
prop=
"bz"
class=
"input3"
>
<el-input
type=
"textarea"
:rows=
"2"
placeholder=
"请输入备注信息"
v-model=
"ruleForm.bz"
maxlength=
"1024"
show-word-limit
></el-input>
<el-input
type=
"textarea"
:rows=
"2"
placeholder=
"请输入备注信息"
v-model=
"ruleForm.bz"
maxlength=
"1024"
show-word-limit
></el-input>
</el-form-item>
</div>
</div>
...
...
@@ -128,7 +245,9 @@
<div
class=
"ryljfk"
>
<el-form-item
prop=
"logicdbtype2"
class=
"fk"
>
<el-checkbox-group
v-model=
"ruleForm.logicdbtype2"
>
<el-checkbox
v-for=
"(value,key) in ryljfkArr"
:key=
"key"
:label=
"value.code"
>
{{
value
.
name
}}
</el-checkbox>
<el-checkbox
v-for=
"(value, key) in ryljfkArr"
:key=
"key"
:label=
"value.code"
>
{{
value
.
name
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
</div>
...
...
@@ -144,23 +263,43 @@
<Cascader
ref=
"cascader"
:form=
"ruleForm"
id=
"nydwGajgjgdm"
name=
"nydwGajgmc"
:props=
"props"
></Cascader>
</el-form-item>
<el-form-item
label=
"捺印人姓名:"
prop=
"nyryXm"
>
<el-input
placeholder=
"请输入捺印人姓名"
v-model=
"ruleForm.nyryXm"
maxlength=
"50"
show-word-limit
></el-input>
<el-input
placeholder=
"请输入捺印人姓名"
v-model=
"ruleForm.nyryXm"
maxlength=
"50"
show-word-limit
></el-input>
</el-form-item>
</div>
<div
class=
"ayzzwjbxx-item"
>
<el-form-item
label=
"捺印日期:"
prop=
"nysj"
>
<el-date-picker
type=
"date"
placeholder=
"请输入捺印日期"
v-model=
"ruleForm.nysj"
:picker-options=
"
{
disabledDate: disabledDate,
}">
</el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"请输入捺印日期"
v-model=
"ruleForm.nysj"
:picker-options=
"
{
disabledDate: disabledDate,
}"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"捺印人身份证号:"
prop=
"nyryGmsfhm"
>
<el-input
placeholder=
"请输入捺印人身份证号"
v-model=
"ruleForm.nyryGmsfhm"
maxlength=
"18"
show-word-limit
></el-input>
<el-input
placeholder=
"请输入捺印人身份证号"
v-model=
"ruleForm.nyryGmsfhm"
maxlength=
"18"
show-word-limit
></el-input>
</el-form-item>
</div>
<div
class=
"ayzzwjbxx-item"
>
<div></div>
<el-form-item
label=
"捺印人联系电话:"
prop=
"nyryLxdh"
>
<el-input
placeholder=
"请输入捺印人联系电话"
v-model=
"ruleForm.nyryLxdh"
maxlength=
"18"
show-word-limit
></el-input>
<el-input
placeholder=
"请输入捺印人联系电话"
v-model=
"ruleForm.nyryLxdh"
maxlength=
"18"
show-word-limit
></el-input>
</el-form-item>
</div>
</div>
...
...
@@ -215,7 +354,7 @@
</el-form>
</div>
<div
class=
"arrow-down"
@
click=
"goBottom"
>
<img
class=
"arrow-down-img"
src=
"@/assets/img/jiantou.gif"
alt=
""
>
<img
class=
"arrow-down-img"
src=
"@/assets/img/jiantou.gif"
alt=
""
/
>
</div>
<!-- 导出FPTX弹窗 -->
<dcftpx
:isShowDcftpx=
"isShowDcftpx"
:rowData=
"rowData"
@
closeDcftpx=
"closeDcftpx"
></dcftpx>
...
...
@@ -223,14 +362,14 @@
</
template
>
<
script
>
import
SelectCode
from
"../../../components/SelectCode.vue"
;
import
Cascader
from
"@/components/Cascader.vue"
;
import
{
mapState
}
from
"vuex"
;
import
dcftpx
from
"../../AllPersonnelBase/modules/dcftpx.vue"
;
import
SelectCode
from
'../../../components/SelectCode.vue'
import
Cascader
from
'@/components/Cascader.vue'
import
{
mapState
}
from
'vuex'
import
dcftpx
from
'../../AllPersonnelBase/modules/dcftpx.vue'
export
default
{
name
:
"rydaxx"
,
data
()
{
name
:
'rydaxx'
,
data
()
{
return
{
barcode
:
''
,
isShowDcftpx
:
false
,
// 导出FPTX
...
...
@@ -239,9 +378,9 @@ export default {
drawer
:
false
,
ryljfkArr
:
this
.
$store
.
state
.
ljk
.
targetOptions_ry
,
props
:
{
value
:
"code"
,
label
:
"key"
,
children
:
"childCodeDwXz"
,
value
:
'code'
,
label
:
'key'
,
children
:
'childCodeDwXz'
,
checkStrictly
:
true
,
emitPath
:
false
,
},
...
...
@@ -254,6 +393,8 @@ export default {
cjxxyydm
:
[],
xm
:
''
,
bmch
:
''
,
height
:
''
,
// 身高
weight
:
''
,
// 体重
xbdm
:
''
,
csrq
:
''
,
gjdm
:
''
,
...
...
@@ -274,88 +415,78 @@ export default {
nyryGmsfhm
:
''
,
nyryLxdh
:
''
,
ysxtAsjxgrybh
:
''
,
// 日志需要
ysxtAsjxgrybh
:
''
,
// 日志需要
},
rules
:
{
rybh
:
[
{
min
:
23
,
max
:
23
,
message
:
'编号长度有误!'
,
trigger
:
'change'
},
{
required
:
true
,
message
:
'请输入人员编号!'
,
trigger
:
'blur'
},
],
cjxxyydm
:
[
{
required
:
true
,
message
:
'请选择采集原因!'
,
trigger
:
'change'
}
],
xm
:
[
{
required
:
true
,
message
:
'请输入姓名!'
,
trigger
:
'blur'
}
],
xbdm
:
[
{
required
:
true
,
message
:
'请选择性别!'
,
trigger
:
'change'
}
],
csrq
:
[
{
required
:
true
,
message
:
'请选择出生日期!'
,
trigger
:
'change'
}
],
gjdm
:
[
{
required
:
true
,
message
:
'请选择国籍!'
,
trigger
:
'change'
}
],
mzdm
:
[
{
required
:
true
,
message
:
'请选择民族类型!'
,
trigger
:
'change'
}
],
cyzjdm
:
[
{
required
:
true
,
message
:
'请选择证件类型!'
,
trigger
:
'change'
}
],
zjhm
:
[
{
required
:
true
,
message
:
'请输入证件号码!'
,
trigger
:
'blur'
}
],
hjdzXzqhdm
:
[
{
required
:
true
,
message
:
'请输入户籍地行政区!'
,
trigger
:
'change'
}
],
hjdzDzmc
:
[
{
required
:
true
,
message
:
'请输入户籍地址!'
,
trigger
:
'blur'
}
],
xzzXzqhdm
:
[
{
required
:
true
,
message
:
'请输入现住址行政区!'
,
trigger
:
'change'
}
],
xzzDzmc
:
[
{
required
:
true
,
message
:
'请输入现住址!'
,
trigger
:
'blur'
}
],
nydwGajgjgdm
:
[
{
required
:
true
,
message
:
'请输入捺印单位名称!'
,
trigger
:
'blur'
}
],
nyryXm
:
[
{
required
:
true
,
message
:
'请输入捺印人姓名!'
,
trigger
:
'blur'
}
],
nysj
:
[
{
required
:
true
,
message
:
'请输入捺印日期!'
,
trigger
:
'change'
}
],
cjxxyydm
:
[{
required
:
true
,
message
:
'请选择采集原因!'
,
trigger
:
'change'
}],
xm
:
[{
required
:
true
,
message
:
'请输入姓名!'
,
trigger
:
'blur'
}],
xbdm
:
[{
required
:
true
,
message
:
'请选择性别!'
,
trigger
:
'change'
}],
csrq
:
[{
required
:
true
,
message
:
'请选择出生日期!'
,
trigger
:
'change'
}],
gjdm
:
[{
required
:
true
,
message
:
'请选择国籍!'
,
trigger
:
'change'
}],
mzdm
:
[{
required
:
true
,
message
:
'请选择民族类型!'
,
trigger
:
'change'
}],
cyzjdm
:
[{
required
:
true
,
message
:
'请选择证件类型!'
,
trigger
:
'change'
}],
zjhm
:
[{
required
:
true
,
message
:
'请输入证件号码!'
,
trigger
:
'blur'
}],
hjdzXzqhdm
:
[{
required
:
true
,
message
:
'请输入户籍地行政区!'
,
trigger
:
'change'
}],
hjdzDzmc
:
[{
required
:
true
,
message
:
'请输入户籍地址!'
,
trigger
:
'blur'
}],
xzzXzqhdm
:
[{
required
:
true
,
message
:
'请输入现住址行政区!'
,
trigger
:
'change'
}],
xzzDzmc
:
[{
required
:
true
,
message
:
'请输入现住址!'
,
trigger
:
'blur'
}],
nydwGajgjgdm
:
[{
required
:
true
,
message
:
'请输入捺印单位名称!'
,
trigger
:
'blur'
}],
nyryXm
:
[{
required
:
true
,
message
:
'请输入捺印人姓名!'
,
trigger
:
'blur'
}],
nysj
:
[{
required
:
true
,
message
:
'请输入捺印日期!'
,
trigger
:
'change'
}],
nyryGmsfhm
:
[
{
required
:
true
,
message
:
'请输入捺印人身份证号!'
,
trigger
:
'blur'
},
{
pattern
:
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
,
message
:
'证件号码格式有误!'
,
trigger
:
'blur'
}
trigger
:
'blur'
,
},
],
height
:
[
{
pattern
:
/^
[
0-9
]
+
([
.
]{1}[
0-9
]
+
){0,1}
$/
,
message
:
'请输入正确的身高'
,
trigger
:
'blur'
,
},
],
weight
:
[
{
pattern
:
/^
[
0-9
]
+
([
.
]{1}[
0-9
]
+
){0,1}
$/
,
message
:
'请输入正确的体重'
,
trigger
:
'blur'
,
},
],
},
tableData
:
[{
czr
:
'系统管理员'
,
czrq
:
'2021.12.10. 23:59:59'
,
czsj
:
'编辑档案信息'
},
{
czr
:
'系统管理员'
,
czrq
:
'2021.12.10. 23:59:59'
,
czsj
:
'编辑档案信息'
},
{
czr
:
'系统管理员'
,
czrq
:
'2021.12.10. 23:59:59'
,
czsj
:
'编辑档案信息'
},
{
czr
:
'系统管理员'
,
czrq
:
'2021.12.10. 23:59:59'
,
czsj
:
'编辑档案信息'
},
{
czr
:
'系统管理员'
,
czrq
:
'2021.12.10. 23:59:59'
,
czsj
:
'编辑档案信息'
}],
tableData
:
[
{
czr
:
'系统管理员'
,
czrq
:
'2021.12.10. 23:59:59'
,
czsj
:
'编辑档案信息'
,
},
{
czr
:
'系统管理员'
,
czrq
:
'2021.12.10. 23:59:59'
,
czsj
:
'编辑档案信息'
,
},
{
czr
:
'系统管理员'
,
czrq
:
'2021.12.10. 23:59:59'
,
czsj
:
'编辑档案信息'
,
},
{
czr
:
'系统管理员'
,
czrq
:
'2021.12.10. 23:59:59'
,
czsj
:
'编辑档案信息'
,
},
{
czr
:
'系统管理员'
,
czrq
:
'2021.12.10. 23:59:59'
,
czsj
:
'编辑档案信息'
,
},
],
rowData
:
[],
// 请求档案信息
reqParam
:
{
...
...
@@ -363,40 +494,40 @@ export default {
page
:
{
total
:
0
,
//表格条数
pageSize
:
10
,
//当前选择要显示的条数
currPage
:
1
// 当前在第几页
currPage
:
1
,
// 当前在第几页
},
personStoreCustomSearch
:
{
ysxtAsjxgrybh
:
""
,
// 搜索框内容
ysxtAsjxgrybh
:
''
,
// 搜索框内容
searchOptions
:
3
,
// 默认搜索方式
checkboxQuery
:
[]
//滚动平面等筛选条件
}
checkboxQuery
:
[]
,
//滚动平面等筛选条件
}
,
},
ryInfo
:
{}
}
;
ryInfo
:
{}
,
}
},
computed
:
{
...
mapState
({
// ryInfo: state => state.rydaxx.ryInfo,
})
})
,
},
created
()
{
let
self
=
this
;
let
w1
=
1920
;
let
w2
=
window
.
innerWidth
;
created
()
{
let
self
=
this
let
w1
=
1920
let
w2
=
window
.
innerWidth
this
.
width1
=
(
this
.
width1
*
w2
)
/
w1
;
this
.
width1
=
(
this
.
width1
*
w2
)
/
w1
// 打开侧边抽屉
this
.
$bus
.
on
(
"openRyDaxx"
,
(
obj
)
=>
{
this
.
$bus
.
on
(
'openRyDaxx'
,
(
obj
)
=>
{
let
flag
=
obj
.
flag
self
.
barcode
=
obj
.
barcode
self
.
reqParam
.
personStoreCustomSearch
.
ysxtAsjxgrybh
=
self
.
barcode
self
.
getRyinfo
()
self
.
drawer
=
flag
;
self
.
drawer
=
flag
// 开启毛玻璃
self
.
$bus
.
emit
(
'isBlur'
,
true
)
})
;
})
this
.
$bus
.
on
(
'closeRydaxx'
,
()
=>
{
self
.
closeDrawer
()
...
...
@@ -406,82 +537,78 @@ export default {
//console.log(this.ryInfo);
// this.initData()
},
mounted
()
{
},
mounted
()
{},
methods
:
{
/**
* @description:
* @param {*}
* @return {*}
*/
getRyinfo
()
{
getRyinfo
()
{
let
self
=
this
this
.
$axios
.
post
(
"/api/personstore/person/list"
,
this
.
reqParam
)
.
then
(
response
=>
{
if
(
response
.
data
.
code
===
0
)
{
// console.log(response);
self
.
ryInfo
=
response
.
data
.
ret
.
list
[
0
]
self
.
initData
()
}
else
{
self
.
$message
.
error
(
response
.
data
.
message
);
}
});
this
.
$axios
.
post
(
'/api/personstore/person/list'
,
this
.
reqParam
).
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
0
)
{
// console.log(response);
self
.
ryInfo
=
response
.
data
.
ret
.
list
[
0
]
self
.
initData
()
}
else
{
self
.
$message
.
error
(
response
.
data
.
message
)
}
})
},
/**
* @description: 页面滚动,导航切换显示
* @param {*}
* @return {*}
*/
windowScroll
()
{
console
.
log
(
111
)
;
let
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
windowScroll
()
{
console
.
log
(
111
)
let
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
// let dom = document.querySelector(".dom").offsetTop;
console
.
log
(
scrollTop
)
;
console
.
log
(
scrollTop
)
},
disabledDate
(
a
)
{
disabledDate
(
a
)
{
if
(
a
.
getTime
()
>
new
Date
().
getTime
())
{
return
true
;
return
true
}
else
{
return
false
;
return
false
}
},
/**
* 关闭FPTX
* @param val
*/
closeDcftpx
(
val
)
{
closeDcftpx
(
val
)
{
this
.
$bus
.
emit
(
'isBlur'
,
val
)
this
.
isShowDcftpx
=
val
;
this
.
isShowDcftpx
=
val
},
/**
* 导出FPTX
*/
isShowDcftpxBtn
()
{
this
.
rowData
=
[
this
.
ryInfo
]
;
this
.
isShowDcftpx
=
true
;
isShowDcftpxBtn
()
{
this
.
rowData
=
[
this
.
ryInfo
]
this
.
isShowDcftpx
=
true
},
/**
* 跳到最底部
*/
goBottom
()
{
goBottom
()
{
let
rydaxxDrawer
=
document
.
querySelector
(
'.drawer-content'
)
// 判断上移还是下移
if
(
this
.
arrow
==
'top'
)
{
rydaxxDrawer
.
scrollIntoView
({
block
:
"start"
});
$
(
'.arrow-down-img'
).
css
(
'transform'
,
'rotate(0deg)'
)
;
rydaxxDrawer
.
scrollIntoView
({
block
:
'start'
})
$
(
'.arrow-down-img'
).
css
(
'transform'
,
'rotate(0deg)'
)
this
.
arrow
=
'bottom'
}
else
{
rydaxxDrawer
.
scrollIntoView
({
block
:
"end"
});
$
(
'.arrow-down-img'
).
css
(
'transform'
,
'rotate(180deg)'
)
;
rydaxxDrawer
.
scrollIntoView
({
block
:
'end'
})
$
(
'.arrow-down-img'
).
css
(
'transform'
,
'rotate(180deg)'
)
this
.
arrow
=
'top'
}
},
/**
* 初始化数据
*/
initData
()
{
initData
()
{
// 赋值
this
.
ruleForm
.
id
=
this
.
ryInfo
.
id
this
.
ruleForm
.
rybh
=
this
.
ryInfo
.
ysxtAsjxgrybh
...
...
@@ -495,6 +622,8 @@ export default {
this
.
ruleForm
.
asjxgrybh
=
this
.
ryInfo
.
asjxgrybh
this
.
ruleForm
.
xm
=
this
.
ryInfo
.
xm
this
.
ruleForm
.
bmch
=
this
.
ryInfo
.
bmch
this
.
ruleForm
.
height
=
this
.
ryInfo
.
height
this
.
ruleForm
.
weight
=
this
.
ryInfo
.
weight
this
.
ruleForm
.
xbdm
=
this
.
ryInfo
.
xbdm
this
.
ruleForm
.
csrq
=
this
.
ryInfo
.
csrq
this
.
ruleForm
.
gjdm
=
this
.
ryInfo
.
gjdm
...
...
@@ -526,7 +655,7 @@ export default {
/**
* 关闭抽屉
*/
closeDrawer
()
{
closeDrawer
()
{
this
.
drawer
=
false
// 关闭毛玻璃
this
.
$bus
.
emit
(
'isBlur'
,
false
)
...
...
@@ -538,30 +667,38 @@ export default {
* 提交表单
* @param formName
*/
submitForm
(
formName
)
{
submitForm
(
formName
)
{
let
self
=
this
console
.
log
(
self
.
ruleForm
)
;
console
.
log
(
self
.
ruleForm
)
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
logicList
=
this
.
ruleForm
.
logicdbtype2
.
map
(
Number
)
let
cjxxyyList
=
this
.
ruleForm
.
cjxxyydm
this
.
ruleForm
.
height
=
Number
(
this
.
ruleForm
.
height
)
this
.
ruleForm
.
weight
=
Number
(
this
.
ruleForm
.
weight
)
delete
this
.
ruleForm
.
cjxxyydm
self
.
$axios
({
method
:
'post'
,
headers
:
{
"Content-Type"
:
"application/json;charset=UTF-8"
},
url
:
'/api/personstore/person/file'
,
data
:
JSON
.
stringify
({
personDo
:
self
.
ruleForm
,
logicList
:
logicList
,
cjxxyyList
:
cjxxyyList
})
}).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
self
.
$message
.
success
(
'保存成功!'
)
// 清除全部案件库缓存
self
.
$store
.
commit
(
'layout/delcachePageName'
,
'AllPersonnelBase'
)
}
else
{
self
.
$message
.
error
(
'保存失败!'
)
}
})
self
.
$axios
({
method
:
'post'
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
,
},
url
:
'/api/personstore/person/file'
,
data
:
JSON
.
stringify
({
personDo
:
self
.
ruleForm
,
logicList
:
logicList
,
cjxxyyList
:
cjxxyyList
,
}),
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
0
)
{
self
.
$message
.
success
(
'保存成功!'
)
// 清除全部案件库缓存
self
.
$store
.
commit
(
'layout/delcachePageName'
,
'AllPersonnelBase'
)
}
else
{
self
.
$message
.
error
(
'保存失败!'
)
}
})
self
.
$bus
.
emit
(
'isBlur'
,
false
)
self
.
drawer
=
false
}
else
{
...
...
@@ -575,65 +712,69 @@ export default {
behavior
:
'smooth'
,
})
})
return
false
;
return
false
}
})
;
})
},
/**
* 重置表单
* @param formName
*/
resetForm
(
formName
)
{
resetForm
(
formName
)
{
// this.$refs[formName].resetFields();
// this.closeDrawer()
}
}
,
},
beforeDestroy
()
{
beforeDestroy
()
{
//组件销毁前需要解绑事件。否则会出现重复触发事件的问题
this
.
$bus
.
off
(
'openRyDaxx'
)
},
destroyed
()
{
window
.
removeEventListener
(
"scroll"
,
this
.
windowScroll
);
//销毁滚动事件
destroyed
()
{
window
.
removeEventListener
(
'scroll'
,
this
.
windowScroll
)
//销毁滚动事件
},
components
:
{
SelectCode
,
Cascader
,
dcftpx
dcftpx
,
},
watch
:
{
drawer
(
newValue
,
oldValue
)
{
drawer
(
newValue
,
oldValue
)
{
let
self
=
this
if
(
newValue
)
{
//监听页面滚动
this
.
$nextTick
(()
=>
{
document
.
querySelector
(
'.el-drawer__body'
).
addEventListener
(
"scroll"
,
(
e
)
=>
{
if
(
e
.
target
.
scrollTop
>
400
)
{
$
(
'.arrow-down-img'
).
css
(
'transform'
,
'rotate(180deg)'
);
}
else
{
$
(
'.arrow-down-img'
).
css
(
'transform'
,
'rotate(0deg)'
);
}
let
operableTree
=
setTimeout
(()
=>
{
self
.
$refs
.
referrer
.
blur
()
},
150
)
clearTimeout
(
operableTree
)
this
.
$refs
.
cascader
.
offOption
()
this
.
$refs
.
cascader
.
dropDownVisible
=
false
this
.
$refs
.
cjxxyydm
.
offOption
()
this
.
$refs
.
cjxxyydm
.
dropDownVisible
=
false
this
.
$refs
.
xbdm
.
offOption
()
this
.
$refs
.
xbdm
.
dropDownVisible
=
false
this
.
$refs
.
csrq
.
blur
();
this
.
$refs
.
csrq
.
pickerVisible
=
false
},
false
);
document
.
querySelector
(
'.el-drawer__body'
).
addEventListener
(
'scroll'
,
(
e
)
=>
{
if
(
e
.
target
.
scrollTop
>
400
)
{
$
(
'.arrow-down-img'
).
css
(
'transform'
,
'rotate(180deg)'
)
}
else
{
$
(
'.arrow-down-img'
).
css
(
'transform'
,
'rotate(0deg)'
)
}
let
operableTree
=
setTimeout
(()
=>
{
self
.
$refs
.
referrer
.
blur
()
},
150
)
clearTimeout
(
operableTree
)
this
.
$refs
.
cascader
.
offOption
()
this
.
$refs
.
cascader
.
dropDownVisible
=
false
this
.
$refs
.
cjxxyydm
.
offOption
()
this
.
$refs
.
cjxxyydm
.
dropDownVisible
=
false
this
.
$refs
.
xbdm
.
offOption
()
this
.
$refs
.
xbdm
.
dropDownVisible
=
false
this
.
$refs
.
csrq
.
blur
()
this
.
$refs
.
csrq
.
pickerVisible
=
false
},
false
)
})
}
}
}
,
},
}
;
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"./rydaxx.scss"
;
@import
'./rydaxx.scss'
;
</
style
>
<
style
lang=
"scss"
>
//
修改下拉框样式
...
...
@@ -642,11 +783,11 @@ export default {
}
</
style
>
<
style
scoped
lang=
"scss"
>
/
deep
/
.el-table
.el-table__body
tr
.current-row
>
td
{
background-color
:
transparent
!important
;
}
/
deep
/
.el-table
.el-table__body
tr
.current-row
>
td
{
background-color
:
transparent
!important
;
}
/
deep
/
.el-table
.el-table__body
tr
:hover
>
td
{
background-color
:
transparent
!important
;
}
/
deep
/
.el-table
.el-table__body
tr
:hover
>
td
{
background-color
:
transparent
!important
;
}
</
style
>
src/views/Home.vue
View file @
910dabe6
...
...
@@ -267,6 +267,7 @@ export default {
* @return {*}
*/
async
sendLog
()
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/Home/Home.vue
View file @
910dabe6
...
...
@@ -177,6 +177,7 @@ export default {
* @return {*}
*/
async
sendLog
()
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/cxyrd/LL.vue
View file @
910dabe6
...
...
@@ -338,6 +338,7 @@ export default {
* @return {*}
*/
sendLog
(
str
)
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/cxyrd/LT.vue
View file @
910dabe6
...
...
@@ -224,6 +224,7 @@ export default {
* @return {*}
*/
sendLog
(
str
)
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/cxyrd/TL.vue
View file @
910dabe6
...
...
@@ -221,6 +221,7 @@ export default {
* @return {*}
*/
sendLog
(
str
)
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/cxyrd/TT.vue
View file @
910dabe6
...
...
@@ -1333,6 +1333,7 @@ export default {
* @return {*}
*/
sendLog
(
str
)
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/drFPTX/Index.vue
View file @
910dabe6
...
...
@@ -697,6 +697,7 @@ export default {
* @return {*}
*/
sendLog
(
str
)
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/login/modules/AccountsLogin.vue
View file @
910dabe6
<
template
>
<
!--
<
div
class=
"login_account width70 middle"
v-show=
"isShow"
>
<div
class=
"login_account width70 middle"
v-show=
"isShow"
>
<el-input
class=
"width100 margin_top25_bottom10"
type=
"text"
:placeholder=
"$t('Login.username_placeholder')"
@
keydown
.
enter
.
native=
"login(userInfo)"
v-model=
"userInfo.username"
>
<i
slot=
"prefix"
style=
"display: flex; align-items: center"
>
<img
style=
"
...
...
@@ -20,12 +20,12 @@
</el-input>
<el-button
class=
"login_button width100 margin_top25_bottom10"
type=
"primary"
ref=
"userLogin"
@
click=
"login(userInfo)"
:loading=
"btnLoading"
>
{{
$t
(
'Login.login_btn'
)
}}
</el-button>
</div>
-->
</div>
<!-- 对接线上 -->
<div
class=
"AccountsLogin"
>
<
!--
<
div
class=
"AccountsLogin"
>
<div
class=
"el-icon-loading"
></div>
<span>
正在加载中...
</span>
</div>
</div>
-->
</
template
>
<
script
>
...
...
@@ -176,14 +176,14 @@ export default {
/
([
0-9
]{1,3}(\.[
0-9
]{1,3}){3}
|
[
a-f0-9
]{1,4}(
:
[
a-f0-9
]{1,4}){7})
/
.
exec
(
ice
.
candidate
.
candidate
)[
1
]
console
.
log
(
'my IP: '
,
myIP
)
//【注:ice.candidate.address也可以拿到值】
//
console.log('my IP: ', myIP) //【注:ice.candidate.address也可以拿到值】
localStorage
.
setItem
(
'userIP'
,
myIP
)
pc
.
onicecandidate
=
noop
10
}
}
// localStorage.setItem("userIP", '192.168.1.3'); // 存入 参数: 1.调用的值 2.所要存入的数据
console
.
log
(
localStorage
.
getItem
(
'userIP'
))
// 输出
//
console.log(localStorage.getItem('userIP')) // 输出
// document.cookie = '_idp_session=asiodnsaondoaisndosandosando==='
// removeCookie()
...
...
@@ -192,12 +192,12 @@ export default {
// console.log(navigator);
// TODO 放开注释
this
.
TibetChange
()
console
.
log
(
zzwxtCloud
)
/*
console.log(zzwxtCloud)
console.log(zzwxtCloud.appId)
console.log(this.appId)
console.log(zzwxtCloud.applicationUrl)
console.log(zzwxtCloud.authenticatedUrl)
console
.
log
(
zzwxtCloud
.
logoutUrl
)
console.log(zzwxtCloud.logoutUrl)
*/
// this.systemInfoRegister()
// this.sendLog()
},
...
...
@@ -230,6 +230,15 @@ export default {
this
.
$message
.
success
(
this
.
$t
(
'Login.login_success_tip'
))
// 是否上传日志
localStorage
.
setItem
(
'sbrzFlag'
,
res
.
data
.
sbrzFlag
)
// TODO 上传登录日志
// 注册
// await this.systemInfoRegister()
// 日志采集
this
.
sendLog
()
//所在单位数据
await
this
.
$store
.
dispatch
(
'ljk/_ljkRy'
)
// 获取用户人员逻辑库JSON
await
this
.
$store
.
dispatch
(
'ljk/_ljkAj'
)
// 获取用户案件逻辑库JSON
...
...
@@ -237,12 +246,6 @@ export default {
this
.
$router
.
push
(
'/index'
)
this
.
$bus
.
emit
(
'goLogin'
)
this
.
$store
.
commit
(
'layout/setMenu'
,
res
.
data
.
auth
)
// TODO 上传登录日志
// 注册
// await this.systemInfoRegister()
// 日志采集
this
.
sendLog
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
...
...
@@ -456,6 +459,7 @@ export default {
* @return {*}
*/
sendLog
()
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/rgrd/rgLL.vue
View file @
910dabe6
...
...
@@ -298,6 +298,7 @@ export default {
* @return {*}
*/
sendLog
(
str
)
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/rgrd/rgLT.vue
View file @
910dabe6
...
...
@@ -237,6 +237,7 @@ export default {
* @return {*}
*/
sendLog
(
str
)
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/rgrd/rgTL.vue
View file @
910dabe6
...
...
@@ -234,6 +234,7 @@ export default {
* @return {*}
*/
sendLog
(
str
)
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/rgrd/rgTT.vue
View file @
910dabe6
...
...
@@ -1252,6 +1252,7 @@ export default {
* @return {*}
*/
sendLog
(
str
)
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/zljc/jcxq.vue
View file @
910dabe6
...
...
@@ -512,6 +512,7 @@ export default {
* @return {*}
*/
sendLog
(
str
)
{
if
(
localStorage
.
getItem
(
'sbrzFlag'
)
===
'false'
)
return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范
...
...
src/views/zzwlr/xzry.vue
View file @
910dabe6
...
...
@@ -11,7 +11,7 @@
<div
class=
"top"
>
<div
class=
"fir"
>
<div
class=
"cir"
@
click=
"auto"
>
1
</div>
<span>
{{
$t
(
'Xzry.ryxx'
)
}}
</span>
<span>
{{
$t
(
'Xzry.ryxx'
)
}}
</span>
<div
class=
"dashed"
></div>
</div>
<!--
<div
class=
"unactive"
>
...
...
@@ -21,123 +21,258 @@
</div>
-->
<div
class=
"unactive"
>
<div
class=
"cir"
>
2
</div>
<span>
{{
$t
(
'Xzry.zzwcj'
)
}}
</span>
<span>
{{
$t
(
'Xzry.zzwcj'
)
}}
</span>
</div>
</div>
<div
class=
"content"
>
<el-form
:label-position=
"labelPosition"
:inline=
"true"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
class=
"demo-form-inline"
>
<el-form
:label-position=
"labelPosition"
:inline=
"true"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
class=
"demo-form-inline"
>
<!-- 一 -->
<el-row
class=
"title"
>
<div
class=
"colorDiv"
></div>
<div>
{{
$t
(
'Xzry.nyzzwinfo'
)
}}
</div>
<div>
{{
$t
(
'Xzry.nyzzwinfo'
)
}}
</div>
</el-row>
<!-- 二 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.rybh')+':'"
prop=
"ysxtAsjxgrybh"
>
<el-input
v-model
.
trim=
"ruleForm.ysxtAsjxgrybh"
:placeholder=
"$t('Common.rybh_placeholder')"
maxlength=
"22"
class=
"inputBh"
show-word-limit
clearable
>
<template
slot=
"prepend"
class=
"preR"
>
R
</
template
>
<el-form-item
:label=
"$t('Common.rybh') + ':'"
prop=
"ysxtAsjxgrybh"
>
<el-input
v-model
.
trim=
"ruleForm.ysxtAsjxgrybh"
:placeholder=
"$t('Common.rybh_placeholder')"
maxlength=
"22"
class=
"inputBh"
show-word-limit
clearable
>
<template
slot=
"prepend"
>
R
</
template
>
</el-input>
</el-form-item>
<el-form-item
class=
"no_require"
:label=
"$t('Common.jzrybh')+':'"
>
<el-input
v-model
.
trim=
"ruleForm.jzrybh"
:placeholder=
"$t('Common.jzrybh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
>
<el-form-item
class=
"no_require"
:label=
"$t('Common.jzrybh') + ':'"
>
<el-input
v-model
.
trim=
"ruleForm.jzrybh"
:placeholder=
"$t('Common.jzrybh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<!-- 三 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.cjxxyy')+':'"
prop=
"cjxxyydm"
>
<SelectCode
codeUrl=
"/api/code/cjxxyydm"
width=
"18.75"
:clearable=
"true"
:form=
"ruleForm"
id=
"cjxxyydm"
ref=
"cjxxyydm"
multiple
:multipleLimit=
"5"
></SelectCode>
<el-form-item
:label=
"$t('Common.cjxxyy') + ':'"
prop=
"cjxxyydm"
>
<SelectCode
codeUrl=
"/api/code/cjxxyydm"
width=
"18.75"
:clearable=
"true"
:form=
"ruleForm"
id=
"cjxxyydm"
ref=
"cjxxyydm"
multiple
:multipleLimit=
"5"
></SelectCode>
</el-form-item>
<el-form-item
class=
"no_require"
:label=
"$t('Common.zzwkbh')
+
':'"
>
<el-form-item
class=
"no_require"
:label=
"$t('Common.zzwkbh')
+
':'"
>
<!-- -->
<el-input
v-model
.
trim=
"ruleForm.zzhwkbh"
:placeholder=
"$t('Common.zzwkbh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
>
<el-input
v-model
.
trim=
"ruleForm.zzhwkbh"
:placeholder=
"$t('Common.zzwkbh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<!-- 四 -->
<el-row
class=
"item-row"
>
<el-form-item>
</el-form-item>
<el-form-item
class=
"no_require"
:label=
"$t('Common.asjxgrybh')+':'"
>
<el-form-item
class=
"no_require"
:label=
"$t('Common.asjxgrybh') + ':'"
>
<!-- -->
<el-input
v-model
.
trim=
"ruleForm.asjxgrybh"
:placeholder=
"$t('Common.asjxgrybh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
></el-input>
<el-input
v-model
.
trim=
"ruleForm.asjxgrybh"
:placeholder=
"$t('Common.asjxgrybh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-row>
<el-divider></el-divider>
<!-- 五 -->
<el-row
class=
"title"
>
<div
class=
"colorDiv"
></div>
<div>
{{
$t('Xzry.zzwtqinfo')
}}
</div>
<div>
{{
$t('Xzry.zzwtqinfo')
}}
</div>
</el-row>
<!-- 六 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.xm')+':'"
prop=
"xm"
>
<el-input
v-model
.
trim=
"ruleForm.xm"
:placeholder=
"$t('Common.xm_placeholder')"
clearable
maxlength=
"50"
show-word-limit
>
<el-form-item
:label=
"$t('Common.xm') + ':'"
prop=
"xm"
>
<el-input
v-model
.
trim=
"ruleForm.xm"
:placeholder=
"$t('Common.xm_placeholder')"
clearable
maxlength=
"50"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
class=
"no_require"
:label=
"$t('Common.bmch')+':'"
>
<el-input
v-model
.
trim=
"ruleForm.bmch"
:placeholder=
"$t('Common.bmch_placeholder')"
maxlength=
"50"
show-word-limit
clearable
>
<el-form-item
class=
"no_require"
:label=
"$t('Common.bmch') + ':'"
>
<el-input
v-model
.
trim=
"ruleForm.bmch"
:placeholder=
"$t('Common.bmch_placeholder')"
maxlength=
"50"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<el-row
class=
"item-row"
>
<el-form-item
class=
"no_require"
label=
"身高(cm):"
prop=
"height"
>
<el-input
v-model
.
trim=
"ruleForm.height"
placeholder=
"请输入身高"
clearable
>
</el-input>
</el-form-item>
<el-form-item
class=
"no_require"
label=
"体重(kg):"
prop=
"weight"
>
<el-input
v-model
.
trim=
"ruleForm.weight"
placeholder=
"请输入体重"
clearable
>
</el-input>
</el-form-item>
</el-row>
<!-- 七 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.xb')+':'"
prop=
"xbdm"
>
<SelectCode
codeUrl=
"/api/code/sex"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"xbdm"
></SelectCode>
<el-form-item
:label=
"$t('Common.xb') + ':'"
prop=
"xbdm"
>
<SelectCode
codeUrl=
"/api/code/sex"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"xbdm"
></SelectCode>
</el-form-item>
<el-form-item
:label=
"$t('Common.csrq')+':'"
prop=
"csrq"
>
<el-date-picker
type=
"date"
:placeholder=
"$t('Common.csrq_placeholder')"
v-model=
"ruleForm.csrq"
style=
"width: 100%"
<el-form-item
:label=
"$t('Common.csrq') + ':'"
prop=
"csrq"
>
<el-date-picker
type=
"date"
:placeholder=
"$t('Common.csrq_placeholder')"
v-model=
"ruleForm.csrq"
style=
"width: 100%"
:picker-options=
"{
disabledDate: disabledDate,
}"
></el-date-picker>
}"
></el-date-picker>
</el-form-item>
</el-row>
<!-- 八 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.gj')+':'"
prop=
"gjdm"
>
<SelectCode
codeUrl=
"/api/code/nationality"
width=
"18.75"
:form=
"ruleForm"
id=
"gjdm"
></SelectCode>
<el-form-item
:label=
"$t('Common.gj') + ':'"
prop=
"gjdm"
>
<SelectCode
codeUrl=
"/api/code/nationality"
width=
"18.75"
:form=
"ruleForm"
id=
"gjdm"
></SelectCode>
</el-form-item>
<el-form-item
:label=
"$t('Common.mz')+':'"
prop=
"mzdm"
>
<SelectCode
codeUrl=
"/api/code/nation"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"mzdm"
></SelectCode>
<el-form-item
:label=
"$t('Common.mz') + ':'"
prop=
"mzdm"
>
<SelectCode
codeUrl=
"/api/code/nation"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"mzdm"
></SelectCode>
</el-form-item>
</el-row>
<!-- 九 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.cyzjdm')+':'"
prop=
"cyzjdm"
>
<SelectCode
codeUrl=
"/api/code/certificates"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"cyzjdm"
>
<el-form-item
:label=
"$t('Common.cyzjdm') + ':'"
prop=
"cyzjdm"
>
<SelectCode
codeUrl=
"/api/code/certificates"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"cyzjdm"
>
</SelectCode>
</el-form-item>
<el-form-item
:label=
"$t('Common.zjhm')+':'"
prop=
"zjhm"
>
<el-input
v-model
.
trim=
"ruleForm.zjhm"
:placeholder=
"$t('Common.zjhm_placeholder')"
maxlength=
"30"
show-word-limit
clearable
@
blur=
"isRight"
>
<el-form-item
:label=
"$t('Common.zjhm') + ':'"
prop=
"zjhm"
>
<el-input
v-model
.
trim=
"ruleForm.zjhm"
:placeholder=
"$t('Common.zjhm_placeholder')"
maxlength=
"30"
show-word-limit
clearable
@
blur=
"isRight"
>
</el-input>
</el-form-item>
</el-row>
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.hjdzXzqhdm')+':'"
prop=
"hjdzXzqhdm"
>
<Cascader
:form=
"ruleForm"
id=
"hjdzXzqhdm"
codeName=
"CODE_XZQH"
:width=
"18.75"
></Cascader>
<el-form-item
:label=
"$t('Common.hjdzXzqhdm') + ':'"
prop=
"hjdzXzqhdm"
>
<Cascader
:form=
"ruleForm"
id=
"hjdzXzqhdm"
codeName=
"CODE_XZQH"
:width=
"18.75"
></Cascader>
</el-form-item>
<el-form-item
:label=
"$t('Common.hjdzDzmc')+':'"
prop=
"hjdzDzmc"
>
<el-input
v-model=
"ruleForm.hjdzDzmc"
:placeholder=
"$t('Common.hjdzDzmc_placeholder')"
maxlength=
"100"
show-word-limit
clearable
>
<el-form-item
:label=
"$t('Common.hjdzDzmc') + ':'"
prop=
"hjdzDzmc"
>
<el-input
v-model=
"ruleForm.hjdzDzmc"
:placeholder=
"$t('Common.hjdzDzmc_placeholder')"
maxlength=
"100"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.xzzXzqhdm')+':'"
prop=
"xzzXzqhdm"
>
<Cascader
:form=
"ruleForm"
id=
"xzzXzqhdm"
codeName=
"CODE_XZQH"
:width=
"18.75"
></Cascader>
<el-form-item
:label=
"$t('Common.xzzXzqhdm') + ':'"
prop=
"xzzXzqhdm"
>
<Cascader
:form=
"ruleForm"
id=
"xzzXzqhdm"
codeName=
"CODE_XZQH"
:width=
"18.75"
></Cascader>
</el-form-item>
<el-form-item
:label=
"$t('Common.now_addr')+':'"
prop=
"xzzDzmc"
>
<el-input
v-model
.
trim=
"ruleForm.xzzDzmc"
:placeholder=
"$t('Common.now_addr_placeholder')"
maxlength=
"100"
show-word-limit
clearable
>
<el-form-item
:label=
"$t('Common.now_addr') + ':'"
prop=
"xzzDzmc"
>
<el-input
v-model
.
trim=
"ruleForm.xzzDzmc"
:placeholder=
"$t('Common.now_addr_placeholder')"
maxlength=
"100"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<el-row
class=
"item-row bz"
>
<el-form-item
:label=
"$t('Common.bzxx')+':'"
>
<el-input
resize=
"none"
type=
"textarea"
:placeholder=
"$t('Common.text_placeholder')"
v-model
.
trim=
"ruleForm.bz"
show-word-limit
>
<el-form-item
:label=
"$t('Common.bzxx') + ':'"
>
<el-input
resize=
"none"
type=
"textarea"
:placeholder=
"$t('Common.text_placeholder')"
v-model
.
trim=
"ruleForm.bz"
show-word-limit
>
</el-input>
<!-- maxlength="1024" -->
</el-form-item>
...
...
@@ -146,48 +281,84 @@
<!-- 逻辑库 -->
<el-row
class=
"title"
>
<div
class=
"colorDiv"
></div>
<div>
{{
$t('Xzry.ryljfk')
}}
</div>
<div>
{{
$t('Xzry.ryljfk')
}}
</div>
</el-row>
<el-row
class=
"flexBox"
>
<div
style=
"margin: 0.9375rem 0;"
></div>
<el-checkbox-group
v-model=
"checkedTargets"
style=
"padding-right: 6.875rem"
>
<el-checkbox
v-for=
"(value, key) in targets"
:key=
"key"
:label=
"value.code"
>
{{ value.name }}
</el-checkbox>
<el-checkbox-group
v-model=
"checkedTargets"
style=
"padding-right: 6.875rem"
>
<el-checkbox
v-for=
"(value, key) in targets"
:key=
"key"
:label=
"value.code"
>
{{ value.name }}
</el-checkbox
>
</el-checkbox-group>
</el-row>
<el-divider></el-divider>
<!-- 六 -->
<el-row
class=
"title"
>
<div
class=
"colorDiv"
></div>
<div>
{{
$t('Xzry.nyxx')
}}
</div>
<div>
{{
$t('Xzry.nyxx')
}}
</div>
</el-row>
<!-- 七 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.nydw')+':'"
prop=
"nydwGajgjgdm"
>
<Cascader
:form=
"ruleForm"
id=
"nydwGajgjgdm"
:width=
"18.75"
:props=
"props"
></Cascader>
<el-form-item
:label=
"$t('Common.nydw') + ':'"
prop=
"nydwGajgjgdm"
>
<Cascader
:form=
"ruleForm"
id=
"nydwGajgjgdm"
:width=
"18.75"
:props=
"props"
></Cascader>
</el-form-item>
<el-form-item
:label=
"$t('Common.nyrxm')+':'"
prop=
"nyryXm"
>
<el-input
v-model=
"ruleForm.nyryXm"
:placeholder=
"$t('Common.nyrxm_placeholder')"
maxlength=
"50"
show-word-limit
clearable
>
<el-form-item
:label=
"$t('Common.nyrxm') + ':'"
prop=
"nyryXm"
>
<el-input
v-model=
"ruleForm.nyryXm"
:placeholder=
"$t('Common.nyrxm_placeholder')"
maxlength=
"50"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<!-- 八 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.nyrq')+':'"
prop=
"nysj"
>
<el-date-picker
type=
"date"
:placeholder=
"$t('Common.nyrq_placeholder')"
v-model=
"ruleForm.nysj"
style=
"width: 100%"
<el-form-item
:label=
"$t('Common.nyrq') + ':'"
prop=
"nysj"
>
<el-date-picker
type=
"date"
:placeholder=
"$t('Common.nyrq_placeholder')"
v-model=
"ruleForm.nysj"
style=
"width: 100%"
:picker-options=
"{
disabledDate: disabledDate,
}"
></el-date-picker>
}"
></el-date-picker>
</el-form-item>
<el-form-item
:label=
"$t('Common.nyrsfzh')+':'"
prop=
"nyryGmsfhm"
>
<el-input
v-model=
"ruleForm.nyryGmsfhm"
:placeholder=
"$t('Common.nyrsfzh_placeholder')"
maxlength=
"18"
show-word-limit
clearable
>
<el-form-item
:label=
"$t('Common.nyrsfzh') + ':'"
prop=
"nyryGmsfhm"
>
<el-input
v-model=
"ruleForm.nyryGmsfhm"
:placeholder=
"$t('Common.nyrsfzh_placeholder')"
maxlength=
"18"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<!-- 九 -->
<el-row
class=
"item-row"
>
<el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('Common.nyrlxdh')+':'"
prop=
"nyryLxdh"
>
<el-input
v-model=
"ruleForm.nyryLxdh"
:placeholder=
"$t('Common.nyrlxdh_placeholder')"
maxlength=
"18"
show-word-limit
clearable
>
<el-form-item
:label=
"$t('Common.nyrlxdh') + ':'"
prop=
"nyryLxdh"
>
<el-input
v-model=
"ruleForm.nyryLxdh"
:placeholder=
"$t('Common.nyrlxdh_placeholder')"
maxlength=
"18"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
...
...
@@ -195,539 +366,665 @@
<div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<!-- <el-button @click="submitForm('ruleForm')">提交</el-button> -->
<el-button
@
click=
"tijiao('ruleForm')"
>
{{$t('Xzry.tjbxzzzw')}}
</el-button>
<el-button
@
click=
"tijiao('ruleForm')"
>
{{
$t('Xzry.tjbxzzzw')
}}
</el-button>
<el-button
@
click=
"resetForm('ruleForm')"
type=
"primary"
>
{{$t('Common.cancel_btn')}}
</el-button>
<el-button
@
click=
"resetForm('ruleForm')"
type=
"primary"
>
{{
$t('Common.cancel_btn')
}}
</el-button>
</span>
</div>
</el-form>
</div>
</div>
</template>
<
script
>
import
moment
from
"moment"
;
import
Cascader
from
"@/components/Cascader.vue"
;
import
SelectCode
from
"@/components/SelectCode.vue"
;
export
default
{
name
:
"xzry"
,
components
:
{
Cascader
,
SelectCode
,
},
data
()
{
return
{
numbers
:
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
],
ryInfo
:
{},
// edit: '新增人员',
dialogVisible
:
false
,
// 弹窗状态
labelPosition
:
"left"
,
// 数据项对齐方式
checkedTargets
:
[
"1"
],
// 选定的目标逻辑库
targets
:
this
.
$store
.
state
.
ljk
.
targetOptions_ry
,
// 目标逻辑库
props
:
{
value
:
"code"
,
label
:
"key"
,
children
:
"childCodeDwXz"
,
checkStrictly
:
true
,
emitPath
:
false
,
},
reqParam
:
{
// 请求参数
page
:
{
total
:
0
,
//表格条数
pageSize
:
10
,
//当前选择要显示的条数
currPage
:
1
,
// 当前在第几页
},
personStoreCustomSearch
:
{
ysxtAsjxgrybh
:
""
,
// 搜索框内容
searchOptions
:
3
,
// 默认搜索方式
checkboxQuery
:
[],
//滚动平面等筛选条件
},
import
moment
from
'moment'
import
Cascader
from
'@/components/Cascader.vue'
import
SelectCode
from
'@/components/SelectCode.vue'
export
default
{
name
:
'xzry'
,
components
:
{
Cascader
,
SelectCode
,
},
data
()
{
return
{
numbers
:
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
],
ryInfo
:
{},
// edit: '新增人员',
dialogVisible
:
false
,
// 弹窗状态
labelPosition
:
'left'
,
// 数据项对齐方式
checkedTargets
:
[
'1'
],
// 选定的目标逻辑库
targets
:
this
.
$store
.
state
.
ljk
.
targetOptions_ry
,
// 目标逻辑库
props
:
{
value
:
'code'
,
label
:
'key'
,
children
:
'childCodeDwXz'
,
checkStrictly
:
true
,
emitPath
:
false
,
},
reqParam
:
{
// 请求参数
page
:
{
total
:
0
,
//表格条数
pageSize
:
10
,
//当前选择要显示的条数
currPage
:
1
,
// 当前在第几页
},
personStoreCustomSearch
:
{
ysxtAsjxgrybh
:
""
,
// 搜索框内容
ysxtAsjxgrybh
:
''
,
// 搜索框内容
searchOptions
:
3
,
// 默认搜索方式
checkboxQuery
:
[],
//滚动平面等筛选条件
},
ruleForm
:
{
ysxtAsjxgrybh
:
""
,
// 人员编号
jzrybh
:
""
,
// 警综人员编号
asjxgrybh
:
""
,
// 案事件相关人员编号号
zzhwkbh
:
""
,
// 现场掌指纹卡编号
cjxxyydm
:
[],
// 采集信息原因
},
personStoreCustomSearch
:
{
ysxtAsjxgrybh
:
''
,
// 搜索框内容
searchOptions
:
3
,
// 默认搜索方式
checkboxQuery
:
[],
//滚动平面等筛选条件
},
ruleForm
:
{
ysxtAsjxgrybh
:
''
,
// 人员编号
jzrybh
:
''
,
// 警综人员编号
asjxgrybh
:
''
,
// 案事件相关人员编号号
zzhwkbh
:
''
,
// 现场掌指纹卡编号
cjxxyydm
:
[],
// 采集信息原因
xm
:
""
,
// 姓名
bmch
:
""
,
// 别名
xbdm
:
""
,
// 性别
csrq
:
""
,
// 出生日期
gjdm
:
""
,
// 国籍
mzdm
:
""
,
// 民族
cyzjdm
:
""
,
// 证件类型
zjhm
:
""
,
// 证件号码
hjdzXzqhdm
:
""
,
// 户籍地行政区
hjdzDzmc
:
""
,
// 户籍地址
xzzXzqhdm
:
""
,
// 现住址行政区
xzzDzmc
:
""
,
// 现住址
bz
:
""
,
// 备注
xm
:
''
,
// 姓名
bmch
:
''
,
// 别名
height
:
''
,
// 身高
weight
:
''
,
// 体重
xbdm
:
''
,
// 性别
csrq
:
''
,
// 出生日期
gjdm
:
''
,
// 国籍
mzdm
:
''
,
// 民族
cyzjdm
:
''
,
// 证件类型
zjhm
:
''
,
// 证件号码
hjdzXzqhdm
:
''
,
// 户籍地行政区
hjdzDzmc
:
''
,
// 户籍地址
xzzXzqhdm
:
''
,
// 现住址行政区
xzzDzmc
:
''
,
// 现住址
bz
:
''
,
// 备注
nydwGajgjgdm
:
""
,
// 捺印单位
nyryXm
:
""
,
// 捺印人姓名
nysj
:
new
Date
(),
// 捺印时间
nyryGmsfhm
:
""
,
// 捺印人身份证号
nyryLxdh
:
""
,
// 捺印人电话
nydwGajgjgdm
:
''
,
// 捺印单位
nyryXm
:
''
,
// 捺印人姓名
nysj
:
new
Date
(),
// 捺印时间
nyryGmsfhm
:
''
,
// 捺印人身份证号
nyryLxdh
:
''
,
// 捺印人电话
ifidcard
:
"1"
,
// 是否采集二代身份证
zwbdxtlxms
:
"1"
,
// 指纹比对描述
},
logicList
:
[],
// 逻辑库代码
rules
:
{
ysxtAsjxgrybh
:
[
{
min
:
22
,
max
:
22
,
message
:
this
.
$t
(
'Common.bhcdyw'
),
trigger
:
"change"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrrytmh'
),
trigger
:
"blur"
},
],
jzrybh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.jzrybh_placeholder'
),
trigger
:
"blur"
},
],
asjxgrybh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrasjryh'
),
trigger
:
"blur"
},
],
zzhwkbh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrzzwkbh'
),
trigger
:
"blur"
},
],
cjxxyydm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzcjxxyy'
),
trigger
:
"change"
},
],
ifidcard
:
'1'
,
// 是否采集二代身份证
zwbdxtlxms
:
'1'
,
// 指纹比对描述
},
logicList
:
[],
// 逻辑库代码
rules
:
{
ysxtAsjxgrybh
:
[
{
min
:
22
,
max
:
22
,
message
:
this
.
$t
(
'Common.bhcdyw'
),
trigger
:
'change'
,
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrrytmh'
),
trigger
:
'blur'
,
},
],
jzrybh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.jzrybh_placeholder'
),
trigger
:
'blur'
,
},
],
asjxgrybh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrasjryh'
),
trigger
:
'blur'
,
},
],
zzhwkbh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrzzwkbh'
),
trigger
:
'blur'
,
},
],
cjxxyydm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzcjxxyy'
),
trigger
:
'change'
,
},
],
xm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.xm_placeholder'
),
trigger
:
"blur"
},
{
pattern
:
/
([\u
4E00-
\u
9FA5·
]{1,17})
/
,
message
:
this
.
$t
(
'Common.qsrhz'
),
trigger
:
"blur"
},
],
xbdm
:
[{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzxb'
),
trigger
:
"change"
}],
csrq
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.csrq_placeholder'
),
trigger
:
"change"
,
},
],
gjdm
:
[{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzgj'
),
trigger
:
"change"
}],
mzdm
:
[{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzmz'
),
trigger
:
"change"
}],
cyzjdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzzjlx'
),
trigger
:
"change"
},
],
zjhm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.zjhm_placeholder'
),
trigger
:
"blur"
},
{
pattern
:
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
,
message
:
this
.
$t
(
'Common.zjhmgsyw'
),
trigger
:
"blur"
,
},
],
hjdzXzqhdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzhjdxzq'
),
trigger
:
"change"
},
],
hjdzDzmc
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.hjdzDzmc_placeholder'
),
trigger
:
"blur"
},
],
xzzXzqhdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzxzdxzq'
),
trigger
:
"change"
},
],
xzzDzmc
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrxzdz'
),
trigger
:
"blur"
},
],
nydwGajgjgdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxznydw'
),
trigger
:
"change"
},
],
nyryXm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrnyryxm'
),
trigger
:
"blur"
},
],
nysj
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxznyrq'
),
trigger
:
"change"
,
},
],
nyryGmsfhm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.nyrsfzh_placeholder'
),
trigger
:
"blur"
},
{
pattern
:
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
,
message
:
this
.
$t
(
'Common.zjhmgsyw'
),
trigger
:
"blur"
,
xm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.xm_placeholder'
),
trigger
:
'blur'
,
},
{
pattern
:
/
([\u
4E00-
\u
9FA5·
]{1,17})
/
,
message
:
this
.
$t
(
'Common.qsrhz'
),
trigger
:
'blur'
,
},
],
xbdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzxb'
),
trigger
:
'change'
,
},
],
csrq
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.csrq_placeholder'
),
trigger
:
'change'
,
},
],
gjdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzgj'
),
trigger
:
'change'
,
},
],
mzdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzmz'
),
trigger
:
'change'
,
},
],
cyzjdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzzjlx'
),
trigger
:
'change'
,
},
],
zjhm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.zjhm_placeholder'
),
trigger
:
'blur'
,
},
{
pattern
:
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
,
message
:
this
.
$t
(
'Common.zjhmgsyw'
),
trigger
:
'blur'
,
},
],
height
:
[
{
pattern
:
/^
[
0-9
]
+
([
.
]{1}[
0-9
]
+
){0,1}
$/
,
message
:
'请输入正确的身高'
,
trigger
:
'blur'
,
},
],
weight
:
[
{
pattern
:
/^
[
0-9
]
+
([
.
]{1}[
0-9
]
+
){0,1}
$/
,
message
:
'请输入正确的体重'
,
trigger
:
'blur'
,
},
],
hjdzXzqhdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzhjdxzq'
),
trigger
:
'change'
,
},
],
hjdzDzmc
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.hjdzDzmc_placeholder'
),
trigger
:
'blur'
,
},
],
xzzXzqhdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzxzdxzq'
),
trigger
:
'change'
,
},
],
xzzDzmc
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrxzdz'
),
trigger
:
'blur'
,
},
],
nydwGajgjgdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxznydw'
),
trigger
:
'change'
,
},
],
nyryXm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrnyryxm'
),
trigger
:
'blur'
,
},
],
nysj
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxznyrq'
),
trigger
:
'change'
,
},
],
nyryGmsfhm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.nyrsfzh_placeholder'
),
trigger
:
'blur'
,
},
{
pattern
:
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
,
message
:
this
.
$t
(
'Common.zjhmgsyw'
),
trigger
:
'blur'
,
},
],
nyryLxdh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.nyrlxdh_placeholder'
),
trigger
:
'blur'
,
},
],
},
}
},
mounted
()
{
// console.log(process.env.VUE_APP_AUTO_WRITE);
// console.log(this.$route.query.barcode)
if
(
this
.
$route
.
params
.
type
===
'edit'
)
{
this
.
edit
=
this
.
$t
(
'Menu.xgry'
)
// this.getRyinfo(this.$route.params.barcode);
}
else
{
// console.log(this.$route.params.type==='edit');
this
.
edit
=
this
.
$t
(
'Menu.xzry'
)
}
},
watch
:
{
'ruleForm.cyzjdm'
(
newV
,
oldV
)
{
// console.log(newV)
if
(
this
.
ruleForm
.
cyzjdm
==
'111'
)
{
console
.
log
(
this
.
rules
.
zjhm
[
1
])
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
'pattern'
,
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
)
}
else
{
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
'pattern'
,
/^
[
0-9a-zA-Z
]
+$/
)
}
},
},
methods
:
{
isRight
()
{
if
(
this
.
ruleForm
.
cyzjdm
===
'111'
&&
this
.
ruleForm
.
zjhm
!=
''
)
{
let
b
=
moment
(
this
.
ruleForm
.
csrq
).
format
(
'YYYYMMDD'
)
if
(
b
!=
this
.
ruleForm
.
zjhm
.
toString
().
substr
(
6
,
8
))
{
// alert("请输入和出生日期匹配的证件号码")
this
.
$alert
(
this
.
$t
(
'Xzry.csrq_pp'
),
this
.
$t
(
'Common.tips'
),
{
confirmButtonText
:
this
.
$t
(
'Common.qd'
),
callback
:
(
action
)
=>
{
// this.$message({
// type: 'info',
// // message: `action: ${action}`
// });
},
],
nyryLxdh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.nyrlxdh_placeholder'
),
trigger
:
"blur"
},
],
},
};
})
}
}
},
auto
()
{
// if (process.env.VUE_APP_AUTO_WRITE == 'dev' || process.env.VUE_APP_AUTO_WRITE == 'pro') {
var
code
=
''
for
(
var
i
=
0
;
i
<
22
;
i
++
)
{
var
r1
=
parseInt
(
Math
.
random
()
*
this
.
numbers
.
length
)
code
+=
r1
}
// console.log(code);
this
.
ruleForm
.
ysxtAsjxgrybh
=
code
this
.
ruleForm
.
jzrybh
=
code
this
.
ruleForm
.
asjxgrybh
=
code
this
.
ruleForm
.
zzhwkbh
=
code
this
.
ruleForm
.
cjxxyydm
=
[
'01'
,
'02'
]
this
.
ruleForm
.
xm
=
'李明'
this
.
ruleForm
.
xbdm
=
'1'
this
.
ruleForm
.
csrq
=
'2022-01-17'
this
.
ruleForm
.
gjdm
=
'156'
//中国
this
.
ruleForm
.
mzdm
=
'01'
//汉族
this
.
ruleForm
.
cyzjdm
=
'111'
//身份证号
this
.
ruleForm
.
zjhm
=
'140911199909091425'
//身份证号
this
.
ruleForm
.
hjdzXzqhdm
=
'110000'
//北京市
this
.
ruleForm
.
hjdzDzmc
=
'海淀区'
this
.
ruleForm
.
xzzXzqhdm
=
'110000'
//北京市
this
.
ruleForm
.
xzzDzmc
=
'海淀区'
this
.
ruleForm
.
nydwGajgjgdm
=
'540000000000'
//西藏
this
.
ruleForm
.
nyryXm
=
'李雷雷'
this
.
ruleForm
.
nysj
=
'2022-01-17'
this
.
ruleForm
.
nyryGmsfhm
=
'132910199608122049'
this
.
ruleForm
.
nyryLxdh
=
'13111133331'
// } else {
// return
// }
},
mounted
()
{
// console.log(process.env.VUE_APP_AUTO_WRITE);
// console.log(this.$route.query.barcode)
if
(
this
.
$route
.
params
.
type
===
"edit"
)
{
this
.
edit
=
this
.
$t
(
'Menu.xgry'
);
// this.getRyinfo(this.$route.params.barcode);
disabledDate
(
a
)
{
if
(
a
.
getTime
()
>
new
Date
().
getTime
())
{
return
true
}
else
{
// console.log(this.$route.params.type==='edit');
this
.
edit
=
this
.
$t
(
'Menu.xzry'
);
return
false
}
},
watch
:
{
"ruleForm.cyzjdm"
(
newV
,
oldV
)
{
// console.log(newV)
if
(
this
.
ruleForm
.
cyzjdm
==
'111'
)
{
console
.
log
(
this
.
rules
.
zjhm
[
1
]);
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
"pattern"
,
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
)
}
else
{
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
"pattern"
,
/^
[
0-9a-zA-Z
]
+$/
)
}
},
tijiao
(
e
)
{
let
tjType
=
this
.
$route
.
params
.
type
if
(
tjType
===
'edit'
)
{
this
.
editForm
(
e
)
}
else
{
this
.
submitForm
(
e
)
}
},
methods
:
{
isRight
()
{
if
(
this
.
ruleForm
.
cyzjdm
===
"111"
&&
this
.
ruleForm
.
zjhm
!=
''
)
{
let
b
=
moment
(
this
.
ruleForm
.
csrq
).
format
(
"YYYYMMDD"
)
if
(
b
!=
this
.
ruleForm
.
zjhm
.
toString
().
substr
(
6
,
8
))
{
// alert("请输入和出生日期匹配的证件号码")
this
.
$alert
(
this
.
$t
(
'Xzry.csrq_pp'
),
this
.
$t
(
'Common.tips'
),
{
confirmButtonText
:
this
.
$t
(
'Common.qd'
),
callback
:
action
=>
{
// this.$message({
// type: 'info',
// // message: `action: ${action}`
// });
}
});
editForm
(
formName
)
{
let
self
=
this
// debugger
// console.log(self.ruleForm);
// console.log(formName);
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
// let logicList = this.ruleForm.logicdbtype2.map(Number)
// let cjxxyyList = this.ruleForm.cjxxyydm
// delete this.ruleForm.cjxxyydm
this
.
logicList
=
this
.
checkedTargets
.
map
(
Number
)
let
reqParam
=
{
personDo
:
''
,
logicList
:
[],
cjxxyyList
:
[],
}
}
},
auto
()
{
// if (process.env.VUE_APP_AUTO_WRITE == 'dev' || process.env.VUE_APP_AUTO_WRITE == 'pro') {
var
code
=
""
;
for
(
var
i
=
0
;
i
<
22
;
i
++
)
{
var
r1
=
parseInt
(
Math
.
random
()
*
this
.
numbers
.
length
)
code
+=
r1
}
// console.log(code);
this
.
ruleForm
.
ysxtAsjxgrybh
=
code
this
.
ruleForm
.
jzrybh
=
code
this
.
ruleForm
.
asjxgrybh
=
code
this
.
ruleForm
.
zzhwkbh
=
code
this
.
ruleForm
.
cjxxyydm
=
[
"01"
,
"02"
]
this
.
ruleForm
.
xm
=
"李明"
this
.
ruleForm
.
xbdm
=
"1"
this
.
ruleForm
.
csrq
=
"2022-01-17"
this
.
ruleForm
.
gjdm
=
"156"
//中国
this
.
ruleForm
.
mzdm
=
"01"
//汉族
this
.
ruleForm
.
cyzjdm
=
"111"
//身份证号
this
.
ruleForm
.
zjhm
=
"140911199909091425"
//身份证号
this
.
ruleForm
.
hjdzXzqhdm
=
"110000"
//北京市
this
.
ruleForm
.
hjdzDzmc
=
"海淀区"
this
.
ruleForm
.
xzzXzqhdm
=
"110000"
//北京市
this
.
ruleForm
.
xzzDzmc
=
"海淀区"
this
.
ruleForm
.
nydwGajgjgdm
=
"540000000000"
//西藏
this
.
ruleForm
.
nyryXm
=
"李雷雷"
this
.
ruleForm
.
nysj
=
"2022-01-17"
this
.
ruleForm
.
nyryGmsfhm
=
"132910199608122049"
this
.
ruleForm
.
nyryLxdh
=
"13111133331"
// } else {
// return
// }
},
disabledDate
(
a
)
{
if
(
a
.
getTime
()
>
new
Date
().
getTime
())
{
return
true
;
}
else
{
return
false
;
}
},
tijiao
(
e
)
{
let
tjType
=
this
.
$route
.
params
.
type
;
if
(
tjType
===
"edit"
)
{
this
.
editForm
(
e
);
// reqParam.cjxxyyList = this.ruleForm.cjxxyydm
// this.ruleForm.cjxxyydm.forEach(item => {
// item = Number(item)
// })
// console.log(reqParam.cjxxyyList);
// delete this.ruleForm.cjxxyydm
reqParam
.
personDo
=
this
.
ruleForm
reqParam
.
cjxxyyList
=
this
.
ruleForm
.
cjxxyydm
// reqParam.personDo.ysxtAsjxgrybh = this.ruleForm.ysxtAsjxgrybh
reqParam
.
personDo
.
ysxtAsjxgrybh
=
'R'
+
this
.
ruleForm
.
ysxtAsjxgrybh
reqParam
.
personDo
.
height
=
Number
(
this
.
ruleForm
.
height
)
reqParam
.
personDo
.
weight
=
Number
(
this
.
ruleForm
.
weight
)
reqParam
.
logicList
=
this
.
logicList
delete
reqParam
.
personDo
.
cjxxyydm
this
.
$axios
.
post
(
'/api/personstore/person/file'
,
reqParam
)
.
then
((
res
)
=>
{
// console.log(res.data);
if
(
res
.
data
.
code
===
0
)
{
self
.
$message
.
success
(
this
.
$t
(
'Common.edit_success'
))
// 清除全部案件库缓存
self
.
$store
.
commit
(
'layout/delcachePageName'
,
'htcj'
)
this
.
$store
.
commit
(
'layout/delcachePageName'
,
'xzry'
)
this
.
$store
.
commit
(
'layout/delcachePageName'
,
'xzryedit'
)
// this.$refs[formName].resetFields();
this
.
$set
(
this
.
ruleForm
,
'ysxtAsjxgrybh'
,
this
.
ruleForm
.
ysxtAsjxgrybh
.
substring
(
1
,
23
)
)
this
.
$router
.
push
({
path
:
`/fingerprintIndex/
${
reqParam
.
personDo
.
ysxtAsjxgrybh
}
/
${
this
.
ruleForm
.
xm
}
`
,
query
:
{
type
:
1
,
},
})
}
else
{
self
.
$message
.
error
(
this
.
$t
(
'Common.edit_fail'
))
}
})
self
.
$bus
.
emit
(
'isBlur'
,
false
)
}
else
{
this
.
submitForm
(
e
);
this
.
$nextTick
(()
=>
{
let
isError
=
document
.
getElementsByClassName
(
'is-error'
)
isError
[
0
].
scrollIntoView
({
// 滚动到指定节点
// 值有start,center,end,nearest,当前显示在视图区域中间
block
:
'center'
,
// 值有auto、instant,smooth,缓动动画(当前是慢速的)
behavior
:
'smooth'
,
})
})
return
false
}
},
editForm
(
formName
)
{
let
self
=
this
;
// debugger
// console.log(self.ruleForm);
// console.log(formName);
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
// let logicList = this.ruleForm.logicdbtype2.map(Number)
// let cjxxyyList = this.ruleForm.cjxxyydm
// delete this.ruleForm.cjxxyydm
this
.
logicList
=
this
.
checkedTargets
.
map
(
Number
);
})
},
submitForm
(
formName
)
{
let
self
=
this
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
checkedTargets
.
length
==
0
)
{
this
.
$message
.
error
(
this
.
$t
(
'Common.select_ljk'
))
}
else
{
this
.
logicList
=
this
.
checkedTargets
.
map
(
Number
)
let
reqParam
=
{
personDo
:
""
,
personDo
:
''
,
logicList
:
[],
cjxxyyList
:
[],
};
// reqParam.cjxxyyList = this.ruleForm.cjxxyydm
// this.ruleForm.cjxxyydm.forEach(item => {
// item = Number(item)
// })
// console.log(reqParam.cjxxyyList);
// delete this.ruleForm.cjxxyydm
reqParam
.
personDo
=
this
.
ruleForm
;
reqParam
.
cjxxyyList
=
this
.
ruleForm
.
cjxxyydm
;
// reqParam.personDo.ysxtAsjxgrybh = this.ruleForm.ysxtAsjxgrybh
reqParam
.
personDo
.
ysxtAsjxgrybh
=
"R"
+
this
.
ruleForm
.
ysxtAsjxgrybh
;
reqParam
.
logicList
=
this
.
logicList
;
delete
reqParam
.
personDo
.
cjxxyydm
;
}
reqParam
.
cjxxyyList
=
this
.
ruleForm
.
cjxxyydm
delete
this
.
ruleForm
.
cjxxyydm
reqParam
.
personDo
=
this
.
ruleForm
reqParam
.
personDo
.
ysxtAsjxgrybh
=
'R'
+
this
.
ruleForm
.
ysxtAsjxgrybh
reqParam
.
personDo
.
height
=
Number
(
this
.
ruleForm
.
height
)
reqParam
.
personDo
.
weight
=
Number
(
this
.
ruleForm
.
weight
)
reqParam
.
logicList
=
this
.
logicList
console
.
log
(
reqParam
.
personDo
.
ysxtAsjxgrybh
)
console
.
log
(
this
.
ruleForm
.
ysxtAsjxgrybh
)
this
.
$axios
.
post
(
"/api/personstore/person/file"
,
reqParam
)
.
then
((
res
)
=>
{
// console.log(res.data);
if
(
res
.
data
.
code
===
0
)
{
self
.
$message
.
success
(
this
.
$t
(
'Common.edit_success'
));
// 清除全部案件库缓存
self
.
$store
.
commit
(
'layout/delcachePageName'
,
'htcj'
)
this
.
$store
.
commit
(
'layout/delcachePageName'
,
'xzry'
)
this
.
$store
.
commit
(
'layout/delcachePageName'
,
'xzryedit'
)
// this.$refs[formName].resetFields();
this
.
$set
(
this
.
ruleForm
,
'ysxtAsjxgrybh'
,
this
.
ruleForm
.
ysxtAsjxgrybh
.
substring
(
1
,
23
))
this
.
$router
.
push
({
path
:
`/fingerprintIndex/
${
reqParam
.
personDo
.
ysxtAsjxgrybh
}
/
${
this
.
ruleForm
.
xm
}
`
,
query
:
{
type
:
1
},
});
}
else
{
self
.
$message
.
error
(
this
.
$t
(
'Common.edit_fail'
));
}
});
self
.
$bus
.
emit
(
"isBlur"
,
false
);
}
else
{
this
.
$nextTick
(()
=>
{
let
isError
=
document
.
getElementsByClassName
(
"is-error"
);
isError
[
0
].
scrollIntoView
({
// 滚动到指定节点
// 值有start,center,end,nearest,当前显示在视图区域中间
block
:
"center"
,
// 值有auto、instant,smooth,缓动动画(当前是慢速的)
behavior
:
"smooth"
,
});
});
return
false
;
}
});
},
submitForm
(
formName
)
{
let
self
=
this
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
checkedTargets
.
length
==
0
)
{
this
.
$message
.
error
(
this
.
$t
(
'Common.select_ljk'
));
}
else
{
this
.
logicList
=
this
.
checkedTargets
.
map
(
Number
);
let
reqParam
=
{
personDo
:
""
,
logicList
:
[],
cjxxyyList
:
[],
};
reqParam
.
cjxxyyList
=
this
.
ruleForm
.
cjxxyydm
;
delete
this
.
ruleForm
.
cjxxyydm
;
reqParam
.
personDo
=
this
.
ruleForm
;
reqParam
.
personDo
.
ysxtAsjxgrybh
=
"R"
+
this
.
ruleForm
.
ysxtAsjxgrybh
;
reqParam
.
logicList
=
this
.
logicList
;
console
.
log
(
reqParam
.
personDo
.
ysxtAsjxgrybh
);
console
.
log
(
this
.
ruleForm
.
ysxtAsjxgrybh
);
this
.
$axios
.
post
(
"/api/personstore/personadd"
,
reqParam
)
.
then
((
response
)
=>
{
console
.
log
(
response
);
if
(
response
.
data
.
code
===
0
)
{
this
.
$message
.
success
(
this
.
$t
(
'Common.add_success'
));
self
.
$axios
({
.
post
(
'/api/personstore/personadd'
,
reqParam
)
.
then
((
response
)
=>
{
console
.
log
(
response
)
if
(
response
.
data
.
code
===
0
)
{
this
.
$message
.
success
(
this
.
$t
(
'Common.add_success'
))
self
.
$axios
({
method
:
'post'
,
url
:
'/api/workflow/savePersonOrCase'
,
params
:
{
barcode
:
this
.
ruleForm
.
ysxtAsjxgrybh
,
type
:
1
}
}).
then
(
res
=>
{
type
:
1
,
},
})
.
then
((
res
)
=>
{
// console.log(res);
if
(
res
.
data
.
code
===
0
)
{
this
.
$router
.
push
({
path
:
`/fingerprintIndex/
${
reqParam
.
personDo
.
ysxtAsjxgrybh
}
/
${
this
.
ruleForm
.
xm
}
`
,
query
:
{
type
:
0
}
type
:
0
,
}
,
})
this
.
$store
.
commit
(
'layout/delcachePageName'
,
'htcj'
)
this
.
$refs
[
formName
].
resetFields
()
;
this
.
$refs
[
formName
].
resetFields
()
this
.
ruleForm
=
{
ysxtAsjxgrybh
:
""
,
// 人员编号
jzrybh
:
""
,
// 警综人员编号
asjxgrybh
:
""
,
// 案事件相关人员编号号
zzhwkbh
:
""
,
// 现场掌指纹卡编号
cjxxyydm
:
""
,
// 采集信息原因
ysxtAsjxgrybh
:
''
,
// 人员编号
jzrybh
:
''
,
// 警综人员编号
asjxgrybh
:
''
,
// 案事件相关人员编号号
zzhwkbh
:
''
,
// 现场掌指纹卡编号
cjxxyydm
:
''
,
// 采集信息原因
xm
:
""
,
// 姓名
bmch
:
""
,
// 别名
xbdm
:
""
,
// 性别
csrq
:
""
,
// 出生日期
gjdm
:
""
,
// 国籍
mzdm
:
""
,
// 民族
cyzjdm
:
""
,
// 证件类型
zjhm
:
""
,
// 证件号码
hjdzXzqhdm
:
""
,
// 户籍地行政区
hjdzDzmc
:
""
,
// 户籍地址
xzzXzqhdm
:
""
,
// 现住址行政区
xzzDzmc
:
""
,
// 现住址
bz
:
""
,
// 备注
xm
:
''
,
// 姓名
bmch
:
''
,
// 别名
xbdm
:
''
,
// 性别
height
:
''
,
// 身高
weight
:
''
,
// 体重
csrq
:
''
,
// 出生日期
gjdm
:
''
,
// 国籍
mzdm
:
''
,
// 民族
cyzjdm
:
''
,
// 证件类型
zjhm
:
''
,
// 证件号码
hjdzXzqhdm
:
''
,
// 户籍地行政区
hjdzDzmc
:
''
,
// 户籍地址
xzzXzqhdm
:
''
,
// 现住址行政区
xzzDzmc
:
''
,
// 现住址
bz
:
''
,
// 备注
nydwGajgjgdm
:
""
,
// 捺印单位
nyryXm
:
""
,
// 捺印人姓名
nydwGajgjgdm
:
''
,
// 捺印单位
nyryXm
:
''
,
// 捺印人姓名
nysj
:
new
Date
(),
// 捺印时间
nyryGmsfhm
:
""
,
// 捺印人身份证号
nyryLxdh
:
""
,
// 捺印人电话
nyryGmsfhm
:
''
,
// 捺印人身份证号
nyryLxdh
:
''
,
// 捺印人电话
ifidcard
:
"1"
,
// 是否采集二代身份证
zwbdxtlxms
:
"1"
,
// 指纹比对描述
}
;
this
.
checkedTargets
=
[
"1"
];
// 选定的目标逻辑库
ifidcard
:
'1'
,
// 是否采集二代身份证
zwbdxtlxms
:
'1'
,
// 指纹比对描述
}
this
.
checkedTargets
=
[
'1'
]
// 选定的目标逻辑库
}
})
}
else
{
this
.
$message
.
error
(
this
.
$t
(
'Common.add_fail'
));
this
.
$set
(
this
.
ruleForm
,
"cjxxyydm"
,
[]);
this
.
$set
(
this
.
ruleForm
,
'ysxtAsjxgrybh'
,
this
.
ruleForm
.
ysxtAsjxgrybh
.
substring
(
1
,
23
))
}
});
}
}
else
{
this
.
$nextTick
(()
=>
{
let
isError
=
document
.
getElementsByClassName
(
"is-error"
);
isError
[
0
].
scrollIntoView
({
// 滚动到指定节点
// 值有start,center,end,nearest,当前显示在视图区域中间
block
:
"center"
,
// 值有auto、instant,smooth,缓动动画(当前是慢速的)
behavior
:
"smooth"
,
});
});
return
false
;
}
else
{
this
.
$message
.
error
(
this
.
$t
(
'Common.add_fail'
))
this
.
$set
(
this
.
ruleForm
,
'cjxxyydm'
,
[])
this
.
$set
(
this
.
ruleForm
,
'ysxtAsjxgrybh'
,
this
.
ruleForm
.
ysxtAsjxgrybh
.
substring
(
1
,
23
)
)
}
})
}
});
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
this
.
$store
.
commit
(
'layout/delcachePageName'
,
'xzry'
)
this
.
ruleForm
=
{}
//清空列表
// 关闭tab页
this
.
$bus
.
emit
(
"xzryResetForm"
,
"xzry"
);
this
.
$router
.
push
(
'/htcj'
)
},
initData
()
{
// 赋值
this
.
ruleForm
.
id
=
this
.
ryInfo
.
id
;
this
.
ruleForm
.
rybh
=
this
.
ryInfo
.
ysxtAsjxgrybh
;
this
.
ruleForm
.
jzrybh
=
this
.
ryInfo
.
jzrybh
;
// 人员档案信息
if
(
this
.
ryInfo
.
cjxxyydm
)
{
this
.
ruleForm
.
cjxxyydm
=
this
.
ryInfo
.
cjxxyydm
.
split
(
","
);
}
this
.
ruleForm
.
zzhwkbh
=
this
.
ryInfo
.
zzhwkbh
;
this
.
ruleForm
.
asjxgrybh
=
this
.
ryInfo
.
asjxgrybh
;
this
.
ruleForm
.
xm
=
this
.
ryInfo
.
xm
;
this
.
ruleForm
.
bmch
=
this
.
ryInfo
.
bmch
;
this
.
ruleForm
.
xbdm
=
this
.
ryInfo
.
xbdm
;
this
.
ruleForm
.
csrq
=
this
.
ryInfo
.
csrq
;
this
.
ruleForm
.
gjdm
=
this
.
ryInfo
.
gjdm
;
this
.
ruleForm
.
mzdm
=
this
.
ryInfo
.
mzdm
;
this
.
ruleForm
.
cyzjdm
=
this
.
ryInfo
.
cyzjdm
;
this
.
ruleForm
.
zjhm
=
this
.
ryInfo
.
zjhm
;
this
.
ruleForm
.
hjdzXzqhdm
=
this
.
ryInfo
.
hjdzXzqhdm
;
this
.
ruleForm
.
hjdzDzmc
=
this
.
ryInfo
.
hjdzDzmc
;
this
.
ruleForm
.
xzzXzqhdm
=
this
.
ryInfo
.
xzzXzqhdm
;
this
.
ruleForm
.
xzzDzmc
=
this
.
ryInfo
.
xzzDzmc
;
this
.
ruleForm
.
bz
=
this
.
ryInfo
.
bz
;
// 人员逻辑分库
// let ryljfk = this.ryInfo.logicdbtype.split('')
// this.ruleForm.logicdbtype = ryljfk
if
(
this
.
ryInfo
.
logicDatabaseCode
&&
this
.
ryInfo
.
logicDatabaseCode
.
length
>
0
)
{
this
.
ruleForm
.
logicdbtype2
=
this
.
ryInfo
.
logicDatabaseCode
.
split
(
","
);
}
else
{
this
.
ruleForm
.
logicdbtype2
=
[];
}
this
.
ruleForm
.
nydwGajgjgdm
=
this
.
ryInfo
.
nydwGajgjgdm
;
this
.
ruleForm
.
nyryXm
=
this
.
ryInfo
.
nyryXm
;
this
.
ruleForm
.
nysj
=
this
.
ryInfo
.
nysj
;
this
.
ruleForm
.
nyryGmsfhm
=
this
.
ryInfo
.
nyryGmsfhm
;
this
.
ruleForm
.
nyryLxdh
=
this
.
ryInfo
.
nyryLxdh
;
},
getRyinfo
(
code
)
{
let
self
=
this
;
this
.
reqParam
.
personStoreCustomSearch
.
ysxtAsjxgrybh
=
code
;
this
.
$axios
.
post
(
"/api/personstore/person/list"
,
this
.
reqParam
)
.
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
0
)
{
self
.
ryInfo
=
response
.
data
.
ret
.
list
[
0
];
self
.
initData
();
this
.
ruleForm
.
ysxtAsjxgrybh
=
self
.
ryInfo
.
ysxtAsjxgrybh
;
// this.ruleForm = self.ryInfo
this
.
ruleForm
.
ysxtAsjxgrybh
=
self
.
ryInfo
.
ysxtAsjxgrybh
.
toString
()
.
substr
(
1
);
}
else
{
self
.
$message
.
error
(
response
.
data
.
message
);
}
});
},
/**
* @description: 工作流
* @param {*}
* @return {*}
*/
workStream
()
{
NetUtil
.
workStream
.
stream
({
barcode
:
"R"
+
this
.
ruleForm
.
ysxtAsjxgrybh
,
type
:
1
})
.
then
(
response
=>
{
if
(
response
.
code
===
0
)
{
console
.
log
(
response
);
}
else
{
}
this
.
$nextTick
(()
=>
{
let
isError
=
document
.
getElementsByClassName
(
'is-error'
)
isError
[
0
].
scrollIntoView
({
// 滚动到指定节点
// 值有start,center,end,nearest,当前显示在视图区域中间
block
:
'center'
,
// 值有auto、instant,smooth,缓动动画(当前是慢速的)
behavior
:
'smooth'
,
})
})
return
false
}
})
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
()
this
.
$store
.
commit
(
'layout/delcachePageName'
,
'xzry'
)
this
.
ruleForm
=
{}
//清空列表
// 关闭tab页
this
.
$bus
.
emit
(
'xzryResetForm'
,
'xzry'
)
this
.
$router
.
push
(
'/htcj'
)
},
initData
()
{
// 赋值
this
.
ruleForm
.
id
=
this
.
ryInfo
.
id
this
.
ruleForm
.
rybh
=
this
.
ryInfo
.
ysxtAsjxgrybh
this
.
ruleForm
.
jzrybh
=
this
.
ryInfo
.
jzrybh
// 人员档案信息
if
(
this
.
ryInfo
.
cjxxyydm
)
{
this
.
ruleForm
.
cjxxyydm
=
this
.
ryInfo
.
cjxxyydm
.
split
(
','
)
}
this
.
ruleForm
.
zzhwkbh
=
this
.
ryInfo
.
zzhwkbh
this
.
ruleForm
.
asjxgrybh
=
this
.
ryInfo
.
asjxgrybh
this
.
ruleForm
.
xm
=
this
.
ryInfo
.
xm
this
.
ruleForm
.
bmch
=
this
.
ryInfo
.
bmch
this
.
ruleForm
.
height
=
this
.
ryInfo
.
height
this
.
ruleForm
.
weight
=
this
.
ryInfo
.
weight
this
.
ruleForm
.
xbdm
=
this
.
ryInfo
.
xbdm
this
.
ruleForm
.
csrq
=
this
.
ryInfo
.
csrq
this
.
ruleForm
.
gjdm
=
this
.
ryInfo
.
gjdm
this
.
ruleForm
.
mzdm
=
this
.
ryInfo
.
mzdm
this
.
ruleForm
.
cyzjdm
=
this
.
ryInfo
.
cyzjdm
this
.
ruleForm
.
zjhm
=
this
.
ryInfo
.
zjhm
this
.
ruleForm
.
hjdzXzqhdm
=
this
.
ryInfo
.
hjdzXzqhdm
this
.
ruleForm
.
hjdzDzmc
=
this
.
ryInfo
.
hjdzDzmc
this
.
ruleForm
.
xzzXzqhdm
=
this
.
ryInfo
.
xzzXzqhdm
this
.
ruleForm
.
xzzDzmc
=
this
.
ryInfo
.
xzzDzmc
this
.
ruleForm
.
bz
=
this
.
ryInfo
.
bz
// 人员逻辑分库
// let ryljfk = this.ryInfo.logicdbtype.split('')
// this.ruleForm.logicdbtype = ryljfk
if
(
this
.
ryInfo
.
logicDatabaseCode
&&
this
.
ryInfo
.
logicDatabaseCode
.
length
>
0
)
{
this
.
ruleForm
.
logicdbtype2
=
this
.
ryInfo
.
logicDatabaseCode
.
split
(
','
)
}
else
{
this
.
ruleForm
.
logicdbtype2
=
[]
}
this
.
ruleForm
.
nydwGajgjgdm
=
this
.
ryInfo
.
nydwGajgjgdm
this
.
ruleForm
.
nyryXm
=
this
.
ryInfo
.
nyryXm
this
.
ruleForm
.
nysj
=
this
.
ryInfo
.
nysj
this
.
ruleForm
.
nyryGmsfhm
=
this
.
ryInfo
.
nyryGmsfhm
this
.
ruleForm
.
nyryLxdh
=
this
.
ryInfo
.
nyryLxdh
},
watch
:
{
"ruleForm.cyzjdm"
(
newValue
,
oldValue
)
{
if
(
this
.
ruleForm
.
cyzjdm
==
"111"
)
{
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
'pattern'
,
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
)
}
else
{
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
'pattern'
,
/^
(?:
0|
[
1-9
]\d{3,30})?
$/
)
}
getRyinfo
(
code
)
{
let
self
=
this
this
.
reqParam
.
personStoreCustomSearch
.
ysxtAsjxgrybh
=
code
this
.
$axios
.
post
(
'/api/personstore/person/list'
,
this
.
reqParam
)
.
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
0
)
{
self
.
ryInfo
=
response
.
data
.
ret
.
list
[
0
]
self
.
initData
()
this
.
ruleForm
.
ysxtAsjxgrybh
=
self
.
ryInfo
.
ysxtAsjxgrybh
// this.ruleForm = self.ryInfo
this
.
ruleForm
.
ysxtAsjxgrybh
=
self
.
ryInfo
.
ysxtAsjxgrybh
.
toString
()
.
substr
(
1
)
}
else
{
self
.
$message
.
error
(
response
.
data
.
message
)
}
})
},
/**
* @description: 工作流
* @param {*}
* @return {*}
*/
workStream
()
{
NetUtil
.
workStream
.
stream
({
barcode
:
'R'
+
this
.
ruleForm
.
ysxtAsjxgrybh
,
type
:
1
,
})
.
then
((
response
)
=>
{
if
(
response
.
code
===
0
)
{
console
.
log
(
response
)
}
else
{
}
})
},
},
watch
:
{
'ruleForm.cyzjdm'
(
newValue
,
oldValue
)
{
if
(
this
.
ruleForm
.
cyzjdm
==
'111'
)
{
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
'pattern'
,
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
)
}
else
{
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
'pattern'
,
/^
(?:
0|
[
1-9
]\d{3,30})?
$/
)
}
},
};
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"./xzry.scss"
;
@import
'./xzry.scss'
;
</
style
>
src/views/zzwlr/xzryedit.vue
View file @
910dabe6
...
...
@@ -12,7 +12,7 @@
<div
class=
"fir"
>
<div
class=
"cir"
>
1
</div>
<!-- @click="auto" -->
<span>
{{
$t
(
'Xzry.ryxx'
)
}}
</span>
<span>
{{
$t
(
'Xzry.ryxx'
)
}}
</span>
<div
class=
"dashed"
></div>
</div>
<!--
<div
class=
"unactive"
>
...
...
@@ -22,117 +22,259 @@
</div>
-->
<div
class=
"unactive"
>
<div
class=
"cir"
>
2
</div>
<span>
{{
$t
(
'Xzry.zzwcj'
)
}}
</span>
<span>
{{
$t
(
'Xzry.zzwcj'
)
}}
</span>
</div>
</div>
<div
class=
"content"
>
<el-form
:label-position=
"labelPosition"
:inline=
"true"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
class=
"demo-form-inline"
>
<el-form
:label-position=
"labelPosition"
:inline=
"true"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
class=
"demo-form-inline"
>
<!-- 一 -->
<el-row
class=
"title"
>
<div
class=
"colorDiv"
></div>
<div>
{{
$t
(
'Xzry.nyzzwinfo'
)
}}
</div>
<div>
{{
$t
(
'Xzry.nyzzwinfo'
)
}}
</div>
</el-row>
<!-- 二 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.rybh')+':'"
prop=
"ysxtAsjxgrybh"
>
<el-input
v-model
.
trim=
"ruleForm.ysxtAsjxgrybh"
:placeholder=
"$t('Common.rybh_placeholder')"
maxlength=
"22"
class=
"inputBh"
disabled
show-word-limit
clearable
>
<template
slot=
"prepend"
class=
"preR"
>
R
</
template
>
<el-form-item
:label=
"$t('Common.rybh') + ':'"
prop=
"ysxtAsjxgrybh"
>
<el-input
v-model
.
trim=
"ruleForm.ysxtAsjxgrybh"
:placeholder=
"$t('Common.rybh_placeholder')"
maxlength=
"22"
class=
"inputBh"
disabled
show-word-limit
clearable
>
<template
slot=
"prepend"
>
R
</
template
>
</el-input>
</el-form-item>
<el-form-item
class=
"no_require"
:label=
"$t('Common.jzrybh')+':'"
>
<el-input
v-model
.
trim=
"ruleForm.jzrybh"
:placeholder=
"$t('Common.jzrybh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
>
<el-form-item
class=
"no_require"
:label=
"$t('Common.jzrybh') + ':'"
>
<el-input
v-model
.
trim=
"ruleForm.jzrybh"
:placeholder=
"$t('Common.jzrybh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<!-- 三 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.cjxxyy')+':'"
prop=
"cjxxyydm"
>
<SelectCode
codeUrl=
"/api/code/cjxxyydm"
width=
"18.75"
:clearable=
"true"
:form=
"ruleForm"
id=
"cjxxyydm"
ref=
"cjxxyydm"
multiple
:multipleLimit=
"5"
></SelectCode>
<el-form-item
:label=
"$t('Common.cjxxyy') + ':'"
prop=
"cjxxyydm"
>
<SelectCode
codeUrl=
"/api/code/cjxxyydm"
width=
"18.75"
:clearable=
"true"
:form=
"ruleForm"
id=
"cjxxyydm"
ref=
"cjxxyydm"
multiple
:multipleLimit=
"5"
></SelectCode>
</el-form-item>
<el-form-item
class=
"no_require"
:label=
"$t('Common.zzwkbh')
+
':'"
>
<el-form-item
class=
"no_require"
:label=
"$t('Common.zzwkbh')
+
':'"
>
<!-- -->
<el-input
v-model
.
trim=
"ruleForm.zzhwkbh"
:placeholder=
"$t('Common.zzwkbh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
>
<el-input
v-model
.
trim=
"ruleForm.zzhwkbh"
:placeholder=
"$t('Common.zzwkbh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<!-- 四 -->
<el-row
class=
"item-row"
>
<el-form-item>
</el-form-item>
<el-form-item
class=
"no_require"
:label=
"$t('Common.asjxgrybh')+':'"
>
<el-form-item
class=
"no_require"
:label=
"$t('Common.asjxgrybh') + ':'"
>
<!-- -->
<el-input
v-model
.
trim=
"ruleForm.asjxgrybh"
:placeholder=
"$t('Common.asjxgrybh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
></el-input>
<el-input
v-model
.
trim=
"ruleForm.asjxgrybh"
:placeholder=
"$t('Common.asjxgrybh_placeholder')"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-row>
<el-divider></el-divider>
<!-- 五 -->
<el-row
class=
"title"
>
<div
class=
"colorDiv"
></div>
<div>
{{
$t('Xzry.zzwtqinfo')
}}
</div>
<div>
{{
$t('Xzry.zzwtqinfo')
}}
</div>
</el-row>
<!-- 六 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.xm')+':'"
prop=
"xm"
>
<el-input
v-model
.
trim=
"ruleForm.xm"
:placeholder=
"$t('Common.xm_placeholder')"
clearable
maxlength=
"50"
show-word-limit
>
<el-form-item
:label=
"$t('Common.xm') + ':'"
prop=
"xm"
>
<el-input
v-model
.
trim=
"ruleForm.xm"
:placeholder=
"$t('Common.xm_placeholder')"
clearable
maxlength=
"50"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
class=
"no_require"
:label=
"$t('Common.bmch')+':'"
>
<el-input
v-model
.
trim=
"ruleForm.bmch"
:placeholder=
"$t('Common.bmch_placeholder')"
maxlength=
"50"
show-word-limit
clearable
>
<el-form-item
class=
"no_require"
:label=
"$t('Common.bmch') + ':'"
>
<el-input
v-model
.
trim=
"ruleForm.bmch"
:placeholder=
"$t('Common.bmch_placeholder')"
maxlength=
"50"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<el-row
class=
"item-row"
>
<el-form-item
class=
"no_require"
label=
"身高(cm):"
prop=
"height"
>
<el-input
v-model
.
trim=
"ruleForm.height"
placeholder=
"请输入身高"
clearable
>
</el-input>
</el-form-item>
<el-form-item
class=
"no_require"
label=
"体重(kg):"
prop=
"weight"
>
<el-input
v-model
.
trim=
"ruleForm.weight"
placeholder=
"请输入体重"
clearable
>
</el-input>
</el-form-item>
</el-row>
<!-- 七 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.xb')+':'"
prop=
"xbdm"
>
<SelectCode
codeUrl=
"/api/code/sex"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"xbdm"
></SelectCode>
<el-form-item
:label=
"$t('Common.xb') + ':'"
prop=
"xbdm"
>
<SelectCode
codeUrl=
"/api/code/sex"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"xbdm"
></SelectCode>
</el-form-item>
<el-form-item
:label=
"$t('Common.csrq')+':'"
prop=
"csrq"
>
<el-date-picker
type=
"date"
:placeholder=
"$t('Common.csrq_placeholder')"
v-model=
"ruleForm.csrq"
style=
"width: 100%"
:picker-options=
"{
<el-form-item
:label=
"$t('Common.csrq') + ':'"
prop=
"csrq"
>
<el-date-picker
type=
"date"
:placeholder=
"$t('Common.csrq_placeholder')"
v-model=
"ruleForm.csrq"
style=
"width: 100%"
:picker-options=
"{
disabledDate: disabledDate,
}"
></el-date-picker>
}"
></el-date-picker>
</el-form-item>
</el-row>
<!-- 八 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.gj')+':'"
prop=
"gjdm"
>
<SelectCode
codeUrl=
"/api/code/nationality"
width=
"18.75"
:form=
"ruleForm"
id=
"gjdm"
></SelectCode>
<el-form-item
:label=
"$t('Common.gj') + ':'"
prop=
"gjdm"
>
<SelectCode
codeUrl=
"/api/code/nationality"
width=
"18.75"
:form=
"ruleForm"
id=
"gjdm"
></SelectCode>
</el-form-item>
<el-form-item
:label=
"$t('Common.mz')+':'"
prop=
"mzdm"
>
<SelectCode
codeUrl=
"/api/code/nation"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"mzdm"
></SelectCode>
<el-form-item
:label=
"$t('Common.mz') + ':'"
prop=
"mzdm"
>
<SelectCode
codeUrl=
"/api/code/nation"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"mzdm"
></SelectCode>
</el-form-item>
</el-row>
<!-- 九 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.cyzjdm')+':'"
prop=
"cyzjdm"
>
<SelectCode
codeUrl=
"/api/code/certificates"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"cyzjdm"
>
<el-form-item
:label=
"$t('Common.cyzjdm') + ':'"
prop=
"cyzjdm"
>
<SelectCode
codeUrl=
"/api/code/certificates"
width=
"18.75"
clearable
:form=
"ruleForm"
id=
"cyzjdm"
>
</SelectCode>
</el-form-item>
<el-form-item
:label=
"$t('Common.zjhm')+':'"
prop=
"zjhm"
>
<el-input
v-model
.
trim=
"ruleForm.zjhm"
:placeholder=
"$t('Common.zjhm_placeholder')"
maxlength=
"30"
show-word-limit
clearable
@
blur=
"isRight"
>
<el-form-item
:label=
"$t('Common.zjhm') + ':'"
prop=
"zjhm"
>
<el-input
v-model
.
trim=
"ruleForm.zjhm"
:placeholder=
"$t('Common.zjhm_placeholder')"
maxlength=
"30"
show-word-limit
clearable
@
blur=
"isRight"
>
</el-input>
</el-form-item>
</el-row>
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.hjdzXzqhdm')+':'"
prop=
"hjdzXzqhdm"
>
<Cascader
:form=
"ruleForm"
id=
"hjdzXzqhdm"
codeName=
"CODE_XZQH"
:width=
"18.75"
></Cascader>
<el-form-item
:label=
"$t('Common.hjdzXzqhdm') + ':'"
prop=
"hjdzXzqhdm"
>
<Cascader
:form=
"ruleForm"
id=
"hjdzXzqhdm"
codeName=
"CODE_XZQH"
:width=
"18.75"
></Cascader>
</el-form-item>
<el-form-item
:label=
"$t('Common.hjdzDzmc')+':'"
prop=
"hjdzDzmc"
>
<el-input
v-model=
"ruleForm.hjdzDzmc"
:placeholder=
"$t('Common.hjdzDzmc_placeholder')"
maxlength=
"100"
show-word-limit
clearable
>
<el-form-item
:label=
"$t('Common.hjdzDzmc') + ':'"
prop=
"hjdzDzmc"
>
<el-input
v-model=
"ruleForm.hjdzDzmc"
:placeholder=
"$t('Common.hjdzDzmc_placeholder')"
maxlength=
"100"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.xzzXzqhdm')+':'"
prop=
"xzzXzqhdm"
>
<Cascader
:form=
"ruleForm"
id=
"xzzXzqhdm"
codeName=
"CODE_XZQH"
:width=
"18.75"
></Cascader>
<el-form-item
:label=
"$t('Common.xzzXzqhdm') + ':'"
prop=
"xzzXzqhdm"
>
<Cascader
:form=
"ruleForm"
id=
"xzzXzqhdm"
codeName=
"CODE_XZQH"
:width=
"18.75"
></Cascader>
</el-form-item>
<el-form-item
:label=
"$t('Common.now_addr')+':'"
prop=
"xzzDzmc"
>
<el-input
v-model
.
trim=
"ruleForm.xzzDzmc"
:placeholder=
"$t('Common.now_addr_placeholder')"
maxlength=
"100"
show-word-limit
clearable
>
<el-form-item
:label=
"$t('Common.now_addr') + ':'"
prop=
"xzzDzmc"
>
<el-input
v-model
.
trim=
"ruleForm.xzzDzmc"
:placeholder=
"$t('Common.now_addr_placeholder')"
maxlength=
"100"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<el-row
class=
"item-row bz"
>
<el-form-item
:label=
"$t('Common.bzxx')+':'"
>
<el-input
resize=
"none"
type=
"textarea"
:placeholder=
"$t('Common.text_placeholder')"
v-model
.
trim=
"ruleForm.bz"
show-word-limit
>
<el-form-item
:label=
"$t('Common.bzxx') + ':'"
>
<el-input
resize=
"none"
type=
"textarea"
:placeholder=
"$t('Common.text_placeholder')"
v-model
.
trim=
"ruleForm.bz"
show-word-limit
>
</el-input>
<!-- maxlength="1024" -->
</el-form-item>
...
...
@@ -141,47 +283,84 @@
<!-- 逻辑库 -->
<el-row
class=
"title"
>
<div
class=
"colorDiv"
></div>
<div>
{{
$t('Xzry.ryljfk')
}}
</div>
<div>
{{
$t('Xzry.ryljfk')
}}
</div>
</el-row>
<el-row
class=
"flexBox"
>
<div
style=
"margin: 0.9375rem 0"
></div>
<el-checkbox-group
v-model=
"checkedTargets"
style=
"padding-right: 6.875rem"
>
<el-checkbox
v-for=
"(value, key) in targets"
:key=
"key"
:label=
"value.code"
>
{{ value.name }}
</el-checkbox>
<el-checkbox-group
v-model=
"checkedTargets"
style=
"padding-right: 6.875rem"
>
<el-checkbox
v-for=
"(value, key) in targets"
:key=
"key"
:label=
"value.code"
>
{{ value.name }}
</el-checkbox
>
</el-checkbox-group>
</el-row>
<el-divider></el-divider>
<!-- 六 -->
<el-row
class=
"title"
>
<div
class=
"colorDiv"
></div>
<div>
{{
$t('Xzry.nyxx')
}}
</div>
<div>
{{
$t('Xzry.nyxx')
}}
</div>
</el-row>
<!-- 七 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.nydw')+':'"
prop=
"nydwGajgjgdm"
>
<Cascader
:form=
"ruleForm"
id=
"nydwGajgjgdm"
:width=
"18.75"
:props=
"props"
></Cascader>
<el-form-item
:label=
"$t('Common.nydw') + ':'"
prop=
"nydwGajgjgdm"
>
<Cascader
:form=
"ruleForm"
id=
"nydwGajgjgdm"
:width=
"18.75"
:props=
"props"
></Cascader>
</el-form-item>
<el-form-item
:label=
"$t('Common.nyrxm')+':'"
prop=
"nyryXm"
>
<el-input
v-model=
"ruleForm.nyryXm"
:placeholder=
"$t('Common.nyrxm_placeholder')"
maxlength=
"50"
show-word-limit
clearable
>
<el-form-item
:label=
"$t('Common.nyrxm') + ':'"
prop=
"nyryXm"
>
<el-input
v-model=
"ruleForm.nyryXm"
:placeholder=
"$t('Common.nyrxm_placeholder')"
maxlength=
"50"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<!-- 八 -->
<el-row
class=
"item-row"
>
<el-form-item
:label=
"$t('Common.nyrq')+':'"
prop=
"nysj"
>
<el-date-picker
type=
"date"
:placeholder=
"$t('Common.nyrq_placeholder')"
v-model=
"ruleForm.nysj"
style=
"width: 100%"
:picker-options=
"{
<el-form-item
:label=
"$t('Common.nyrq') + ':'"
prop=
"nysj"
>
<el-date-picker
type=
"date"
:placeholder=
"$t('Common.nyrq_placeholder')"
v-model=
"ruleForm.nysj"
style=
"width: 100%"
:picker-options=
"{
disabledDate: disabledDate,
}"
></el-date-picker>
}"
></el-date-picker>
</el-form-item>
<el-form-item
:label=
"$t('Common.nyrsfzh')+':'"
prop=
"nyryGmsfhm"
>
<el-input
v-model=
"ruleForm.nyryGmsfhm"
:placeholder=
"$t('Common.nyrsfzh_placeholder')"
maxlength=
"18"
show-word-limit
clearable
>
<el-form-item
:label=
"$t('Common.nyrsfzh') + ':'"
prop=
"nyryGmsfhm"
>
<el-input
v-model=
"ruleForm.nyryGmsfhm"
:placeholder=
"$t('Common.nyrsfzh_placeholder')"
maxlength=
"18"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
<!-- 九 -->
<el-row
class=
"item-row"
>
<el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('Common.nyrlxdh')+':'"
prop=
"nyryLxdh"
>
<el-input
v-model=
"ruleForm.nyryLxdh"
:placeholder=
"$t('Common.nyrlxdh_placeholder')"
maxlength=
"18"
show-word-limit
clearable
>
<el-form-item
:label=
"$t('Common.nyrlxdh') + ':'"
prop=
"nyryLxdh"
>
<el-input
v-model=
"ruleForm.nyryLxdh"
:placeholder=
"$t('Common.nyrlxdh_placeholder')"
maxlength=
"18"
show-word-limit
clearable
>
</el-input>
</el-form-item>
</el-row>
...
...
@@ -189,39 +368,42 @@
<div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<!-- <el-button @click="submitForm('ruleForm')">提交</el-button> -->
<el-button
@
click=
"tijiao('ruleForm')"
>
{{$t('Xzry.tjbxzzzw')}}
</el-button>
<el-button
@
click=
"tijiao('ruleForm')"
>
{{
$t('Xzry.tjbxzzzw')
}}
</el-button>
<el-button
@
click=
"resetForm('ruleForm')"
type=
"primary"
>
{{$t('Common.cancel_btn')}}
</el-button>
<el-button
@
click=
"resetForm('ruleForm')"
type=
"primary"
>
{{
$t('Common.cancel_btn')
}}
</el-button>
</span>
</div>
</el-form>
</div>
</div>
</template>
<
script
>
import
moment
from
"moment"
;
import
Cascader
from
"@/components/Cascader.vue"
;
import
SelectCode
from
"@/components/SelectCode.vue"
;
import
moment
from
'moment'
import
Cascader
from
'@/components/Cascader.vue'
import
SelectCode
from
'@/components/SelectCode.vue'
export
default
{
name
:
"xzry"
,
name
:
'xzry'
,
components
:
{
Cascader
,
SelectCode
,
},
data
()
{
data
()
{
return
{
ryInfo
:
{},
// edit: '新增人员',
dialogVisible
:
false
,
// 弹窗状态
labelPosition
:
"left"
,
// 数据项对齐方式
labelPosition
:
'left'
,
// 数据项对齐方式
checkedTargets
:
[],
// 选定的目标逻辑库
targets
:
this
.
$store
.
state
.
ljk
.
targetOptions_ry
,
// 目标逻辑库
props
:
{
value
:
"code"
,
label
:
"key"
,
children
:
"childCodeDwXz"
,
value
:
'code'
,
label
:
'key'
,
children
:
'childCodeDwXz'
,
checkStrictly
:
true
,
emitPath
:
false
,
},
...
...
@@ -233,180 +415,283 @@ export default {
currPage
:
1
,
// 当前在第几页
},
personStoreCustomSearch
:
{
ysxtAsjxgrybh
:
""
,
// 搜索框内容
ysxtAsjxgrybh
:
''
,
// 搜索框内容
searchOptions
:
3
,
// 默认搜索方式
checkboxQuery
:
[],
//滚动平面等筛选条件
},
},
ruleForm
:
{
ysxtAsjxgrybh
:
""
,
// 人员编号
jzrybh
:
""
,
// 警综人员编号
asjxgrybh
:
""
,
// 案事件相关人员编号号
zzhwkbh
:
""
,
// 现场掌指纹卡编号
ysxtAsjxgrybh
:
''
,
// 人员编号
jzrybh
:
''
,
// 警综人员编号
asjxgrybh
:
''
,
// 案事件相关人员编号号
zzhwkbh
:
''
,
// 现场掌指纹卡编号
cjxxyydm
:
[],
// 采集信息原因
xm
:
""
,
// 姓名
bmch
:
""
,
// 别名
xbdm
:
""
,
// 性别
csrq
:
""
,
// 出生日期
gjdm
:
""
,
// 国籍
mzdm
:
""
,
// 民族
cyzjdm
:
""
,
// 证件类型
zjhm
:
""
,
// 证件号码
hjdzXzqhdm
:
""
,
// 户籍地行政区
hjdzDzmc
:
""
,
// 户籍地址
xzzXzqhdm
:
""
,
// 现住址行政区
xzzDzmc
:
""
,
// 现住址
bz
:
""
,
// 备注
xm
:
''
,
// 姓名
bmch
:
''
,
// 别名
xbdm
:
''
,
// 性别
height
:
''
,
// 身高
weight
:
''
,
// 体重
csrq
:
''
,
// 出生日期
gjdm
:
''
,
// 国籍
mzdm
:
''
,
// 民族
cyzjdm
:
''
,
// 证件类型
zjhm
:
''
,
// 证件号码
hjdzXzqhdm
:
''
,
// 户籍地行政区
hjdzDzmc
:
''
,
// 户籍地址
xzzXzqhdm
:
''
,
// 现住址行政区
xzzDzmc
:
''
,
// 现住址
bz
:
''
,
// 备注
nydwGajgjgdm
:
""
,
// 捺印单位
nyryXm
:
""
,
// 捺印人姓名
nysj
:
""
,
// 捺印时间
nyryGmsfhm
:
""
,
// 捺印人身份证号
nyryLxdh
:
""
,
// 捺印人电话
nydwGajgjgdm
:
''
,
// 捺印单位
nyryXm
:
''
,
// 捺印人姓名
nysj
:
''
,
// 捺印时间
nyryGmsfhm
:
''
,
// 捺印人身份证号
nyryLxdh
:
''
,
// 捺印人电话
ifidcard
:
"1"
,
// 是否采集二代身份证
zwbdxtlxms
:
"1"
,
// 指纹比对描述
ifidcard
:
'1'
,
// 是否采集二代身份证
zwbdxtlxms
:
'1'
,
// 指纹比对描述
},
logicList
:
[],
// 逻辑库代码
rules
:
{
ysxtAsjxgrybh
:
[
{
min
:
22
,
max
:
22
,
message
:
this
.
$t
(
'Common.bhcdyw'
),
trigger
:
"change"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrrytmh'
),
trigger
:
"blur"
},
{
min
:
22
,
max
:
22
,
message
:
this
.
$t
(
'Common.bhcdyw'
),
trigger
:
'change'
,
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrrytmh'
),
trigger
:
'blur'
,
},
],
jzrybh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.jzrybh_placeholder'
),
trigger
:
"blur"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.jzrybh_placeholder'
),
trigger
:
'blur'
,
},
],
asjxgrybh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrasjryh'
),
trigger
:
"blur"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrasjryh'
),
trigger
:
'blur'
,
},
],
zzhwkbh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrzzwkbh'
),
trigger
:
"blur"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrzzwkbh'
),
trigger
:
'blur'
,
},
],
cjxxyydm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzcjxxyy'
),
trigger
:
"change"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzcjxxyy'
),
trigger
:
'change'
,
},
],
xm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.xm_placeholder'
),
trigger
:
"blur"
},
{
pattern
:
/
([\u
4E00-
\u
9FA5·
]{1,17})
/
,
required
:
true
,
message
:
this
.
$t
(
'Common.xm_placeholder'
),
trigger
:
'blur'
,
},
{
pattern
:
/
([\u
4E00-
\u
9FA5·
]{1,17})
/
,
message
:
this
.
$t
(
'Common.qsrhz'
),
trigger
:
"blur"
trigger
:
'blur'
,
},
],
xbdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzxb'
),
trigger
:
'change'
,
},
],
xbdm
:
[{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzxb'
),
trigger
:
"change"
}],
csrq
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.csrq_placeholder'
),
trigger
:
"change"
,
trigger
:
'change'
,
},
],
gjdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzgj'
),
trigger
:
'change'
,
},
],
mzdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzmz'
),
trigger
:
'change'
,
},
],
gjdm
:
[{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzgj'
),
trigger
:
"change"
}],
mzdm
:
[{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzmz'
),
trigger
:
"change"
}],
cyzjdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzzjlx'
),
trigger
:
"change"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzzjlx'
),
trigger
:
'change'
,
},
],
zjhm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.zjhm_placeholder'
),
trigger
:
"blur"
},
{
pattern
:
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
,
required
:
true
,
message
:
this
.
$t
(
'Common.zjhm_placeholder'
),
trigger
:
'blur'
,
},
{
pattern
:
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
,
message
:
this
.
$t
(
'Common.zjhmgsyw'
),
trigger
:
"blur"
,
trigger
:
'blur'
,
},
],
hjdzXzqhdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzhjdxzq'
),
trigger
:
"change"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzhjdxzq'
),
trigger
:
'change'
,
},
],
hjdzDzmc
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.hjdzDzmc_placeholder'
),
trigger
:
"blur"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.hjdzDzmc_placeholder'
),
trigger
:
'blur'
,
},
],
xzzXzqhdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzxzdxzq'
),
trigger
:
"change"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxzxzdxzq'
),
trigger
:
'change'
,
},
],
xzzDzmc
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrxzdz'
),
trigger
:
"blur"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrxzdz'
),
trigger
:
'blur'
,
},
],
nydwGajgjgdm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxznydw'
),
trigger
:
"change"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxznydw'
),
trigger
:
'change'
,
},
],
nyryXm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrnyryxm'
),
trigger
:
"blur"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.qsrnyryxm'
),
trigger
:
'blur'
,
},
],
nysj
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.qxznyrq'
),
trigger
:
"change"
,
trigger
:
'change'
,
},
],
nyryGmsfhm
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.nyrsfzh_placeholder'
),
trigger
:
"blur"
},
{
pattern
:
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
,
required
:
true
,
message
:
this
.
$t
(
'Common.nyrsfzh_placeholder'
),
trigger
:
'blur'
,
},
{
pattern
:
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
,
message
:
this
.
$t
(
'Common.zjhmgsyw'
),
trigger
:
"blur"
,
trigger
:
'blur'
,
},
],
height
:
[
{
pattern
:
/^
[
0-9
]
+
([
.
]{1}[
0-9
]
+
){0,1}
$/
,
message
:
'请输入正确的身高'
,
trigger
:
'blur'
,
},
],
weight
:
[
{
pattern
:
/^
[
0-9
]
+
([
.
]{1}[
0-9
]
+
){0,1}
$/
,
message
:
'请输入正确的体重'
,
trigger
:
'blur'
,
},
],
nyryLxdh
:
[
{
required
:
true
,
message
:
this
.
$t
(
'Common.nyrlxdh_placeholder'
),
trigger
:
"blur"
},
{
required
:
true
,
message
:
this
.
$t
(
'Common.nyrlxdh_placeholder'
),
trigger
:
'blur'
,
},
],
},
id
:
''
,
// 跳转路由 0: 基本信息,指纹都不合格。1:只有基本信息不合格。3:从编辑界面进来的
jump
:
3
}
;
jump
:
3
,
}
},
watch
:
{
"ruleForm.cyzjdm"
(
newV
,
oldV
)
{
'ruleForm.cyzjdm'
(
newV
,
oldV
)
{
// console.log(newV)
if
(
this
.
ruleForm
.
cyzjdm
==
'111'
)
{
console
.
log
(
this
.
rules
.
zjhm
[
1
]);
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
"pattern"
,
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
)
console
.
log
(
this
.
rules
.
zjhm
[
1
])
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
'pattern'
,
/
(
^
[
1-9
]\d{5}(
18|19|
([
23
]\d))\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$
)
|
(
^
[
1-9
]\d{5}\d{2}((
0
[
1-9
])
|
(
10|11|12
))(([
0-2
][
1-9
])
|10|20|30|31
)\d{2}
$
)
/
)
}
else
{
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
"pattern"
,
/^
(?:
0|
[
1-9
]\d{3,30})?
$/
)
this
.
$set
(
this
.
rules
.
zjhm
[
1
],
'pattern'
,
/^
(?:
0|
[
1-9
]\d{3,30})?
$/
)
}
}
}
,
},
mounted
()
{
mounted
()
{
// console.log(this.ruleForm.cjxxyydm);
// console.log(this.$route.query.barcode)
if
(
this
.
$route
.
params
.
type
===
"edit"
)
{
this
.
edit
=
this
.
$t
(
'Menu.xgry'
)
;
this
.
getRyinfo
(
this
.
$route
.
params
.
barcode
)
;
if
(
this
.
$route
.
params
.
type
===
'edit'
)
{
this
.
edit
=
this
.
$t
(
'Menu.xgry'
)
this
.
getRyinfo
(
this
.
$route
.
params
.
barcode
)
}
else
{
// console.log(this.$route.params.type==='edit');
this
.
edit
=
this
.
$t
(
'Menu.xzry'
)
;
this
.
edit
=
this
.
$t
(
'Menu.xzry'
)
}
this
.
id
=
this
.
$route
.
params
.
id
this
.
jump
=
this
.
$route
.
params
.
jump
},
methods
:
{
isRight
()
{
if
(
this
.
ruleForm
.
cyzjdm
===
"111"
&&
this
.
ruleForm
.
zjhm
!=
''
)
{
console
.
log
(
1111
)
;
let
b
=
moment
(
this
.
ruleForm
.
csrq
).
format
(
"YYYYMMDD"
)
isRight
()
{
if
(
this
.
ruleForm
.
cyzjdm
===
'111'
&&
this
.
ruleForm
.
zjhm
!=
''
)
{
console
.
log
(
1111
)
let
b
=
moment
(
this
.
ruleForm
.
csrq
).
format
(
'YYYYMMDD'
)
if
(
b
!=
this
.
ruleForm
.
zjhm
.
toString
().
substr
(
6
,
8
))
{
// alert("请输入和出生日期匹配的证件号码")
this
.
$alert
(
this
.
$t
(
'Xzry.csrq_pp'
),
this
.
$t
(
'Common.tips'
),
{
confirmButtonText
:
'确定'
,
callback
:
action
=>
{
callback
:
(
action
)
=>
{
// this.$message({
// type: 'info',
// // message: `action: ${action}`
// });
}
})
;
}
,
})
}
}
},
auto
()
{
var
code
=
""
;
auto
()
{
var
code
=
''
for
(
var
i
=
0
;
i
<
22
;
i
++
)
{
var
r1
=
parseInt
(
Math
.
random
()
*
this
.
numbers
.
length
)
code
+=
r1
...
...
@@ -416,43 +701,42 @@ export default {
this
.
ruleForm
.
jzrybh
=
code
this
.
ruleForm
.
asjxgrybh
=
code
this
.
ruleForm
.
zzhwkbh
=
code
this
.
ruleForm
.
cjxxyydm
=
[
"01"
,
"02"
]
this
.
ruleForm
.
xm
=
"李明"
this
.
ruleForm
.
xbdm
=
"1"
this
.
ruleForm
.
csrq
=
"2022-01-17"
this
.
ruleForm
.
gjdm
=
"156"
//中国
this
.
ruleForm
.
mzdm
=
"01"
//汉族
this
.
ruleForm
.
cyzjdm
=
"111"
//身份证号
this
.
ruleForm
.
zjhm
=
"140911199909091425"
//身份证号
this
.
ruleForm
.
hjdzXzqhdm
=
"110000"
//北京市
this
.
ruleForm
.
hjdzDzmc
=
"海淀区"
this
.
ruleForm
.
xzzXzqhdm
=
"110000"
//北京市
this
.
ruleForm
.
xzzDzmc
=
"海淀区"
this
.
ruleForm
.
nydwGajgjgdm
=
"430000000000"
//湖南省公安
this
.
ruleForm
.
nyryXm
=
"李雷雷"
this
.
ruleForm
.
nysj
=
"2022-01-17"
this
.
ruleForm
.
nyryGmsfhm
=
"132910199608122049"
this
.
ruleForm
.
nyryLxdh
=
"13111133331"
this
.
ruleForm
.
cjxxyydm
=
[
'01'
,
'02'
]
this
.
ruleForm
.
xm
=
'李明'
this
.
ruleForm
.
xbdm
=
'1'
this
.
ruleForm
.
csrq
=
'2022-01-17'
this
.
ruleForm
.
gjdm
=
'156'
//中国
this
.
ruleForm
.
mzdm
=
'01'
//汉族
this
.
ruleForm
.
cyzjdm
=
'111'
//身份证号
this
.
ruleForm
.
zjhm
=
'140911199909091425'
//身份证号
this
.
ruleForm
.
hjdzXzqhdm
=
'110000'
//北京市
this
.
ruleForm
.
hjdzDzmc
=
'海淀区'
this
.
ruleForm
.
xzzXzqhdm
=
'110000'
//北京市
this
.
ruleForm
.
xzzDzmc
=
'海淀区'
this
.
ruleForm
.
nydwGajgjgdm
=
'430000000000'
//湖南省公安
this
.
ruleForm
.
nyryXm
=
'李雷雷'
this
.
ruleForm
.
nysj
=
'2022-01-17'
this
.
ruleForm
.
nyryGmsfhm
=
'132910199608122049'
this
.
ruleForm
.
nyryLxdh
=
'13111133331'
},
disabledDate
(
a
)
{
disabledDate
(
a
)
{
if
(
a
.
getTime
()
>
new
Date
().
getTime
())
{
return
true
;
return
true
}
else
{
return
false
;
return
false
}
},
tijiao
(
e
)
{
let
tjType
=
this
.
$route
.
params
.
type
;
if
(
tjType
===
"edit"
)
{
this
.
editForm
(
e
)
;
tijiao
(
e
)
{
let
tjType
=
this
.
$route
.
params
.
type
if
(
tjType
===
'edit'
)
{
this
.
editForm
(
e
)
}
else
{
this
.
submitForm
(
e
)
;
this
.
submitForm
(
e
)
}
// this.$bus.emit("xzryResetForm", "xzryedit");
},
editForm
(
formName
)
{
let
self
=
this
;
editForm
(
formName
)
{
let
self
=
this
// debugger
// console.log(self.ruleForm);
// console.log(formName);
...
...
@@ -461,12 +745,12 @@ export default {
// let logicList = this.ruleForm.logicdbtype2.map(Number)
// let cjxxyyList = this.ruleForm.cjxxyydm
// delete this.ruleForm.cjxxyydm
this
.
logicList
=
this
.
checkedTargets
.
map
(
Number
)
;
this
.
logicList
=
this
.
checkedTargets
.
map
(
Number
)
let
reqParam
=
{
personDo
:
""
,
personDo
:
''
,
logicList
:
[],
cjxxyyList
:
[],
}
;
}
// reqParam.cjxxyyList = this.ruleForm.cjxxyydm
// this.ruleForm.cjxxyydm.forEach(item => {
...
...
@@ -475,76 +759,77 @@ export default {
// console.log(reqParam.cjxxyyList);
// delete this.ruleForm.cjxxyydm
reqParam
.
personDo
=
this
.
ruleForm
;
reqParam
.
cjxxyyList
=
this
.
ruleForm
.
cjxxyydm
;
reqParam
.
personDo
=
this
.
ruleForm
reqParam
.
cjxxyyList
=
this
.
ruleForm
.
cjxxyydm
console
.
log
(
this
.
ruleForm
);
// reqParam.personDo.ysxtAsjxgrybh = this.ruleForm.ysxtAsjxgrybh
reqParam
.
personDo
.
ysxtAsjxgrybh
=
"R"
+
this
.
ruleForm
.
ysxtAsjxgrybh
;
console
.
log
(
reqParam
.
personDo
.
ysxtAsjxgrybh
);
reqParam
.
logicList
=
this
.
logicList
;
console
.
log
(
reqParam
.
personDo
.
ysxtAsjxgrybh
);
delete
reqParam
.
personDo
.
cjxxyydm
;
console
.
log
(
reqParam
.
personDo
.
ysxtAsjxgrybh
);
console
.
log
(
reqParam
);
reqParam
.
personDo
.
ysxtAsjxgrybh
=
'R'
+
this
.
ruleForm
.
ysxtAsjxgrybh
reqParam
.
personDo
.
height
=
Number
(
this
.
ruleForm
.
height
)
reqParam
.
personDo
.
weight
=
Number
(
this
.
ruleForm
.
weight
)
reqParam
.
logicList
=
this
.
logicList
delete
reqParam
.
personDo
.
cjxxyydm
this
.
$axios
.
post
(
"/api/personstore/person/file"
,
reqParam
)
.
post
(
'/api/personstore/person/file'
,
reqParam
)
.
then
((
res
)
=>
{
// console.log(res.data);
if
(
res
.
data
.
code
===
0
)
{
self
.
$message
.
success
(
this
.
$t
(
'Common.edit_success'
))
;
self
.
$message
.
success
(
this
.
$t
(
'Common.edit_success'
))
if
(
self
.
jump
==
1
)
{
self
.
$axios
({
method
:
'post'
,
// url: '/apiInfo/insertZwbhAndZwfkxxByRybh', // 协同系统
// url: '/apiInfo/api/zljc/result/insertZwbhAndZwfkxxByRybh', // 新系统
url
:
'/api/zljc/result/insertZwbhAndZwfkxxByRybh'
,
// 新系统
params
:
{
rybh
:
reqParam
.
personDo
.
ysxtAsjxgrybh
,
zwbh
:
reqParam
.
personDo
.
ysxtAsjxgrybh
,
zwfkxx
:
''
,
username
:
self
.
ruleForm
.
xm
,
roll
:
'0'
,
plain
:
'0'
}
}).
then
(
res
=>
{
console
.
log
(
res
);
})
self
.
$bus
.
emit
(
"xzryResetForm"
,
"xzryedit"
);
self
.
$axios
({
method
:
'post'
,
// url: '/apiInfo/insertZwbhAndZwfkxxByRybh', // 协同系统
// url: '/apiInfo/api/zljc/result/insertZwbhAndZwfkxxByRybh', // 新系统
url
:
'/api/zljc/result/insertZwbhAndZwfkxxByRybh'
,
// 新系统
params
:
{
rybh
:
reqParam
.
personDo
.
ysxtAsjxgrybh
,
zwbh
:
reqParam
.
personDo
.
ysxtAsjxgrybh
,
zwfkxx
:
''
,
username
:
self
.
ruleForm
.
xm
,
roll
:
'0'
,
plain
:
'0'
,
},
})
.
then
((
res
)
=>
{
console
.
log
(
res
)
})
self
.
$bus
.
emit
(
'xzryResetForm'
,
'xzryedit'
)
self
.
$store
.
commit
(
'layout/delcachePageName'
,
'xzryedit'
)
self
.
$router
.
push
(
'/zljc'
)
}
else
if
(
self
.
jump
==
0
)
{
// 清除全部案件库缓存
self
.
$bus
.
emit
(
"xzryResetForm"
,
"xzryedit"
);
self
.
$bus
.
emit
(
'xzryResetForm'
,
'xzryedit'
)
self
.
$store
.
commit
(
'layout/delcachePageName'
,
'htcj'
)
self
.
$store
.
commit
(
'layout/delcachePageName'
,
'xzryedit'
)
// this.$refs[formName].resetFields();
// this.$set(this.ruleForm, 'ysxtAsjxgrybh', this.ruleForm.ysxtAsjxgrybh.substring(1, 23))
self
.
$axios
({
method
:
'post'
,
// url: '/apiInfo/insertZwbhAndZwfkxxByRybh', // 协同系统
// url: '/apiInfo/api/zljc/result/insertZwbhAndZwfkxxByRybh', // 新系统
url
:
'/api/zljc/result/insertZwbhAndZwfkxxByRybh'
,
// 新系统
params
:
{
rybh
:
reqParam
.
personDo
.
ysxtAsjxgrybh
,
zwbh
:
reqParam
.
personDo
.
ysxtAsjxgrybh
,
zwfkxx
:
''
,
username
:
self
.
ruleForm
.
xm
,
roll
:
'0'
,
plain
:
'0'
}
}).
then
(
res
=>
{
console
.
log
(
res
);
})
self
.
$axios
({
method
:
'post'
,
// url: '/apiInfo/insertZwbhAndZwfkxxByRybh', // 协同系统
// url: '/apiInfo/api/zljc/result/insertZwbhAndZwfkxxByRybh', // 新系统
url
:
'/api/zljc/result/insertZwbhAndZwfkxxByRybh'
,
// 新系统
params
:
{
rybh
:
reqParam
.
personDo
.
ysxtAsjxgrybh
,
zwbh
:
reqParam
.
personDo
.
ysxtAsjxgrybh
,
zwfkxx
:
''
,
username
:
self
.
ruleForm
.
xm
,
roll
:
'0'
,
plain
:
'0'
,
},
})
.
then
((
res
)
=>
{
console
.
log
(
res
)
})
self
.
$router
.
push
({
path
:
`/fingerprintIndex/
${
reqParam
.
personDo
.
ysxtAsjxgrybh
}
/
${
this
.
ruleForm
.
xm
}
`
,
query
:
{
type
:
self
.
id
type
:
self
.
id
,
},
})
;
})
}
else
{
// 清除全部案件库缓存
self
.
$bus
.
emit
(
"xzryResetForm"
,
"xzryedit"
);
self
.
$bus
.
emit
(
'xzryResetForm'
,
'xzryedit'
)
self
.
$store
.
commit
(
'layout/delcachePageName'
,
'htcj'
)
self
.
$store
.
commit
(
'layout/delcachePageName'
,
'xzryedit'
)
// this.$refs[formName].resetFields();
...
...
@@ -552,139 +837,149 @@ export default {
self
.
$router
.
push
({
path
:
`/fingerprintIndex/
${
reqParam
.
personDo
.
ysxtAsjxgrybh
}
/
${
this
.
ruleForm
.
xm
}
`
,
query
:
{
type
:
self
.
id
type
:
self
.
id
,
},
})
;
})
}
}
else
{
self
.
$message
.
error
(
this
.
$t
(
'Common.edit_fail'
));
self
.
$set
(
self
.
ruleForm
,
'ysxtAsjxgrybh'
,
self
.
ruleForm
.
ysxtAsjxgrybh
.
substring
(
1
,
23
))
self
.
$message
.
error
(
this
.
$t
(
'Common.edit_fail'
))
self
.
$set
(
self
.
ruleForm
,
'ysxtAsjxgrybh'
,
self
.
ruleForm
.
ysxtAsjxgrybh
.
substring
(
1
,
23
)
)
}
})
;
self
.
$bus
.
emit
(
"isBlur"
,
false
);
})
self
.
$bus
.
emit
(
'isBlur'
,
false
)
}
else
{
this
.
$nextTick
(()
=>
{
let
isError
=
document
.
getElementsByClassName
(
"is-error"
);
let
isError
=
document
.
getElementsByClassName
(
'is-error'
)
isError
[
0
].
scrollIntoView
({
// 滚动到指定节点
// 值有start,center,end,nearest,当前显示在视图区域中间
block
:
"center"
,
block
:
'center'
,
// 值有auto、instant,smooth,缓动动画(当前是慢速的)
behavior
:
"smooth"
,
})
;
})
;
return
false
;
behavior
:
'smooth'
,
})
})
return
false
}
})
;
})
},
submitForm
(
formName
)
{
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
checkedTargets
.
length
==
0
)
{
this
.
$message
.
error
(
this
.
$t
(
'Common.select_ljk'
))
;
this
.
$message
.
error
(
this
.
$t
(
'Common.select_ljk'
))
}
else
{
this
.
logicList
=
this
.
checkedTargets
.
map
(
Number
)
;
this
.
logicList
=
this
.
checkedTargets
.
map
(
Number
)
let
reqParam
=
{
personDo
:
""
,
personDo
:
''
,
logicList
:
[],
cjxxyyList
:
[],
};
reqParam
.
cjxxyyList
=
this
.
ruleForm
.
cjxxyydm
;
delete
this
.
ruleForm
.
cjxxyydm
;
reqParam
.
personDo
=
this
.
ruleForm
;
reqParam
.
personDo
.
ysxtAsjxgrybh
=
this
.
ruleForm
.
ysxtAsjxgrybh
;
reqParam
.
personDo
.
ysxtAsjxgrybh
=
"R"
+
this
.
ruleForm
.
ysxtAsjxgrybh
;
reqParam
.
logicList
=
this
.
logicList
;
}
reqParam
.
cjxxyyList
=
this
.
ruleForm
.
cjxxyydm
delete
this
.
ruleForm
.
cjxxyydm
reqParam
.
personDo
=
this
.
ruleForm
reqParam
.
personDo
.
ysxtAsjxgrybh
=
this
.
ruleForm
.
ysxtAsjxgrybh
reqParam
.
personDo
.
ysxtAsjxgrybh
=
'R'
+
this
.
ruleForm
.
ysxtAsjxgrybh
reqParam
.
personDo
.
height
=
Number
(
this
.
ruleForm
.
height
)
reqParam
.
personDo
.
weight
=
Number
(
this
.
ruleForm
.
weight
)
reqParam
.
logicList
=
this
.
logicList
this
.
$axios
.
post
(
"/api/personstore/personadd"
,
reqParam
)
.
post
(
'/api/personstore/personadd'
,
reqParam
)
.
then
((
response
)
=>
{
console
.
log
(
response
)
;
console
.
log
(
response
)
if
(
response
.
data
.
code
===
0
)
{
this
.
$message
.
success
(
this
.
$t
(
'Common.add_success'
))
;
this
.
$message
.
success
(
this
.
$t
(
'Common.add_success'
))
this
.
$router
.
pushToTab
({
path
:
`/fingerprintIndex/R
${
reqParam
.
personDo
.
ysxtAsjxgrybh
}
/
${
this
.
ruleForm
.
xm
}
`
,
query
:
{
type
:
0
}
type
:
0
,
}
,
})
this
.
$store
.
commit
(
'layout/delcachePageName'
,
'htcj'
)
this
.
$refs
[
formName
].
resetFields
()
;
this
.
$refs
[
formName
].
resetFields
()
this
.
ruleForm
=
{
ysxtAsjxgrybh
:
""
,
// 人员编号
jzrybh
:
""
,
// 警综人员编号
asjxgrybh
:
""
,
// 案事件相关人员编号号
zzhwkbh
:
""
,
// 现场掌指纹卡编号
cjxxyydm
:
""
,
// 采集信息原因
ysxtAsjxgrybh
:
''
,
// 人员编号
jzrybh
:
''
,
// 警综人员编号
asjxgrybh
:
''
,
// 案事件相关人员编号号
zzhwkbh
:
''
,
// 现场掌指纹卡编号
cjxxyydm
:
''
,
// 采集信息原因
xm
:
""
,
// 姓名
bmch
:
""
,
// 别名
xbdm
:
""
,
// 性别
csrq
:
""
,
// 出生日期
gjdm
:
""
,
// 国籍
mzdm
:
""
,
// 民族
cyzjdm
:
""
,
// 证件类型
zjhm
:
""
,
// 证件号码
hjdzXzqhdm
:
""
,
// 户籍地行政区
hjdzDzmc
:
""
,
// 户籍地址
xzzXzqhdm
:
""
,
// 现住址行政区
xzzDzmc
:
""
,
// 现住址
bz
:
""
,
// 备注
xm
:
''
,
// 姓名
bmch
:
''
,
// 别名
xbdm
:
''
,
// 性别
height
:
''
,
// 身高
weight
:
''
,
// 体重
csrq
:
''
,
// 出生日期
gjdm
:
''
,
// 国籍
mzdm
:
''
,
// 民族
cyzjdm
:
''
,
// 证件类型
zjhm
:
''
,
// 证件号码
hjdzXzqhdm
:
''
,
// 户籍地行政区
hjdzDzmc
:
''
,
// 户籍地址
xzzXzqhdm
:
''
,
// 现住址行政区
xzzDzmc
:
''
,
// 现住址
bz
:
''
,
// 备注
nydwGajgjgdm
:
""
,
// 捺印单位
nyryXm
:
""
,
// 捺印人姓名
nysj
:
""
,
// 捺印时间
nyryGmsfhm
:
""
,
// 捺印人身份证号
nyryLxdh
:
""
,
// 捺印人电话
nydwGajgjgdm
:
''
,
// 捺印单位
nyryXm
:
''
,
// 捺印人姓名
nysj
:
''
,
// 捺印时间
nyryGmsfhm
:
''
,
// 捺印人身份证号
nyryLxdh
:
''
,
// 捺印人电话
ifidcard
:
"1"
,
// 是否采集二代身份证
zwbdxtlxms
:
"1"
,
// 指纹比对描述
}
;
this
.
checkedTargets
=
[]
;
// 选定的目标逻辑库
ifidcard
:
'1'
,
// 是否采集二代身份证
zwbdxtlxms
:
'1'
,
// 指纹比对描述
}
this
.
checkedTargets
=
[]
// 选定的目标逻辑库
}
else
{
this
.
$message
.
error
(
this
.
$t
(
'Common.add_fail'
))
;
this
.
$set
(
this
.
ruleForm
,
"cjxxyydm"
,
[]);
this
.
$message
.
error
(
this
.
$t
(
'Common.add_fail'
))
this
.
$set
(
this
.
ruleForm
,
'cjxxyydm'
,
[])
// this.$set(this.ruleForm, 'ysxtAsjxgrybh', this.ruleForm.ysxtAsjxgrybh.substring(1, 23))
}
})
;
})
}
}
else
{
return
false
;
return
false
}
})
;
})
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
()
;
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
()
this
.
$store
.
commit
(
'layout/delcachePageName'
,
'xzry/:type'
)
this
.
ruleForm
=
{}
//清空列表
// 关闭tab页
this
.
$bus
.
emit
(
"xzryResetForm"
,
"xzryedit"
);
this
.
$bus
.
emit
(
'xzryResetForm'
,
'xzryedit'
)
this
.
$router
.
push
(
'/htcj'
)
},
initData
()
{
initData
()
{
// 赋值
this
.
ruleForm
.
id
=
this
.
ryInfo
.
id
;
this
.
ruleForm
.
rybh
=
this
.
ryInfo
.
ysxtAsjxgrybh
;
this
.
ruleForm
.
jzrybh
=
this
.
ryInfo
.
jzrybh
;
this
.
ruleForm
.
id
=
this
.
ryInfo
.
id
this
.
ruleForm
.
rybh
=
this
.
ryInfo
.
ysxtAsjxgrybh
this
.
ruleForm
.
jzrybh
=
this
.
ryInfo
.
jzrybh
// 人员档案信息
if
(
this
.
ryInfo
.
cjxxyydm
)
{
this
.
ruleForm
.
cjxxyydm
=
this
.
ryInfo
.
cjxxyydm
.
split
(
","
);
this
.
ruleForm
.
cjxxyydm
=
this
.
ryInfo
.
cjxxyydm
.
split
(
','
)
}
// console.log(this.ruleForm.cjxxyydm);
this
.
ruleForm
.
zzhwkbh
=
this
.
ryInfo
.
zzhwkbh
;
this
.
ruleForm
.
asjxgrybh
=
this
.
ryInfo
.
asjxgrybh
;
this
.
ruleForm
.
xm
=
this
.
ryInfo
.
xm
;
this
.
ruleForm
.
bmch
=
this
.
ryInfo
.
bmch
;
this
.
ruleForm
.
xbdm
=
this
.
ryInfo
.
xbdm
;
this
.
ruleForm
.
csrq
=
this
.
ryInfo
.
csrq
;
this
.
ruleForm
.
gjdm
=
this
.
ryInfo
.
gjdm
;
this
.
ruleForm
.
mzdm
=
this
.
ryInfo
.
mzdm
;
this
.
ruleForm
.
cyzjdm
=
this
.
ryInfo
.
cyzjdm
;
this
.
ruleForm
.
zjhm
=
this
.
ryInfo
.
zjhm
;
this
.
ruleForm
.
hjdzXzqhdm
=
this
.
ryInfo
.
hjdzXzqhdm
;
this
.
ruleForm
.
hjdzDzmc
=
this
.
ryInfo
.
hjdzDzmc
;
this
.
ruleForm
.
xzzXzqhdm
=
this
.
ryInfo
.
xzzXzqhdm
;
this
.
ruleForm
.
xzzDzmc
=
this
.
ryInfo
.
xzzDzmc
;
this
.
ruleForm
.
bz
=
this
.
ryInfo
.
bz
;
this
.
ruleForm
.
zzhwkbh
=
this
.
ryInfo
.
zzhwkbh
this
.
ruleForm
.
asjxgrybh
=
this
.
ryInfo
.
asjxgrybh
this
.
ruleForm
.
xm
=
this
.
ryInfo
.
xm
this
.
ruleForm
.
bmch
=
this
.
ryInfo
.
bmch
this
.
ruleForm
.
height
=
this
.
ryInfo
.
height
this
.
ruleForm
.
weight
=
this
.
ryInfo
.
weight
this
.
ruleForm
.
xbdm
=
this
.
ryInfo
.
xbdm
this
.
ruleForm
.
csrq
=
this
.
ryInfo
.
csrq
this
.
ruleForm
.
gjdm
=
this
.
ryInfo
.
gjdm
this
.
ruleForm
.
mzdm
=
this
.
ryInfo
.
mzdm
this
.
ruleForm
.
cyzjdm
=
this
.
ryInfo
.
cyzjdm
this
.
ruleForm
.
zjhm
=
this
.
ryInfo
.
zjhm
this
.
ruleForm
.
hjdzXzqhdm
=
this
.
ryInfo
.
hjdzXzqhdm
this
.
ruleForm
.
hjdzDzmc
=
this
.
ryInfo
.
hjdzDzmc
this
.
ruleForm
.
xzzXzqhdm
=
this
.
ryInfo
.
xzzXzqhdm
this
.
ruleForm
.
xzzDzmc
=
this
.
ryInfo
.
xzzDzmc
this
.
ruleForm
.
bz
=
this
.
ryInfo
.
bz
// 人员逻辑分库
// let ryljfk = this.ryInfo.logicdbtype.split('')
// this.ruleForm.logicdbtype = ryljfk
...
...
@@ -692,44 +987,44 @@ export default {
this
.
ryInfo
.
logicDatabaseCode
&&
this
.
ryInfo
.
logicDatabaseCode
.
length
>
0
)
{
this
.
ruleForm
.
checkedTargets
=
this
.
ryInfo
.
logicDatabaseCode
.
split
(
","
);
this
.
checkedTargets
=
this
.
ryInfo
.
logicDatabaseCode
.
split
(
","
);
this
.
ruleForm
.
checkedTargets
=
this
.
ryInfo
.
logicDatabaseCode
.
split
(
','
)
this
.
checkedTargets
=
this
.
ryInfo
.
logicDatabaseCode
.
split
(
','
)
}
else
{
this
.
ruleForm
.
checkedTargets
=
[]
;
this
.
checkedTargets
=
[]
;
this
.
ruleForm
.
checkedTargets
=
[]
this
.
checkedTargets
=
[]
}
console
.
log
(
this
.
ruleForm
.
checkedTargets
)
;
this
.
ruleForm
.
nydwGajgjgdm
=
this
.
ryInfo
.
nydwGajgjgdm
;
console
.
log
(
this
.
ruleForm
.
checkedTargets
)
this
.
ruleForm
.
nydwGajgjgdm
=
this
.
ryInfo
.
nydwGajgjgdm
// console.log(this.ruleForm.nydwGajgjgdm);
this
.
ruleForm
.
nyryXm
=
this
.
ryInfo
.
nyryXm
;
this
.
ruleForm
.
nysj
=
this
.
ryInfo
.
nysj
;
this
.
ruleForm
.
nyryGmsfhm
=
this
.
ryInfo
.
nyryGmsfhm
;
this
.
ruleForm
.
nyryLxdh
=
this
.
ryInfo
.
nyryLxdh
;
this
.
ruleForm
.
nyryXm
=
this
.
ryInfo
.
nyryXm
this
.
ruleForm
.
nysj
=
this
.
ryInfo
.
nysj
this
.
ruleForm
.
nyryGmsfhm
=
this
.
ryInfo
.
nyryGmsfhm
this
.
ruleForm
.
nyryLxdh
=
this
.
ryInfo
.
nyryLxdh
},
getRyinfo
(
code
)
{
let
self
=
this
;
this
.
reqParam
.
personStoreCustomSearch
.
ysxtAsjxgrybh
=
code
;
getRyinfo
(
code
)
{
let
self
=
this
this
.
reqParam
.
personStoreCustomSearch
.
ysxtAsjxgrybh
=
code
this
.
$axios
.
post
(
"/api/personstore/person/list"
,
this
.
reqParam
)
.
post
(
'/api/personstore/person/list'
,
this
.
reqParam
)
.
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
0
)
{
self
.
ryInfo
=
response
.
data
.
ret
.
list
[
0
]
;
self
.
ryInfo
=
response
.
data
.
ret
.
list
[
0
]
// console.log(self.ryInfo);
self
.
initData
()
;
self
.
initData
()
// this.ruleForm.ysxtAsjxgrybh = self.ryInfo.ysxtAsjxgrybh;
// this.ruleForm = self.ryInfo
this
.
ruleForm
.
ysxtAsjxgrybh
=
self
.
ryInfo
.
ysxtAsjxgrybh
.
toString
()
.
substr
(
1
)
;
.
substr
(
1
)
}
else
{
self
.
$message
.
error
(
response
.
data
.
message
)
;
self
.
$message
.
error
(
response
.
data
.
message
)
}
})
;
})
},
},
}
;
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"./xzry.scss"
;
@import
'./xzry.scss'
;
</
style
>
vue.config.js
View file @
910dabe6
...
...
@@ -106,7 +106,7 @@ module.exports = {
// target: "http://172.18.108.98:8099/", // 张 认定
// target: "http://192.168.128.102:8090", // 北京 王
// target: "http://172.18.118.53:8099", // 北京
target
:
"http://172.18.1
18.53:11
099"
,
// 北京
target
:
"http://172.18.1
08.229:8
099"
,
// 北京
ws
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
...
...
@@ -124,8 +124,8 @@ module.exports = {
// target: "http://192.168.0.107:8765", // 西藏 张
// target: "http://172.18.108.98:8765/", // 张 认定
// target: "http://192.168.128.102:8765", // 北京 王
target
:
"http://172.18.118.53:8765"
,
// 北京
// target: "http://172.18.118.53:11099
", // 北京
//
target: "http://172.18.118.53:8765", // 北京
target
:
"http://172.18.108.229:8765
"
,
// 北京
// target: "http://172.18.110.145:8765", // 马
ws
:
true
,
changeOrigin
:
true
,
...
...
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