Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
office-web
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
office
office-web
Commits
7e2e2f1c
Commit
7e2e2f1c
authored
Aug 28, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加档案编辑禁用字段
parent
d1c176cf
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
index.html
dist/index.html
+2
-2
14.2db4e13b049c8acc9488.js
dist/static/js/14.2db4e13b049c8acc9488.js
+0
-2
14.4ccefb8408cfd6d0c1c3.js
dist/static/js/14.4ccefb8408cfd6d0c1c3.js
+2
-0
manifest.33543b81840e97599aec.js
dist/static/js/manifest.33543b81840e97599aec.js
+2
-2
editableCell.vue
src/components/employeeRecord/editableCell.vue
+2
-2
No files found.
dist/index.html
View file @
7e2e2f1c
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.11e629a1c443043cd69175a81bfff641.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.e552ad3ca049493abc5c.js
></script><script
type=
text/javascript
src=
./static/js/vendor.fe563ee1a7b37e2ffba9.js
></script><script
type=
text/javascript
src=
./static/js/app.8de60b688b03db735b1a.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.11e629a1c443043cd69175a81bfff641.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.33543b81840e97599aec.js
></script><script
type=
text/javascript
src=
./static/js/vendor.fe563ee1a7b37e2ffba9.js
></script><script
type=
text/javascript
src=
./static/js/app.8de60b688b03db735b1a.js
></script></body></html>
\ No newline at end of file
dist/static/js/14.2db4e13b049c8acc9488.js
deleted
100644 → 0
View file @
d1c176cf
webpackJsonp
([
14
],{
"5gt+"
:
function
(
e
,
t
,
i
){
"use strict"
;
var
a
=
i
(
"mvHQ"
),
s
=
i
.
n
(
a
),
l
=
i
(
"//Fk"
),
o
=
i
.
n
(
l
),
n
=
i
(
"DAYN"
),
r
=
{
name
:
"vue-office-upload-image"
,
props
:{
projectName
:{
type
:
String
,
default
:
"haoban-manage-web"
},
wxFlag
:{
type
:
String
,
default
:
"1"
},
imgRate
:{
type
:
String
},
actionUrl
:{
type
:
String
,
default
:
""
},
maxImageLength
:{
type
:
Number
,
default
:
5
},
limitW
:{
type
:
Number
},
limitH
:{
type
:
Number
},
imageList
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
dragImageList
:
this
.
imageList
,
initialImg
:
0
,
progress
:
0
,
pass
:
null
,
isEnlargeImage
:
!
1
,
enlargeImage
:
""
}},
computed
:{
propStatus
:
function
(){
return
this
.
pass
?
"success"
:
!
1
===
this
.
pass
?
"exception"
:
"text"
}},
beforeMount
:
function
(){},
methods
:{
uploadUrl
:
function
(){
var
e
,
t
=
window
.
location
.
origin
,
i
=
void
0
;
return
e
=
this
.
wxFlag
&&
""
!=
this
.
wxFlag
?
"wxFlag="
+
this
.
wxFlag
+
"&"
:
""
,
i
=
"-1"
!=
t
.
indexOf
(
"localhost"
)?
"http://www.gicdev.com"
:
t
,
this
.
upUrl
=
i
+
this
.
actionUrl
+
"?"
+
e
+
"requestProject="
+
this
.
projectName
,
this
.
upUrl
},
beforeAvatarUpload
:
function
(
e
){
var
t
=
this
,
i
=
(
"image/jpeg"
===
e
.
type
||
"image/jpg"
===
e
.
type
||
e
.
type
,
e
.
size
/
1024
/
1024
<
2
);
return
i
||
t
.
$message
.
error
(
"上传图片大小不能超过 2MB!"
),
i
&&
new
o
.
a
(
function
(
i
,
a
){
var
s
=
new
FileReader
;
s
.
onload
=
function
(
e
){
var
s
=
new
Image
;
s
.
onload
=
function
(){
var
e
=
this
.
width
,
s
=
this
.
height
;
t
.
imgRate
&&
""
!==
t
.
imgRate
&&
(
Number
(
t
.
imgRate
.
split
(
":"
)[
0
])
/
Number
(
t
.
imgRate
.
split
(
":"
)[
1
])
!=
Number
(
e
)
/
Number
(
s
)
&&
(
t
.
$message
.
error
(
"上传图片比例不正确!"
),
a
()));
t
.
imgRate
&&
""
!=
t
.
imgRate
||!
t
.
limitW
||!
t
.
limitH
||
e
===
t
.
limitW
||
s
===
t
.
limitH
||
(
t
.
$message
.
error
(
"上传图片尺寸不正确!"
),
a
()),
i
()},
s
.
src
=
e
.
target
.
result
},
s
.
readAsDataURL
(
e
)})},
uploadOnSuccess
:
function
(
e
,
t
){
this
.
pass
=!
0
,
1
==
e
.
errorCode
?(
this
.
$message
.
success
(
"上传成功"
),
this
.
$emit
(
"uploadOnSuccess"
,{
res
:
e
,
file
:
t
},
this
.
imageList
)):
this
.
$message
.
error
(
e
.
message
)},
uploadOnProgress
:
function
(
e
,
t
){
e
&&
e
.
percent
&&
(
this
.
progress
=
Math
.
floor
(
e
.
percent
))},
uploadOnChange
:
function
(
e
){
"ready"
===
e
.
status
?(
this
.
pass
=
null
,
this
.
progress
=
0
):
"fail"
===
e
.
status
&&
this
.
$message
.
error
(
"图片上传失败,请重试!"
)},
uploadOnError
:
function
(){},
previewImage
:
function
(
e
){
this
.
isEnlargeImage
=!
0
,
this
.
initialImg
=
e
},
deleteImage
:
function
(
e
){
this
.
$emit
(
"deleteImage"
,
e
);
var
t
=
JSON
.
parse
(
s
()(
this
.
imageList
));
t
.
splice
(
e
,
1
),
this
.
$emit
(
"update:imageList"
,
t
)},
handleClose
:
function
(
e
){
e
()},
itemMoveEnd
:
function
(
e
){
this
.
$emit
(
"sortImg"
,
this
.
dragImageList
),
this
.
$emit
(
"update:imageList"
,
this
.
dragImageList
)}},
watch
:{
imageList
:
function
(
e
,
t
){
this
.
dragImageList
=
e
}},
mounted
:
function
(){},
components
:{
draggable
:
i
.
n
(
n
).
a
}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"gic-upload__img"
},[
i
(
"div"
,{
staticClass
:
"gic-upload__img__drag"
},[
i
(
"draggable"
,{
staticClass
:
"drag-wrap"
,
staticStyle
:{
display
:
"contents"
},
attrs
:{
options
:{
group
:{
name
:
"people"
,
pull
:
!
1
,
put
:
!
0
},
sort
:
!
0
}},
on
:{
end
:
e
.
itemMoveEnd
},
model
:{
value
:
e
.
dragImageList
,
callback
:
function
(
t
){
e
.
dragImageList
=
t
},
expression
:
"dragImageList"
}},[
i
(
"transition-group"
,{
attrs
:{
name
:
"slide-fade"
}},
e
.
_l
(
e
.
imageList
,
function
(
t
,
a
){
return
i
(
"div"
,{
key
:
a
,
class
:[
"img-content"
,
a
>=
6
?
"m-t-8"
:
""
]},[
i
(
"a"
,{
staticClass
:
"item-img"
,
attrs
:{
href
:
t
.
url
}},[
i
(
"img"
,{
attrs
:{
src
:
t
.
url
,
alt
:
"上传图片"
}})]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"upload-icon__btn"
},[
i
(
"i"
,{
staticClass
:
"el-icon-view"
,
on
:{
click
:
function
(
t
){
e
.
previewImage
(
a
)}}}),
e
.
_v
(
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-delete"
,
on
:{
click
:
function
(
t
){
e
.
deleteImage
(
a
)}}})])])}))],
1
),
e
.
_v
(
" "
),
e
.
pass
||
0
===
e
.
progress
?
e
.
_e
():
i
(
"div"
,{
class
:[
"img-content"
,
"img-progress"
,
e
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
i
(
"el-progress"
,{
staticClass
:
"gic-img-progress"
,
staticStyle
:{
"line-height"
:
"102px"
},
attrs
:{
width
:
102
,
percentage
:
e
.
progress
,
status
:
e
.
propStatus
}})],
1
),
e
.
_v
(
" "
),
e
.
imageList
&&
e
.
imageList
.
length
<
e
.
maxImageLength
?
i
(
"div"
,{
class
:[
"img-upload"
,
e
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
i
(
"el-upload"
,{
staticClass
:
"loader"
,
attrs
:{
accept
:
"image/jpg,image/jpeg,image/png,image/gif"
,
action
:
e
.
uploadUrl
(),
"list-type"
:
"picture-card"
,
"on-change"
:
e
.
uploadOnChange
,
"before-upload"
:
e
.
beforeAvatarUpload
,
"on-success"
:
e
.
uploadOnSuccess
,
"on-error"
:
e
.
uploadOnError
,
"on-progress"
:
e
.
uploadOnProgress
}},[
i
(
"i"
,{
staticClass
:
"el-icon-plus gic-upload-btn"
})])],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
i
(
"el-dialog"
,{
attrs
:{
title
:
"图片预览"
,
visible
:
e
.
isEnlargeImage
,
"modal-append-to-body"
:
!
1
,
"before-close"
:
e
.
handleClose
,
width
:
"520px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
isEnlargeImage
=
t
}}},[
e
.
isEnlargeImage
?
i
(
"el-carousel"
,{
attrs
:{
trigger
:
"click"
,
"initial-index"
:
e
.
initialImg
,
autoplay
:
!
1
,
height
:
"500px"
}},
e
.
_l
(
e
.
imageList
,
function
(
t
,
a
){
return
i
(
"el-carousel-item"
,{
key
:
a
,
staticStyle
:{
display
:
"flex"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
}},[
i
(
"img"
,{
staticStyle
:{
"max-width"
:
"480px"
,
"max-height"
:
"500px"
},
attrs
:{
src
:
t
.
url
},
on
:{
click
:
function
(
t
){
e
.
isEnlargeImage
=!
1
}}})])})):
e
.
_e
()],
1
)],
1
)},
staticRenderFns
:[]};
var
f
=
i
(
"VU/8"
)(
r
,
d
,
!
1
,
function
(
e
){
i
(
"FKG6"
)},
null
,
null
);
t
.
a
=
f
.
exports
},
"67iC"
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
i
(
"3Xzz"
),
s
=
i
(
"P9l9"
),
l
=
i
(
"0xDb"
),
o
=
i
(
"KzHU"
),
n
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"editable-cell-container"
},[
i
(
"div"
,{
staticClass
:
"title-div"
},[
i
(
"span"
,{
staticClass
:
"font-w-500"
},[
e
.
_v
(
e
.
_s
(
e
.
title
))]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"hurdle"
}),
e
.
_v
(
" "
),
i
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
t
){
e
.
showEdit
=!
0
}}},[
e
.
_v
(
"编辑"
)])]),
e
.
_v
(
" "
),
i
(
"el-form"
,{
ref
:
"cell_form"
,
staticClass
:
"info-form record-edit-rorm"
,
attrs
:{
rules
:
e
.
rules
,
inline
:
""
,
"label-width"
:
"150px"
,
model
:
e
.
fieldsInfo
}},[
e
.
_l
(
e
.
fieldList
,
function
(
t
,
a
){
return
[
i
(
"el-form-item"
,{
key
:
t
.
fieldCode
+
"_"
+
a
,
staticClass
:
"item-width"
,
attrs
:{
label
:
t
.
title
+
":"
,
prop
:
t
.
fieldCode
}},[
e
.
showEdit
?[
0
==
t
.
fieldType
?
i
(
"el-input"
,{
staticClass
:
"edit-infor-input"
,
attrs
:{
placeholder
:
t
.
fieldDescription
,
disabled
:
"1"
!=
t
.
fieldEdited
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
6
==
t
.
fieldType
&&
"clerkPhone"
!=
t
.
fieldCode
?
i
(
"el-input"
,{
staticClass
:
"edit-infor-input"
,
attrs
:{
placeholder
:
t
.
fieldDescription
,
disabled
:
"1"
!=
t
.
fieldEdited
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
6
==
t
.
fieldType
&&
"clerkPhone"
==
t
.
fieldCode
?
i
(
"countryMobile"
,{
attrs
:{
inputWidth
:
350
,
nationCode
:
e
.
fieldsInfo
.
nationcode
,
holder
:
t
.
fieldDescription
,
disflag
:
"1"
!=
t
.
fieldEdited
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
fieldsInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
1
==
t
.
fieldType
?
i
(
"el-input"
,{
staticClass
:
"edit-infor-input"
,
attrs
:{
type
:
"textarea"
,
autosize
:
""
,
disabled
:
"1"
!=
t
.
fieldEdited
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
2
==
t
.
fieldType
||
3
==
t
.
fieldType
?[
1
==
t
.
systemFlag
?
i
(
"el-select"
,{
attrs
:{
disabled
:
"1"
!=
t
.
fieldEdited
||
"clerkStatus"
==
t
.
fieldCode
&&
3
==
e
.
fieldsInfo
[
t
.
fieldCode
],
multiple
:
3
==
t
.
fieldType
,
"collapse-tags"
:
3
==
t
.
fieldType
,
placeholder
:
t
.
fieldDescription
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}},
e
.
_l
(
t
.
fieldOperations
.
fieldContent
,
function
(
e
){
return
i
(
"el-option"
,{
key
:
e
.
key
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
key
,
disabled
:
"clerkStatus"
==
t
.
fieldCode
&&
3
==
e
.
key
}})})):
i
(
"el-select"
,{
attrs
:{
disabled
:
"1"
!=
t
.
fieldEdited
,
multiple
:
3
==
t
.
fieldType
,
"collapse-tags"
:
3
==
t
.
fieldType
,
placeholder
:
t
.
fieldDescription
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}},
e
.
_l
(
t
.
fieldOperations
.
fieldContent
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
e
.
key
+
"_"
+
t
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
name
}})}))]:
4
==
t
.
fieldType
?
i
(
"el-date-picker"
,{
attrs
:{
type
:
"date"
,
disabled
:
"1"
!=
t
.
fieldEdited
,
format
:
t
.
fieldOperations
.
typeValue
,
"value-format"
:
t
.
fieldOperations
.
typeValue
,
placeholder
:
t
.
fieldDescription
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
5
==
t
.
fieldType
?
i
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
"range-separator"
:
"至"
,
disabled
:
"1"
!=
t
.
fieldEdited
,
format
:
t
.
fieldOperations
.
typeValue
,
"value-format"
:
t
.
fieldOperations
.
typeValue
,
"start-placeholder"
:
t
.
fieldOperations
.
startDescription
,
"end-placeholder"
:
t
.
fieldOperations
.
endDescription
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
7
==
t
.
fieldType
?
i
(
"uploadImage"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
fieldsInfo
[
t
.
fieldCode
],
maxImageLength
:
3
},
on
:{
"update:imageList"
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}}):
e
.
_e
()]:[
0
==
t
.
fieldType
||
1
==
t
.
fieldType
||
6
==
t
.
fieldType
?
i
(
"div"
,{
staticClass
:
"field-value color-606266"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"clerkPhone"
!=
t
.
fieldCode
?
e
.
fieldsInfo
[
t
.
fieldCode
]:
"86"
==
e
.
fieldsInfo
.
nationcode
?
e
.
fieldsInfo
.
clerkPhone
:
"+"
+
e
.
fieldsInfo
.
nationcode
+
"-"
+
e
.
fieldsInfo
.
clerkPhone
)
+
"
\
n "
)]):
2
==
t
.
fieldType
?[
1
==
t
.
systemFlag
?
i
(
"div"
,{
staticClass
:
"field-value color-606266"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
fieldOperations
.
fieldContent
[
1
*
e
.
fieldsInfo
[
t
.
fieldCode
]
-
1
]?
t
.
fieldOperations
.
fieldContent
[
1
*
e
.
fieldsInfo
[
t
.
fieldCode
]
-
1
].
name
:
""
!==
e
.
fieldsInfo
[
t
.
fieldCode
]
&&
null
!==
e
.
fieldsInfo
[
t
.
fieldCode
]
&&
t
.
fieldOperations
.
fieldContent
.
length
?
t
.
fieldOperations
.
fieldContent
[
t
.
fieldOperations
.
fieldContent
.
length
-
1
].
name
:
""
)
+
"
\
n "
)]):
i
(
"div"
,{
staticClass
:
"field-value color-606266"
},[
e
.
_v
(
e
.
_s
(
e
.
fieldsInfo
[
t
.
fieldCode
]))])]:
3
==
t
.
fieldType
?
i
(
"div"
,{
staticClass
:
"field-value color-606266"
}):
4
==
t
.
fieldType
?
i
(
"div"
,{
staticClass
:
"field-value color-606266"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
_f
(
"formatDate"
)(
e
.
fieldsInfo
[
t
.
fieldCode
],
t
.
fieldOperations
.
typeValue
))
+
"
\
n "
)]):
5
==
t
.
fieldType
?
i
(
"div"
,{
staticClass
:
"field-value color-606266"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
fieldsInfo
[
t
.
fieldCode
].
join
(
"至"
))
+
"
\
n "
)]):
7
==
t
.
fieldType
?
i
(
"div"
,{
staticClass
:
"img-box"
},
e
.
_l
(
e
.
fieldsInfo
[
t
.
fieldCode
],
function
(
e
,
t
){
return
i
(
"div"
,{
key
:
t
+
e
.
url
,
staticClass
:
"item-imgs"
},[
i
(
"a"
,[
i
(
"img"
,{
attrs
:{
src
:
e
.
url
}})])])})):
e
.
_e
()]],
2
)]})],
2
),
e
.
_v
(
" "
),
e
.
showEdit
?
i
(
"div"
,{
staticClass
:
"handle-form-btns t-ct m-b-60"
},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveEdit
}},[
e
.
_v
(
"保存"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)])],
1
):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
r
=
function
(
e
){
i
(
"B/MQ"
)},
d
=
i
(
"VU/8"
)(
o
.
a
,
n
,
!
1
,
r
,
null
,
null
).
exports
,
f
=
i
(
"IVno"
),
c
=
{
name
:
"recordInfo"
,
components
:{
navCrumb
:
a
.
a
,
editableCell
:
d
,
handleDialog
:
f
.
a
},
filters
:{
formatDate
:
l
.
b
},
data
:
function
(){
return
{
windowH
:
window
.
screen
.
availHeight
-
180
+
"px"
,
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"员工档案"
,
path
:
"/fileSet"
},{
name
:
"在职员工"
,
path
:
"/employeeRecord"
},{
name
:
"编辑员工信息"
,
path
:
""
}],
editNavpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"员工档案"
,
path
:
"/fileSet"
},{
name
:
"离职员工"
,
path
:
"/unemployee"
},{
name
:
"编辑员工信息"
,
path
:
""
}],
dialogVisible
:
!
1
,
htmlTitle
:
"员工档案"
,
info
:{},
staticInfo
:{},
statusList
:[
"正式"
,
"试用"
,
"离职"
],
reasons
:[
""
,
"家庭原因"
,
"个人原因"
,
"发展原因"
,
"合同到期不续签"
,
"协议解除"
,
"无法胜任工作"
,
"经济性裁员"
,
"严重违法违纪"
,
"其他"
],
items
:[],
fieldList
:[],
mileStone
:[],
historyStatus
:[
"新入职"
,
"转正"
,
"离职"
,
"转岗"
,
"再入职"
],
editHisObj
:{}}},
methods
:{
handleSuccess
:
function
(){
this
.
dialogVisible
=!
1
},
getEmployeeDetail
:
function
(){
var
e
=
this
,
t
=
{
recordId
:
e
.
$route
.
query
.
recordId
};
Object
(
s
.
a
)(
"/haoban-manage-web/record/employee-detail"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
getTemplate
(
t
.
data
.
result
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
subSuccess
:
function
(){
this
.
getEmployeeDetail
()},
getTemplate
:
function
(
e
){
var
t
=
this
;
Object
(
s
.
a
)(
"/haoban-manage-web/record/employee-find-template"
,{}).
then
(
function
(
i
){
1
==
i
.
data
.
errorCode
?
t
.
formatTemplateList
(
i
.
data
.
result
,
e
):
t
.
$message
.
error
({
message
:
i
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
formatTemplateList
:
function
(
e
,
t
){
var
i
=
[],
a
=
e
,
s
=
JSON
.
parse
(
t
.
defineString
),
o
=
Object
(
l
.
a
)(
t
);
for
(
var
n
in
s
)
o
[
n
]
=
s
[
n
];
e
.
forEach
(
function
(
e
){
if
(
0
!=
e
.
parentCode
&&
(
e
.
fieldOperations
=
JSON
.
parse
(
e
.
fieldOperations
)),
5
==
e
.
fieldType
&&
(
o
[
e
.
fieldCode
]
=
o
[
e
.
fieldCode
]?
o
[
e
.
fieldCode
].
split
(
","
):[
""
,
""
],
t
[
e
.
fieldCode
]
=
t
[
e
.
fieldCode
]?
t
[
e
.
fieldCode
].
split
(
","
):[
""
,
""
]),
e
.
fieldType
,
7
==
e
.
fieldType
){
var
s
=
[];
o
[
e
.
fieldCode
]
=
o
[
e
.
fieldCode
]?
o
[
e
.
fieldCode
].
split
(
","
):[],
o
[
e
.
fieldCode
].
forEach
(
function
(
e
){
s
.
push
({
url
:
e
})}),
t
[
e
.
fieldCode
]
=
s
,
o
[
e
.
fieldCode
]
=
s
.
slice
(
0
)}
e
.
title
=
e
.
fieldName
;
var
l
=
[];
a
.
forEach
(
function
(
t
){
t
.
parentCode
==
e
.
fieldCode
&&
l
.
push
(
t
)}),
l
.
sort
(
function
(
e
,
t
){
return
1
*
e
.
sort
-
1
*
t
.
sort
}),
l
.
length
>
0
&&
(
e
.
childrens
=
l
),
0
==
e
.
parentCode
&&
i
.
push
(
e
)}),
i
.
sort
(
function
(
e
,
t
){
return
1
*
e
.
sort
-
1
*
t
.
sort
}),
this
.
fieldList
=
i
,
this
.
info
=
o
,
this
.
staticInfo
=
t
},
getHistoryList
:
function
(){
var
e
=
this
,
t
=
{
recordId
:
e
.
$route
.
query
.
recordId
};
Object
(
s
.
a
)(
"/haoban-manage-web/record/history-record-list"
,
t
).
then
(
function
(
t
){
if
(
1
==
t
.
data
.
errorCode
){
var
i
=
t
.
data
.
result
;
e
.
formatMileStone
(
i
)}
else
e
.
$message
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
({
message
:
t
.
message
})})},
formatMileStone
:
function
(
e
){
e
.
sort
(
function
(
e
,
t
){
return
1
*
e
.
historyDate
-
1
*
t
.
historyDate
});
for
(
var
t
=
[],
i
=
0
,
a
=
e
.
length
;
i
<
a
;
i
+=
4
)
t
.
push
(
e
.
slice
(
i
,
i
+
4
));
this
.
mileStone
=
t
},
editHis
:
function
(
e
){
this
.
editHisObj
.
historyId
=
e
.
historyId
,
this
.
editHisObj
.
recordId
=
this
.
$route
.
query
.
recordId
,
this
.
dialogVisible
=!
0
}},
beforeMount
:
function
(){
this
.
getEmployeeDetail
(),
this
.
getHistoryList
()},
mounted
:
function
(){
var
e
=
this
.
$route
.
query
.
type
;
e
&&
"unemployee"
==
e
&&
(
this
.
navpath
=
this
.
editNavpath
),
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"auto"
,
document
.
querySelector
(
".contact-wrap__body"
).
removeAttribute
(
"style"
),
document
.
getElementsByClassName
(
"contact-wrap__right"
)[
0
].
removeAttribute
(
"style"
)})},
beforeDestroy
:
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"hidden"
;
var
e
=
(
document
.
documentElement
.
clientHeight
||
document
.
body
.
clientHeight
)
-
64
+
"px"
;
document
.
querySelector
(
".contact-wrap__body"
).
setAttribute
(
"style"
,
"height:"
+
e
),
document
.
getElementsByClassName
(
"contact-wrap__right"
)[
0
].
setAttribute
(
"style"
,
"height:"
+
e
)}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"common-set-wrap"
,
style
:{
"min-height"
:
e
.
windowH
}},[
i
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"right-content"
},[
i
(
"div"
,{
staticClass
:
"right-box"
},[
i
(
"div"
,{
staticClass
:
"commom-container clerk-detail-container"
},[
i
(
"p"
,{
staticClass
:
"t-rt"
},[
i
(
"a"
,{
staticClass
:
"a-href font-14"
,
on
:{
click
:
function
(
t
){
e
.
getPdf
()}}},[
e
.
_v
(
"打印员工档案"
)])]),
e
.
_v
(
" "
),
i
(
"div"
,{
style
:{
"min-height"
:
e
.
windowH
},
attrs
:{
id
:
"pdfDom"
}},[
i
(
"div"
,{
staticClass
:
"employee-detail-cell"
},[
i
(
"div"
,{
staticClass
:
"head-info"
},[
i
(
"p"
,{
staticClass
:
"head-cell"
},[
e
.
info
.
headPic
?
i
(
"img"
,{
staticClass
:
"head-img"
,
attrs
:{
src
:
e
.
info
.
headPic
}}):
i
(
"span"
,{
staticClass
:
"head-img-null"
},[
i
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])]),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"head-cell name"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
info
.
clerkName
)),
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
"-1"
==
e
.
info
.
clerkStatus
?
"无状态"
:
e
.
statusList
[
e
.
info
.
clerkStatus
-
1
]))])]),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"head-cell c-303133"
},[
e
.
_v
(
e
.
_s
(
e
.
info
.
groupName
)
+
e
.
_s
(
e
.
info
.
positionName
))]),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"head-cell color-606266"
},[
e
.
_v
(
"已在"
+
e
.
_s
(
e
.
info
.
enterpriseName
)
+
"工作了"
+
e
.
_s
(
e
.
info
.
days
)
+
"天"
)])])]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
fieldList
,
function
(
t
){
return
[
t
.
childrens
?
i
(
"editable-cell"
,{
key
:
t
.
fieldCode
,
attrs
:{
info
:
e
.
info
,
staticInfo
:
e
.
staticInfo
,
items
:
e
.
items
,
title
:
t
.
title
,
fieldList
:
t
.
childrens
},
on
:{
subSuccess
:
e
.
subSuccess
}}):
e
.
_e
()]}),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"mile-stone-container"
},[
e
.
_m
(
0
),
e
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"mile-stone"
},
e
.
_l
(
e
.
mileStone
,
function
(
t
,
a
){
return
i
(
"li"
,{
key
:
a
,
staticClass
:
"stone-group"
,
class
:
a
%
2
==
0
?
"column"
:
"column-reverse"
},[
4
==
t
.
length
&&
a
!=
e
.
mileStone
.
length
-
1
?
i
(
"div"
,{
staticClass
:
"column-hurdle"
}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
_l
(
t
,
function
(
t
,
s
){
return
i
(
"div"
,{
key
:
s
,
staticClass
:
"stone"
,
class
:
a
%
2
==
1
&&
3
==
s
||
a
%
2
==
0
&&
0
==
s
&&
0
!=
a
?
"no-radio"
:
""
},[
i
(
"p"
,{
staticClass
:
"time"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatDate"
)(
t
.
historyDate
,
"YY-MM-DD"
)))]),
e
.
_v
(
" "
),
e
.
_m
(
1
,
!
0
),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"position"
},[
e
.
_v
(
e
.
_s
(
t
.
positionName
))]),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"font-16 "
},[
e
.
_v
(
e
.
_s
(
e
.
historyStatus
[
1
*
t
.
historyStatus
-
1
])),
3
==
t
.
historyStatus
?
i
(
"a"
,{
staticClass
:
"a-href m-l-10 fs-12"
,
on
:{
click
:
function
(
i
){
e
.
editHis
(
t
)}}},[
e
.
_v
(
"编辑"
)]):
e
.
_e
()]),
e
.
_v
(
" "
),
3
==
t
.
historyStatus
?
i
(
"p"
,[
e
.
_v
(
"离职理由:"
+
e
.
_s
(
e
.
reasons
[
t
.
fireReason
]))]):
e
.
_e
(),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"color-606266"
},[
e
.
_v
(
e
.
_s
(
t
.
storeName
?
t
.
storeName
:
t
.
groupName
))])])})],
2
)}))])],
2
),
e
.
_v
(
" "
),
i
(
"el-dialog"
,{
attrs
:{
title
:
"修改离职信息"
,
visible
:
e
.
dialogVisible
,
width
:
"480px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
i
(
"handle-dialog"
,{
attrs
:{
employee
:
e
.
editHisObj
,
handleType
:
"changeFireInfo"
,
typeTitle
:
"修改离职信息"
},
on
:{
handleSuccess
:
e
.
handleSuccess
}})],
1
)],
1
)])]),
e
.
_v
(
" "
),
i
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"p"
,{
staticClass
:
"m-s-title"
},[
t
(
"span"
,{
staticClass
:
"font-w-500"
},[
this
.
_v
(
"员工记录"
)])])},
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"hurdle-box"
},[
t
(
"span"
,{
staticClass
:
"radio"
}),
this
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"hurdle"
})])}]};
var
_
=
i
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
e
){
i
(
"sqsL"
)},
null
,
null
);
t
.
default
=
_
.
exports
},
"B/MQ"
:
function
(
e
,
t
){},
FKG6
:
function
(
e
,
t
){},
KzHU
:
function
(
module
,
__webpack_exports__
,
__webpack_require__
){
"use strict"
;
var
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__
=
__webpack_require__
(
"pFYg"
),
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default
=
__webpack_require__
.
n
(
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__
),
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__
=
__webpack_require__
(
"mvHQ"
),
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default
=
__webpack_require__
.
n
(
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__
),
__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__
=
__webpack_require__
(
"5gt+"
),
__WEBPACK_IMPORTED_MODULE_3__components_common_country_mobile_vue__
=
__webpack_require__
(
"XDyb"
),
__WEBPACK_IMPORTED_MODULE_4__utils_index__
=
__webpack_require__
(
"0xDb"
),
__WEBPACK_IMPORTED_MODULE_5__api_api__
=
__webpack_require__
(
"P9l9"
);
__webpack_exports__
.
a
=
{
name
:
"editableCell"
,
props
:{
info
:{
type
:
Object
,
required
:
!
0
},
staticInfo
:{
type
:
Object
,
required
:
!
0
},
items
:{
type
:
Array
,
required
:
!
0
},
title
:{
type
:
String
,
default
:
""
},
fieldList
:{
type
:
Array
,
required
:
!
0
}},
components
:{
uploadImage
:
__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__
.
a
,
countryMobile
:
__WEBPACK_IMPORTED_MODULE_3__components_common_country_mobile_vue__
.
a
},
filters
:{
formatDate
:
__WEBPACK_IMPORTED_MODULE_4__utils_index__
.
b
},
data
:
function
(){
return
{
showEdit
:
!
1
,
uploadUrl
:
"/haoban-manage-web/upload-img"
,
fieldsInfo
:{}}},
methods
:{
uploadOnSuccess
:
function
(
e
,
t
){
e
.
file
.
url
=
e
.
res
.
result
[
0
].
qcloudImageUrl
,
t
.
push
(
e
.
file
)},
deleteImage
:
function
(
e
){
this
.
imageList
=
this
.
imageList
?
this
.
imageList
:[],
this
.
imageList
.
splice
(
e
,
1
)},
sortImg
:
function
(
e
){
this
.
imageList
=
e
},
saveEdit
:
function
saveEdit
(){
var
that
=
this
;
that
.
$refs
.
cell_form
.
validate
(
function
(
valid
){
if
(
valid
){
var
newInfo
=
Object
(
__WEBPACK_IMPORTED_MODULE_4__utils_index__
.
a
)(
that
.
fieldsInfo
),
params
=
{},
regFlag
=
[],
fieldList
=
that
.
fieldList
,
objToString
=
[];
if
(
fieldList
.
forEach
(
function
(
field
){
if
(
params
[
field
.
fieldCode
]
=
newInfo
[
field
.
fieldCode
],
5
==
field
.
fieldType
&&
(
params
[
field
.
fieldCode
]
=
newInfo
[
field
.
fieldCode
].
join
(
","
)),
7
==
field
.
fieldType
){
var
arr
=
[];
newInfo
[
field
.
fieldCode
].
forEach
(
function
(
e
){
arr
.
push
(
e
.
url
)}),
params
[
field
.
fieldCode
]
=
arr
.
join
(
","
)}
if
(
1
!=
field
.
systemFlag
){
if
(
objToString
.
push
({
fieldCode
:
field
.
fieldCode
,
fieldValue
:
newInfo
[
field
.
fieldCode
]}),
5
==
field
.
fieldType
&&
objToString
.
push
({
fieldCode
:
field
.
fieldCode
,
fieldValue
:
newInfo
[
field
.
fieldCode
].
join
(
","
)}),
7
==
field
.
fieldType
){
var
_arr
=
[];
newInfo
[
field
.
fieldCode
].
forEach
(
function
(
e
){
_arr
.
push
(
e
.
url
)}),
objToString
.
push
({
fieldCode
:
field
.
fieldCode
,
fieldValue
:
_arr
.
join
(
","
)})}
delete
params
[
field
.
fieldCode
]}
field
.
regular
&&
""
!==
newInfo
[
field
.
fieldCode
]
&&
regFlag
.
push
(
eval
(
"/"
+
field
.
regular
+
"/"
).
test
(
newInfo
[
field
.
fieldCode
]))}),
regFlag
.
length
&&
regFlag
.
includes
(
!
1
))
return
that
.
$message
.
error
(
"请输入正确格式的字段值!"
),
!
1
;
params
.
jsonString
=
"[]"
==
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default
()(
objToString
)?
""
:
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default
()(
objToString
),
params
.
recordId
=
that
.
$route
.
query
.
recordId
,
that
.
submitEdit
(
params
)}})},
submitEdit
:
function
(
e
){
var
t
=
this
;
Object
(
__WEBPACK_IMPORTED_MODULE_5__api_api__
.
a
)(
"/haoban-manage-web/record/save-record-detail"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
showEdit
=!
1
,
t
.
$emit
(
"subSuccess"
),
t
.
$message
({
message
:
e
.
data
.
message
,
type
:
"success"
})):
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
(
e
.
message
)})},
cancelEdit
:
function
(){
this
.
showEdit
=!
1
,
this
.
$refs
.
cell_form
.
clearValidate
();
var
e
=
this
.
fieldsInfo
,
t
=
this
.
staticInfo
;
for
(
var
i
in
e
)
e
[
i
]
=
null
==
t
[
i
]?
""
:
"object"
===
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default
()(
t
[
i
])?
t
[
i
]:
String
(
t
[
i
])}},
computed
:{
defineObj
:
function
(){
return
JSON
.
parse
(
this
.
clerkInfo
.
defineString
)},
rules
:
function
(){
var
e
=
{},
t
=
function
(
e
,
t
,
i
){
if
(
t
){
return
/^
[
0-9
]
*$/
.
test
(
1
*
t
)?
i
():
i
(
new
Error
(
"请输入数字!"
))}
return
i
()};
return
this
.
fieldList
.
forEach
(
function
(
i
){
var
a
=
[];
0
!=
i
.
fieldType
&&
1
!=
i
.
fieldType
||
(
i
.
minCount
&&
i
.
maxCount
&&
a
.
push
({
min
:
i
.
minCount
,
message
:
"至少填写"
+
i
.
minCount
+
"个字符"
,
trigger
:
"change"
}),
!
i
.
minCount
&&
i
.
maxCount
&&
a
.
push
({
max
:
i
.
maxCount
,
message
:
"至多填写"
+
i
.
maxCount
+
"个字符"
,
trigger
:
"change"
}),
i
.
minCount
&&
i
.
maxCount
&&
a
.
push
({
min
:
i
.
minCount
,
max
:
i
.
maxCount
,
message
:
"长度在 "
+
i
.
minCount
+
" 到 "
+
i
.
maxCount
+
"个字符"
,
trigger
:
"change"
})),
6
==
i
.
fieldType
&&
"identifyNo"
!=
i
.
fieldCode
&&
a
.
push
({
validator
:
t
,
message
:
i
.
fieldName
+
"必须为数字"
,
trigger
:
"change"
}),
e
[
i
.
fieldCode
]
=
a
}),
e
}},
beforeMount
:
function
(){
var
e
=
JSON
.
parse
(
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default
()(
this
.
info
));
for
(
var
t
in
e
)
e
[
t
]
=
null
==
e
[
t
]?
""
:
"object"
===
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default
()(
e
[
t
])?
e
[
t
]:
String
(
e
[
t
]);
this
.
fieldsInfo
=
e
}}},
sqsL
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/14.4ccefb8408cfd6d0c1c3.js
0 → 100644
View file @
7e2e2f1c
webpackJsonp
([
14
],{
"5TJU"
:
function
(
e
,
t
){},
"5gt+"
:
function
(
e
,
t
,
i
){
"use strict"
;
var
a
=
i
(
"mvHQ"
),
s
=
i
.
n
(
a
),
l
=
i
(
"//Fk"
),
o
=
i
.
n
(
l
),
n
=
i
(
"DAYN"
),
r
=
{
name
:
"vue-office-upload-image"
,
props
:{
projectName
:{
type
:
String
,
default
:
"haoban-manage-web"
},
wxFlag
:{
type
:
String
,
default
:
"1"
},
imgRate
:{
type
:
String
},
actionUrl
:{
type
:
String
,
default
:
""
},
maxImageLength
:{
type
:
Number
,
default
:
5
},
limitW
:{
type
:
Number
},
limitH
:{
type
:
Number
},
imageList
:{
type
:
Array
,
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
dragImageList
:
this
.
imageList
,
initialImg
:
0
,
progress
:
0
,
pass
:
null
,
isEnlargeImage
:
!
1
,
enlargeImage
:
""
}},
computed
:{
propStatus
:
function
(){
return
this
.
pass
?
"success"
:
!
1
===
this
.
pass
?
"exception"
:
"text"
}},
beforeMount
:
function
(){},
methods
:{
uploadUrl
:
function
(){
var
e
,
t
=
window
.
location
.
origin
,
i
=
void
0
;
return
e
=
this
.
wxFlag
&&
""
!=
this
.
wxFlag
?
"wxFlag="
+
this
.
wxFlag
+
"&"
:
""
,
i
=
"-1"
!=
t
.
indexOf
(
"localhost"
)?
"http://www.gicdev.com"
:
t
,
this
.
upUrl
=
i
+
this
.
actionUrl
+
"?"
+
e
+
"requestProject="
+
this
.
projectName
,
this
.
upUrl
},
beforeAvatarUpload
:
function
(
e
){
var
t
=
this
,
i
=
(
"image/jpeg"
===
e
.
type
||
"image/jpg"
===
e
.
type
||
e
.
type
,
e
.
size
/
1024
/
1024
<
2
);
return
i
||
t
.
$message
.
error
(
"上传图片大小不能超过 2MB!"
),
i
&&
new
o
.
a
(
function
(
i
,
a
){
var
s
=
new
FileReader
;
s
.
onload
=
function
(
e
){
var
s
=
new
Image
;
s
.
onload
=
function
(){
var
e
=
this
.
width
,
s
=
this
.
height
;
t
.
imgRate
&&
""
!==
t
.
imgRate
&&
(
Number
(
t
.
imgRate
.
split
(
":"
)[
0
])
/
Number
(
t
.
imgRate
.
split
(
":"
)[
1
])
!=
Number
(
e
)
/
Number
(
s
)
&&
(
t
.
$message
.
error
(
"上传图片比例不正确!"
),
a
()));
t
.
imgRate
&&
""
!=
t
.
imgRate
||!
t
.
limitW
||!
t
.
limitH
||
e
===
t
.
limitW
||
s
===
t
.
limitH
||
(
t
.
$message
.
error
(
"上传图片尺寸不正确!"
),
a
()),
i
()},
s
.
src
=
e
.
target
.
result
},
s
.
readAsDataURL
(
e
)})},
uploadOnSuccess
:
function
(
e
,
t
){
this
.
pass
=!
0
,
1
==
e
.
errorCode
?(
this
.
$message
.
success
(
"上传成功"
),
this
.
$emit
(
"uploadOnSuccess"
,{
res
:
e
,
file
:
t
},
this
.
imageList
)):
this
.
$message
.
error
(
e
.
message
)},
uploadOnProgress
:
function
(
e
,
t
){
e
&&
e
.
percent
&&
(
this
.
progress
=
Math
.
floor
(
e
.
percent
))},
uploadOnChange
:
function
(
e
){
"ready"
===
e
.
status
?(
this
.
pass
=
null
,
this
.
progress
=
0
):
"fail"
===
e
.
status
&&
this
.
$message
.
error
(
"图片上传失败,请重试!"
)},
uploadOnError
:
function
(){},
previewImage
:
function
(
e
){
this
.
isEnlargeImage
=!
0
,
this
.
initialImg
=
e
},
deleteImage
:
function
(
e
){
this
.
$emit
(
"deleteImage"
,
e
);
var
t
=
JSON
.
parse
(
s
()(
this
.
imageList
));
t
.
splice
(
e
,
1
),
this
.
$emit
(
"update:imageList"
,
t
)},
handleClose
:
function
(
e
){
e
()},
itemMoveEnd
:
function
(
e
){
this
.
$emit
(
"sortImg"
,
this
.
dragImageList
),
this
.
$emit
(
"update:imageList"
,
this
.
dragImageList
)}},
watch
:{
imageList
:
function
(
e
,
t
){
this
.
dragImageList
=
e
}},
mounted
:
function
(){},
components
:{
draggable
:
i
.
n
(
n
).
a
}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"gic-upload__img"
},[
i
(
"div"
,{
staticClass
:
"gic-upload__img__drag"
},[
i
(
"draggable"
,{
staticClass
:
"drag-wrap"
,
staticStyle
:{
display
:
"contents"
},
attrs
:{
options
:{
group
:{
name
:
"people"
,
pull
:
!
1
,
put
:
!
0
},
sort
:
!
0
}},
on
:{
end
:
e
.
itemMoveEnd
},
model
:{
value
:
e
.
dragImageList
,
callback
:
function
(
t
){
e
.
dragImageList
=
t
},
expression
:
"dragImageList"
}},[
i
(
"transition-group"
,{
attrs
:{
name
:
"slide-fade"
}},
e
.
_l
(
e
.
imageList
,
function
(
t
,
a
){
return
i
(
"div"
,{
key
:
a
,
class
:[
"img-content"
,
a
>=
6
?
"m-t-8"
:
""
]},[
i
(
"a"
,{
staticClass
:
"item-img"
,
attrs
:{
href
:
t
.
url
}},[
i
(
"img"
,{
attrs
:{
src
:
t
.
url
,
alt
:
"上传图片"
}})]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"upload-icon__btn"
},[
i
(
"i"
,{
staticClass
:
"el-icon-view"
,
on
:{
click
:
function
(
t
){
e
.
previewImage
(
a
)}}}),
e
.
_v
(
" "
),
i
(
"i"
,{
staticClass
:
"el-icon-delete"
,
on
:{
click
:
function
(
t
){
e
.
deleteImage
(
a
)}}})])])}))],
1
),
e
.
_v
(
" "
),
e
.
pass
||
0
===
e
.
progress
?
e
.
_e
():
i
(
"div"
,{
class
:[
"img-content"
,
"img-progress"
,
e
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
i
(
"el-progress"
,{
staticClass
:
"gic-img-progress"
,
staticStyle
:{
"line-height"
:
"102px"
},
attrs
:{
width
:
102
,
percentage
:
e
.
progress
,
status
:
e
.
propStatus
}})],
1
),
e
.
_v
(
" "
),
e
.
imageList
&&
e
.
imageList
.
length
<
e
.
maxImageLength
?
i
(
"div"
,{
class
:[
"img-upload"
,
e
.
imageList
.
length
>=
6
?
"m-t-8"
:
""
]},[
i
(
"el-upload"
,{
staticClass
:
"loader"
,
attrs
:{
accept
:
"image/jpg,image/jpeg,image/png,image/gif"
,
action
:
e
.
uploadUrl
(),
"list-type"
:
"picture-card"
,
"on-change"
:
e
.
uploadOnChange
,
"before-upload"
:
e
.
beforeAvatarUpload
,
"on-success"
:
e
.
uploadOnSuccess
,
"on-error"
:
e
.
uploadOnError
,
"on-progress"
:
e
.
uploadOnProgress
}},[
i
(
"i"
,{
staticClass
:
"el-icon-plus gic-upload-btn"
})])],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
i
(
"el-dialog"
,{
attrs
:{
title
:
"图片预览"
,
visible
:
e
.
isEnlargeImage
,
"modal-append-to-body"
:
!
1
,
"before-close"
:
e
.
handleClose
,
width
:
"520px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
isEnlargeImage
=
t
}}},[
e
.
isEnlargeImage
?
i
(
"el-carousel"
,{
attrs
:{
trigger
:
"click"
,
"initial-index"
:
e
.
initialImg
,
autoplay
:
!
1
,
height
:
"500px"
}},
e
.
_l
(
e
.
imageList
,
function
(
t
,
a
){
return
i
(
"el-carousel-item"
,{
key
:
a
,
staticStyle
:{
display
:
"flex"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
}},[
i
(
"img"
,{
staticStyle
:{
"max-width"
:
"480px"
,
"max-height"
:
"500px"
},
attrs
:{
src
:
t
.
url
},
on
:{
click
:
function
(
t
){
e
.
isEnlargeImage
=!
1
}}})])})):
e
.
_e
()],
1
)],
1
)},
staticRenderFns
:[]};
var
f
=
i
(
"VU/8"
)(
r
,
d
,
!
1
,
function
(
e
){
i
(
"FKG6"
)},
null
,
null
);
t
.
a
=
f
.
exports
},
"67iC"
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
i
(
"3Xzz"
),
s
=
i
(
"P9l9"
),
l
=
i
(
"0xDb"
),
o
=
i
(
"KzHU"
),
n
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"editable-cell-container"
},[
i
(
"div"
,{
staticClass
:
"title-div"
},[
i
(
"span"
,{
staticClass
:
"font-w-500"
},[
e
.
_v
(
e
.
_s
(
e
.
title
))]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"hurdle"
}),
e
.
_v
(
" "
),
i
(
"a"
,{
staticClass
:
"a-href"
,
on
:{
click
:
function
(
t
){
e
.
showEdit
=!
0
}}},[
e
.
_v
(
"编辑"
)])]),
e
.
_v
(
" "
),
i
(
"el-form"
,{
ref
:
"cell_form"
,
staticClass
:
"info-form record-edit-rorm"
,
attrs
:{
rules
:
e
.
rules
,
inline
:
""
,
"label-width"
:
"150px"
,
model
:
e
.
fieldsInfo
}},[
e
.
_l
(
e
.
fieldList
,
function
(
t
,
a
){
return
[
i
(
"el-form-item"
,{
key
:
t
.
fieldCode
+
"_"
+
a
,
staticClass
:
"item-width"
,
attrs
:{
label
:
t
.
title
+
":"
,
prop
:
t
.
fieldCode
}},[
e
.
showEdit
?[
0
==
t
.
fieldType
?
i
(
"el-input"
,{
staticClass
:
"edit-infor-input"
,
attrs
:{
placeholder
:
t
.
fieldDescription
,
disabled
:
"1"
!=
t
.
fieldEdited
||
"clerkName"
==
t
.
fieldCode
||
"groupName"
==
t
.
fieldCode
||
"clerkCode"
==
t
.
fieldCode
||
"positionName"
==
t
.
fieldCode
||
"clerkType"
==
t
.
fieldCode
||
"clerkStatus"
==
t
.
fieldCode
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
6
==
t
.
fieldType
&&
"clerkPhone"
!=
t
.
fieldCode
?
i
(
"el-input"
,{
staticClass
:
"edit-infor-input"
,
attrs
:{
placeholder
:
t
.
fieldDescription
,
disabled
:
"1"
!=
t
.
fieldEdited
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
6
==
t
.
fieldType
&&
"clerkPhone"
==
t
.
fieldCode
?
i
(
"countryMobile"
,{
attrs
:{
inputWidth
:
350
,
nationCode
:
e
.
fieldsInfo
.
nationcode
,
holder
:
t
.
fieldDescription
,
disflag
:
"1"
!=
t
.
fieldEdited
},
on
:{
"update:nationCode"
:
function
(
t
){
e
.
$set
(
e
.
fieldsInfo
,
"nationcode"
,
t
)}},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
1
==
t
.
fieldType
?
i
(
"el-input"
,{
staticClass
:
"edit-infor-input"
,
attrs
:{
type
:
"textarea"
,
autosize
:
""
,
disabled
:
"1"
!=
t
.
fieldEdited
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
2
==
t
.
fieldType
||
3
==
t
.
fieldType
?[
1
==
t
.
systemFlag
?
i
(
"el-select"
,{
attrs
:{
disabled
:
"1"
!=
t
.
fieldEdited
||
"clerkStatus"
==
t
.
fieldCode
&&
3
==
e
.
fieldsInfo
[
t
.
fieldCode
]
||
"sex"
==
t
.
fieldCode
,
multiple
:
3
==
t
.
fieldType
,
"collapse-tags"
:
3
==
t
.
fieldType
,
placeholder
:
t
.
fieldDescription
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}},
e
.
_l
(
t
.
fieldOperations
.
fieldContent
,
function
(
e
){
return
i
(
"el-option"
,{
key
:
e
.
key
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
key
,
disabled
:
"clerkStatus"
==
t
.
fieldCode
&&
3
==
e
.
key
}})})):
i
(
"el-select"
,{
attrs
:{
disabled
:
"1"
!=
t
.
fieldEdited
,
multiple
:
3
==
t
.
fieldType
,
"collapse-tags"
:
3
==
t
.
fieldType
,
placeholder
:
t
.
fieldDescription
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}},
e
.
_l
(
t
.
fieldOperations
.
fieldContent
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
e
.
key
+
"_"
+
t
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
name
}})}))]:
4
==
t
.
fieldType
?
i
(
"el-date-picker"
,{
attrs
:{
type
:
"date"
,
disabled
:
"1"
!=
t
.
fieldEdited
,
format
:
t
.
fieldOperations
.
typeValue
,
"value-format"
:
t
.
fieldOperations
.
typeValue
,
placeholder
:
t
.
fieldDescription
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
5
==
t
.
fieldType
?
i
(
"el-date-picker"
,{
attrs
:{
type
:
"daterange"
,
"range-separator"
:
"至"
,
disabled
:
"1"
!=
t
.
fieldEdited
,
format
:
t
.
fieldOperations
.
typeValue
,
"value-format"
:
t
.
fieldOperations
.
typeValue
,
"start-placeholder"
:
t
.
fieldOperations
.
startDescription
,
"end-placeholder"
:
t
.
fieldOperations
.
endDescription
},
model
:{
value
:
e
.
fieldsInfo
[
t
.
fieldCode
],
callback
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
expression
:
"fieldsInfo[item.fieldCode]"
}}):
7
==
t
.
fieldType
?
i
(
"uploadImage"
,{
attrs
:{
projectName
:
"haoban-manage-web"
,
wxFlag
:
"0"
,
actionUrl
:
e
.
uploadUrl
,
imageList
:
e
.
fieldsInfo
[
t
.
fieldCode
],
maxImageLength
:
3
},
on
:{
"update:imageList"
:
function
(
i
){
e
.
$set
(
e
.
fieldsInfo
,
t
.
fieldCode
,
i
)},
uploadOnSuccess
:
e
.
uploadOnSuccess
,
sortImg
:
e
.
sortImg
,
deleteImage
:
e
.
deleteImage
}}):
e
.
_e
()]:[
0
==
t
.
fieldType
||
1
==
t
.
fieldType
||
6
==
t
.
fieldType
?
i
(
"div"
,{
staticClass
:
"field-value color-606266"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
"clerkPhone"
!=
t
.
fieldCode
?
e
.
fieldsInfo
[
t
.
fieldCode
]:
"86"
==
e
.
fieldsInfo
.
nationcode
?
e
.
fieldsInfo
.
clerkPhone
:
"+"
+
e
.
fieldsInfo
.
nationcode
+
"-"
+
e
.
fieldsInfo
.
clerkPhone
)
+
"
\
n "
)]):
2
==
t
.
fieldType
?[
1
==
t
.
systemFlag
?
i
(
"div"
,{
staticClass
:
"field-value color-606266"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
fieldOperations
.
fieldContent
[
1
*
e
.
fieldsInfo
[
t
.
fieldCode
]
-
1
]?
t
.
fieldOperations
.
fieldContent
[
1
*
e
.
fieldsInfo
[
t
.
fieldCode
]
-
1
].
name
:
""
!==
e
.
fieldsInfo
[
t
.
fieldCode
]
&&
null
!==
e
.
fieldsInfo
[
t
.
fieldCode
]
&&
t
.
fieldOperations
.
fieldContent
.
length
?
t
.
fieldOperations
.
fieldContent
[
t
.
fieldOperations
.
fieldContent
.
length
-
1
].
name
:
""
)
+
"
\
n "
)]):
i
(
"div"
,{
staticClass
:
"field-value color-606266"
},[
e
.
_v
(
e
.
_s
(
e
.
fieldsInfo
[
t
.
fieldCode
]))])]:
3
==
t
.
fieldType
?
i
(
"div"
,{
staticClass
:
"field-value color-606266"
}):
4
==
t
.
fieldType
?
i
(
"div"
,{
staticClass
:
"field-value color-606266"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
_f
(
"formatDate"
)(
e
.
fieldsInfo
[
t
.
fieldCode
],
t
.
fieldOperations
.
typeValue
))
+
"
\
n "
)]):
5
==
t
.
fieldType
?
i
(
"div"
,{
staticClass
:
"field-value color-606266"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
fieldsInfo
[
t
.
fieldCode
].
join
(
"至"
))
+
"
\
n "
)]):
7
==
t
.
fieldType
?
i
(
"div"
,{
staticClass
:
"img-box"
},
e
.
_l
(
e
.
fieldsInfo
[
t
.
fieldCode
],
function
(
e
,
t
){
return
i
(
"div"
,{
key
:
t
+
e
.
url
,
staticClass
:
"item-imgs"
},[
i
(
"a"
,[
i
(
"img"
,{
attrs
:{
src
:
e
.
url
}})])])})):
e
.
_e
()]],
2
)]})],
2
),
e
.
_v
(
" "
),
e
.
showEdit
?
i
(
"div"
,{
staticClass
:
"handle-form-btns t-ct m-b-60"
},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveEdit
}},[
e
.
_v
(
"保存"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)])],
1
):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
r
=
function
(
e
){
i
(
"5TJU"
)},
d
=
i
(
"VU/8"
)(
o
.
a
,
n
,
!
1
,
r
,
null
,
null
).
exports
,
f
=
i
(
"IVno"
),
c
=
{
name
:
"recordInfo"
,
components
:{
navCrumb
:
a
.
a
,
editableCell
:
d
,
handleDialog
:
f
.
a
},
filters
:{
formatDate
:
l
.
b
},
data
:
function
(){
return
{
windowH
:
window
.
screen
.
availHeight
-
180
+
"px"
,
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"员工档案"
,
path
:
"/fileSet"
},{
name
:
"在职员工"
,
path
:
"/employeeRecord"
},{
name
:
"编辑员工信息"
,
path
:
""
}],
editNavpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"通讯录"
,
path
:
"/administrativeFrame"
},{
name
:
"员工档案"
,
path
:
"/fileSet"
},{
name
:
"离职员工"
,
path
:
"/unemployee"
},{
name
:
"编辑员工信息"
,
path
:
""
}],
dialogVisible
:
!
1
,
htmlTitle
:
"员工档案"
,
info
:{},
staticInfo
:{},
statusList
:[
"正式"
,
"试用"
,
"离职"
],
reasons
:[
""
,
"家庭原因"
,
"个人原因"
,
"发展原因"
,
"合同到期不续签"
,
"协议解除"
,
"无法胜任工作"
,
"经济性裁员"
,
"严重违法违纪"
,
"其他"
],
items
:[],
fieldList
:[],
mileStone
:[],
historyStatus
:[
"新入职"
,
"转正"
,
"离职"
,
"转岗"
,
"再入职"
],
editHisObj
:{}}},
methods
:{
handleSuccess
:
function
(){
this
.
dialogVisible
=!
1
},
getEmployeeDetail
:
function
(){
var
e
=
this
,
t
=
{
recordId
:
e
.
$route
.
query
.
recordId
};
Object
(
s
.
a
)(
"/haoban-manage-web/record/employee-detail"
,
t
).
then
(
function
(
t
){
1
==
t
.
data
.
errorCode
?
e
.
getTemplate
(
t
.
data
.
result
):
e
.
$message
.
error
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
.
error
({
message
:
t
.
message
})})},
subSuccess
:
function
(){
this
.
getEmployeeDetail
()},
getTemplate
:
function
(
e
){
var
t
=
this
;
Object
(
s
.
a
)(
"/haoban-manage-web/record/employee-find-template"
,{}).
then
(
function
(
i
){
1
==
i
.
data
.
errorCode
?
t
.
formatTemplateList
(
i
.
data
.
result
,
e
):
t
.
$message
.
error
({
message
:
i
.
data
.
message
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
message
:
e
.
message
})})},
formatTemplateList
:
function
(
e
,
t
){
var
i
=
[],
a
=
e
,
s
=
JSON
.
parse
(
t
.
defineString
),
o
=
Object
(
l
.
a
)(
t
);
for
(
var
n
in
s
)
o
[
n
]
=
s
[
n
];
e
.
forEach
(
function
(
e
){
if
(
0
!=
e
.
parentCode
&&
(
e
.
fieldOperations
=
JSON
.
parse
(
e
.
fieldOperations
)),
5
==
e
.
fieldType
&&
(
o
[
e
.
fieldCode
]
=
o
[
e
.
fieldCode
]?
o
[
e
.
fieldCode
].
split
(
","
):[
""
,
""
],
t
[
e
.
fieldCode
]
=
t
[
e
.
fieldCode
]?
t
[
e
.
fieldCode
].
split
(
","
):[
""
,
""
]),
e
.
fieldType
,
7
==
e
.
fieldType
){
var
s
=
[];
o
[
e
.
fieldCode
]
=
o
[
e
.
fieldCode
]?
o
[
e
.
fieldCode
].
split
(
","
):[],
o
[
e
.
fieldCode
].
forEach
(
function
(
e
){
s
.
push
({
url
:
e
})}),
t
[
e
.
fieldCode
]
=
s
,
o
[
e
.
fieldCode
]
=
s
.
slice
(
0
)}
e
.
title
=
e
.
fieldName
;
var
l
=
[];
a
.
forEach
(
function
(
t
){
t
.
parentCode
==
e
.
fieldCode
&&
l
.
push
(
t
)}),
l
.
sort
(
function
(
e
,
t
){
return
1
*
e
.
sort
-
1
*
t
.
sort
}),
l
.
length
>
0
&&
(
e
.
childrens
=
l
),
0
==
e
.
parentCode
&&
i
.
push
(
e
)}),
i
.
sort
(
function
(
e
,
t
){
return
1
*
e
.
sort
-
1
*
t
.
sort
}),
this
.
fieldList
=
i
,
this
.
info
=
o
,
this
.
staticInfo
=
t
},
getHistoryList
:
function
(){
var
e
=
this
,
t
=
{
recordId
:
e
.
$route
.
query
.
recordId
};
Object
(
s
.
a
)(
"/haoban-manage-web/record/history-record-list"
,
t
).
then
(
function
(
t
){
if
(
1
==
t
.
data
.
errorCode
){
var
i
=
t
.
data
.
result
;
e
.
formatMileStone
(
i
)}
else
e
.
$message
({
message
:
t
.
data
.
message
})}).
catch
(
function
(
t
){
e
.
$message
({
message
:
t
.
message
})})},
formatMileStone
:
function
(
e
){
e
.
sort
(
function
(
e
,
t
){
return
1
*
e
.
historyDate
-
1
*
t
.
historyDate
});
for
(
var
t
=
[],
i
=
0
,
a
=
e
.
length
;
i
<
a
;
i
+=
4
)
t
.
push
(
e
.
slice
(
i
,
i
+
4
));
this
.
mileStone
=
t
},
editHis
:
function
(
e
){
this
.
editHisObj
.
historyId
=
e
.
historyId
,
this
.
editHisObj
.
recordId
=
this
.
$route
.
query
.
recordId
,
this
.
dialogVisible
=!
0
}},
beforeMount
:
function
(){
this
.
getEmployeeDetail
(),
this
.
getHistoryList
()},
mounted
:
function
(){
var
e
=
this
.
$route
.
query
.
type
;
e
&&
"unemployee"
==
e
&&
(
this
.
navpath
=
this
.
editNavpath
),
this
.
$nextTick
(
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"auto"
,
document
.
querySelector
(
".contact-wrap__body"
).
removeAttribute
(
"style"
),
document
.
getElementsByClassName
(
"contact-wrap__right"
)[
0
].
removeAttribute
(
"style"
)})},
beforeDestroy
:
function
(){
document
.
querySelector
(
".contact-wrap__body"
).
style
.
overflow
=
"hidden"
;
var
e
=
(
document
.
documentElement
.
clientHeight
||
document
.
body
.
clientHeight
)
-
64
+
"px"
;
document
.
querySelector
(
".contact-wrap__body"
).
setAttribute
(
"style"
,
"height:"
+
e
),
document
.
getElementsByClassName
(
"contact-wrap__right"
)[
0
].
setAttribute
(
"style"
,
"height:"
+
e
)}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"common-set-wrap"
,
style
:{
"min-height"
:
e
.
windowH
}},[
i
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"right-content"
},[
i
(
"div"
,{
staticClass
:
"right-box"
},[
i
(
"div"
,{
staticClass
:
"commom-container clerk-detail-container"
},[
i
(
"p"
,{
staticClass
:
"t-rt"
},[
i
(
"a"
,{
staticClass
:
"a-href font-14"
,
on
:{
click
:
function
(
t
){
e
.
getPdf
()}}},[
e
.
_v
(
"打印员工档案"
)])]),
e
.
_v
(
" "
),
i
(
"div"
,{
style
:{
"min-height"
:
e
.
windowH
},
attrs
:{
id
:
"pdfDom"
}},[
i
(
"div"
,{
staticClass
:
"employee-detail-cell"
},[
i
(
"div"
,{
staticClass
:
"head-info"
},[
i
(
"p"
,{
staticClass
:
"head-cell"
},[
e
.
info
.
headPic
?
i
(
"img"
,{
staticClass
:
"head-img"
,
attrs
:{
src
:
e
.
info
.
headPic
}}):
i
(
"span"
,{
staticClass
:
"head-img-null"
},[
i
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
})])]),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"head-cell name"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
info
.
clerkName
)),
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
"-1"
==
e
.
info
.
clerkStatus
?
"无状态"
:
e
.
statusList
[
e
.
info
.
clerkStatus
-
1
]))])]),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"head-cell c-303133"
},[
e
.
_v
(
e
.
_s
(
e
.
info
.
groupName
)
+
e
.
_s
(
e
.
info
.
positionName
))]),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"head-cell color-606266"
},[
e
.
_v
(
"已在"
+
e
.
_s
(
e
.
info
.
enterpriseName
)
+
"工作了"
+
e
.
_s
(
e
.
info
.
days
)
+
"天"
)])])]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
fieldList
,
function
(
t
){
return
[
t
.
childrens
?
i
(
"editable-cell"
,{
key
:
t
.
fieldCode
,
attrs
:{
info
:
e
.
info
,
staticInfo
:
e
.
staticInfo
,
items
:
e
.
items
,
title
:
t
.
title
,
fieldList
:
t
.
childrens
},
on
:{
subSuccess
:
e
.
subSuccess
}}):
e
.
_e
()]}),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"mile-stone-container"
},[
e
.
_m
(
0
),
e
.
_v
(
" "
),
i
(
"ul"
,{
staticClass
:
"mile-stone"
},
e
.
_l
(
e
.
mileStone
,
function
(
t
,
a
){
return
i
(
"li"
,{
key
:
a
,
staticClass
:
"stone-group"
,
class
:
a
%
2
==
0
?
"column"
:
"column-reverse"
},[
4
==
t
.
length
&&
a
!=
e
.
mileStone
.
length
-
1
?
i
(
"div"
,{
staticClass
:
"column-hurdle"
}):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
_l
(
t
,
function
(
t
,
s
){
return
i
(
"div"
,{
key
:
s
,
staticClass
:
"stone"
,
class
:
a
%
2
==
1
&&
3
==
s
||
a
%
2
==
0
&&
0
==
s
&&
0
!=
a
?
"no-radio"
:
""
},[
i
(
"p"
,{
staticClass
:
"time"
},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"formatDate"
)(
t
.
historyDate
,
"YY-MM-DD"
)))]),
e
.
_v
(
" "
),
e
.
_m
(
1
,
!
0
),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"position"
},[
e
.
_v
(
e
.
_s
(
t
.
positionName
))]),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"font-16 "
},[
e
.
_v
(
e
.
_s
(
e
.
historyStatus
[
1
*
t
.
historyStatus
-
1
])),
3
==
t
.
historyStatus
?
i
(
"a"
,{
staticClass
:
"a-href m-l-10 fs-12"
,
on
:{
click
:
function
(
i
){
e
.
editHis
(
t
)}}},[
e
.
_v
(
"编辑"
)]):
e
.
_e
()]),
e
.
_v
(
" "
),
3
==
t
.
historyStatus
?
i
(
"p"
,[
e
.
_v
(
"离职理由:"
+
e
.
_s
(
e
.
reasons
[
t
.
fireReason
]))]):
e
.
_e
(),
e
.
_v
(
" "
),
i
(
"p"
,{
staticClass
:
"color-606266"
},[
e
.
_v
(
e
.
_s
(
t
.
storeName
?
t
.
storeName
:
t
.
groupName
))])])})],
2
)}))])],
2
),
e
.
_v
(
" "
),
i
(
"el-dialog"
,{
attrs
:{
title
:
"修改离职信息"
,
visible
:
e
.
dialogVisible
,
width
:
"480px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
i
(
"handle-dialog"
,{
attrs
:{
employee
:
e
.
editHisObj
,
handleType
:
"changeFireInfo"
,
typeTitle
:
"修改离职信息"
},
on
:{
handleSuccess
:
e
.
handleSuccess
}})],
1
)],
1
)])]),
e
.
_v
(
" "
),
i
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"p"
,{
staticClass
:
"m-s-title"
},[
t
(
"span"
,{
staticClass
:
"font-w-500"
},[
this
.
_v
(
"员工记录"
)])])},
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
staticClass
:
"hurdle-box"
},[
t
(
"span"
,{
staticClass
:
"radio"
}),
this
.
_v
(
" "
),
t
(
"div"
,{
staticClass
:
"hurdle"
})])}]};
var
_
=
i
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
e
){
i
(
"sqsL"
)},
null
,
null
);
t
.
default
=
_
.
exports
},
FKG6
:
function
(
e
,
t
){},
KzHU
:
function
(
module
,
__webpack_exports__
,
__webpack_require__
){
"use strict"
;
var
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__
=
__webpack_require__
(
"pFYg"
),
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default
=
__webpack_require__
.
n
(
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__
),
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__
=
__webpack_require__
(
"mvHQ"
),
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default
=
__webpack_require__
.
n
(
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__
),
__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__
=
__webpack_require__
(
"5gt+"
),
__WEBPACK_IMPORTED_MODULE_3__components_common_country_mobile_vue__
=
__webpack_require__
(
"XDyb"
),
__WEBPACK_IMPORTED_MODULE_4__utils_index__
=
__webpack_require__
(
"0xDb"
),
__WEBPACK_IMPORTED_MODULE_5__api_api__
=
__webpack_require__
(
"P9l9"
);
__webpack_exports__
.
a
=
{
name
:
"editableCell"
,
props
:{
info
:{
type
:
Object
,
required
:
!
0
},
staticInfo
:{
type
:
Object
,
required
:
!
0
},
items
:{
type
:
Array
,
required
:
!
0
},
title
:{
type
:
String
,
default
:
""
},
fieldList
:{
type
:
Array
,
required
:
!
0
}},
components
:{
uploadImage
:
__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__
.
a
,
countryMobile
:
__WEBPACK_IMPORTED_MODULE_3__components_common_country_mobile_vue__
.
a
},
filters
:{
formatDate
:
__WEBPACK_IMPORTED_MODULE_4__utils_index__
.
b
},
data
:
function
(){
return
{
showEdit
:
!
1
,
uploadUrl
:
"/haoban-manage-web/upload-img"
,
fieldsInfo
:{}}},
methods
:{
uploadOnSuccess
:
function
(
e
,
t
){
e
.
file
.
url
=
e
.
res
.
result
[
0
].
qcloudImageUrl
,
t
.
push
(
e
.
file
)},
deleteImage
:
function
(
e
){
this
.
imageList
=
this
.
imageList
?
this
.
imageList
:[],
this
.
imageList
.
splice
(
e
,
1
)},
sortImg
:
function
(
e
){
this
.
imageList
=
e
},
saveEdit
:
function
saveEdit
(){
var
that
=
this
;
that
.
$refs
.
cell_form
.
validate
(
function
(
valid
){
if
(
valid
){
var
newInfo
=
Object
(
__WEBPACK_IMPORTED_MODULE_4__utils_index__
.
a
)(
that
.
fieldsInfo
),
params
=
{},
regFlag
=
[],
fieldList
=
that
.
fieldList
,
objToString
=
[];
if
(
fieldList
.
forEach
(
function
(
field
){
if
(
params
[
field
.
fieldCode
]
=
newInfo
[
field
.
fieldCode
],
5
==
field
.
fieldType
&&
(
params
[
field
.
fieldCode
]
=
newInfo
[
field
.
fieldCode
].
join
(
","
)),
7
==
field
.
fieldType
){
var
arr
=
[];
newInfo
[
field
.
fieldCode
].
forEach
(
function
(
e
){
arr
.
push
(
e
.
url
)}),
params
[
field
.
fieldCode
]
=
arr
.
join
(
","
)}
if
(
1
!=
field
.
systemFlag
){
if
(
objToString
.
push
({
fieldCode
:
field
.
fieldCode
,
fieldValue
:
newInfo
[
field
.
fieldCode
]}),
5
==
field
.
fieldType
&&
objToString
.
push
({
fieldCode
:
field
.
fieldCode
,
fieldValue
:
newInfo
[
field
.
fieldCode
].
join
(
","
)}),
7
==
field
.
fieldType
){
var
_arr
=
[];
newInfo
[
field
.
fieldCode
].
forEach
(
function
(
e
){
_arr
.
push
(
e
.
url
)}),
objToString
.
push
({
fieldCode
:
field
.
fieldCode
,
fieldValue
:
_arr
.
join
(
","
)})}
delete
params
[
field
.
fieldCode
]}
field
.
regular
&&
""
!==
newInfo
[
field
.
fieldCode
]
&&
regFlag
.
push
(
eval
(
"/"
+
field
.
regular
+
"/"
).
test
(
newInfo
[
field
.
fieldCode
]))}),
regFlag
.
length
&&
regFlag
.
includes
(
!
1
))
return
that
.
$message
.
error
(
"请输入正确格式的字段值!"
),
!
1
;
params
.
jsonString
=
"[]"
==
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default
()(
objToString
)?
""
:
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default
()(
objToString
),
params
.
recordId
=
that
.
$route
.
query
.
recordId
,
that
.
submitEdit
(
params
)}})},
submitEdit
:
function
(
e
){
var
t
=
this
;
Object
(
__WEBPACK_IMPORTED_MODULE_5__api_api__
.
a
)(
"/haoban-manage-web/record/save-record-detail"
,
e
).
then
(
function
(
e
){
1
==
e
.
data
.
errorCode
?(
t
.
showEdit
=!
1
,
t
.
$emit
(
"subSuccess"
),
t
.
$message
({
message
:
e
.
data
.
message
,
type
:
"success"
})):
t
.
$message
.
error
(
e
.
data
.
message
)}).
catch
(
function
(
e
){
t
.
$message
.
error
(
e
.
message
)})},
cancelEdit
:
function
(){
this
.
showEdit
=!
1
,
this
.
$refs
.
cell_form
.
clearValidate
();
var
e
=
this
.
fieldsInfo
,
t
=
this
.
staticInfo
;
for
(
var
i
in
e
)
e
[
i
]
=
null
==
t
[
i
]?
""
:
"object"
===
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default
()(
t
[
i
])?
t
[
i
]:
String
(
t
[
i
])}},
computed
:{
defineObj
:
function
(){
return
JSON
.
parse
(
this
.
clerkInfo
.
defineString
)},
rules
:
function
(){
var
e
=
{},
t
=
function
(
e
,
t
,
i
){
if
(
t
){
return
/^
[
0-9
]
*$/
.
test
(
1
*
t
)?
i
():
i
(
new
Error
(
"请输入数字!"
))}
return
i
()};
return
this
.
fieldList
.
forEach
(
function
(
i
){
var
a
=
[];
0
!=
i
.
fieldType
&&
1
!=
i
.
fieldType
||
(
i
.
minCount
&&
i
.
maxCount
&&
a
.
push
({
min
:
i
.
minCount
,
message
:
"至少填写"
+
i
.
minCount
+
"个字符"
,
trigger
:
"change"
}),
!
i
.
minCount
&&
i
.
maxCount
&&
a
.
push
({
max
:
i
.
maxCount
,
message
:
"至多填写"
+
i
.
maxCount
+
"个字符"
,
trigger
:
"change"
}),
i
.
minCount
&&
i
.
maxCount
&&
a
.
push
({
min
:
i
.
minCount
,
max
:
i
.
maxCount
,
message
:
"长度在 "
+
i
.
minCount
+
" 到 "
+
i
.
maxCount
+
"个字符"
,
trigger
:
"change"
})),
6
==
i
.
fieldType
&&
"identifyNo"
!=
i
.
fieldCode
&&
a
.
push
({
validator
:
t
,
message
:
i
.
fieldName
+
"必须为数字"
,
trigger
:
"change"
}),
e
[
i
.
fieldCode
]
=
a
}),
e
}},
beforeMount
:
function
(){
var
e
=
JSON
.
parse
(
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default
()(
this
.
info
));
for
(
var
t
in
e
)
e
[
t
]
=
null
==
e
[
t
]?
""
:
"object"
===
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default
()(
e
[
t
])?
e
[
t
]:
String
(
e
[
t
]);
this
.
fieldsInfo
=
e
}}},
sqsL
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/manifest.
e552ad3ca049493abc5
c.js
→
dist/static/js/manifest.
33543b81840e97599ae
c.js
View file @
7e2e2f1c
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
a
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
82
:
0
};
function
d
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
d
){
c
=
f
[
e
]
=
[
a
,
d
]});
c
[
2
]
=
a
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"df2ab3013f7273b6480b"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"d3c62c00c91d9891f916"
,
3
:
"a43577b9e52a5719a124"
,
4
:
"82103d2b04b685deeb5c"
,
5
:
"96197fd99d3e41d25916"
,
6
:
"465489570e6deff515b7"
,
7
:
"8f462a353a2ce9c0c116"
,
8
:
"e5372980f04518fa84ec"
,
9
:
"860dbe8cf83334f9e3c0"
,
10
:
"a2aa031ae677b8acbf17"
,
11
:
"e34a64dea1b7a059dcfd"
,
12
:
"bdcf26a1bcccf7e0239b"
,
13
:
"6c87f5cefdf77374932d"
,
14
:
"2db4e13b049c8acc9488"
,
15
:
"b9ac3428fbf05e58374e"
,
16
:
"c4ebe5ae46670e5c0754"
,
17
:
"43a28ed857836d70649f"
,
18
:
"ca2eb072a4ce38f9e487"
,
19
:
"7971a9a5d92fefa82083"
,
20
:
"75e0997b94e5d6294ec8"
,
21
:
"58c0c6a374fc0ec6158e"
,
22
:
"047f5bba500bca0d62fe"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"4637a4566383d6e864cf"
,
25
:
"4f9db49437ea94436d03"
,
26
:
"b549610764e2236c48ce"
,
27
:
"acda88d3c2aa77c9f51c"
,
28
:
"0635cfc88ef2b2920961"
,
29
:
"cee3a5494960c70238fb"
,
30
:
"c6439b279653a45ce256"
,
31
:
"8baa6bca929d1c9a38f6"
,
32
:
"836f4d0e323c721473e9"
,
33
:
"7b62b2ff369669fe322c"
,
34
:
"f9d53c31059aaff9b360"
,
35
:
"c75699cc6fe47597f200"
,
36
:
"61a1c2681f78e1fd7e80"
,
37
:
"689fab1090c35b38ed8e"
,
38
:
"401ecfbced781ca109ff"
,
39
:
"45d0c177c91108351c01"
,
40
:
"18605687ea6ee1539453"
,
41
:
"78d64ae1581e8ea232cc"
,
42
:
"61ae052e4f4fc3284000"
,
43
:
"9d05f4d2f06b9c6bba0e"
,
44
:
"96d0b6e88fc87f60bac7"
,
45
:
"0fe24e1d16072c526787"
,
46
:
"d3a9c6eba924ac8207b3"
,
47
:
"c8b46666a5089512baa4"
,
48
:
"854c6c054adb5cba1f06"
,
49
:
"33530ea069fc872b0d5f"
,
50
:
"331006123edd2049b7d9"
,
51
:
"244dc6f576a64b7c174b"
,
52
:
"43d3ca00e0c9087e4956"
,
53
:
"d51883fd06aa5546dcf5"
,
54
:
"270a5268743397a22307"
,
55
:
"f17ab600dad59c0971a4"
,
56
:
"a166c7d72f4274903e5a"
,
57
:
"a572a9ffb3ed29596ba0"
,
58
:
"88114ae6c2e3c68d65da"
,
59
:
"808f888c43092f5783e0"
,
60
:
"aeab9555497ec6593f72"
,
61
:
"2f37d96bc91f0a637cad"
,
62
:
"59294e07de6b496244cf"
,
63
:
"6077852270b0c59eff8a"
,
64
:
"071bad1248843a633c76"
,
65
:
"f4f7e3f4ecb0250e9119"
,
66
:
"d8e2dce37c7df6e611a6"
,
67
:
"dd430b5802c68f5ac5d2"
,
68
:
"ba49712f562eff6edbc3"
,
69
:
"6262c1a9179f86d6e8cc"
,
70
:
"d5759f121e5783b4c558"
,
71
:
"95b66215f468ac6aa391"
,
72
:
"b9aea07ebd1f712eee71"
,
73
:
"820fe71d89d973ff8cf7"
,
74
:
"a9dae9c87c825ba65aa1"
,
75
:
"29e0d3d537fd9fa5eabc"
,
76
:
"5d50222646fc31640f30"
,
77
:
"9f7ea81c191a5e1bbaa2"
,
78
:
"51dbc832d510b2a1c0a3"
,
81
:
"be325ddaae712f760e1a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
d
.
m
=
e
,
d
.
c
=
a
,
d
.
d
=
function
(
e
,
c
,
a
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
a
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
82
:
0
};
function
d
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
d
){
c
=
f
[
e
]
=
[
a
,
d
]});
c
[
2
]
=
a
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"df2ab3013f7273b6480b"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"d3c62c00c91d9891f916"
,
3
:
"a43577b9e52a5719a124"
,
4
:
"82103d2b04b685deeb5c"
,
5
:
"96197fd99d3e41d25916"
,
6
:
"465489570e6deff515b7"
,
7
:
"8f462a353a2ce9c0c116"
,
8
:
"e5372980f04518fa84ec"
,
9
:
"860dbe8cf83334f9e3c0"
,
10
:
"a2aa031ae677b8acbf17"
,
11
:
"e34a64dea1b7a059dcfd"
,
12
:
"bdcf26a1bcccf7e0239b"
,
13
:
"6c87f5cefdf77374932d"
,
14
:
"4ccefb8408cfd6d0c1c3"
,
15
:
"b9ac3428fbf05e58374e"
,
16
:
"c4ebe5ae46670e5c0754"
,
17
:
"43a28ed857836d70649f"
,
18
:
"ca2eb072a4ce38f9e487"
,
19
:
"7971a9a5d92fefa82083"
,
20
:
"75e0997b94e5d6294ec8"
,
21
:
"58c0c6a374fc0ec6158e"
,
22
:
"047f5bba500bca0d62fe"
,
23
:
"9efbbc6dd315a676ce09"
,
24
:
"4637a4566383d6e864cf"
,
25
:
"4f9db49437ea94436d03"
,
26
:
"b549610764e2236c48ce"
,
27
:
"acda88d3c2aa77c9f51c"
,
28
:
"0635cfc88ef2b2920961"
,
29
:
"cee3a5494960c70238fb"
,
30
:
"c6439b279653a45ce256"
,
31
:
"8baa6bca929d1c9a38f6"
,
32
:
"836f4d0e323c721473e9"
,
33
:
"7b62b2ff369669fe322c"
,
34
:
"f9d53c31059aaff9b360"
,
35
:
"c75699cc6fe47597f200"
,
36
:
"61a1c2681f78e1fd7e80"
,
37
:
"689fab1090c35b38ed8e"
,
38
:
"401ecfbced781ca109ff"
,
39
:
"45d0c177c91108351c01"
,
40
:
"18605687ea6ee1539453"
,
41
:
"78d64ae1581e8ea232cc"
,
42
:
"61ae052e4f4fc3284000"
,
43
:
"9d05f4d2f06b9c6bba0e"
,
44
:
"96d0b6e88fc87f60bac7"
,
45
:
"0fe24e1d16072c526787"
,
46
:
"d3a9c6eba924ac8207b3"
,
47
:
"c8b46666a5089512baa4"
,
48
:
"854c6c054adb5cba1f06"
,
49
:
"33530ea069fc872b0d5f"
,
50
:
"331006123edd2049b7d9"
,
51
:
"244dc6f576a64b7c174b"
,
52
:
"43d3ca00e0c9087e4956"
,
53
:
"d51883fd06aa5546dcf5"
,
54
:
"270a5268743397a22307"
,
55
:
"f17ab600dad59c0971a4"
,
56
:
"a166c7d72f4274903e5a"
,
57
:
"a572a9ffb3ed29596ba0"
,
58
:
"88114ae6c2e3c68d65da"
,
59
:
"808f888c43092f5783e0"
,
60
:
"aeab9555497ec6593f72"
,
61
:
"2f37d96bc91f0a637cad"
,
62
:
"59294e07de6b496244cf"
,
63
:
"6077852270b0c59eff8a"
,
64
:
"071bad1248843a633c76"
,
65
:
"f4f7e3f4ecb0250e9119"
,
66
:
"d8e2dce37c7df6e611a6"
,
67
:
"dd430b5802c68f5ac5d2"
,
68
:
"ba49712f562eff6edbc3"
,
69
:
"6262c1a9179f86d6e8cc"
,
70
:
"d5759f121e5783b4c558"
,
71
:
"95b66215f468ac6aa391"
,
72
:
"b9aea07ebd1f712eee71"
,
73
:
"820fe71d89d973ff8cf7"
,
74
:
"a9dae9c87c825ba65aa1"
,
75
:
"29e0d3d537fd9fa5eabc"
,
76
:
"5d50222646fc31640f30"
,
77
:
"9f7ea81c191a5e1bbaa2"
,
78
:
"51dbc832d510b2a1c0a3"
,
81
:
"be325ddaae712f760e1a"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
d
.
m
=
e
,
d
.
c
=
a
,
d
.
d
=
function
(
e
,
c
,
a
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/components/employeeRecord/editableCell.vue
View file @
7e2e2f1c
...
...
@@ -9,13 +9,13 @@
<template
v-for=
"(item, idx) in fieldList"
>
<el-form-item
:label=
"item.title + ':'"
class=
"item-width"
:key=
"item.fieldCode + '_' + idx"
:prop=
"item.fieldCode"
>
<template
v-if=
"showEdit"
>
<el-input
class=
"edit-infor-input"
v-model=
"fieldsInfo[item.fieldCode]"
v-if=
"item.fieldType == 0"
:placeholder=
"item.fieldDescription"
:disabled=
"item.fieldEdited != '1'"
>
</el-input>
<el-input
class=
"edit-infor-input"
v-model=
"fieldsInfo[item.fieldCode]"
v-if=
"item.fieldType == 0"
:placeholder=
"item.fieldDescription"
:disabled=
"item.fieldEdited != '1'
|| item.fieldCode == 'clerkName' || item.fieldCode == 'groupName' || item.fieldCode == 'clerkCode' || item.fieldCode == 'positionName' || item.fieldCode == 'clerkType' || item.fieldCode == 'clerkStatus'
"
>
</el-input>
<el-input
class=
"edit-infor-input"
v-model=
"fieldsInfo[item.fieldCode]"
v-if=
"item.fieldType == 6 && item.fieldCode != 'clerkPhone'"
:placeholder=
"item.fieldDescription"
:disabled=
"item.fieldEdited != '1'"
>
</el-input>
<countryMobile
v-if=
"item.fieldType == 6 && item.fieldCode == 'clerkPhone'"
:inputWidth=
"350"
:nationCode
.
sync=
"fieldsInfo.nationcode"
v-model=
"fieldsInfo[item.fieldCode]"
:holder=
"item.fieldDescription"
:disflag=
"item.fieldEdited != '1'"
>
</countryMobile>
<el-input
class=
"edit-infor-input"
v-model=
"fieldsInfo[item.fieldCode]"
v-else-if=
"item.fieldType == 1"
type=
"textarea"
autosize
:disabled=
"item.fieldEdited != '1'"
>
</el-input>
<template
v-else-if=
"item.fieldType == 2 || item.fieldType == 3"
>
<!-- 针对员工状态做特殊处理 -->
<el-select
v-if=
"item.systemFlag == 1"
v-model=
"fieldsInfo[item.fieldCode]"
:disabled=
"item.fieldEdited != '1' || (item.fieldCode == 'clerkStatus' && fieldsInfo[item.fieldCode] == 3)"
:multiple=
"item.fieldType == 3"
:collapse-tags=
"item.fieldType == 3"
:placeholder=
"item.fieldDescription"
>
<el-select
v-if=
"item.systemFlag == 1"
v-model=
"fieldsInfo[item.fieldCode]"
:disabled=
"item.fieldEdited != '1' || (item.fieldCode == 'clerkStatus' && fieldsInfo[item.fieldCode] == 3)
|| item.fieldCode == 'sex'
"
:multiple=
"item.fieldType == 3"
:collapse-tags=
"item.fieldType == 3"
:placeholder=
"item.fieldDescription"
>
<el-option
v-for=
"cho in item.fieldOperations.fieldContent"
:key=
"cho.key"
:label=
"cho.name"
:value=
"cho.key"
:disabled=
"item.fieldCode == 'clerkStatus' && cho.key == 3"
>
</el-option>
</el-select>
<el-select
v-else
v-model=
"fieldsInfo[item.fieldCode]"
:disabled=
"item.fieldEdited != '1'"
:multiple=
"item.fieldType == 3"
:collapse-tags=
"item.fieldType == 3"
:placeholder=
"item.fieldDescription"
>
...
...
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