loulijun2021
2024-05-08 e80c672ac136b3171a74b1728431b9537b6eeb7d
src/views/materialManager/inventoryList.vue
@@ -14,18 +14,18 @@
              <div style="margin-left: 8px;">存货档案</div>
            </div>
            <div style="margin-right:10px">
              <el-tooltip v-del-tab-index class="item" effect="dark" content="新增" placement="top">
                <i class="el-icon-plus" style="cursor: pointer;color: #999" @click="treeAddClick('add')" />
              </el-tooltip>
            </div>
            <!--            <div style="margin-right:10px">-->
            <!--              <el-tooltip v-del-tab-index class="item" effect="dark" content="新增" placement="top">-->
            <!--                <i class="el-icon-plus" style="cursor: pointer;color: #999" @click="treeAddClick('add')" />-->
            <!--              </el-tooltip>-->
            <!--            </div>-->
          </div>
          <el-tree
            ref="treeLeftRef"
            style="padding: 10px;overflow: auto"
            :style="{height:(tableHeight+222)+'px'}"
            :style="{height:(tableHeight+192)+'px'}"
            :data="treeLeft"
            node-key="code"
            highlight-current
@@ -34,42 +34,44 @@
            :expand-on-click-node="false"
            @node-click="getTMaterielData"
          >
            <span slot-scope="{ node, data }" class="custom-tree-node">
              <span v-if="!data.isEdit">{{ data.name }}</span>
              <span v-if="!data.isEdit">
                <el-tooltip v-del-tab-index class="item" effect="dark" content="编辑" placement="top">
                  <i
                    v-if="data.code!=='-1'"
                    class="el-icon-edit"
                    style="margin-right:10px;color: #999"
                    @click.stop="treeEditClick(node,data,'edit')"
                  />
                </el-tooltip>
                <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top">
                  <i
                    v-if="data.code!=='-1'"
                    class="el-icon-delete"
                    style="margin-right: 4px;color: #999"
                    @click.stop="treeDeleteClick(node,data)"
                  />
                </el-tooltip>
              </span>
            </span>
            <!--            <span slot-scope="{ node, data }" class="custom-tree-node">-->
            <!--              <span v-if="!data.isEdit">{{ data.name }}</span>-->
            <!--              <span v-if="!data.isEdit">-->
            <!--                <el-tooltip v-del-tab-index class="item" effect="dark" content="编辑" placement="top">-->
            <!--                  <i-->
            <!--                    v-if="data.code!=='-1'"-->
            <!--                    class="el-icon-edit"-->
            <!--                    style="margin-right:10px;color: #999"-->
            <!--                    @click.stop="treeEditClick(node,data,'edit')"-->
            <!--                  />-->
            <!--                </el-tooltip>-->
            <!--                <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top">-->
            <!--                  <i-->
            <!--                    v-if="data.code!=='-1'"-->
            <!--                    class="el-icon-delete"-->
            <!--                    style="margin-right: 4px;color: #999"-->
            <!--                    @click.stop="treeDeleteClick(node,data)"-->
            <!--                  />-->
            <!--                </el-tooltip>-->
            <!--              </span>-->
            <!--            </span>-->
          </el-tree>
        </div>
        <div
          style=" width:calc(100% - 300px);"
        >
          <div class="bodyTopButtonGroup" style="justify-content: space-between">
            <el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button>
            <div style="display: flex">
              <el-button v-waves type="success" icon="el-icon-download" @click="$router.push('./../systemSetting/dataImport?fileCode=8')">导入</el-button>
              <el-button v-waves icon="el-icon-refresh-right" @click="syncERP">同步存货档案</el-button>
            </div>
          <div class="bodyTopButtonGroup" style="justify-content: end">
            <!--                      <el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button>-->
            <!--                      <div style="display: flex">-->
            <!--                        <el-button v-waves type="success" icon="el-icon-download" @click="$router.push('./../systemSetting/dataImport?fileCode=8')">导入</el-button>-->
            <!--                        <el-button v-waves icon="el-icon-refresh-right" @click="syncERP">同步存货档案</el-button>-->
            <!--                      </div>-->
            <el-button v-waves icon="el-icon-refresh-right" @click="syncERP">同步存货档案</el-button>
          </div>
          <div class="bodyTopFormGroup">
          <div class="bodyTopFormGroup" style="margin-top: 10px">
            <el-form
              ref="form"
              :model="form"
@@ -236,30 +238,30 @@
                width="160"
              />
              <el-table-column
                label="操作"
                width="120"
                fixed="right"
              >
                <template slot-scope="{row}">
                  <div class="operationClass">
                    <el-tooltip class="item" effect="dark" content="编辑" placement="top">
                      <i
                        class="el-icon-edit-outline"
                        :style="{color:$store.state.settings.theme}"
                        @click="edit('edit',row)"
                      />
                    </el-tooltip>
                    <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top">
                      <i
                        class="el-icon-delete"
                        :style="{color:$store.state.settings.theme}"
                        @click="del(row)"
                      />
                    </el-tooltip>
                  </div>
                </template>
              </el-table-column>
              <!--              <el-table-column-->
              <!--                label="操作"-->
              <!--                width="120"-->
              <!--                fixed="right"-->
              <!--              >-->
              <!--                <template slot-scope="{row}">-->
              <!--                  <div class="operationClass">-->
              <!--                    <el-tooltip class="item" effect="dark" content="编辑" placement="top">-->
              <!--                      <i-->
              <!--                        class="el-icon-edit-outline"-->
              <!--                        :style="{color:$store.state.settings.theme}"-->
              <!--                        @click="edit('edit',row)"-->
              <!--                      />-->
              <!--                    </el-tooltip>-->
              <!--                    <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top">-->
              <!--                      <i-->
              <!--                        class="el-icon-delete"-->
              <!--                        :style="{color:$store.state.settings.theme}"-->
              <!--                        @click="del(row)"-->
              <!--                      />-->
              <!--                    </el-tooltip>-->
              <!--                  </div>-->
              <!--                </template>-->
              <!--              </el-table-column>-->
            </el-table>
          </div>
@@ -743,7 +745,7 @@
    getHeight() {
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 85
        this.tableHeight = this.mainHeight - 280
        this.tableHeight = this.mainHeight - 290
        this.$refs.tableDataRef.doLayout()
      })
    },