gaoluyang
2025-03-11 ed537a5c6553973997f5c4849c262cef30635b38
src/views/CNAS/resourceDemand/device/component/management.vue
@@ -268,7 +268,7 @@
        <el-col :span="7">
          <el-form :label-position="labelPosition" :model="formData2" label-width="120px" ref="ruleForm">
            <!-- 实验室列表 -->
            <el-form-item label="所属部门:">
            <el-form-item label="所属部门:" required>
              <el-select v-model="formData2.subordinateDepartmentsId" placeholder="请选择" size="small"
                         style="width:100%">
                <el-option v-for="item in subordinateDepartmentsList" :key="item.value"
@@ -421,11 +421,9 @@
         labelPosition: 'right',
         dialogVisible: false,
         dialogVisible2: false,
         addPower: false,
         showData: false, // 数采配置页面
         tableList: [],
         addDia: true,
         addPower: true,
         //设备类型列表
         equipmentList: [],
         // 负责人列表
@@ -445,7 +443,7 @@
         queryParams: {},
         tableData: [],
         column: [
            { label: "设备名称", prop: "deviceName", dataType: 'link', linkMethod: 'selectAllByOne' },
            { label: "设备名称", prop: "deviceName", dataType: 'link', linkMethod: 'selectAllByOne', width: 120 },
            { label: "设备名称EN", prop: "enDeviceName" },
            {
               label: "规格型号",
@@ -469,10 +467,18 @@
            {
               label: "设备分类", prop: "largeCategory", dataType: "tag",
               formatData: (params) => {
                  return this.equipmentList.find(m => m.value == params).label
            if (this.equipmentList.find(m => m.value == params)) {
              return this.equipmentList.find(m => m.value == params).label
            } else {
              return null
            }
               },
               formatType: (params) => {
                  return this.equipmentList.find(m => m.value == params).type
            if (this.equipmentList.find(m => m.value == params)) {
              return this.equipmentList.find(m => m.value == params).type
            } else {
              return null
            }
               }
            },
            { label: "单价", prop: "unitPrice" },
@@ -821,6 +827,10 @@
            this.$message.error('输入校准周期(月)')
            return
         }
         if (!this.formData2.subordinateDepartmentsId) {
            this.$message.error('请选择所属部门')
            return
         }
         const formData = this.HaveJson(this.formData2)
         formData.insProductIds = formData.insProductIds ? formData.insProductIds.join() : ''
         if (formData.authorizedPerson.length === 0) {