Przeglądaj źródła

设备档案卡修改

cyy 1 tydzień temu
rodzic
commit
d3ffd4838f

+ 3 - 3
src/views/component/device/calibrationCheckRecord.vue

@@ -24,9 +24,9 @@
       <el-table-column prop="sheBeiMingChen" label="设备名称" />
       <el-table-column prop="xiaoZhunYouXia" label="有效期至" />
       <el-table-column prop="zhengShuBianHao" label="证书编号" />
-      <el-table-column prop="xiaoZhunDanWei" label="检定单位" />
-      <el-table-column prop="shiShiRiQi" label="实施日期" />
-      <el-table-column prop="xiaoZhunDianBi" label="修正因子" width="80" />
+      <el-table-column prop="xiaoZhunDanWei" label="检定/校准单位" />
+      <el-table-column prop="shiShiRiQi" label="检定/校准日期" />
+      <el-table-column prop="xiaoZhunDianBiaoZ" label="校准点/标准值等" width="80" />
       <el-table-column prop="fuJian" label="附件" width="260">
         <template slot-scope="{ row }">
           <ibps-attachment

+ 45 - 4
src/views/component/device/deviceDialog.vue

@@ -707,6 +707,31 @@
                             </el-form-item>
                           </el-col>
                         </el-row>
+                        <el-row v-if="form.shiFouWeiHu === '是'">
+                          <el-col>
+                            <el-form-item
+                              label="维护周期(月):"
+                              prop="weiHuZhouQi"
+                            >
+                              <template slot="label">
+                                <span
+                                  :class="
+                                    dynamicRequiredFields ? 'required' : ''
+                                  "
+                                  >维护周期(月):</span
+                                >
+                              </template>
+                              <el-input
+                                v-if="!readonly"
+                                v-model="form.weiHuZhouQi"
+                                size="mini"
+                                type="number"
+                                style="width: 100%"
+                              />
+                              <span v-else>{{ form.weiHuZhouQi || '/' }} </span>
+                            </el-form-item>
+                          </el-col>
+                        </el-row>
                         <el-row>
                           <el-col>
                             <el-form-item label="岗位/分组:">
@@ -837,7 +862,7 @@
                         </el-row>
                         <el-row>
                           <el-col>
-                            <el-form-item label="是否核查:">
+                            <el-form-item label="是否期间核查:">
                               <el-select
                                 v-if="!readonly"
                                 v-model="form.shiFouHeCha"
@@ -1158,7 +1183,7 @@
                         <el-row v-if="form.shiFouXiaoZhun === '是'">
                           <el-col>
                             <el-form-item
-                              label="U/精确度/最大允差:"
+                              label="测量准确度/U:"
                               label-width="140px"
                             >
                               <el-input
@@ -1561,6 +1586,7 @@ export default {
         ziChanYuanZhi: '', // 资产原值
         ziChanBianHao: '', // 固定资产号
         shiFouWeiHu: '', // 是否维护
+        weiHuZhouQi: '', // 维护周期(月)
         jiShenXuHao: '', // 出厂编号
         yanShouRiQi: '', // 验收日期
         huanJingYaoQiu: '', // 环境要求
@@ -1581,7 +1607,7 @@ export default {
         ceLiangGongZuo: '', // 测量范围
         jianDingXiao: '', // 检定/校准参数
         xiuZhengZhiXiu: '', // 修正值
-        zuiDaYunCha: '', // U/精确度/最大允差
+        zuiDaYunCha: '', // 测量准确度/U
         shiWuShuoMing: '', // 校准机构
         fuZeRenDianHua: '', // 负责人电话
         changJiaLianXiRen: '', // 厂家联系人及电话
@@ -1589,7 +1615,7 @@ export default {
         shangCiHeChaRiQi: '', // 上次核查日期
         heChaZhouQi: '', // 核查周期
         heChaCanShu: '', // 核查参数
-        shiFouHeCha: '' // 是否核查
+        shiFouHeCha: '' // 是否期间核查
       },
       rules: {
         sheBeiMingCheng: [
@@ -1641,6 +1667,13 @@ export default {
             trigger: 'blur'
           }
         ],
+        weiHuZhouQi: [
+          {
+            required: false,
+            message: '维护周期(月)不能为空',
+            trigger: 'blur'
+          }
+        ],
         yanShouRiQi: [
           { required: false, message: '验收日期不能为空', trigger: 'blur' }
         ],
@@ -1698,6 +1731,7 @@ export default {
         this.rules.jiShenXuHao[0].required = val
         this.rules.shiFouQiJianH[0].required = val
         this.rules.xiaoZhunZQ[0].required = val
+        this.rules.weiHuZhouQi[0].required = val
         this.rules.yanShouRiQi[0].required = val
         this.rules.qiYongRiQi[0].required = val
         this.rules.yiXiaoRiQi[0].required = val
@@ -1772,6 +1806,13 @@ export default {
           arr.forEach((t) => (this.form[t] = ''))
         }
       }
+    },
+    'form.shiFouWeiHu': {
+      handler(value) {
+        if (value !== '是') {
+          this.form.weiHuZhouQi = ''
+        }
+      }
     }
   },
 

+ 8 - 1
src/views/component/device/index.vue

@@ -195,6 +195,11 @@
                       <div class="item">
                         是否维护:{{ row.shiFouWeiHu || '/' }}
                       </div>
+                      <div class="item">
+                        维护周期:{{
+                          row.weiHuZhouQi ? `${row.weiHuZhouQi}月` : '/'
+                        }}
+                      </div>
                       <div class="item">
                         是否24H开机:{{ row.jianKongYiJu || '/' }}
                       </div>
@@ -808,6 +813,7 @@ export default {
           ? '设备类型(检验系统/通用设备/软件/信息系统)'
           : '设备类型(检测设备/辅助仪器设备/信息系统/环境监测设备)',
         shiFouWeiHu: '是否维护(是/否)',
+        weiHuZhouQi: '维护周期(以月为单位)',
         shiFouXiaoZhun: '是否校准(是/否)',
         weiHuFangShi: '岗位/分组',
         guiGeXingHao: '规格型号',
@@ -834,7 +840,7 @@ export default {
         dianYuanYaoQiu: '电源要求',
         jieShouZhuangTai: '接收时状态(新设备/二手或翻新设备)',
         jianDingXiao: '检定/校准参数',
-        zuiDaYunCha: 'U/精确度/最大允差',
+        zuiDaYunCha: '测量准确度/U',
         zhengShuBianHa: '证书编号',
         xiuZhengZhiXiu: '修正值/修正因子',
         wenDuYingYong: '温度应用修正值',
@@ -925,6 +931,7 @@ export default {
       },
       numberFieldsMap: {
         xiaoZhunZQ: '检定/校准周期(以月为单位)',
+        weiHuZhouQi: '维护周期(以月为单位)',
         heChaZhouQi: '核查周期(以月为单位)',
         heChaXiaoZhun: '使用年限(年)',
         ziChanYuanZhi: '资产原值(元)'

+ 3 - 3
src/views/component/device/repairRecord.vue

@@ -25,9 +25,9 @@
       <el-table-column prop="weiXiuRiQi" label="维修日期" />
       <el-table-column prop="weiXiuDanWei" label="维修单位" />
       <el-table-column prop="weiXiuFeiYong" label="维修费用" />
-      <el-table-column prop="gengHuanBeiJia" label="更换备件" />
-      <el-table-column prop="xiuFuShuoMing" label="维修内容摘要" />
-      <el-table-column prop="yanZhengJieGuo" label="维修结果" />
+      <el-table-column prop="gengHuanBeiJia" label="更换备件登记" />
+      <el-table-column prop="guZhangXianXia" label="设备故障概况" />
+      <el-table-column prop="yanZhengJieGuo" label="验证结果" />
       <el-table-column prop="" label="操作" width="100">
         <template slot-scope="{ row }">
           <el-button