调整设备台账灭火器和操作系统选择方式以及灭火器有效期和系统的限制条件
已修改2个文件
46 ■■■■ 文件已修改
src/views/eam/equipment/EamEquipmentLedger.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/equipment/modules/EamEquipmentModal.vue 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/equipment/EamEquipmentLedger.vue
@@ -121,7 +121,12 @@
        <!--操作系统-->
        <template slot="operationSystem" slot-scope="text">
          <a-switch checked-children="是" un-checked-children="否" :checked="+text" disabled/>
          <a-switch checked-children="是" un-checked-children="否" :checked="Boolean(+text)" disabled/>
        </template>
        <!--操作系统-->
        <template slot="fireExtinguisher" slot-scope="text">
          <a-switch checked-children="是" un-checked-children="否" :checked="Boolean(+text)" disabled/>
        </template>
        <!--资产制造商-->
@@ -306,7 +311,8 @@
          {
            title: '灭火器',
            align: 'center',
            dataIndex: 'fireExtinguisher'
            dataIndex: 'fireExtinguisher',
            scopedSlots: { customRender: 'fireExtinguisher' }
          },
          {
            title: '灭火器有效期',
@@ -337,7 +343,7 @@
          {
            title: '重量',
            align: 'center',
            dataIndex: 'weightUnit'
            dataIndex: 'equipmentWeight'
          },
          {
            title: '重量计量单位',
src/views/eam/equipment/modules/EamEquipmentModal.vue
@@ -52,23 +52,10 @@
                  </a-form-model-item>
                </a-col>
                <a-col :span="customSpan">
                  <a-form-model-item label="质保开始日期">
                    <a-date-picker v-model="model.warrantyStartDate" value-format="YYYY-MM-DD" style="width:100%"/>
                  </a-form-model-item>
                </a-col>
                <a-col :span="customSpan">
                  <a-form-model-item label="质保结束日期">
                    <a-date-picker v-model="model.warrantyEndDate" value-format="YYYY-MM-DD" style="width:100%"/>
                  </a-form-model-item>
                </a-col>
                <a-col :span="customSpan">
                  <a-form-model-item label="ABC标识">
                    <j-dict-select-tag dict-code="abc_flag" placeholder="请选择ABC标识" v-model="model.abcFlag"/>
                  </a-form-model-item>
                </a-col>
              </a-row>
              <a-row>
                <a-col :span="customSpan">
                  <a-form-model-item prop="repairDepartOrgCode" label="维修班组">
                    <a-input placeholder="请选择维修班组" v-model="model.repairDepartOrgCode"/>
@@ -89,13 +76,13 @@
                </a-col>
                <a-col :span="customSpan">
                  <a-form-model-item label="灭火器">
                    <a-input placeholder="请输入灭火器" v-model="model.fireExtinguisher"/>
                    <j-dict-select-tag dict-code="yn" type="radio" v-model="model.fireExtinguisher"/>
                  </a-form-model-item>
                </a-col>
                <a-col :span="customSpan">
                  <a-form-model-item label="灭火器有效期">
                    <a-date-picker v-model="model.fireExtinguisherExpirationDate" value-format="YYYY-MM-DD"
                                   style="width:100%"/>
                    <a-input :disabled="!Boolean(+model.fireExtinguisher)"
                             v-model="model.fireExtinguisherExpirationDate" placeholder="请输入灭火器有效期"/>
                  </a-form-model-item>
                </a-col>
                <a-col :span="customSpan">
@@ -108,7 +95,7 @@
              <a-row>
                <a-col :span="customSpan">
                  <a-form-model-item label="系统">
                    <a-input placeholder="请输入系统" v-model="model.system"/>
                    <a-input placeholder="请输入系统" :disabled="Boolean(+model.operationSystem)" v-model="model.system"/>
                  </a-form-model-item>
                </a-col>
                <a-col :span="customSpan">
@@ -118,7 +105,8 @@
                </a-col>
                <a-col :span="customSpan">
                  <a-form-model-item label="坐标数量">
                    <a-input-number placeholder="请输入坐标数量" v-model="model.coordinateNum" :min="0" style="width: 100%"/>
                    <a-input-number placeholder="请输入坐标数量" v-model="model.coordinateNum" :min="0" :max="12"
                                    style="width: 100%"/>
                  </a-form-model-item>
                </a-col>
                <a-col :span="customSpan">
@@ -199,8 +187,9 @@
              <a-row>
                <a-col :span="customSpan">
                  <a-form-model-item label="总功率">
                    <a-input placeholder="请输入总功率" v-model="model.equipmentPower"/>
                  <a-form-model-item label="总功率(KW)">
                    <a-input-number placeholder="请输入总功率(KW)" v-model="model.equipmentPower" :min="0"
                                    style="width: 100%"/>
                  </a-form-model-item>
                </a-col>
                <a-col :span="customSpan">
@@ -361,7 +350,10 @@
      add() {
        this.editable = false
        //初始化默认值
        this.model = {}
        this.model = {
          operationSystem: 1,
          fireExtinguisher: 0
        }
        this.visible = true
      },