| | |
| | | <el-button type="primary" @click="handleAdd('add')"> |
| | | 新增登记 |
| | | </el-button> |
| | | <el-button @click="handleOut">导出</el-button> |
| | | <el-button type="danger" plain @click="handleDelete">删除</el-button> |
| | | <!-- <el-button @click="handleOut">导出</el-button>--> |
| | | <!-- <el-button type="danger" plain @click="handleDelete">删除</el-button>--> |
| | | </div> |
| | | </div> |
| | | <PIMTable |
| | |
| | | :expand-row-keys="expandRowKeys" |
| | | @expand-change="expandChange" |
| | | @selection-change="handleSelectionChange" |
| | | @pagination="changePage" |
| | | > |
| | | <template #expand="{ row }"> |
| | | <ExpandTable ref="expandTableRef" /> |
| | |
| | | pagination, |
| | | getTableData, |
| | | resetFilters, |
| | | onCurrentChange, |
| | | } = usePaginationApi( |
| | | gePurchaseListPage, |
| | | { |
| | |
| | | slot: "expand", |
| | | }, |
| | | { |
| | | label: "采购订单号", |
| | | prop: "purchaseContractNumber", |
| | | width:150 |
| | | }, |
| | | { |
| | | label: "销售合同号", |
| | | prop: "salesContractNo", |
| | | width:150 |
| | | }, |
| | | { |
| | | label: "供应商名称", |
| | | prop: "supplierName", |
| | | width:240 |
| | | }, |
| | | { |
| | | label: "项目名称", |
| | | prop: "projectName", |
| | | width:150 |
| | | }, |
| | | { |
| | | label: "录入人", |
| | | prop: "recorderName", |
| | | }, |
| | | { |
| | | label: "录入日期", |
| | | prop: "entryDate", |
| | | width:100 |
| | | }, |
| | | { |
| | | label: "合同金额(元)", |
| | | prop: "contractAmount", |
| | | width:150, |
| | | formatData: (val) => { |
| | | return val ? parseFloat(val).toFixed(2) : 0; |
| | | }, |
| | |
| | | { |
| | | label: "已开票金额(元)", |
| | | prop: "receiptPaymentAmount", |
| | | width:150, |
| | | formatData: (val) => { |
| | | return val ? parseFloat(val).toFixed(2) : 0; |
| | | }, |
| | |
| | | { |
| | | label: "待开票金额(元)", |
| | | prop: "unReceiptPaymentAmount", |
| | | width:150, |
| | | formatData: (val) => { |
| | | return val ? parseFloat(val).toFixed(2) : 0; |
| | | }, |
| | |
| | | const handleDelete = () => {}; |
| | | |
| | | const expandChange = async (row, expandedRows) => { |
| | | await nextTick(); |
| | | expandTableRef.value.getList(row.id); |
| | | if (expandedRows.length > 0) { |
| | | await nextTick(); |
| | | expandTableRef.value.getList(row.id); |
| | | } |
| | | }; |
| | | |
| | | const changePage = ({ page }) => { |
| | | pagination.currentPage = page; |
| | | onCurrentChange(page); |
| | | }; |
| | | |
| | | onMounted(() => { |