Toggle navigation
Toggle navigation
This project
Loading...
Sign in
zyn
/
cjs-site
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangbeiyong
2019-09-10 11:33:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2157b7d8dac6ef01b338f5fe9c79f1b581a7d835
2157b7d8
1 parent
b6da44e6
43
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
src/main/java/com/cjs/site/action/user/pick/PickAction.java
src/main/java/com/cjs/site/biz/user/pick/PickPayBiz.java
src/main/webapp/resource/js/user/pick/self.js
src/main/webapp/view/user/pick/self.jsp
src/main/java/com/cjs/site/action/user/pick/PickAction.java
View file @
2157b7d
...
...
@@ -198,8 +198,12 @@ public class PickAction {
}
BigDecimal
totalAmount
=
new
BigDecimal
(
"0.01"
).
multiply
(
new
BigDecimal
(
trusteeshipCycle
)).
multiply
(
new
BigDecimal
(
pickTotal
));
if
(
"01"
.
equals
(
pickType
)){
//本人自提
//80022109 钱勋 申请提货,经公司研究决定,给予该客户免除仓费的优惠,包装费正常收取,请技术协助处理一下,谢谢,以便客户尽快能完成提货相关手续。
if
(
"80022109"
.
equals
(
ActionUtil
.
getUser
().
getUserId
())){
totalAmount
=
BigDecimal
.
ZERO
;
}
UserInfo
userInfo
=
(
UserInfo
)
session
.
getAttribute
(
"USER_INFO"
);
if
(
"01"
.
equals
(
pickType
)){
//本人自提
model
.
addAttribute
(
"pickName"
,
userInfo
.
getClient_id
());
pickInfo
.
setPickType
(
"0"
);
}
else
if
(
"02"
.
equals
(
pickType
)){
//委托他人
...
...
src/main/java/com/cjs/site/biz/user/pick/PickPayBiz.java
View file @
2157b7d
...
...
@@ -64,6 +64,10 @@ public class PickPayBiz {
BigDecimal
totalAmount
=
new
BigDecimal
(
"0.01"
).
multiply
(
new
BigDecimal
(
trustCycle
)).
multiply
(
new
BigDecimal
(
pickTotal
)).
add
(
new
BigDecimal
(
"6"
));
// BigDecimal totalAmount = new BigDecimal("0.01");//调试接口代码写死
//80022109 钱勋 申请提货,经公司研究决定,给予该客户免除仓费的优惠,包装费正常收取,请技术协助处理一下,谢谢,以便客户尽快能完成提货相关手续。
if
(
"80022109"
.
equals
(
ActionUtil
.
getUser
().
getUserId
())){
totalAmount
=
new
BigDecimal
(
"6"
);
}
result
.
put
(
"totalAmount"
,
totalAmount
);
try
{
CreateQrCode
createQrCode
=
new
CreateQrCode
();
...
...
src/main/webapp/resource/js/user/pick/self.js
View file @
2157b7d
...
...
@@ -24,7 +24,7 @@ $(function() {
$
(
"#pickDate"
).
datepicker
({
showOtherMonths
:
true
,
dateFormat
:
"yy-mm-dd"
,
minDate
:
minDate
,
minDate
:
2
,
defaultDate
:
0
,
beforeShowDay
:
$
.
datepicker
.
noWeekends
,
onSelect
:
function
(
dateText
,
inst
)
{
...
...
src/main/webapp/view/user/pick/self.jsp
View file @
2157b7d
...
...
@@ -16,7 +16,7 @@
<script
type=
"text/javascript"
src=
"${ctx }/resource/js/utils/jquery/jquery-ui-1.10.1.min.js"
></script>
<script
type=
"text/javascript"
src=
"${ctx }/resource/js/utils/jquery/jquery.ui.datepicker-zh-cn.js"
></script>
<script
type=
"text/javascript"
src=
"${ctx }/resource/js/user/pick/pick.js"
></script>
<script
type=
"text/javascript"
src=
"${ctx }/resource/js/user/pick/self.js"
></script>
<script
type=
"text/javascript"
src=
"${ctx }/resource/js/user/pick/self.js
?v=347672232
"
></script>
<script
type=
"text/javascript"
>
var
errorMessage
=
'${ resultInfo.message }'
;
//最小提货日期(0:普通自提;1:封装自提)
...
...
@@ -71,8 +71,7 @@
</form>
</div>
<div
class=
"tip"
>
<p>
• 自提时间:周一到周五(节假日除外) 9:00-16:00
</p>
<p>
• 为了减少您提货时的等待时间,请在您选择的日期当天前来提货
</p>
<p>
• 为了减少您提货时的等待时间,请在您选择的日期当天前来提货,时间为:9:00-16:00
</p>
<c:if
test=
"${pack == '1'}"
>
<p>
• 若果您提货数量大于1000枚,请设置较长的提货时间,给您来带的不便,敬请谅解!
</p>
</c:if>
...
...
Please
register
or
login
to post a comment