|
@@ -486,27 +486,35 @@ function ribao_init() {
|
|
|
value: "3",
|
|
|
}]
|
|
|
});
|
|
|
- // $("#inoculate_first").datetimePicker({
|
|
|
- // times: function () {
|
|
|
- // return [{values: [' ']}];
|
|
|
- // }, value: new Date().format("yyyy-MM-dd") + ' ',
|
|
|
- // })
|
|
|
- $('.inoculate_time').click(function(event) {
|
|
|
- var _this = this;
|
|
|
- weui.datePicker({
|
|
|
- start: new Date(),
|
|
|
- end: 2030,
|
|
|
- defaultValue: [new Date().getFullYear(), new Date().getMonth()+1, new Date().getDate()],
|
|
|
- onConfirm: function(result){
|
|
|
- // 二级调用:时间
|
|
|
- $('.ma_expect_date_picker .weui-picker').on('animationend webkitAnimationEnd', function() {
|
|
|
- show_expect_time_picker(_this, result);
|
|
|
- });
|
|
|
- },
|
|
|
- id: 'ma_expect_date',
|
|
|
- className: 'ma_expect_date_picker'
|
|
|
- });
|
|
|
- });
|
|
|
+ $("#inoculate_first").datetimePicker({
|
|
|
+ times: function () {
|
|
|
+ return [{values: ['']}];
|
|
|
+ },
|
|
|
+ onClose:function (picker) {
|
|
|
+ if(!picker.value){
|
|
|
+ picker.setValue([new Date().getFullYear()+'',(new Date().getMonth()+1)+'',new Date().getDate()+'',''])
|
|
|
+ }
|
|
|
+ },
|
|
|
+ value: new Date().format("yyyy-MM-dd") + ' ',
|
|
|
+ })
|
|
|
+
|
|
|
+ // $('.inoculate_time').click(function(event) {
|
|
|
+ // console.log($('#inoculate_first').datetimePicker)
|
|
|
+ // // var _this = this;
|
|
|
+ // // $(this).datePicker({
|
|
|
+ // // start: new Date(),
|
|
|
+ // // end: 2030,
|
|
|
+ // // defaultValue: [new Date().getFullYear(), new Date().getMonth()+1, new Date().getDate()],
|
|
|
+ // // onConfirm: function(result){
|
|
|
+ // // // 二级调用:时间
|
|
|
+ // // $('.ma_expect_date_picker .weui-picker').on('animationend webkitAnimationEnd', function() {
|
|
|
+ // // show_expect_time_picker(_this, result);
|
|
|
+ // // });
|
|
|
+ // // },
|
|
|
+ // // id: 'ma_expect_date',
|
|
|
+ // // className: 'ma_expect_date_picker'
|
|
|
+ // // });
|
|
|
+ // });
|
|
|
// updateSuspected({
|
|
|
// userName : 'www',
|
|
|
// grender : 2,
|
|
@@ -530,15 +538,15 @@ function ribao_init() {
|
|
|
initRadioEvent()
|
|
|
}
|
|
|
|
|
|
-// function setTime() {
|
|
|
-// if ($("#inoculate_first").val() == "") {
|
|
|
-// $("#inoculate_first").datetimePicker({
|
|
|
-// times: function () {
|
|
|
-// return [{values: [' ']}];
|
|
|
-// }, value: new Date().format("yyyy-MM-dd") + ' ',
|
|
|
-// })
|
|
|
-// }
|
|
|
-// }
|
|
|
+function setTime() {
|
|
|
+ // if ($("#inoculate_first").val() == "") {
|
|
|
+ // $("#inoculate_first").datetimePicker({
|
|
|
+ // times: function () {
|
|
|
+ // return [{values: [' ']}];
|
|
|
+ // }, value: new Date().format("yyyy-MM-dd") + ' ',
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+}
|
|
|
|
|
|
function selectinput1(obj) {
|
|
|
var grender = $("#js_input_gzzd").attr("data-values") == undefined ? 0 : $("#js_input_gzzd").attr("data-values");
|