解决催缴单时间不正确问题

This commit is contained in:
java110 2020-10-14 23:54:08 +08:00
parent 98570a6bcc
commit 866bc60231
5 changed files with 66 additions and 60 deletions

View File

@ -17,8 +17,8 @@
<div class="form-group row">
<label class="col-sm-2 col-form-label">拼团简介</label>
<div class="col-sm-10">
<input v-model="addGroupBuySettingInfo.groupBuyDesc" type="text" placeholder="必填,请填写拼团简介"
class="form-control">
<textarea v-model="addGroupBuySettingInfo.groupBuyDesc" class="form-control"
placeholder="必填,请填写拼团简介"></textarea>
</div>
</div>
<div class="form-group row">
@ -26,20 +26,21 @@
<div class="col-sm-10">
<input v-model="addGroupBuySettingInfo.validHours" type="text" placeholder="必填,请填写拼团时效"
class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">开始时间</label>
<div class="col-sm-10">
<input v-model="addGroupBuySettingInfo.startTime" type="text" placeholder="必填,请填写开始时间"
class="form-control">
class="form-control addStartTime">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">结束时间</label>
<div class="col-sm-10">
<input v-model="addGroupBuySettingInfo.endTime" type="text" placeholder="必填,请填写结束时间"
class="form-control">
class="form-control addEndTime">
</div>
</div>

View File

@ -17,6 +17,14 @@
},
_initMethod: function () {
vc.initDateTime('addStartTime', function (_value) {
$that.addGroupBuySettingInfo.startTime = _value;
});
vc.initDateTime('addEndTime', function (_value) {
$that.addGroupBuySettingInfo.endTime = _value;
});
},
_initEvent: function () {
vc.on('addGroupBuySetting', 'openAddGroupBuySettingModal', function () {
@ -106,7 +114,7 @@
}
vc.http.apiPost(
'groupBuySetting.saveGroupBuySetting',
'/groupBuy/saveGroupBuySetting',
JSON.stringify(vc.component.addGroupBuySettingInfo),
{
emulateJSON: true

View File

@ -83,10 +83,7 @@
<button class="btn-white btn btn-xs"
v-on:click="_openEditGroupBuySettingModel(groupBuySetting)">修改</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openDeleteGroupBuySettingModel(groupBuySetting)">删除</button>
</div>
</td>
</tr>

View File

@ -42,7 +42,7 @@ settingId:'',
};
//发送get请求
vc.http.apiGet('groupBuySetting.listGroupBuySettings',
vc.http.apiGet('/groupBuy/queryGroupBuySetting',
param,
function (json, res) {
var _groupBuySettingManageInfo = JSON.parse(json);

View File

@ -19,7 +19,7 @@
let _fees = vc.getData('java110_printFee');
$that.printPayFeeInfo.fees = _fees
$that.printPayFeeInfo.feeTime = vc.dateTimeFormat(new Date());
$that.printPayFeeInfo.feeTime = vc.dateTimeFormat(new Date().getTime());
$that.printPayFeeInfo.communityName = vc.getCurrentCommunity().name;