瀏覽代碼

增加跳过房间号和床位号

vothin 2 年之前
父節點
當前提交
5d4a8f1f49
共有 3 個文件被更改,包括 44 次插入6 次删除
  1. 5 1
      languages/en.js
  2. 5 1
      languages/zh-CN.js
  3. 34 4
      src/views/hospitalFrame/frameTreeView.vue

+ 5 - 1
languages/en.js

@@ -233,7 +233,11 @@ module.exports = {
     adminPassword: 'Admin Password',
     inputAdminPassword: 'Please enter the administrator password',
     prefix: 'prefix',
-    prefixExample: 'One building, one unit'
+    prefixExample: 'One building, one unit',
+    skipRoomNo: 'TSkip-the-line room number',
+    skipBedNo: 'Skip-the-line bed number',
+    skipMsg1: 'Enter the numbers, separated by semicolons',
+    skipMsg2: '1,2,3'
   },
   deviceManage: {
     deviceManage: 'Device Management',

+ 5 - 1
languages/zh-CN.js

@@ -234,7 +234,11 @@ module.exports = {
     adminPassword: '管理员密码',
     inputAdminPassword: '请输入管理员密码',
     prefix: '前缀',
-    prefixExample: '一栋一单元'
+    prefixExample: '一栋一单元',
+    skipRoomNo: '需要跳过的房间号',
+    skipBedNo: '需要跳过的床位号',
+    skipMsg1: '输入数字,用分号隔开',
+    skipMsg2: '1,2,3'
   },
   deviceManage: {
     deviceManage: '设备管理',

+ 34 - 4
src/views/hospitalFrame/frameTreeView.vue

@@ -139,17 +139,17 @@
     <!---添加空间结构弹窗 -->
 
     <!---快速创建结构弹窗 -->
-    <el-dialog :title="this.$t('frameManage.quickCreateFrame')" :visible.sync="frameQuickCreateVisible" width="600px">
+    <el-dialog :title="this.$t('frameManage.quickCreateFrame')" :visible.sync="frameQuickCreateVisible" width="620px">
       <el-form ref="createFrameForm" :model="createFrameModel" :rules="createFrameRules" label-width="200px">
         <el-row>
-          <el-col :span="16">
+          <el-col :span="17">
             <!--前缀-->
             <el-form-item :label="this.$t('frameManage.prefix')" prop="prefix">
               <el-input v-model="createFrameModel.prefix" :placeholder="$t('frameManage.prefixExample')" maxlength="10" show-word-limit />
             </el-form-item>
           </el-col>
           <el-col :span="6">
-            <div class="el-form-item__label">
+            <div class="el-form-item__label" style="margin-left: 20px">
               {{ this.$t('frameManage.example') }}:{{ $t('frameManage.prefixExample') }}
             </div>
           </el-col>
@@ -207,6 +207,34 @@
           </el-col>
         </el-row>
 
+        <el-row>
+          <el-col :span="17">
+            <!--需要跳过的房间号-->
+            <el-form-item :label="this.$t('frameManage.skipRoomNo')" prop="skip_room_no">
+              <el-input v-model="createFrameModel.skip_room_no" :placeholder="$t('frameManage.skipMsg1')" clearable :maxlength="20"/>
+            </el-form-item>
+          </el-col>
+          <el-col :span="6">
+            <div class="el-form-item__label" style="margin-left: 20px">
+              {{ this.$t('frameManage.example') }}:{{ $t('frameManage.skipMsg2') }}
+            </div>
+          </el-col>
+        </el-row>
+
+        <el-row>
+          <el-col :span="17">
+            <!--需要跳过的床位号-->
+            <el-form-item :label="this.$t('frameManage.skipBedNo')" prop="skip_bed_no">
+              <el-input v-model="createFrameModel.skip_bed_no" :placeholder="$t('frameManage.skipMsg1')" clearable :maxlength="20"/>
+            </el-form-item>
+          </el-col>
+          <el-col :span="6">
+            <div class="el-form-item__label" style="margin-left: 20px">
+              {{ this.$t('frameManage.example') }}:{{ $t('frameManage.skipMsg2') }}
+            </div>
+          </el-col>
+        </el-row>
+
         <el-form-item>
           <el-button type="primary" class="save" @click="quickCreateSubmit()">{{ this.$t('action.yes') }}</el-button>
         </el-form-item>
@@ -267,7 +295,9 @@ export default {
         room_end_no: 2,
         beds_per_room: 4,
         room_num_bits: 2,
-        bed_num_bits: 2
+        bed_num_bits: 2,
+        skip_room_no: '',
+        skip_bed_no: ''
       },
       bed_num_demo: '01',
       room_num_demo: '01',