|
@ -19,6 +19,7 @@
|
|
|
//变量
|
|
|
$form: $("#div_patient_info_form"),
|
|
|
$manufacturer: $("#sel_manufacturer"),
|
|
|
$deviceModel: $("#inp_deviceModel"),
|
|
|
init: function () {
|
|
|
_this = this;
|
|
|
this.$form.attrScan();
|
|
@ -29,7 +30,7 @@
|
|
|
$("#inp_tel").ligerTextBox({width: 240})//联系电话
|
|
|
$("#inp_serverIp").ligerTextBox({width: 240})//服务IP地址
|
|
|
$("#inp_deviceName").ligerTextBox({width: 240})//设备名称
|
|
|
$("#inp_deviceModel").ligerTextBox({width: 240})//设备型号
|
|
|
// $("#inp_deviceModel").ligerTextBox({width: 240})//设备型号
|
|
|
$("#inp_deviceCode").ligerTextBox({width: 240})//设备唯一标识
|
|
|
$("#inp_sim").ligerTextBox({width: 240})//设备sim
|
|
|
// $("#inp_manufacturer").ligerTextBox({width: 240})//厂家名称
|
|
@ -52,11 +53,27 @@
|
|
|
if (ajaxHeaderName) {
|
|
|
xhr.setRequestHeader(ajaxHeaderName, ajaxHeaderValue);
|
|
|
}
|
|
|
},
|
|
|
}
|
|
|
});
|
|
|
//厂商下拉框刷新
|
|
|
//设备型号下拉框
|
|
|
_this.deviceModelBox = _this.$deviceModel.ligerComboBox({
|
|
|
url: ctx + "/admin/device/modelList",
|
|
|
parms: {},
|
|
|
dataParmName: "data",
|
|
|
textField: "name",
|
|
|
valueField: "model",
|
|
|
isMultiSelect: false,
|
|
|
ajaxBeforeSend: function (xhr) {
|
|
|
if (ajaxHeaderName) {
|
|
|
xhr.setRequestHeader(ajaxHeaderName, ajaxHeaderValue);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//下拉框刷新
|
|
|
_this.reloadManufacturerBox = function () {
|
|
|
deviceInfo.manufacturerBox.reload();
|
|
|
deviceInfo.deviceModelBox.reload();
|
|
|
};
|
|
|
|
|
|
},
|
|
@ -83,7 +100,6 @@
|
|
|
serverIp: data.serverIp,
|
|
|
deviceName: data.deviceName,
|
|
|
sim: data.sim,
|
|
|
deviceModel: data.deviceModel,
|
|
|
deviceCode: data.deviceCode,
|
|
|
address: data.address,
|
|
|
representative: data.representative,
|
|
@ -94,6 +110,7 @@
|
|
|
});
|
|
|
//填值
|
|
|
_this.manufacturerBox.selectValue(data.manufacturerId);
|
|
|
_this.deviceModelBox.selectValue(data.deviceModel)
|
|
|
} else {
|
|
|
$.Notice.error(result.msg);
|
|
|
}
|
|
@ -160,6 +177,7 @@
|
|
|
//厂家名称
|
|
|
values.manufacturerId = self.manufacturerBox.getValue();
|
|
|
values.manufacturer = self.manufacturerBox.getText();
|
|
|
values.deviceModel = self.deviceModelBox.getValue();
|
|
|
if (!validator.validate()) {
|
|
|
return;
|
|
|
}
|