schangxiang@126.com
2024-09-09 56189c90cc03b0dbe38594bec13c378e52bde4ea
yiqi_iwara-scada-web/src/views/main/WorkPieceOutboundRecord/index.vue
@@ -31,7 +31,7 @@
            <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'" />
@@ -60,6 +60,7 @@
<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'
@@ -83,7 +84,9 @@
        sm: { span: 15 }
      },
      advanced: false, // 高级搜索 展开/关闭
      queryParam: {},
      queryParam: {
        dates:[],
      },
      columns: [
      {
            title: '序号',
@@ -162,9 +165,20 @@
      //   scopedSlots: { customRender: 'action' }
      // })
    }
    this.initData();
  },
  methods: {
    moment,
    initData(){
      this.queryParam.dates = [];
      this.queryParam.dates = getThisWeekRange();
    },
        //重置
   resetQueryData(){
      this.queryParam = { dates:[] }
      this.initData();
    },
    /**
     * 查询参数组装
     */