| | |
| | | } |
| | | |
| | | const handleExport = async (intl) => { |
| | | postBlob('/api/mat/export', {}).then(result => { |
| | | postBlob('/api/mat/export', { |
| | | condition: searchInput.value, |
| | | _param: searchParam.value, |
| | | }).then(result => { |
| | | const blob = new Blob([result.data], {type: 'application/vnd.ms-excel'}); |
| | | window.location.href = window.URL.createObjectURL(blob); |
| | | return true; |
| | |
| | | <EditView ref="editChild" @tableReload="handleTableReload"/> |
| | | <div class="table-header"> |
| | | <div> |
| | | <a-input v-model:value="searchParam.matnr" |
| | | :placeholder="formatMessage('page.mat.matnr.input', '请输入商品编号')" |
| | | <a-input v-model:value="searchParam.matnr" :placeholder="formatMessage('page.mat.matnr.input', '请输入商品编号')" |
| | | style="width: 140px;margin-right: 10px;"/> |
| | | <a-input v-model:value="searchParam.maktx" |
| | | :placeholder="formatMessage('page.mat.matnr.input', '请输入商品名称')" |
| | | <a-input v-model:value="searchParam.maktx" :placeholder="formatMessage('page.mat.matnr.input', '请输入商品名称')" |
| | | style="width: 140px;margin-right: 10px;"/> |
| | | <a-input v-model:value="searchParam.specs" :placeholder="formatMessage('page.mat.matnr.input', '请输入规格')" |
| | | style="width: 140px;margin-right: 10px;"/> |
| | |
| | | <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }" |
| | | :data-source="tableData.records" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id" |
| | | :pagination="{ total: tableData.total, showTotal: showTotalPage, onChange: onPageChange }" |
| | | :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="state.columns" |
| | | @resizeColumn="handleResizeColumn" |
| | | :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="state.columns" @resizeColumn="handleResizeColumn" |
| | | :loading="state.loading"> |
| | | <template #bodyCell="{ column, text, record }"> |
| | | <template v-if="column.dataIndex === 'oper'"> |