Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
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
platform
hp-smart
Commits
2bf7b156
Commit
2bf7b156
authored
Feb 23, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.优化:录入单据日期的页面默认都显示当天
parent
be79c99f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
0 deletions
+45
-0
HPKC001.js
src/main/webapp/HP/KC/HPKC001.js
+5
-0
HPKC005.js
src/main/webapp/HP/KC/HPKC005.js
+5
-0
HPKC006.js
src/main/webapp/HP/KC/HPKC006.js
+5
-0
HPKC008.js
src/main/webapp/HP/KC/HPKC008.js
+5
-0
common.js
src/main/webapp/common/js/common.js
+25
-0
No files found.
src/main/webapp/HP/KC/HPKC001.js
View file @
2bf7b156
...
...
@@ -10,6 +10,11 @@ $(function() {
},
"result"
:
{
columns
:
[{
field
:
"receiptDate"
,
defaultValue
:
function
()
{
return
currShortDate
();
}
},
{
field
:
"whCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
whNameGlobalData
.
length
;
i
++
)
{
...
...
src/main/webapp/HP/KC/HPKC005.js
View file @
2bf7b156
...
...
@@ -10,6 +10,11 @@ $(function() {
},
"result"
:
{
columns
:
[{
field
:
"receiptDate"
,
defaultValue
:
function
()
{
return
currShortDate
();
}
},
{
field
:
"whCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
whNameGlobalData
.
length
;
i
++
)
{
...
...
src/main/webapp/HP/KC/HPKC006.js
View file @
2bf7b156
...
...
@@ -11,6 +11,11 @@ $(function() {
},
"result"
:
{
columns
:
[{
field
:
"receiptDate"
,
defaultValue
:
function
()
{
return
currShortDate
();
}
},
{
field
:
"whCode"
,
title
:
"仓库名称"
,
template
:
function
(
dataItem
)
{
...
...
src/main/webapp/HP/KC/HPKC008.js
View file @
2bf7b156
...
...
@@ -10,6 +10,11 @@ $(function() {
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
]
},
columns
:
[{
field
:
"dateMonth"
,
defaultValue
:
function
()
{
return
currShortMonth
();
}
},
{
field
:
"unit"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
unitNameGlobalData
.
length
;
i
++
)
{
...
...
src/main/webapp/common/js/common.js
View file @
2bf7b156
...
...
@@ -172,6 +172,31 @@ function refreshInputSelect(container, inInfo) {
}
/**
* 当前日期 YYYYMMDD
*
* @returns {string}
*/
function
currShortDate
()
{
const
date
=
new
Date
();
const
year
=
date
.
getFullYear
();
const
month
=
date
.
getMonth
()
+
1
;
// 月份从0开始,需要加1
const
day
=
date
.
getDate
();
return
year
+
(
month
<
10
?
'0'
+
month
:
month
)
+
(
day
<
10
?
'0'
+
day
:
day
);
}
/**
* 当前月份 YYYYMM
*
* @returns {string}
*/
function
currShortMonth
()
{
const
date
=
new
Date
();
const
year
=
date
.
getFullYear
();
const
month
=
date
.
getMonth
()
+
1
;
// 月份从0开始,需要加1
return
year
+
(
month
<
10
?
'0'
+
month
:
month
);
}
/**
* cookie 操作
*
* @param c_name
...
...
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