| | |
| | | <a-col :md="colMd" :sm="colSm"> |
| | | <span class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button> |
| | | <a-button style="margin-left: 8px" @click="() => (queryParam = {})">重置</a-button> |
| | | <a-button style="margin-left: 8px" @click="resetQueryData">重置</a-button> |
| | | <!-- <a @click="toggleAdvanced" style="margin-left: 8px"> |
| | | {{ advanced ? '收起' : '展开' }} |
| | | <a-icon :type="advanced ? 'up' : 'down'" /> |
| | |
| | | <script> |
| | | import { STable } from '@/components' |
| | | import moment from 'moment' |
| | | import { downloadFile,getThisWeekRange } from '@/utils/util' |
| | | import { WorkPieceOutboundRecordPage, WorkPieceOutboundRevoke } from '@/api/modular/main/WorkPieceOutboundManage' |
| | | import addForm from './addForm.vue' |
| | | import editForm from './editForm.vue' |
| | |
| | | sm: { span: 15 } |
| | | }, |
| | | advanced: false, // 高级搜索 展开/关闭 |
| | | queryParam: {}, |
| | | queryParam: { |
| | | dates:[], |
| | | }, |
| | | columns: [ |
| | | { |
| | | title: '序号', |
| | |
| | | // scopedSlots: { customRender: 'action' } |
| | | // }) |
| | | } |
| | | this.initData(); |
| | | }, |
| | | methods: { |
| | | moment, |
| | | |
| | | initData(){ |
| | | this.queryParam.dates = []; |
| | | this.queryParam.dates = getThisWeekRange(); |
| | | }, |
| | | //重置 |
| | | resetQueryData(){ |
| | | this.queryParam = { dates:[] } |
| | | this.initData(); |
| | | }, |
| | | /** |
| | | * 查询参数组装 |
| | | */ |