Ver código fonte

增加智能生活设备和蓝色按钮

vothin 9 meses atrás
pai
commit
032d957a77

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
dist/index.html


+ 19 - 1
languages/en.js

@@ -1611,6 +1611,7 @@ module.exports = {
     MULTIFUNCTIONAL_BUTTON: 'Multi function button',
     SLEEP_MATTRESS: 'Sleep mattress',
     NFC: 'NFC functionality',
+    LORA_BUTTON: 'LoRa Button',
     linuxSerial1: 'Linux serial port 1',
     linuxSerial2: 'Linux serial port 2',
     linuxSerial3: 'Linux serial port 3',
@@ -1679,6 +1680,23 @@ module.exports = {
     deviceFunction: 'Device Function',
     deviceButtonFunctionStr: 'Device Button Function',
     selectKey: 'Please select a key',
-    voiceCancel: 'Cancel Call'
+    voiceCancel: 'Cancel Call',
+    SMART_LIFE_GATEWAY: 'Smart Life Gateway',
+    SMART_LIFE_VOICE_GATE: 'Smart Life Voice Gateway',
+    CURTAIN: 'Curtain',
+    SWITCH: 'Switch',
+    SIMULATE_BLUE_CODE: 'Simulate BLUE CODE',
+    switchType: 'Switch Type',
+    SINGLE_SWITCH: 'Single Key Switch',
+    TWO_KEY_SWITCH: 'Two Key Switch',
+    THREE_KEY_SWITCH: 'Three Key Switch',
+    MINUTE10: '10 minutes',
+    MINUTE15: '15 minutes',
+    MINUTE20: '20 minutes',
+    MINUTE30: '30 minutes',
+    MINUTE45: '45 minutes',
+    MINUTE60: '60 minutes',
+    MINUTE90: '90 minutes',
+    MINUTE120: '120 minutes'
   }
 }

+ 20 - 2
languages/es.js

@@ -214,7 +214,7 @@ module.exports = {
     pause: 'Pausa',
     noFile: 'El archivo no existe, no se puede reproducir',
     inputMsg: '¡Por favor, introduzca el contenido!',
-    year: 'Año',
+    year: 'Edad',
     month: 'Mes',
     day: 'Día',
     timeMsg: '¡Por favor, seleccione el intervalo de tiempo!',
@@ -1612,6 +1612,7 @@ module.exports = {
     MULTIFUNCTIONAL_BUTTON: 'Botón multifuncional',
     SLEEP_MATTRESS: 'Colchón para dormir',
     NFC: 'Función NFC',
+    LORA_BUTTON: 'Botón LoRa',
     linuxSerial1: 'Puerto serie de Linux 1',
     linuxSerial2: 'Puerto serie de Linux 2',
     linuxSerial3: 'Puerto serie de Linux 3',
@@ -1679,6 +1680,23 @@ module.exports = {
     deviceFunction: 'Función del dispositivo',
     deviceButtonFunctionStr: 'Función del botón del dispositivo',
     selectKey: 'Por favor, seleccione una clave',
-    voiceCancel: 'Cancelar llamada'
+    voiceCancel: 'Cancelar llamada',
+    SMART_LIFE_GATEWAY: 'Puerta de enlace de vida inteligente',
+    SMART_LIFE_VOICE_GATE: 'Pasarela de voz de vida inteligente',
+    CURTAIN: 'Cortina',
+    SWITCH: 'Interruptor',
+    SIMULATE_BLUE_CODE: 'Simular BLUE CODE',
+    switchType: 'Tipo de Interruptor',
+    SINGLE_SWITCH: 'Interruptor de un botón',
+    TWO_KEY_SWITCH: 'Interruptor de dos botones',
+    THREE_KEY_SWITCH: 'Interruptor de tres botones',
+    MINUTE10: '10 minutos',
+    MINUTE15: '15 minutos',
+    MINUTE20: '20 minutos',
+    MINUTE30: '30 minutos',
+    MINUTE45: '45 minutos',
+    MINUTE60: '60 minutos',
+    MINUTE90: '90 minutos',
+    MINUTE120: '120 minutos',
   }
 }

+ 19 - 1
languages/ru-RU.js

@@ -1611,6 +1611,7 @@ module.exports = {
     MULTIFUNCTIONAL_BUTTON: 'Многофункциональная кнопка',
     SLEEP_MATTRESS: 'Матрас для сна',
     NFC: 'Функции NFC',
+    LORA_BUTTON: 'Кнопка LoRa',
     linuxSerial1: 'Установка Linux 1',
     linuxSerial2: 'Установка Linux 2',
     linuxSerial3: 'Установка Linux 3',
@@ -1678,6 +1679,23 @@ module.exports = {
     deviceFunction: 'Функция устройства',
     deviceButtonFunctionStr: 'Функция кнопки устройства',
     selectKey: 'Пожалуйста, выберите ключ',
-    voiceCancel: 'Отменить вызов'
+    voiceCancel: 'Отменить вызов',
+    SMART_LIFE_GATEWAY: 'Умный шлюз жизни',
+    SMART_LIFE_VOICE_GATE: 'Умный шлюз голосовой жизни',
+    CURTAIN: 'Шторка',
+    SWITCH: 'Переключатель',
+    SIMULATE_BLUE_CODE: 'Имитация_Blue_Code',
+    switchType: 'Тип Переключателя',
+    SINGLE_SWITCH: 'Переключатель с одним кнопкой',
+    TWO_KEY_SWITCH: 'Переключатель с двумя кнопками',
+    THREE_KEY_SWITCH: 'Переключатель с тремя кнопками',
+    MINUTE10: '10 минут',
+    MINUTE15: '15 минут',
+    MINUTE20: '20 минут',
+    MINUTE30: '30 минут',
+    MINUTE45: '45 минут',
+    MINUTE60: '60 минут',
+    MINUTE90: '90 минут',
+    MINUTE120: '120 минут'
   }
 }

+ 23 - 5
languages/zh-CN.js

@@ -1610,10 +1610,11 @@ module.exports = {
     S433_BUTTON: '433按钮',
     MULTIFUNCTIONAL_BUTTON: '多功能按钮',
     SLEEP_MATTRESS: '睡眠床垫',
-    NFC: 'nfc功能',
-    linuxSerial1: 'linux串口1',
-    linuxSerial2: 'linux串口2',
-    linuxSerial3: 'linux串口3',
+    NFC: 'NFC功能',
+    LORA_BUTTON: 'LoRa按钮',
+    linuxSerial1: 'Linux串口1',
+    linuxSerial2: 'Linux串口2',
+    linuxSerial3: 'Linux串口3',
     androidSerial1: '安卓串口1',
     androidSerial2: '安卓串口2',
     androidSerial3: '安卓串口3',
@@ -1682,6 +1683,23 @@ module.exports = {
     deviceFunction: '设备功能',
     deviceButtonFunctionStr: '设备按钮功能',
     selectKey: '请选择键值',
-    voiceCancel: '取消呼叫'
+    voiceCancel: '取消呼叫',
+    SMART_LIFE_GATEWAY: '智慧生活网关',
+    SMART_LIFE_VOICE_GATE: '智慧生活语音网关',
+    CURTAIN: '窗帘',
+    SWITCH: '开关',
+    SIMULATE_BLUE_CODE: '模拟BLUE CODE',
+    switchType: '开关类型',
+    SINGLE_SWITCH: '单键开关',
+    TWO_KEY_SWITCH: '双键开关',
+    THREE_KEY_SWITCH: '三键开关',
+    MINUTE10: '10分钟',
+    MINUTE15: '15分钟',
+    MINUTE20: '20分钟',
+    MINUTE30: '30分钟',
+    MINUTE45: '45分钟',
+    MINUTE60: '60分钟',
+    MINUTE90: '90分钟',
+    MINUTE120: '120分钟'
   }
 }

Diferenças do arquivo suprimidas por serem muito extensas
+ 6 - 6
src/utils/domain.js


+ 3 - 1
src/utils/enum/DeviceButtonTypeEnum.js

@@ -5,6 +5,8 @@ export const DEVICE_BUTTON_TYPE = createEnum(
   {
     SOS: ['SOS', i18n.t('tcpType.SOS')],
     VOICE: ['VOICE', i18n.t('tcpType.VOICE')],
-    EVENT: ['EVENT', i18n.t('tcpType.EVENT')]
+    EVENT: ['EVENT', i18n.t('tcpType.EVENT')],
+    REINFORCE: ['REINFORCE', i18n.t('tcpType.REINFORCE')],
+    NURSING: ['NURSING', i18n.t('tcpType.SIDE')]
   }
 )

+ 6 - 1
src/utils/enum/DeviceTypeEnum.js

@@ -51,6 +51,11 @@ export const DEVICE_TYPE = createEnum(
     WATCH_IW: [46, i18n.t('deviceType.WATCH_IW')], // 智能手表-埃微
     S433_BJMD: [47, i18n.t('deviceType.S433_BJMD')], // 报警门灯
     SOS_VOICE_BUTTON: [48, i18n.t('deviceType.SOS_VOICE_BUTTON')], // SOS语音按钮
-    PTT: [49, i18n.t('deviceType.PTT')] // 一键通
+    PTT: [49, i18n.t('deviceType.PTT')], // 一键通
+    SMART_LIFE_GATEWAY: [50, i18n.t('zy20240611.SMART_LIFE_GATEWAY')], // 智慧生活网关
+    SMART_LIFE_VOICE_GATE: [51, i18n.t('zy20240611.SMART_LIFE_VOICE_GATE')], // 智慧生活语音网关
+    CURTAIN: [52, i18n.t('zy20240611.CURTAIN')], // 窗帘
+    SWITCH: [53, i18n.t('zy20240611.SWITCH')], // 开关
+    SIMULATE_BLUE_CODE: [54, i18n.t('zy20240611.SIMULATE_BLUE_CODE')]
   }
 )

+ 5 - 0
src/utils/enum/SerialKeyTypeEnum.js

@@ -10,6 +10,11 @@ export const SERIAL_KEY_TYPE = createEnum(
     HandleKey1: ['KEY6', 'KEY6'],
     HandleKey2: ['KEY?', 'KEY?'],
     HandleKey3: ['KEY=', 'KEY='],
+    ImitateKey1: ['Z', 'Z'],
+    ImitateKey2: ['H', 'H'],
+    ImitateKey3: ['Y', 'Y'],
+    ImitateKey4: ['R', 'R'],
+    ImitateKey5: ['?', '?'],
     FourHandleKey0: ['HANDKEY00', 'HANDKEY00'],
     FourHandleKey1: ['HANDKEY10', 'HANDKEY10'],
     FourHandleKey2: ['HANDKEY20', 'HANDKEY20'],

+ 2 - 1
src/utils/enum/SerialTypeEnum.js

@@ -8,6 +8,7 @@ export const SERIAL_TYPE = createEnum(
     S433_BUTTON: ['S433_BUTTON', i18n.t('zy20240205.S433_BUTTON')],
     MULTIFUNCTIONAL_BUTTON: ['MULTIFUNCTIONAL_BUTTON', i18n.t('zy20240205.MULTIFUNCTIONAL_BUTTON')],
     SLEEP_MATTRESS: ['SLEEP_MATTRESS', i18n.t('zy20240205.SLEEP_MATTRESS')],
-    NFC: ['NFC', i18n.t('zy20240205.NFC')]
+    NFC: ['NFC', i18n.t('zy20240205.NFC')],
+    LORA_BUTTON: ['LORA_BUTTON', i18n.t('zy20240205.LORA_BUTTON')]
   }
 )

+ 10 - 0
src/utils/enum/SwitchTypeEnum.js

@@ -0,0 +1,10 @@
+import createEnum from '@/utils/enum/createEnum'
+import i18n from '@/utils/i18n'
+
+export const SWITCH_TYPE = createEnum(
+  {
+    SINGLE_SWITCH: [1, i18n.t('zy20240611.SINGLE_SWITCH')],
+    TWO_KEY_SWITCH: [2, i18n.t('zy20240611.TWO_KEY_SWITCH')],
+    THREE_KEY_SWITCH: [3, i18n.t('zy20240611.THREE_KEY_SWITCH')]
+  }
+)

+ 2 - 2
src/views/customer/components/customerManager.vue

@@ -48,7 +48,7 @@
               <el-row>
                 <el-col :span="12">
                   <el-form-item :label="this.$t('customerManage.named')" prop="named">
-                    <el-input v-model="formmodel.named" clearable :placeholder="this.$t('customerManage.inputNamed')" :maxlength="20" />
+                    <el-input v-model="formmodel.named" clearable :placeholder="this.$t('customerManage.inputNamed')" :maxlength="30" />
                   </el-form-item>
                 </el-col>
                 <el-col :span="12">
@@ -425,7 +425,7 @@
         <el-row>
           <el-col :span="12">
             <el-form-item :label="this.$t('customerManage.named')" prop="named">
-              <el-input v-model="changeBedFormModel.named" clearable :placeholder="this.$t('customerManage.inputNamed')" readonly :maxlength="20" />
+              <el-input v-model="changeBedFormModel.named" clearable :placeholder="this.$t('customerManage.inputNamed')" readonly :maxlength="30" />
             </el-form-item>
           </el-col>
           <el-col :span="12">

+ 2 - 2
src/views/customer/components/elderlyCareManager.vue

@@ -50,7 +50,7 @@
                                 <el-col :span="12">
                                     <el-form-item :label="this.$t('customerManage.named')" prop="named">
                                         <el-input v-model="formmodel.named" clearable :placeholder="this.$t('customerManage.inputNamed')"
-                                                  :maxlength="20"/>
+                                                  :maxlength="30"/>
                                     </el-form-item>
                                 </el-col>
                                 <el-col :span="12">
@@ -431,7 +431,7 @@
                     <el-col :span="12">
                         <el-form-item :label="this.$t('customerManage.named')" prop="named">
                             <el-input v-model="changeBedFormModel.named" clearable :placeholder="this.$t('customerManage.inputNamed')" readonly
-                                      :maxlength="20"/>
+                                      :maxlength="30"/>
                         </el-form-item>
                     </el-col>
                     <el-col :span="12">

+ 3 - 3
src/views/customer/components/patientManager.vue

@@ -49,7 +49,7 @@
                                 <el-col :span="12">
                                     <el-form-item :label="this.$t('customerManage.named')" prop="named">
                                         <el-input v-model="formmodel.named" clearable :placeholder="this.$t('customerManage.inputNamed')"
-                                                  :maxlength="20"/>
+                                                  :maxlength="30"/>
                                     </el-form-item>
                                 </el-col>
                                 <el-col :span="12">
@@ -311,7 +311,7 @@
                                 <el-col :span="12">
                                     <el-form-item :label="this.$t('customerManage.customerRelativeTrueName')" prop="true_name">
                                         <el-input v-model="relativeFormModel.true_name" clearable :placeholder="this.$t('customerManage.inputNamed')"
-                                                  :maxlength="20"/>
+                                                  :maxlength="30"/>
                                     </el-form-item>
                                 </el-col>
                                 <el-col :span="12">
@@ -458,7 +458,7 @@
                     <el-col :span="12">
                         <el-form-item :label="this.$t('customerManage.named')" prop="named">
                             <el-input v-model="changeBedFormModel.named" clearable :placeholder="this.$t('customerManage.inputNamed')" readonly
-                                      :maxlength="20"/>
+                                      :maxlength="30"/>
                         </el-form-item>
                     </el-col>
                     <el-col :span="12">

+ 2 - 2
src/views/hospital/customer/customerManager.vue

@@ -48,7 +48,7 @@
               <el-row>
                 <el-col :span="12">
                   <el-form-item :label="this.$t('customerManage.named')" prop="named">
-                    <el-input v-model="formmodel.named" clearable :placeholder="this.$t('customerManage.inputNamed')" :maxlength="20" />
+                    <el-input v-model="formmodel.named" clearable :placeholder="this.$t('customerManage.inputNamed')" :maxlength="30" />
                   </el-form-item>
                 </el-col>
                 <el-col :span="12">
@@ -379,7 +379,7 @@
         <el-row>
           <el-col :span="12">
             <el-form-item :label="this.$t('customerManage.named')" prop="named">
-              <el-input v-model="changeBedFormModel.named" clearable :placeholder="this.$t('customerManage.inputNamed')" readonly :maxlength="20" />
+              <el-input v-model="changeBedFormModel.named" clearable :placeholder="this.$t('customerManage.inputNamed')" readonly :maxlength="30" />
             </el-form-item>
           </el-col>
           <el-col :span="12">

+ 40 - 2
src/views/ncs-device/components/deviceManager.vue

@@ -264,6 +264,26 @@
                         </el-form-item>
                     </el-col>
                 </el-row>
+                <el-row v-if="isSmartLife">
+                  <el-col :span="12">
+                    <el-form-item :label="this.$t('zy20240611.SMART_LIFE_GATEWAY')" prop="group_id">
+                      <el-select v-model="deviceModel.group_id"
+                                 :placeholder="this.$t('zy20240611.SMART_LIFE_GATEWAY')" clearable>
+                        <el-option v-for="item in smartLifeGateways" :key="item.id" :label="item.name"
+                                   :value="item.id"/>
+                      </el-select>
+                    </el-form-item>
+                  </el-col>
+                  <el-col :span="12" v-if="isSwitch">
+                    <el-form-item :label="this.$t('zy20240611.switchType')" prop="sign_type">
+                      <el-select v-model="deviceModel.sign_type"
+                                 :placeholder="this.$t('deviceManage.choiceSignType')" clearable>
+                        <el-option v-for="(item, index) in Object.keys(switchTypeEnum)" :key="index"
+                                   :label="switchTypeEnum[item]" :value="parseInt(item)"/>
+                      </el-select>
+                    </el-form-item>
+                  </el-col>
+                </el-row>
                 <div v-if="hasSosDeviceSettings">
                   <el-row>
                     <el-col :span="12">
@@ -428,6 +448,7 @@
     import * as shop_API from "@/api/ncs_shop";
 
     import ButtonCellRenderList from '@/components/AgGridCellRender/ButtonCellRenderList'
+    import {SWITCH_TYPE} from "@/utils/enum/SwitchTypeEnum";
     const DeviceUrl = domain.DeviceUrl
     export default {
         name: 'DeviceManager',
@@ -530,8 +551,11 @@
                 hasRoleId: false,
                 audioOptions: [],
                 rs485Options: [],
+              smartLifeGateways: [],
                 hasAudioId: false,
                 isVitalSigns: false,
+              isSmartLife: false,
+              isSwitch: false,
                 hasSosDeviceSettings: false,
                 powerControl:false,
                 sosDeviceSetting: {},
@@ -549,6 +573,7 @@
                 ],
                 sosDeviceSettingEnum: SOS_DEVICE_SETTING_TYPE.getValueList(),
                 vitalSignsDeviceEnum: VITAL_SIGNS_DEVICE_TYPE.getValueList(),
+              switchTypeEnum: SWITCH_TYPE.getValueList(),
                 isLedDevice: false,
                 websock: null,
                 onlineDevice: [],
@@ -1088,9 +1113,12 @@
                 this.hasAudioId = val === DEVICE_TYPE.SIMULATE_BED_DEVICE ||
                     val === DEVICE_TYPE.RS485_DOOR ||
                     val === DEVICE_TYPE.SIMULATE_EMERGENCY_BUTTON ||
-                    val === DEVICE_TYPE.SIMULATE_DOOR_LIGHT
+                    val === DEVICE_TYPE.SIMULATE_DOOR_LIGHT ||
+                    val === DEVICE_TYPE.SIMULATE_BLUE_CODE
                 this.powerControl=val===DEVICE_TYPE.DIGIT_BED_DEVICE||val===DEVICE_TYPE.DOOR_DEVICE
                 this.isVitalSigns = val === DEVICE_TYPE.VITAL_SIGNS_DEVICE
+              this.isSmartLife = val === DEVICE_TYPE.SMART_LIFE_VOICE_GATE || val === DEVICE_TYPE.CURTAIN || val === DEVICE_TYPE.SWITCH
+              this.isSwitch = val === DEVICE_TYPE.SWITCH
                 this.hasSosDeviceSettings = val === DEVICE_TYPE.ALARM_BODY_INDUCTIVE ||
                     val === DEVICE_TYPE.DOOR_LOCK ||
                     val === DEVICE_TYPE.ALARM_RESTRAINT_BAND || val === DEVICE_TYPE.BREASTPLATE
@@ -1174,6 +1202,8 @@
                 })
                 this.hasAudioId = false
                 this.isVitalSigns = false
+              this.isSmartLife = false
+              this.isSwitch = false
                 this.hasSosDeviceSettings = false
                 this.isLedDevice = false
                 this.getDevices(this.$store.getters.partId)
@@ -1197,8 +1227,13 @@
                 this.hasAudioId = params.device_type === DEVICE_TYPE.SIMULATE_BED_DEVICE ||
                     params.device_type === DEVICE_TYPE.RS485_DOOR ||
                     params.device_type === DEVICE_TYPE.SIMULATE_EMERGENCY_BUTTON ||
-                    params.device_type === DEVICE_TYPE.SIMULATE_DOOR_LIGHT
+                    params.device_type === DEVICE_TYPE.SIMULATE_DOOR_LIGHT ||
+                    params.device_type === DEVICE_TYPE.SIMULATE_BLUE_CODE
                 this.isVitalSigns = params.device_type === DEVICE_TYPE.VITAL_SIGNS_DEVICE
+              this.isSmartLife = params.device_type === DEVICE_TYPE.SMART_LIFE_VOICE_GATE ||
+                  params.device_type === DEVICE_TYPE.CURTAIN ||
+                  params.device_type === DEVICE_TYPE.SWITCH
+              this.isSwitch = params.device_type === DEVICE_TYPE.SWITCH
                 this.powerControl=params.device_type===DEVICE_TYPE.DIGIT_BED_DEVICE||params.device_type===DEVICE_TYPE.DOOR_DEVICE
                 if (params.device_type === DEVICE_TYPE.ALARM_BODY_INDUCTIVE ||
                     params.device_type === DEVICE_TYPE.DOOR_LOCK ||
@@ -1302,6 +1337,9 @@
                 API_Device.getDeviceByType(partId, DEVICE_TYPE.RS485_TRANSFER).then(response => {
                     this.rs485Options = response
                 })
+              API_Device.getDeviceByType(partId, DEVICE_TYPE.SMART_LIFE_GATEWAY).then(response => {
+                this.smartLifeGateways = response
+              })
             },
             getSosDeviceSetting(deviceId) {
                 API_SosDeviceSetting.getSosDeviceSetting(deviceId).then(r => {

+ 20 - 8
src/views/ncs-orginazition/components/partInfoEdit.vue

@@ -799,6 +799,8 @@
                   <el-option v-if="item.type === deviceButtonType.SOS" v-for="(keyItem, keyIndex) in deviceButtonSosTransfer" :key="keyIndex" :label="keyItem.key" :value="keyItem.value"/>
                   <el-option v-else-if="item.type === deviceButtonType.VOICE" v-for="(keyItem, keyIndex) in deviceButtonVoiceTransfer" :key="keyIndex" :label="keyItem.key" :value="keyItem.value"/>
                   <el-option v-else-if="item.type === deviceButtonType.EVENT" v-for="(keyItem, keyIndex) in deviceButtonEventTransfer" :key="keyIndex" :label="keyItem.key" :value="keyItem.value"/>
+                  <el-option v-else-if="item.type === deviceButtonType.REINFORCE" v-for="(keyItem, keyIndex) in deviceButtonReinforceTransfer" :key="keyIndex" :label="keyItem.key" :value="keyItem.value"/>
+                  <el-option v-else-if="item.type === deviceButtonType.NURSING" v-for="(keyItem, keyIndex) in deviceButtonNursingTransfer" :key="keyIndex" :label="keyItem.key" :value="keyItem.value"/>
                 </el-select>
               </el-col>
               <el-col :span="3" style="margin: auto">
@@ -857,21 +859,19 @@
 <script>
 // 系统设置
 import * as API_Part from '@/api/ncs_partInfo'
-import { saveListByCustomer } from '@/api/ncs_customer'
+import {saveListByCustomer} from '@/api/ncs_customer'
 import Storage from '@/utils/storage'
-import {bindDeviceTransAudio, init485Device, initData, initDeviceList} from '@/api/initialize'
+import {bindDeviceTransAudio, init485Device, initDeviceList} from '@/api/initialize'
 import * as API_Clerk from '@/api/ncs_clerk'
 import * as API_SystemConfig from '@/api/ncs_systemconfig'
 import * as API_Device from '@/api/ncs_device'
 import * as API_Excel from "@/api/ncs_excel";
-import moment from  'moment'
+import moment from 'moment'
 import {SERIAL_TYPE} from "@/utils/enum/SerialTypeEnum";
-import {DEVICE_TYPE} from "@/utils/enum/DeviceTypeEnum";
 import {SERIAL_KEY_TYPE} from "@/utils/enum/SerialKeyTypeEnum";
 import {DEVICE_BUTTON_TYPE} from "@/utils/enum/DeviceButtonTypeEnum";
-import i18n from "@/utils/i18n";
 import * as API_event from "@/api/ncs_event";
-import {getEventListByPartId} from "@/api/ncs_event";
+
 const serverUrl = domain.serverUrl
 const DeviceUrl = domain.DeviceUrl
 export default {
@@ -923,7 +923,18 @@ export default {
       deviceButtonType: DEVICE_BUTTON_TYPE,
       deviceButtonSosTransfer: [{ key : this.$t('tcpType.SOS'), value : 'SOS'}],
       deviceButtonEventTransfer: [],
-      deviceButtonVoiceTransfer: []
+      deviceButtonVoiceTransfer: [],
+      deviceButtonReinforceTransfer: [{ key : this.$t('tcpType.REINFORCE'), value : 'REINFORCE'}],
+      deviceButtonNursingTransfer: [
+        { key : this.$t('zy20240611.MINUTE10'), value : 10 },
+        { key : this.$t('zy20240611.MINUTE15'), value : 15 },
+        { key : this.$t('zy20240611.MINUTE20'), value : 20 },
+        { key : this.$t('zy20240611.MINUTE30'), value : 30 },
+        { key : this.$t('zy20240611.MINUTE45'), value : 45 },
+        { key : this.$t('zy20240611.MINUTE60'), value : 60 },
+        { key : this.$t('zy20240611.MINUTE90'), value : 90 },
+        { key : this.$t('zy20240611.MINUTE120'), value : 120 }
+      ]
     }
   },
   async mounted() {
@@ -1276,7 +1287,8 @@ export default {
     },
     isDeviceButtonDisabled(option, currentIndex) {
       const selectedArr = this.deviceButtonParamsTemp.map(item => item.key)
-      selectedArr.splice(currentIndex, 1)
+      console.log(selectedArr)
+      // selectedArr.splice(currentIndex, 1)
       return selectedArr.includes(option.value)
     },
     paramsTempToStr(paramsTemp) {