“linengliang”
2023-09-28 c0b0bb462de82e0fd7bb700ab8bb91a79af70798
src/views/eam/modules/equipmentNew/EquipmentModal.vue
@@ -111,26 +111,6 @@
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="设备图片"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="equipmentPhoto"
            >
              <j-image-upload
                :isMultiple="false"
                v-model="model.equipmentPhoto"
              ></j-image-upload>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-divider
            orientation="center"
            style="font-size: large;font-style: italic;color: #66aeed;"
          >维护及使用信息</a-divider>
          <a-col :span="6">
            <a-form-model-item
              label="使用部门"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
@@ -164,6 +144,27 @@
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="6">
            <a-form-model-item
              label="设备图片"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="equipmentPhoto"
            >
              <j-image-upload
                :isMultiple="false"
                v-model="model.equipmentPhoto"
              ></j-image-upload>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-divider
            orientation="center"
            style="font-size: large;font-style: italic;color: #f20707;"
          >维护及使用信息</a-divider>
          <a-col :span="6">
            <a-form-model-item
              label="维修部门"
@@ -199,7 +200,161 @@
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="ABC标识"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="equipmentImportanceId"
            >
              <j-dict-select-tag
                allow-clear
                :disabled="formDisabled"
                placeholder="请选择ABC标识"
                :triggerChange="true"
                dictCode="ABC-standard-result"
                @change="changeNeedSpecific"
                v-model="model.equipmentImportanceId"
              />
            </a-form-model-item>
          </a-col>
          <a-col
            :span="6"
            v-if="needSpecific"
          >
            <a-form-model-item
              label="关键设备标识"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="specificEquipment"
            >
              <j-dict-select-tag
                allow-clear
                placeholder="请选择关键设备标识"
                :disabled="formDisabled"
                :triggerChange="true"
                dictCode="specific_equipment"
                v-model="model.specificEquipment"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="6">
            <a-form-model-item
              label="安全配置"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="securityConfiguration"
            >
              <a-input
                v-model="model.securityConfiguration"
                :disabled="formDisabled"
                placeholder="请输入安全配置"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="冷却系统"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="coolingSystem"
            >
              <a-input
                v-model="model.coolingSystem"
                :disabled="formDisabled"
                placeholder="请输入冷却系统"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="灭火器"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="fireExtinguisher"
            >
              <a-input
                v-model="model.fireExtinguisher"
                :disabled="formDisabled"
                placeholder="请输入灭火器"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="灭火器有效期"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="fireExtinguisherValidityPeriod"
            >
              <a-input
                v-model="model.fireExtinguisherValidityPeriod"
                :disabled="formDisabled"
                placeholder="请输入灭火器有效期"
              ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="6">
            <a-form-model-item
              label="操作系统"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="operatingSystem"
            >
              <a-input
                v-model="model.operatingSystem"
                :disabled="formDisabled"
                placeholder="请输入操作系统"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="系统"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="system"
            >
              <a-input
                v-model="model.system"
                :disabled="formDisabled"
                placeholder="请输入系统"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="端口"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="port"
            >
              <a-input
                v-model="model.port"
                :disabled="formDisabled"
                placeholder="请输入端口"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
              <a-form-model-item
                label="坐标数量"
                :labelCol="labelCol"
                :wrapperCol="wrapperCol"
                prop="coordinateNum"
              >
              <a-input-number
                v-model="model.coordinateNum"
                :disabled="formDisabled"
                placeholder="请输入坐标数量"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <!-- <a-col :span="6">
@@ -455,8 +610,6 @@
              ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="6">
            <a-form-model-item
              label="功能位置"
@@ -471,6 +624,8 @@
              ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="6">
            <a-form-model-item
              label="资金来源"
@@ -485,7 +640,6 @@
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="资产来源国家"
@@ -502,121 +656,6 @@
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="安全配置"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="securityConfiguration"
            >
              <a-input
                v-model="model.securityConfiguration"
                :disabled="formDisabled"
                placeholder="请输入安全配置"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="冷却系统"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="coolingSystem"
            >
              <a-input
                v-model="model.coolingSystem"
                :disabled="formDisabled"
                placeholder="请输入冷却系统"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="灭火器"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="fireExtinguisher"
            >
              <a-input
                v-model="model.fireExtinguisher"
                :disabled="formDisabled"
                placeholder="请输入灭火器"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="灭火器有效期"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="fireExtinguisherValidityPeriod"
            >
              <a-input
                v-model="model.fireExtinguisherValidityPeriod"
                :disabled="formDisabled"
                placeholder="请输入灭火器有效期"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="操作系统"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="operatingSystem"
            >
              <a-input
                v-model="model.operatingSystem"
                :disabled="formDisabled"
                placeholder="请输入操作系统"
              ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="6">
            <a-form-model-item
              label="系统"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="system"
            >
              <a-input
                v-model="model.system"
                :disabled="formDisabled"
                placeholder="请输入系统"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="端口"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="port"
            >
              <a-input
                v-model="model.port"
                :disabled="formDisabled"
                placeholder="请输入端口"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="坐标数量"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="coordinateNum"
            >
              <a-input-number
                v-model="model.coordinateNum"
                :disabled="formDisabled"
                placeholder="请输入坐标数量"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="备注"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
@@ -629,12 +668,8 @@
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-divider
            orientation="center"
            style="font-size: large;font-style: italic;color: #66aeed;"
          >ABC标识</a-divider>
        </a-row>
        <a-row>
          </a-row>
          <a-row hidden>
          <a-col :span="6">
            <a-form-model-item
              label="平均使用率"
@@ -653,6 +688,8 @@
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row hidden>
          <a-col :span="6">
            <a-form-model-item
              label="可替换性"
@@ -707,26 +744,6 @@
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="6">
            <a-form-model-item
              label="故障频率"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="standardE"
            >
              <j-dict-select-tag
                allow-clear
                placeholder="请选择故障频率"
                :disabled="formDisabled"
                :triggerChange="true"
                dictCode="ABC-standardE"
                @change="standardResultCompute"
                v-model="model.standardE"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="设备价值"
@@ -742,44 +759,6 @@
                dictCode="ABC-standardF"
                v-model="model.standardF"
                @change="standardResultCompute"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item
              label="ABC标识"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="equipmentImportanceId"
            >
              <j-dict-select-tag
                allow-clear
                :disabled="formDisabled"
                placeholder="请选择ABC标识"
                :triggerChange="true"
                dictCode="ABC-standard-result"
                @change="changeNeedSpecific"
                v-model="model.equipmentImportanceId"
              />
            </a-form-model-item>
          </a-col>
          <a-col
            :span="6"
            v-if="needSpecific"
          >
            <a-form-model-item
              label="关键设备标识"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="specificEquipment"
            >
              <j-dict-select-tag
                allow-clear
                placeholder="请选择关键设备标识"
                :disabled="formDisabled"
                :triggerChange="true"
                dictCode="specific_equipment"
                v-model="model.specificEquipment"
              />
            </a-form-model-item>
          </a-col>