| | |
| | | |
| | | vc.on("editAdvertisement", "notifyUploadImage", function (_param) { |
| | | vc.component.editAdvertisementInfo.picUrl = _param.length > 0 ? _param[0].fileId : ''; |
| | | vc.component.addAdvertisementInfo.ossUrl = _param.length > 0 ? _param[0].url : ''; |
| | | vc.component.addAdvertisementInfo.ossUrl = _param.length > 0 ? _param[0].url : ''; |
| | | }); |
| | | |
| | | }, |
| | |
| | | event.target.value = formattedAmount; |
| | | }, |
| | | _initAddContractInfo: function () { |
| | | $that.addContractInfo.signingTime = vc.dateTimeFormat(new Date().getTime()); |
| | | // $that.addContractInfo.signingTime = vc.dateTimeFormat(new Date().getTime()); |
| | | $that.addContractInfo.signingTime = vc.dateFormat(new Date(), "yyyy-MM-dd"); |
| | | $('.addStartTime').datetimepicker({ |
| | | language: 'zh-CN', |
| | | fontAwesome: 'fa', |
| | |
| | | $('.addSigningTime').datetimepicker({ |
| | | language: 'zh-CN', |
| | | fontAwesome: 'fa', |
| | | format: 'yyyy-mm-dd hh:ii:ss', |
| | | format: 'yyyy-mm-dd', |
| | | minView: "month", |
| | | startView: "month", |
| | | initTime: true, |
| | | initialDate: new Date(), |
| | | autoClose: 1, |
| | |
| | | $('.addSigningTime').datetimepicker() |
| | | .on('changeDate', function (ev) { |
| | | var value = $(".addSigningTime").val(); |
| | | vc.component.addContractInfo.signingTime = value; |
| | | vc.component.addContractInfo.signingTime = value.split(' ')[0]; |
| | | }); |
| | | //防止多次点击时间插件失去焦点 |
| | | document.getElementsByClassName('form-control addStartTime')[0].addEventListener('click', myfunc) |