loulijun2021
2022-07-11 9b825939b7f0a7439d704b379812362dd95697fc
src/views/wlgl/kwdy.vue
@@ -23,7 +23,13 @@
              <el-input v-model="form.createuser" style="width: 200px" placeholder="请输入" />
            </el-form-item>
            <el-form-item label="所属仓库" style=" display: flex;">
              <el-select v-model="form.stockcode" :popper-append-to-body="false" style="width: 200px" placeholder="请选择">
              <el-select
                v-model="form.stockcode"
                :popper-append-to-body="false"
                style="width: 200px"
                placeholder="请选择"
                @focus="getWareHouseSelect"
              >
                <el-option
                  v-for="item in stockArr"
                  :key="item.code"
@@ -50,7 +56,7 @@
          :data="tableData"
          border
          stripe
          :height="tableHeight"
          :height="tableHeight+'px'"
          :style="{width: 100+'%',height:tableHeight+'px',}"
          highlight-current-row
          :header-cell-style="this.$headerCellStyle"
@@ -140,12 +146,14 @@
        <el-form-item label="所属库位" prop="stockcode">
          <el-select
            v-model="dialogForm.stockcode"
            filterable
            :popper-append-to-body="false"
            style="width: 200px"
            placeholder="请选择"
            @focus="getWareHouseSelect2"
          >
            <el-option
              v-for="item in stockArr"
              v-for="item in stockArr2"
              :key="item.code"
              :label="item.name"
              :value="item.code"
@@ -204,6 +212,7 @@
      },
      total: 10,
      stockArr: [], // 所属仓库数组
      stockArr2: [], // 所属仓库数组对话框
      tableData: [],
      dialogVisible: false,
      dialogForm: {
@@ -231,7 +240,7 @@
  },
  created() {
    this.getStorageDefSearch()
    this.getWareHouseSelect()
    // this.getWareHouseSelect()
  },
  mounted() {
    window.addEventListener('resize', this.getHeight)
@@ -247,6 +256,11 @@
      const { data: res } = await WareHouseSelect()
      this.stockArr = res
    },
    // 对话框中的
    async getWareHouseSelect2() {
      const { data: res } = await WareHouseSelect()
      this.stockArr2 = res
    },
    // 排序改变时
    sortChange({ column, prop, order }) {
      if (order === 'descending') {