qushaowei
2023-08-24 7183ac93ac12e540a17d9e71fd2b04c2610b0a24
qsw 故障报修修改
已添加1个文件
已修改2个文件
218 ■■■■ 文件已修改
src/views/eam/MalfunctionRepair.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/malfunctionRepair/FaultDescriptionList.vue 135 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/malfunctionRepair/MalfunctionRepaireModal.vue 67 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/MalfunctionRepair.vue
@@ -82,7 +82,7 @@
        <!-- :rowSelection="rowSelection" -->
        <!-- :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" -->
        <template
        <!-- <template
          slot="htmlSlot"
          slot-scope="text"
        >
@@ -123,7 +123,7 @@
          >
            ä¸‹è½½
          </a-button>
        </template>
        </template> -->
        <span
          slot="action"
@@ -228,7 +228,7 @@
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import MalfunctionRepairModal from './modules/malfunctionRepair/MalfunctionRepaireModal'
import FaultDescriptionList from './FaultDescriptionList'
import FaultDescriptionList from './modules/malfunctionRepair/FaultDescriptionList'
import ApprovelModal from './modules/malfunctionRepair/ApprovelModal'
export default {
@@ -312,11 +312,11 @@
          align: "center",
          dataIndex: 'faultTime'
        },
        // {
        //   title: '是否停机待修',
        //   align: "center",
        //   dataIndex: 'isStop_dictText',
        // },
        {
          title: '是否停机待修',
          align: "center",
          dataIndex: 'isStopName',
        },
        {
          title: '创建人',
          align: "center",
src/views/eam/modules/malfunctionRepair/FaultDescriptionList.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,135 @@
<template>
  <a-card :bordered="false">
    <a-row
      type="flex"
      :gutter="16"
    >
      <a-col
        :md="12"
        :sm="24"
      >
        <div>
          <a-form-item label="故障或操作过程详情:">
            <a-textarea
              allow-clear
              :disabled="true"
              rows="4"
              v-model="faultDetails"
            ></a-textarea>
          </a-form-item>
        </div>
      </a-col>
    </a-row>
  </a-card>
</template>
<script>
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { deleteAction, getAction, downFile, getFileAccessHttpUrl, httpAction } from '@/api/manage'
export default {
  name: 'FaultDescriptionList',
  mixins: [JeecgListMixin, mixinDevice],
  components: {
  },
  data() {
    return {
      description: '故障描述管理页面',
      labelCol: {
        xs: { span: 24 },
        sm: { span: 5 },
      },
      wrapperCol: {
        xs: { span: 24 },
        sm: { span: 16 },
      },
      // è¡¨å¤´
      columns: [
        {
          title: '#',
          dataIndex: '',
          key: 'rowIndex',
          width: 60,
          align: "center",
          customRender: function (t, r, index) {
            return parseInt(index) + 1;
          }
        },
        {
          title: '故障详情',
          align: "center",
          dataIndex: 'faultDetails'
        },
        // {
        //   title: '故障照片',
        //   align: "center",
        //   dataIndex: 'photo'
        // },
      ],
      url: {
        list: "/eam/faultDescription/list",
      },
      faultId: '',
      faultDetails: '',
      photo: ''
    }
  },
  created() {
  },
  computed: {
  },
  methods: {
    loadData(arg) {
      if (!this.url.list) {
        this.$message.error('请设置url.list属性!')
        return
      }
      //加载数据 è‹¥ä¼ å…¥å‚æ•°1则加载第一页的内容
      if (arg === 1) {
        this.ipagination.current = 1
      }
      var params = this.getQueryParams() //查询条件
      this.loading = true
      getAction(this.url.list, params)
        .then(res => {
          if (res.success) {
            //update-begin---author:zhangyafei    Date:20201118  for:适配不分页的数据列表------------
            this.dataSource = res.result.records
            if (this.dataSource != null && this.dataSource != "") {
              this.faultDetails = this.dataSource[0].faultDetails
              this.photo = this.dataSource[0].photo
            } else {
              this.faultDetails = ""
              this.photo = ""
            }
            if (res.result.total) {
              this.ipagination.total = res.result.total
            } else {
              this.ipagination.total = 0
            }
            //update-end---author:zhangyafei    Date:20201118  for:适配不分页的数据列表------------
          } else {
            this.$message.warning(res.message)
          }
        })
        .finally(() => {
          this.loading = false
        })
    },
  },
  watch: {
    faultId() {
      this.queryParam = {};
      this.queryParam.faultId = this.faultId;
      this.loadData(1);
    },
  }
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>
src/views/eam/modules/malfunctionRepair/MalfunctionRepaireModal.vue
@@ -26,7 +26,7 @@
            </a-form-item>
          </a-col>
          <a-col :span="24/2">
            <!-- <a-form-item
            <a-form-item
              label="是否停机维修"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
@@ -39,7 +39,12 @@
                dictCode="is_stop"
                v-decorator="['isStop', validatorRules.isStop]"
              />
            </a-form-item> -->
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="24/2">
            <a-form-item
              label="设备编码"
              :labelCol="labelCol"
@@ -52,6 +57,22 @@
                @search="onSearchEquipmentList()"
                :read-only="true"
                v-decorator="['equipmentNum', validatorRules.equipmentNum]"
              />
            </a-form-item>
          </a-col>
          <a-col :span="24/2">
            <a-form-item
              label="故障时间"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <j-date
                :disabled="disableSubmit"
                style="width: 100%"
                placeholder="请选择故障时间"
                :showTime="true"
                dateFormat="YYYY-MM-DD HH:mm:ss"
                v-decorator="['faultTime', validatorRules.faultTime]"
              />
            </a-form-item>
          </a-col>
@@ -171,22 +192,7 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="24/2">
            <a-form-item
              label="故障时间"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <j-date
                :disabled="disableSubmit"
                style="width: 100%"
                placeholder="请选择故障时间"
                :showTime="true"
                dateFormat="YYYY-MM-DD HH:mm:ss"
                v-decorator="['faultTime', validatorRules.faultTime]"
              />
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="24/2">
@@ -220,24 +226,13 @@
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
        <!-- <a-row :gutter="24">
          <a-col :span="24/2">
            <a-form-item
              label="故障照片"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <!-- <j-image-upload-self
                :isMultiple="false"
                v-decorator="['photo', {}]"
                @ok="uploadOk"
              >
              </j-image-upload-self> -->
              <!-- <j-image-upload
                :isMultiple="false"
                @ok="uploadOk"
                v-decorator="['photo', {}]"
              /> -->
              <j-image-upload
                :disabled="disableSubmit"
                :isMultiple="true"
@@ -246,7 +241,7 @@
            </a-form-item>
          </a-col>
        </a-row>
        </a-row> -->
      </a-form>
    </a-spin>
@@ -316,11 +311,11 @@
            { required: true, message: '请输入入库单编号!' },
          ]
        },
        // isStop: {
        //   rules: [
        //     { required: true, message: '请选择是否停机!' },
        //   ]
        // },
        isStop: {
          rules: [
            { required: true, message: '请选择是否停机!' },
          ]
        },
        equipmentNum: {
          rules: [
            { required: true, message: '请选择设备!' },