<template>
    <div>
        <el-dialog
          title="高级查询"
          :visible="moreQueryVisible"
          @close="close"
          width="66%">
          <el-form
            inline
            ref="queryForm"
            label-position="top"
            :model="formData">
            <el-form-item
              label="预配ID"
              prop="preallocId">
              <el-input v-model="formData.preallocId"></el-input>
            </el-form-item>
            <el-form-item
              label="出库单号"
              prop="soNo">
              <el-input v-model="formData.soNo"></el-input>
            </el-form-item>
            <el-form-item
              label="出库单行号"
              prop="lineNo">
              <el-input v-model="formData.lineNo"></el-input>
            </el-form-item>
            <el-form-item
              label="订单波次单号"
              prop="waveNo">
              <el-input v-model="formData.waveNo"></el-input>
            </el-form-item>
          </el-form>
          <div class="more-query-btn">
            <el-button v-auth="50910080103" type="primary" @click="submitForm">查询</el-button>
            <el-button v-auth="50910080104" @click="resetForm('queryForm')">重置</el-button>
          </div>
        </el-dialog>
    </div>
</template>
<script>
export default {
  data () {
    return {
      formData: {}
    }
  },
  mounted () {
  },
  props: {
    moreQueryVisible: Boolean,
  },
  methods: {

    // 关闭弹窗
    close () {
      this.$emit('close')
    },

    // 提交表单
    submitForm () {
      this.$emit('toGetList', this.formData)
      this.$refs['queryForm'].resetFields()
    },

    // 重置表单
    resetForm () {
      this.$refs['queryForm'].resetFields()
    },

  }
}
</script>
