Kaynağa Gözat

设备档案卡初步调整

cyy 1 ay önce
ebeveyn
işleme
b618d8d964

+ 11 - 13
src/views/component/device/calibrationCheckRecord.vue

@@ -11,28 +11,26 @@
         :index="showIndex"
       />
       <el-table-column
-        prop="bianHaoZhongWe"
+        prop="sheBeiBianHao"
         label="设备编号"
         width="120"
         v-if="!hideSysDeviceNo"
       />
       <el-table-column
-        prop="yuanSheBeiBian"
+        prop="sheBeiBianHao"
         :label="hideSysDeviceNo ? '设备编号' : '原设备编号'"
         width="120"
       />
       <el-table-column prop="sheBeiMingChen" label="设备名称" />
-      <el-table-column prop="sheBeiLeiXing" label="设备类型" width="140" />
-      <el-table-column prop="xingHaoGuiGe" label="型号/规格" />
-      <el-table-column prop="chuChangBianHa" label="有效期至" />
-      <el-table-column prop="zhunQueDu" label="证书编号" />
-      <el-table-column prop="jianDingDanWei" 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="xiuZhengYinZi" label="修正因子" width="80" />
-      <el-table-column prop="beiZhu" label="附件" width="260">
+      <el-table-column prop="xiaoZhunDianBi" label="修正因子" width="80" />
+      <el-table-column prop="fuJian" label="附件" width="260">
         <template slot-scope="{ row }">
           <ibps-attachment
-            v-model="row.beiZhu"
+            v-model="row.fuJian"
             :download="true"
             multiple
             accept="*"
@@ -95,9 +93,9 @@ export default {
       } = await queryCalibrationCheckRecord({
         requestPage: this.requestPage,
         parameters: [
-          { key: 'Q^she_bei_bian_hao_^S', value: this.params.id },
-          { key: 'Q^yuan_she_bei_bian^S', value: this.params.yuanSheBeiBian },
-          { key: 'Q^marks_^S', value: 'record' },
+          { key: 'Q^she_bei_id_^S', value: this.params.id },
+          // { key: 'Q^yuan_she_bei_bian^S', value: this.params.yuanSheBeiBian },
+          // { key: 'Q^marks_^S', value: 'record' },
           { key: 'Q^shi_shi_ri_qi_^SNE', value: 'value' } // 过滤空值 value需有值
         ],
         sorts: [{ field: 'bian_zhi_shi_jian', order: 'desc' }]

+ 11 - 2
src/views/component/device/deviceDialog.vue

@@ -1297,7 +1297,11 @@ export default {
     stateList: {
       type: Object,
       default: function () {
-        return { 正常使用: '正常使用', 暂停使用: '暂停使用', 停止使用: '停止使用' }
+        return {
+          正常使用: '正常使用',
+          暂停使用: '暂停使用',
+          停止使用: '停止使用'
+        }
       }
     },
     hideSysDeviceNo: {
@@ -1600,7 +1604,12 @@ export default {
       return []
     },
     showState() {
-      console.log('this.form.sheBeiZhuangTa', this.form.sheBeiZhuangTa, this.stateList, this.stateList[this.form.sheBeiZhuangTa])
+      console.log(
+        'this.form.sheBeiZhuangTa',
+        this.form.sheBeiZhuangTa,
+        this.stateList,
+        this.stateList[this.form.sheBeiZhuangTa]
+      )
       return (
         this.stateList[this.form.sheBeiZhuangTa] || this.form.sheBeiZhuangTa
       )

+ 24 - 12
src/views/component/device/index.vue

@@ -62,9 +62,7 @@
           </template>
 
           <template slot="deviceStateSlot" slot-scope="{ row }">
-            <span>{{
-              row.sheBeiZhuangTa || ''
-            }}</span>
+            <span>{{ row.sheBeiZhuangTa || '' }}</span>
           </template>
           <template slot="deviceTypeSlot" slot-scope="{ row }">
             <span>{{
@@ -806,7 +804,9 @@ export default {
           ? '设备编号(必填,且不可重复)'
           : '原设备编号(必填,且不可重复)',
         sheBeiZhuangTa: '设备状态(正常使用/暂停使用/停止使用)',
-        sheBeiLeiXing: setting?.system?.isJYB ?  '设备类型(检验系统/通用设备/软件/信息系统)' : '设备类型(检测设备/辅助仪器设备/信息系统/环境监测设备)',
+        sheBeiLeiXing: setting?.system?.isJYB
+          ? '设备类型(检验系统/通用设备/软件/信息系统)'
+          : '设备类型(检测设备/辅助仪器设备/信息系统/环境监测设备)',
         shiFouWeiHu: '是否维护(是/否)',
         shiFouXiaoZhun: '是否校准(是/否)',
         weiHuFangShi: '岗位/分组',
@@ -886,11 +886,19 @@ export default {
       validationRules: {
         设备状态: {
           field: 'sheBeiZhuangTa',
-          range: ['正常使用','暂停使用','停止使用']
+          range: ['正常使用', '暂停使用', '停止使用']
         },
         设备类型: {
           field: 'sheBeiLeiXing',
-          range: ['检验系统', '通用设备', '软件', '信息系统', '检测设备', '辅助仪器设备', '环境监测设备']
+          range: [
+            '检验系统',
+            '通用设备',
+            '软件',
+            '信息系统',
+            '检测设备',
+            '辅助仪器设备',
+            '环境监测设备'
+          ]
         },
         接收时状态: {
           field: 'jieShouZhuangTai',
@@ -942,7 +950,11 @@ export default {
         年保养: this.generateRule(12, `每年第`, `个月`),
         按需保养: ['/']
       },
-      stateList: { 正常使用: '正常使用', 暂停使用: '暂停使用', 停止使用: '停止使用' },
+      stateList: {
+        正常使用: '正常使用',
+        暂停使用: '暂停使用',
+        停止使用: '停止使用'
+      },
       hideSysDeviceNo: false,
       hidefuJianShang: false,
       hasFuZeRenDianHua: false,
@@ -961,7 +973,7 @@ export default {
       tagData: {},
       config: setting?.postJob?.allocation || false,
       projectName: setting?.system?.projectName,
-      isJYB: setting?.system?.isJYB,
+      isJYB: setting?.system?.isJYB
     }
   },
   async mounted() {
@@ -1351,7 +1363,7 @@ export default {
           })
           // 删除后刷新
           await this.getDatas()
-          this.$refs.crud.clearSelection(); // 清空选中状态
+          this.$refs.crud.clearSelection() // 清空选中状态
           this.$message.success('删除成功!')
         })
         .catch(() => {})
@@ -2199,8 +2211,8 @@ export default {
         const item = existDeviceList[index]
         let params = {}
         if (item.id) {
-          if(!this.isJYB){
-            delete item.bianZhiShiJian;  //导入更新时不更新建档时间,病理
+          if (!this.isJYB) {
+            delete item.bianZhiShiJian //导入更新时不更新建档时间,病理
           }
           // 获取设备数据
           const { data: itemData } = await getequipmentCard({ id: item.id })
@@ -2208,7 +2220,7 @@ export default {
         } else {
           params = item // 直接使用当前 item
         }
-        console.log('params',params)
+        console.log('params', params)
         // 将每个 saveEquipmentCard 请求加入到 allRequests 数组中
         allRequests.push(saveEquipmentCard(params))
       }

+ 2 - 0
src/views/component/device/repairRecord.vue

@@ -26,6 +26,8 @@
       <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="" label="操作" width="100">
         <template slot-scope="{ row }">
           <el-button