haoxuan
2024-04-25 81c27d42bf0e43bea7f3c3dfa75762c2c5ecaca8
src/views/operate/inventoryAdjustment/index.vue
@@ -35,8 +35,8 @@
                  <i class="el-icon-setting"></i>
                  <span>设置</span>
                </span> -->
                <template v-if="scope.row.status === 3">
                  <span @click.stop="handleUseClick(scope.row)" class="margin_left_5px">
                <template v-if="scope.row.status == 3">
                  <span @click.stop="handleUseClick(scope.row)" class="margin_left_5px cursor_pointer">
                    <i class="el-icon-document"></i>
                    <span>应用</span>
                  </span>
@@ -119,7 +119,8 @@
    async getData() {
      await getInventoryAdjustmentList({
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
        pageSize: this.pagerOptions.pageSize,
        keyword:this.keyword,
      }).then((res) => {
        if (res.code === 200) {
          console.log(res)
@@ -149,8 +150,6 @@
    },
    // 新增
    addProductClick() {
      console.log(this.tableData)
      console.log(this.addTitle)
      this.isSel()
      if (this.isNoProduct && this.addTitle === "新建") {
        this.$refs.tablelistRef.getLocationList()
@@ -277,13 +276,13 @@
    },
    // 行点击
    tableRowClick(row, rowIndex) {
      this.locationId = row.locationId
      this.rowIndex = rowIndex
      this.isSel()
      //!this.isNoProduct && this.currentRowId == 0
      if (!this.isNoProduct) {
        this.$message.error("请完成当前保存或取消保存!")
      } else {
        this.locationId = row.locationId
        this.rowIndex = rowIndex
        this.currentRowId = row.id
        this.addTitle = "保存"
        this.showDiscard = true
@@ -309,6 +308,8 @@
    getList(val) {
      this.keyword = val
      this.pagerOptions.currPage = 1
      this.addTitle = "新建"
      this.showDiscard = false
      this.getData()
    },
    // 选择位置方法