maven
7 天以前 c15270d076083d0d91c731496070112120d7e5ba
src/views/collaborativeApproval/approvalProcess/index.vue
@@ -11,6 +11,14 @@
            clearable
            :prefix-icon="Search"
        />
        <span class="search_title ml10">审批状态:</span>
            <el-select v-model="searchForm.approveStatus" clearable @change="handleQuery" style="width: 240px">
               <el-option label="待审核" :value="0" />
               <el-option label="审核中" :value="1" />
               <el-option label="审核完成" :value="2" />
               <el-option label="审核未通过" :value="3" />
               <el-option label="已重新提交" :value="4" />
            </el-select>
        <el-button type="primary" @click="handleQuery" style="margin-left: 10px"
        >搜索</el-button
        >
@@ -36,10 +44,12 @@
    </div>
    <info-form-dia ref="infoFormDia" @close="handleQuery"></info-form-dia>
    <approval-dia ref="approvalDia" @close="handleQuery"></approval-dia>
    <FileList ref="fileListRef" />
  </div>
</template>
<script setup>
import FileList from "./fileList.vue";
import { Search } from "@element-plus/icons-vue";
import {onMounted, ref} from "vue";
import {ElMessageBox} from "element-plus";
@@ -53,6 +63,7 @@
const data = reactive({
  searchForm: {
      approveId: "",
      approveStatus: "",
  },
});
const { searchForm } = toRefs(data);
@@ -107,11 +118,12 @@
  {
    label: "申请人",
    prop: "approveUserName",
    width: 120
  },
  {
    label: "申请日期",
    prop: "approveTime",
      width: 120
      width: 200
  },
  {
    label: "结束日期",
@@ -128,7 +140,7 @@
    label: "操作",
    align: "center",
    fixed: "right",
    width: 150,
    width: 230,
    operation: [
      {
        name: "编辑",
@@ -153,6 +165,13 @@
          openApprovalDia('view', row);
        },
      },
      {
        name: "附件",
        type: "text",
        clickFun: (row) => {
          downLoadFile(row);
        },
      },
    ],
  },
]);
@@ -174,6 +193,11 @@
  page.current = 1;
  getList();
};
const fileListRef = ref(null)
const downLoadFile = (row) => {
  fileListRef.value.open(row.commonFileList)
}
const pagination = (obj) => {
  page.current = obj.page;
  page.size = obj.limit;