| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="colMd" :sm="colSm"> |
| | | <a-form-item label="出库人"> |
| | | <a-input v-model="queryParam.workPieceOutboundUserName" allow-clear placeholder="请输入出库人" /> |
| | | <a-form-item label="入库人"> |
| | | <a-input v-model="queryParam.workPieceOutboundUserName" allow-clear placeholder="请输入入库人" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="colMd" :sm="colSm"> |
| | | <a-form-item label="出库时间"> |
| | | <a-form-item label="入库时间"> |
| | | <a-range-picker style="width:100%" :show-time="{format:'HH:mm'}" v-model="queryParam.dates" format="YYYY-MM-DD HH:mm" /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | <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 { WorkPieceOutboundPage, 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: '序号', |
| | |
| | | // dataIndex: 'workPieceUnLineUserName' |
| | | // }, |
| | | { |
| | | title: '出库时间', |
| | | title: '入库时间', |
| | | align: 'center', |
| | | sorter: true, |
| | | dataIndex: 'workPieceOutboundTime' |
| | | }, |
| | | { |
| | | title: '出库人', |
| | | title: '入库人', |
| | | align: 'center', |
| | | sorter: true, |
| | | dataIndex: 'workPieceOutboundUserName' |
| | |
| | | scopedSlots: { customRender: 'action' } |
| | | }) |
| | | } |
| | | this.initData(); |
| | | }, |
| | | methods: { |
| | | moment, |
| | | initData(){ |
| | | this.queryParam.dates = []; |
| | | this.queryParam.dates = getThisWeekRange(); |
| | | }, |
| | | //重置 |
| | | resetQueryData(){ |
| | | this.queryParam = { dates:[] } |
| | | this.initData(); |
| | | }, |
| | | /** |
| | | * 查询参数组装 |
| | | */ |
| | |
| | | allRevoke() { |
| | | this.$confirm({ |
| | | title: '撤销确认', |
| | | content: '确定撤销选中工件出库信息?', |
| | | content: '确定撤销选中工件入库信息?', |
| | | onOk: () => { |
| | | this.WorkPieceOutboundDelete(this.selectedRows) |
| | | }, |