仪器管理新增修改优化

master
382696293@qq.com 2 years ago
parent 48ddfebdf7
commit 9bd883feb7

@ -2189,29 +2189,50 @@ export default {
}, },
/* 仪器类型切换 */ /* 仪器类型切换 */
typeChange() { typeChange() {
// IOT /**
if (this.form.type == 1) { * 两个都有但需要根据仪器 仪器类型和仪器型号来查询数据
this.form.model = null * 模式带new标识模式
this.form.nursingTime = null */
this.form.iotVersion = null /**
this.form.iotUpgradeData = null * IOT 特有
this.form.bluetoothConnecting = null * 仪器型号默认WL200
this.form.bluetoothConnectingTitle = null * 生成护理记录最短时间
this.form.bluetoothConnectingContent = null *
this.form.bluetoothConnectFail = null * 蓝牙连接中图片
this.form.bluetoothConnectFailTitle = null * 蓝牙连接中标题
this.form.bluetoothConnectFailContent = null * 蓝牙连接中文案
this.form.bluetoothClosed = null *
this.form.bluetoothClosedTitle = null * 蓝牙连接失败图片
this.form.bluetoothClosedContent = null * 蓝牙连接失败标题
this.form.iotVersionUpgrade = null * 蓝牙连接失败文案
this.form.modeIdsValue = [] *
} else { * 蓝牙连断开接图片
this.form.model = 'WL200' * 蓝牙断开连接标题
this.form.modeIdsValue = [] * 蓝牙断开连接文案
*
* we200蓝牙连接中图片(WL200仪器特有)
* we200蓝牙连接中标题(WL200仪器特有)
* we200蓝牙连接中文案(WL200仪器特有)
*
* IOT版本
* IOT升级数据文件
* IOT版本升级介绍
*
* we200IOT版本(WL200仪器特有)
* we200IOT升级数据文件(WL200仪器特有)
* we200IOT版本升级介绍(WL200仪器特有)
*/
// IOT WL200
if (this.form.type == 2) {
this.form.model = 'WL200';
} }
/* 模式选项 */ /* 模式选项 */
this.mode.modeIdsOptions = [] //
this.form.modeIdsValue = [];
this.modeIdsOptions = [];
// new
this.form.newModeIdList = [];
this.newModeOptionList = [];
listAllMode({ listAllMode({
instrumentType: this.form.type, instrumentType: this.form.type,
instrumentModel: this.form.model, instrumentModel: this.form.model,
@ -2221,6 +2242,22 @@ export default {
} }
this.mode.modeIdsOptions = response.data this.mode.modeIdsOptions = response.data
}) })
//
this.form.model = null
this.form.nursingTime = null
this.form.bluetoothConnecting = null
this.form.bluetoothConnectingTitle = null
this.form.bluetoothConnectingContent = null
this.form.bluetoothConnectFail = null
this.form.bluetoothConnectFailTitle = null
this.form.bluetoothConnectFailContent = null
this.form.bluetoothClosed = null
this.form.bluetoothClosedTitle = null
this.form.bluetoothClosedContent = null
this.form.iotVersion = null
this.form.iotUpgradeData = null
this.form.iotVersionUpgrade = null
/* we200数据清空 */
this.form.we200IotVersion = null; this.form.we200IotVersion = null;
this.form.we200IotUpgradeData = null; this.form.we200IotUpgradeData = null;
this.form.we200IotVersionUpgrade = null; this.form.we200IotVersionUpgrade = null;
@ -2235,6 +2272,14 @@ export default {
modelChange() { modelChange() {
/* 模式选项 */ /* 模式选项 */
this.mode.modeIdsOptions = [] this.mode.modeIdsOptions = []
// new
//
this.form.modeIdsValue = [];
this.modeIdsOptions = [];
// new
this.form.newModeIdList = [];
this.newModeOptionList = [];
//
listAllMode({ listAllMode({
instrumentType: this.form.type, instrumentType: this.form.type,
instrumentModel: this.form.model, instrumentModel: this.form.model,
@ -2244,7 +2289,7 @@ export default {
} }
this.mode.modeIdsOptions = response.data this.mode.modeIdsOptions = response.data
}) })
/* 清空we200 对应的数据 */
this.form.we200IotVersion = null; this.form.we200IotVersion = null;
this.form.we200IotUpgradeData = null; this.form.we200IotUpgradeData = null;
this.form.we200IotVersionUpgrade = null; this.form.we200IotVersionUpgrade = null;

Loading…
Cancel
Save