| | |
| | | <div class="table_list"> |
| | | <PIMTable |
| | | rowKey="id" |
| | | :column="tableColumn" |
| | | :column="tableColumnCopy" |
| | | :tableData="tableData" |
| | | :page="page" |
| | | :isSelection="true" |
| | |
| | | <script setup> |
| | | import FileList from "./fileList.vue"; |
| | | import { Search } from "@element-plus/icons-vue"; |
| | | import {onMounted, ref} from "vue"; |
| | | import {onMounted, ref, computed} from "vue"; |
| | | import {ElMessageBox} from "element-plus"; |
| | | import InfoFormDia from "@/views/collaborativeApproval/approvalProcess/components/infoFormDia.vue"; |
| | | import ApprovalDia from "@/views/collaborativeApproval/approvalProcess/components/approvalDia.vue"; |
| | |
| | | }, |
| | | }); |
| | | const { searchForm } = toRefs(data); |
| | | const tableColumnCopy = computed(()=>{ |
| | | if(!tableColumn.value||!tableColumn.value.length){ |
| | | return [] |
| | | } |
| | | let tabIndex = -1; |
| | | tableColumn.value.map((item,_index) => { |
| | | if(props.approveType != 4&&item.prop == 'price'){ |
| | | tabIndex = _index |
| | | } |
| | | }) |
| | | if(tabIndex != -1){ |
| | | tableColumn.value.splice(tabIndex, 1) |
| | | return tableColumn.value |
| | | }else{ |
| | | return tableColumn.value |
| | | } |
| | | }) |
| | | const tableColumn = ref([ |
| | | { |
| | | label: "审批状态", |