xiangpei
2024-09-04 cf9cdf9ced9a081a852dd09761918471ddc00bb2
过程图返回报备标识
1个文件已修改
14 ■■■■ 已修改文件
src/views/system/work-order/index.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/work-order/index.vue
@@ -274,7 +274,7 @@
    <el-dialog title="过程图" :visible.sync="flowOpen" width="1200px" append-to-body>
      <div>
        <el-steps :active="ywAuditingList.length != 0 ? 3 : ywHandleList.length != 0 ? 2 : 1" :space="500">
          <el-step title="产生工单">
          <el-step :title="getTitle1()">
            <template slot="description">
              <div>
                <div class="row flow-item-x">
@@ -300,7 +300,7 @@
              </div>
            </template>
          </el-step>
          <el-step title="运维处理">
          <el-step :title="getTitle2()">
            <template slot="description">
              <div style="max-height: 450px;overflow-y: scroll">
                <div v-for="(item, index) in ywHandleList" :key="index">
@@ -463,6 +463,8 @@
      },
      ywHandleList: [],
      ywAuditingList: [],
      beforeReportMsg: '',
      afterReportMsg: '',
      reportFormRules: {
        reportContent: [
          { required: true, message: '报备内容不能为空', trigger: 'blur' }
@@ -577,6 +579,12 @@
    this.getList()
  },
  methods: {
    getTitle1() {
      return '产生工单' + (this.beforeReportMsg ? '(' + this.beforeReportMsg + ')' : '')
    },
    getTitle2() {
      return '运维处理' + (this.afterReportMsg ? '(' + this.afterReportMsg + ')' : '')
    },
    openDrawer(item) {
      this.ywData = {
        content: '',
@@ -658,6 +666,8 @@
        if (response.data) {
          this.ywAuditingList = response.data.auditingList
          this.ywHandleList = response.data.ywList
          this.afterReportMsg = response.data.afterReportMsg
          this.beforeReportMsg = response.data.beforeReportMsg
          this.flowOpen = true
        }
      })