schangxiang@126.com
2024-09-09 56189c90cc03b0dbe38594bec13c378e52bde4ea
yiqi_iwara-scada-web/src/views/main/WorkPieceOutbound/index.vue
@@ -15,12 +15,12 @@
              </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>
@@ -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'" />
@@ -74,6 +74,7 @@
<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'
@@ -97,7 +98,9 @@
        sm: { span: 15 }
      },
      advanced: false, // 高级搜索 展开/关闭
      queryParam: {},
      queryParam: {
        dates:[],
      },
      columns: [
      {
            title: '序号',
@@ -144,13 +147,13 @@
        //   dataIndex: 'workPieceUnLineUserName'
        // },
        {
          title: '出库时间',
          title: '入库时间',
          align: 'center',
          sorter: true,
          dataIndex: 'workPieceOutboundTime'
        },
        {
          title: '出库人',
          title: '入库人',
          align: 'center',
          sorter: true,
          dataIndex: 'workPieceOutboundUserName'
@@ -176,9 +179,19 @@
        scopedSlots: { customRender: 'action' }
      })
    }
    this.initData();
  },
  methods: {
    moment,
    initData(){
      this.queryParam.dates = [];
      this.queryParam.dates = getThisWeekRange();
    },
        //重置
  resetQueryData(){
      this.queryParam = { dates:[] }
      this.initData();
    },
    /**
     * 查询参数组装
     */
@@ -208,7 +221,7 @@
    allRevoke() {
      this.$confirm({
        title: '撤销确认',
        content: '确定撤销选中工件出库信息?',
        content: '确定撤销选中工件入库信息?',
        onOk: () => {
          this.WorkPieceOutboundDelete(this.selectedRows)
        },