Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
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
鲁鑫
topsun-bpm
Commits
68ab7d45
Commit
68ab7d45
authored
Mar 19, 2025
by
1650842865
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料维护增加图片上传
parent
d21d46d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
1 deletion
+51
-1
nonProdApplyNext.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
+32
-0
nonProdApplyNext.jsp
...n/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.jsp
+19
-1
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
View file @
68ab7d45
...
@@ -1388,6 +1388,38 @@ function bindEvent() {
...
@@ -1388,6 +1388,38 @@ function bindEvent() {
$
(
"#eklas"
).
val
(
data
.
eklas
)
$
(
"#eklas"
).
val
(
data
.
eklas
)
}
}
});
});
//正面图片
var
_img
=
$
(
'#showFrontPicture'
);
var
_frontPicturePath
=
$
(
'#frontPicturePath'
).
val
();
if
(
Public
.
isNotBlank
(
_frontPicturePath
))
{
_img
[
0
].
src
=
$
.
getCSRFUrl
(
'attachment/downFileBySavePath.ajax'
,{
file
:
_frontPicturePath
});
}
$
(
'#addFrontPicture'
).
uploadButton
({
filetype
:
[
'jpg'
,
'gif'
,
'jpeg'
,
'png'
,
'bmp'
],
afterUpload
:
function
(
data
){
_img
[
0
].
src
=
$
.
getCSRFUrl
(
'attachmentDownFile.ajax'
,{
id
:
data
.
id
});
},
param
:
function
(){
return
{
bizCode
:
'frontPicture'
,
bizId
:
$
(
"#id"
).
val
(),
flag
:
'false'
,
deleteOld
:
'true'
,
returnPath
:
'true'
};
}
});
//反面图片
var
back_img
=
$
(
'#showBackPicture'
);
var
_backPicturePath
=
$
(
'#backPicturePath'
).
val
();
if
(
Public
.
isNotBlank
(
_backPicturePath
))
{
back_img
[
0
].
src
=
$
.
getCSRFUrl
(
'attachment/downFileBySavePath.ajax'
,{
file
:
_backPicturePath
});
}
$
(
'#addBackPicture'
).
uploadButton
({
filetype
:
[
'jpg'
,
'gif'
,
'jpeg'
,
'png'
,
'bmp'
],
afterUpload
:
function
(
data
){
back_img
[
0
].
src
=
$
.
getCSRFUrl
(
'attachmentDownFile.ajax'
,{
id
:
data
.
id
});
},
param
:
function
(){
return
{
bizCode
:
'backPicture'
,
bizId
:
$
(
"#id"
).
val
(),
flag
:
'false'
,
deleteOld
:
'true'
,
returnPath
:
'true'
};
}
});
}
}
function
bindEvent_sale
()
{
function
bindEvent_sale
()
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.jsp
View file @
68ab7d45
...
@@ -9,13 +9,15 @@
...
@@ -9,13 +9,15 @@
var
isAll
=
"${isAll}"
;
var
isAll
=
"${isAll}"
;
var
applyType
=
"${applyType}"
;
var
applyType
=
"${applyType}"
;
</script>
</script>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree,date"
/>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree,date
,attachment
"
/>
<x:script
src=
'/biz/topsun/sap/nonProdApply/nonProdApplyNext.js'
/>
<x:script
src=
'/biz/topsun/sap/nonProdApply/nonProdApplyNext.js'
/>
</head>
</head>
<body>
<body>
<x:hidden
name=
"isDetailPage"
value=
"false"
/>
<!--是否是详情页-->
<x:hidden
name=
"isDetailPage"
value=
"false"
/>
<!--是否是详情页-->
<x:hidden
name=
"deptCode"
value=
"false"
/>
<!--是否是详情页-->
<x:hidden
name=
"deptCode"
value=
"false"
/>
<!--是否是详情页-->
<x:hidden
name=
"frontPicturePath"
/>
<x:hidden
name=
"backPicturePath"
/>
<div
class=
"container-fluid"
style=
"padding: 10px;"
>
<div
class=
"container-fluid"
style=
"padding: 10px;"
>
<c:if
test=
"
${
applyType
==
0
||
applyType
==
3
}
"
>
<c:if
test=
"
${
applyType
==
0
||
applyType
==
3
}
"
>
...
@@ -387,6 +389,22 @@
...
@@ -387,6 +389,22 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-row"
>
<div
style=
"text-align: left;margin-top:10px;"
>
<img
src=
'
<c:url
value=
"/images/photo.jpg"
/>
'
height=
'200'
width=
'170'
border=
0
id=
"showFrontPicture"
onerror=
"src='
<c:url
value=
"/images/photo.jpg"
/>
';"
/>
<img
src=
'
<c:url
value=
"/images/photo.jpg"
/>
'
height=
'200'
width=
'170'
border=
0
id=
"showBackPicture"
onerror=
"src='
<c:url
value=
"/images/photo.jpg"
/>
';"
/>
</div>
<div
style=
"text-align: left;margin-top:20px;"
>
<x:button
value=
"正面图片"
id=
"addFrontPicture"
icon=
"fa-hand-o-up"
/>
<x:button
value=
"反面图片"
id=
"addBackPicture"
icon=
"fa-hand-o-up"
/>
</div>
</div>
</div>
</form>
</form>
<form
class=
"hg-form"
method=
"post"
action=
""
style=
"display: none;"
id=
"auditForm"
>
<form
class=
"hg-form"
method=
"post"
action=
""
style=
"display: none;"
id=
"auditForm"
>
<div
class=
" border-left-top"
style=
"margin-top: 10px;"
>
<div
class=
" border-left-top"
style=
"margin-top: 10px;"
>
...
...
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