|
|
|
|
@ -505,7 +505,7 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="form.type == 2" label="仪器型号" prop="model">
|
|
|
|
|
<el-select v-model="form.model" style="width: 50%">
|
|
|
|
|
<el-select v-model="form.model" @change="modelChange" style="width: 50%">
|
|
|
|
|
<el-option label="FR200" value="FR200"></el-option>
|
|
|
|
|
<el-option label="WL200" value="WL200"></el-option>
|
|
|
|
|
<el-option label="FR380" value="FR380"></el-option>
|
|
|
|
|
@ -1683,13 +1683,15 @@ export default {
|
|
|
|
|
this.open = true
|
|
|
|
|
this.title = '添加仪器列'
|
|
|
|
|
/* 所有模式选项 */
|
|
|
|
|
this.mode.modeIdsOptions = []
|
|
|
|
|
listAllMode().then((response) => {
|
|
|
|
|
if (response.code != 200) {
|
|
|
|
|
this.$message.error('模式获取失败')
|
|
|
|
|
}
|
|
|
|
|
this.mode.modeIdsOptions = response.data
|
|
|
|
|
})
|
|
|
|
|
this.mode.modeIdsOptions = [];
|
|
|
|
|
listAllMode({
|
|
|
|
|
instrumentType: this.form.type
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
if (response.code != 200) {
|
|
|
|
|
this.$message.error('模式获取失败')
|
|
|
|
|
}
|
|
|
|
|
this.mode.modeIdsOptions = response.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
@ -1798,9 +1800,12 @@ export default {
|
|
|
|
|
this.introduceList = response.data.introduceList
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 所有模式选项 */
|
|
|
|
|
/* 模式选项 */
|
|
|
|
|
this.mode.modeIdsOptions = []
|
|
|
|
|
listAllMode().then((response) => {
|
|
|
|
|
listAllMode({
|
|
|
|
|
instrumentType: this.form.type,
|
|
|
|
|
instrumentModel: this.form.model
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
if (response.code != 200) {
|
|
|
|
|
this.$message.error('模式获取失败')
|
|
|
|
|
}
|
|
|
|
|
@ -2012,22 +2017,48 @@ export default {
|
|
|
|
|
typeChange() {
|
|
|
|
|
// 非IOT仪器
|
|
|
|
|
if (this.form.type == 1) {
|
|
|
|
|
this.form.model = 'WL200'
|
|
|
|
|
this.form.nursingTime = null
|
|
|
|
|
this.form.iotVersion = null
|
|
|
|
|
this.form.iotUpgradeData = 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.iotVersionUpgrade = null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
this.form.model = null;
|
|
|
|
|
this.form.nursingTime = null;
|
|
|
|
|
this.form.iotVersion = null;
|
|
|
|
|
this.form.iotUpgradeData = 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.iotVersionUpgrade = null;
|
|
|
|
|
} else {
|
|
|
|
|
this.form.model = 'WL200';
|
|
|
|
|
}
|
|
|
|
|
/* 模式选项 */
|
|
|
|
|
this.mode.modeIdsOptions = [];
|
|
|
|
|
listAllMode({
|
|
|
|
|
instrumentType: this.form.type,
|
|
|
|
|
instrumentModel: this.form.model
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
if (response.code != 200) {
|
|
|
|
|
this.$message.error('模式获取失败')
|
|
|
|
|
}
|
|
|
|
|
this.mode.modeIdsOptions = response.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
modelChange() {
|
|
|
|
|
/* 模式选项 */
|
|
|
|
|
this.mode.modeIdsOptions = [];
|
|
|
|
|
listAllMode({
|
|
|
|
|
instrumentType: this.form.type,
|
|
|
|
|
instrumentModel: this.form.model
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
if (response.code != 200) {
|
|
|
|
|
this.$message.error('模式获取失败')
|
|
|
|
|
}
|
|
|
|
|
this.mode.modeIdsOptions = response.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/* 是否购买切换 */
|
|
|
|
|
isPurchaseChang() {
|
|
|
|
|
if (this.form.isPurchase == 0) {
|
|
|
|
|
|