|
@@ -42,6 +42,20 @@ $(function () {
|
|
|
initDiscountList();
|
|
|
}, 1200);
|
|
|
|
|
|
+ //日期控件注册
|
|
|
+ $('#discountBeginTime').datetimepicker({
|
|
|
+ language: 'zh-CN',
|
|
|
+ format: 'yyyy-mm-dd',
|
|
|
+ minView:"month",
|
|
|
+ autoclose: true,//选中自动关闭
|
|
|
+ });
|
|
|
+ //日期控件注册
|
|
|
+ $('#discountEndTime').datetimepicker({
|
|
|
+ language: 'zh-CN',
|
|
|
+ format: 'yyyy-mm-dd',
|
|
|
+ minView:"month",
|
|
|
+ autoclose: true,//选中自动关闭
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
/**
|
|
@@ -412,8 +426,8 @@ function updateDiscount(id) {
|
|
|
$("#deptNoParmas").selectpicker('val', arr);
|
|
|
$("#deptNoParmas").selectpicker('refresh');
|
|
|
}
|
|
|
- $("#discountBeginTime").find("input").val(res.data.discountBeginTime);
|
|
|
- $("#discountEndTime").find("input").val(res.data.discountEndTime);
|
|
|
+ $("#discountBeginTime").val(res.data.discountBeginTime);
|
|
|
+ $("#discountEndTime").val(res.data.discountEndTime);
|
|
|
if (res.data.chargeItemCodes != null && res.data.chargeItemCodes != '') {
|
|
|
var arr = res.data.chargeItemCodes.split(",");
|
|
|
$("#chargeItemCodesParams").selectpicker('val', arr);
|
|
@@ -547,8 +561,8 @@ $('#save').click(function () {
|
|
|
"name": $("#nameParams").val(),
|
|
|
"deptType": $("#deptTypeParams").val(),
|
|
|
"deptNo": deptNoStr,
|
|
|
- "discountBeginTime": $("#discountBeginTime").find("input").val(),
|
|
|
- "discountEndTime": $("#discountEndTime").find("input").val(),
|
|
|
+ "discountBeginTime": $("#discountBeginTime").val(),
|
|
|
+ "discountEndTime": $("#discountEndTime").val(),
|
|
|
"chargeItemCodes": chargeItemCodesStr,
|
|
|
"discountType": $("#discountTypeParams").val(),
|
|
|
"discountPrice": $("#discountPrice").val(),
|
|
@@ -581,8 +595,8 @@ function clearInput() {
|
|
|
$("#deptTypeParams").selectpicker('refresh');
|
|
|
$("#deptNoParmas").selectpicker('val', null);//默认选中
|
|
|
$("#deptNoParmas").selectpicker('refresh');
|
|
|
- $("#discountBeginTime").find("input").val(null);
|
|
|
- $("#discountEndTime").find("input").val(null);
|
|
|
+ $("#discountBeginTime").val(null);
|
|
|
+ $("#discountEndTime").val(null);
|
|
|
$("#chargeItemCodesParams").selectpicker('val', null);//默认选中
|
|
|
$("#chargeItemCodesParams").selectpicker('refresh');
|
|
|
$("#deleteFlagParams").selectpicker('val', 0);//默认选中
|