Browse Source

task-7015 新增模块:员工个人健康档案

tianxinyu 15 giờ trước cách đây
mục cha
commit
7fb511d402

+ 23 - 1
src/views/component/personnelFile/components/modulesTag.vue

@@ -425,6 +425,24 @@
           @changeBaseData="changeBaseData"
         />
       </el-tab-pane>
+      <el-tab-pane
+        v-if="judgeTag('yggrjkda')"
+        :label="judgeTagName('yggrjkda')"
+        name="yggrjkda"
+        class="tabPane"
+      >
+        <public-list
+          ref="yggrjkda"
+          class="paneAll"
+          :plane-data="judgeDataAll('yggrjkda')"
+          :tab-name="'yggrjkda'"
+          :button-type="buttonType"
+          :btn-show="btnShow"
+          :btn-type="btnType"
+          @changeButtonShow="changeButtonShow"
+          @changeBaseData="changeBaseData"
+        />
+      </el-tab-pane>
     </el-tabs>
   </div>
 </template>
@@ -579,6 +597,9 @@ export default {
         case 'tjbgb':
           this.handleClickRY({ name: 'tjbgb' })
           break
+        case 'yggrjkda':
+          this.handleClickRY({ name: 'yggrjkda' })
+          break
         default:
           break
       }
@@ -592,7 +613,8 @@ export default {
         'lhpxsqb',
         'kaoshijilu',
         'tjbgb',
-        'lhryjdjlb'
+        'lhryjdjlb',
+        'yggrjkda'
       ]
       arr.forEach((item) => {
         if (

+ 95 - 1
src/views/component/personnelFile/constants/simulated.js

@@ -435,7 +435,8 @@ export function correlationSql(type, val) {
     lhpxsqb: 'blrydwbpxtabcx',
     kaoshijilu: 'blrydakstabcx',
     tjbgb: 'blrydasjcx',
-    lhryjdjlb: 'blrydajdtabcx'
+    lhryjdjlb: 'blrydajdtabcx',
+    yggrjkda: 'blrydaygjkdasztabcx'
   }
   if (
     type === 'jyrykhjlb' ||
@@ -460,6 +461,9 @@ export function correlationSql(type, val) {
     // sql = `select * from t_${type} where FIND_IN_SET('${val}',${col[type]})`
     parm.key = colKey[type]
     parm.params = [val]
+  } else if (type === 'yggrjkda'){
+    parm.key = colKey[type]
+    parm.params = [val]
   }
   return parm
 }
@@ -894,6 +898,96 @@ export const correlationConfig = {
       ],
       [{ name: '附件', field: 'fu_jian_', type: 'file' }]
     ]
+  },
+  yggrjkda: {
+    config: [
+      {
+        label: '健康状况',
+        width: '20%',
+        type: 'text',
+        field: 'jian_kang_zhuang_'
+      },
+      {
+        label: '辨色力',
+        width: '30%',
+        type: 'text',
+        field: 'bian_se_li_'
+      },
+      {
+        label: '血型',
+        width: '20%',
+        type: 'text',
+        field: 'xie_xing_'
+      },
+      {
+        label: '预防接种史',
+        width: '30%',
+        type: 'text',
+        field: 'yu_fang_jie_zhong'
+      },
+      {
+        label: '体检日期',
+        width: '20%',
+        type: 'text',
+        field: 'ti_jian_ri_qi_'
+      },
+      {
+        label: '体检单位',
+        width: '30%',
+        type: 'text',
+        field: 'ti_jian_dan_wei_'
+      },
+      {
+        label: '体检项目',
+        width: '20%',
+        type: 'text',
+        field: 'ti_jian_xiang_mu_'
+      },
+      {
+        label: '体检结果',
+        width: '30%',
+        type: 'text',
+        field: 'ti_jian_jie_guo_'
+      },
+      {
+        label: '采取措施',
+        width: '20%',
+        type: 'text',
+        field: 'cai_qu_cuo_shi_'
+      },
+      {
+        label: '备注',
+        width: '30%',
+        type: 'text',
+        field: 'bei_zhu_'
+      },
+      { label: '附件', width: '40%', type: 'file', field: 'fu_jian_' }
+    ],
+    dialog: [
+      [
+        { name: '健康状况', field: 'jian_kang_zhuang_', type: 'text' },
+        { name: '辨色力', field: 'bian_se_li_', type: 'text' }
+      ],
+      [
+        { name: '血型', field: 'xie_xing_', type: 'text' },
+        { name: '预防接种史', field: 'yu_fang_jie_zhong', type: 'text' }
+      ],
+      [
+        { name: '体检日期', field: 'ti_jian_ri_qi_', type: 'text' },
+        { name: '体检单位', field: 'ti_jian_dan_wei_', type: 'text' }
+      ],
+      [
+        { name: '体检项目', field: 'ti_jian_xiang_mu_', type: 'text' },
+        { name: '体检结果', field: 'ti_jian_jie_guo_', type: 'text' }
+      ],
+      [
+        { name: '采取措施', field: 'cai_qu_cuo_shi_', type: 'text' },
+        { name: '备注', field: 'bei_zhu_', type: 'text' }   // ← 见下方说明
+      ],
+      [
+        { name: '附件', field: 'fu_jian_', type: 'file' }
+      ]
+    ]
   }
 }
 export default {