|
@ -14,7 +14,8 @@
|
|
|
/* ************************** 变量定义 ******************************** */
|
|
|
// 通用工具类库
|
|
|
var retrieve = null;
|
|
|
var inpStarDate = null,inpEndDate = null;
|
|
|
var createTime = null;
|
|
|
var jValidation = $.jValidation;
|
|
|
|
|
|
retrieve = {
|
|
|
url: {
|
|
@ -28,10 +29,11 @@
|
|
|
* */
|
|
|
hospitalsByType: '/admin/hos/hospitalsByType',
|
|
|
},
|
|
|
|
|
|
$element: $('#consult_static_btn_div'),
|
|
|
$inpDeviceName: $('#inp_device_name'),//城市
|
|
|
$inpCategoryCode: $('#inp_categoryCode'),//区
|
|
|
$inpHos: $('#inp_hos'),//机构
|
|
|
$inpCreateTime: $('#inp_create_time'),
|
|
|
|
|
|
dnc: null,
|
|
|
ccc: null,
|
|
@ -40,6 +42,13 @@
|
|
|
$btnReplyDelayList: $('#export_consult_reply_delay'),
|
|
|
|
|
|
init: function () {
|
|
|
inpCreateTime = this.$inpCreateTime.ligerDateEditor({
|
|
|
format: "yyyy-MM-dd",
|
|
|
showTime: false,
|
|
|
labelWidth: 100,
|
|
|
labelAlign: 'center',
|
|
|
cancelable: true
|
|
|
});
|
|
|
this.initComboBox();
|
|
|
this.bindEvents();
|
|
|
|
|
@ -122,7 +131,14 @@
|
|
|
}
|
|
|
},
|
|
|
bindEvents: function () {
|
|
|
var validator = new jValidation.Validation($("#consult_static_btn_div"), {
|
|
|
immediate: true, onSubmit: false,
|
|
|
onElementValidateForAjax: function (elm) {
|
|
|
|
|
|
}
|
|
|
});
|
|
|
var me = this;
|
|
|
me.$element.attrScan();
|
|
|
//城市下拉
|
|
|
me.$inpDeviceName.on( 'change', function () {
|
|
|
me.setCityFun(me);
|
|
@ -137,11 +153,19 @@
|
|
|
});
|
|
|
//咨询未及时回复详情导出
|
|
|
me.$btnReplyDelayList.on('click',function () {
|
|
|
if (!validator.validate()) {
|
|
|
return;
|
|
|
}
|
|
|
var values = me.$element.Fields.getValues();
|
|
|
//定义一个form表单
|
|
|
var myform = $("<form></form>");
|
|
|
myform.attr('method','post')
|
|
|
myform.attr('action',ctx + '/admin/static/consult/toExcel');
|
|
|
|
|
|
//创建时间
|
|
|
var createTime = $("<input type='hidden' name='createTime' />")
|
|
|
createTime.attr('value',values.createTime);
|
|
|
|
|
|
//区
|
|
|
var town = $("<input type='hidden' name='town' />")
|
|
|
town.attr('value',$("#inp_categoryCode").val());
|
|
@ -154,7 +178,7 @@
|
|
|
var attention = $("<input type='hidden' name='attention' />")
|
|
|
attention.attr('value',$("#inp_att_val").val());
|
|
|
|
|
|
|
|
|
myform.append(createTime);
|
|
|
myform.append(town);
|
|
|
myform.append(hospital);
|
|
|
myform.append(attention);
|