| | |
| | |
|
| | | const state = reactive({
|
| | | selectedRowKeys: [],
|
| | | orderType: 1,
|
| | | loading: false,
|
| | | });
|
| | |
|
| | |
| | | post('/api/orderLog/page', {
|
| | | current: currentPage,
|
| | | pageSize: pageSize,
|
| | | orderType: state.orderType,
|
| | | condition: searchInput.value
|
| | | }).then((resp) => {
|
| | | let result = resp.data;
|
| | |
| | | <div>
|
| | | <EditView ref="editChild" @tableReload="handleTableReload" />
|
| | | <div class="table-header">
|
| | | <div>
|
| | | <a-select v-model:value="state.orderType" :placeholder="formatMessage('page.locDetl.orderNo.input', '请选择单据类型')"
|
| | | :options="[
|
| | | { label: '手动入库单', value: 1 }, { label: '手动出库单', value: 2 },]" style="width: 160px;margin: 0 10px;">
|
| | | </a-select>
|
| | | <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')"
|
| | | style="width: 200px;" @search="onSearch" />
|
| | | style="width: 200px;margin: 0 10px;" @search="onSearch" />
|
| | | </div>
|
| | | <div class="table-header-right">
|
| | | <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '添加') }}</a-button>
|
| | | <a-button @click="handleExport">{{ formatMessage('page.export', '导出') }}</a-button>
|
| | |
| | | <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
|
| | | :data-source="tableData.records" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id"
|
| | | :pagination="{ total: tableData.total, onChange: onPageChange }"
|
| | | :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns" @resizeColumn="handleResizeColumn" :loading="state.loading">
|
| | | :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns" @resizeColumn="handleResizeColumn"
|
| | | :loading="state.loading">
|
| | | <template #bodyCell="{ column, text, record }">
|
| | | <template v-if="column.dataIndex === 'oper'">
|
| | | <div style="display: flex;justify-content: space-evenly;">
|