|
@@ -958,12 +958,13 @@
|
958
|
958
|
</el-col>
|
959
|
959
|
<el-col :span="8">
|
960
|
960
|
<el-form-item label="分区:" required prop="zone">
|
961
|
|
- <el-select v-model="userform.zone" placeholder="请选择" class="a">
|
|
961
|
+ <el-select v-model="userform.zone" placeholder="请选择" class="a" @change="selectChange">
|
962
|
962
|
<el-option
|
963
|
963
|
v-for="item in bedZoneThree"
|
964
|
964
|
:key="item.id"
|
965
|
965
|
:label="item.name"
|
966
|
|
- :value="item.id">
|
|
966
|
+ :value="item.id"
|
|
967
|
+ >
|
967
|
968
|
</el-option>
|
968
|
969
|
</el-select>
|
969
|
970
|
</el-form-item>
|
|
@@ -972,7 +973,7 @@
|
972
|
973
|
<el-row>
|
973
|
974
|
<el-col :span="8">
|
974
|
975
|
<el-form-item label="机位号:" required prop="bed_number">
|
975
|
|
- <el-select style="width:150px" v-model="userform.bed_number">
|
|
976
|
+ <el-select style="width:150px" v-model="userform.bed_number" @change="selectBed">
|
976
|
977
|
<el-option v-for="item in this.bedNumberTwo" :key="item.id" :label="item.number" :value="item.id"></el-option>
|
977
|
978
|
</el-select>
|
978
|
979
|
</el-form-item>
|
|
@@ -2051,7 +2052,7 @@
|
2051
|
2052
|
import { getAllSubregion, getAllMachine, getMachineDetailById,
|
2052
|
2053
|
UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
|
2053
|
2054
|
getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
|
2054
|
|
- ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getAllpatient, UpdateMachineInfoTwo, getPatientDetail, openDelete, getAllMode } from '@/api/manage'
|
|
2055
|
+ ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getAllpatient, UpdateMachineInfoTwo, getPatientDetail, openDelete, getAllMode, selectChange, selectBed } from '@/api/manage'
|
2055
|
2056
|
import { uParseTime } from '@/utils/tools'
|
2056
|
2057
|
import { getToken } from '@/api/qiniu'
|
2057
|
2058
|
import PlanForm from './components/PlanForm'
|
|
@@ -4243,6 +4244,23 @@ export default {
|
4243
|
4244
|
var mode = response.data.data.mode
|
4244
|
4245
|
this.deviceMode = mode
|
4245
|
4246
|
})
|
|
4247
|
+ },
|
|
4248
|
+ selectChange(id) {
|
|
4249
|
+ selectChange(id).then(response => {
|
|
4250
|
+ if (response.data.state === 1) {
|
|
4251
|
+ this.userform.bed_number = ''
|
|
4252
|
+ var change = response.data.data.change
|
|
4253
|
+ this.bedNumberTwo = change
|
|
4254
|
+ // console.log('change', change)
|
|
4255
|
+ }
|
|
4256
|
+ })
|
|
4257
|
+ },
|
|
4258
|
+ selectBed(id) {
|
|
4259
|
+ selectBed(id).then(response => {
|
|
4260
|
+ if (response.data.state === 1) {
|
|
4261
|
+ var zone = response.data.data.zone
|
|
4262
|
+ }
|
|
4263
|
+ })
|
4246
|
4264
|
}
|
4247
|
4265
|
},
|
4248
|
4266
|
created() {
|