src/views/basic/gyWarehouse/gyWarehouse.vue
@@ -308,12 +308,12 @@
          >隐藏列设置</el-button
        >
      </el-col>
      <el-col :span="1.5">
      <el-col :span="1.5" class="zy-hidden">
        <el-button type="primary" icon="el-icon-help" size="mini" @click="handleSearch"
          >搜 索</el-button
        >
      </el-col>
      <el-col :span="1.5">
      <el-col :span="1.5" class="zy-hidden">
        <el-button type="primary" icon="el-icon-refresh" size="mini" @click="resetQuery"
          >重 置</el-button
        >
@@ -363,8 +363,8 @@
                <el-button
                  type="text"
                  @click="handleEdit(row, (OperationType = 3))"
                  v-else-if="column.property == '单据号'"
                  >{{ row.单据号 }}</el-button
                  v-else-if="column.property == '仓库代码'"
                  >{{ row.仓库代码 }}</el-button
                >
                <span v-else>{{ row[column.label] }}</span>
              </div>
@@ -401,6 +401,7 @@
        append-to-body
        class="xsckdBox"
        :before-close="close"
        @close="editBeforeCloseHandle"
      >
        <edit
          :OperationType="OperationType"
@@ -409,6 +410,7 @@
          :copyType="copyType"
          @editCloseGy="editGyClose"
          v-if="editShow"
          ref="editRef"
        />
      </el-dialog>
      <el-dialog
@@ -441,7 +443,7 @@
          height="550"
        >
          <el-table-column type="index" label="序号" width="55" align="center" />
          <el-table-column label="仓库代码" prop="仓库代码" align="center" width="120" />
          <el-table-column label="仓库代码" align="center" width="120" />
          <el-table-column label="仓库名称" prop="仓库名称" align="center" width="120" />
          <el-table-column label="联系电话" prop="联系电话" align="center" width="120" />
          <el-table-column label="职员代码" prop="职员代码" align="center" width="120" />
@@ -486,6 +488,8 @@
  },
  data() {
    return {
      editRef: null,
      activeSeach: "",
      HModName: "Gy_Warehouse",
      editShow: false,
      openEdit: false,
@@ -630,6 +634,9 @@
    this.riqiChange();
  },
  methods: {
    editBeforeCloseHandle() {
      this.$refs.editRef.close();
    },
    // 仓库同步
    async handleSync() {
      try {
@@ -1048,6 +1055,10 @@
    handleRowClick(row, column, event) {
      this.lastSelectedRow = this.selectedRow; // 记录上一次选中的行
      this.selectedRow = row; // 记录当前选中的行
      if (this.checkIsIframe) {
        // 将当前选中的数据暴露到window中
        window.selectedRow = row;
      }
      this.lastSelectedRowIndex = this.tableData.indexOf(row);
      this.$refs.tableData.toggleRowSelection(row);
    },
@@ -1057,8 +1068,19 @@
        return { background: "#ecf5ff" };
      }
    },
    checkIsIframe() {
      if (window.self == window.top) {
        return false;
      }
      return true;
    },
    //双击行
    handleDblclick(row, column, cell, event) {
      if (this.checkIsIframe) {
        // IFrame 双击 返回当前双击的数据
        window.parent.iframeWareHouseCallBack(row);
        return;
      }
      this.OperationType = 3;
      this.handleEdit();
    },
@@ -1230,7 +1252,7 @@
    //退出
    close() {
      this.tableShow = true;
      this.tableShow = false;
      this.openEdit = false;
      this.getList();
    },
@@ -1438,4 +1460,8 @@
  display: flex;
  flex-direction: row;
}
.zy-hidden {
  display: none;
}
</style>