haoxuan
2024-04-17 1888b426ff2b6a529f5fdef0f0453dadef71824b
src/views/overview/index.vue
@@ -44,6 +44,11 @@
                <span style="cursor: pointer">4 延期</span>
              </div> -->
            </div>
            <div class="right">
              <div class="right_status" @click.stop="statusClick(item, 5)">
                <span style="cursor: pointer">{{ item.cancelCount + " 已取消" }}</span>
              </div>
            </div>
          </div>
        </div>
      </div>
@@ -90,7 +95,7 @@
      console.log(item)
      this.$router.push({
        name: "overviewList",
        params: { name: item.name, workType: item.baseOperationType, id: item.id, status: status }
        params: { name: item.name, workType: item.baseOperationType, id: item.id, status: status,code:item.warehouse.code }
      })
    },
    async getData() {
@@ -99,15 +104,14 @@
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      }).then((res) => {
        console.log(res.data.data)
        if (res.data.code === 200) {
          const list = res.data.data.map((item) => {
        if (res.code === 200) {
          const list = res.data.map((item) => {
            return {
              ...item
            }
          })
          this.tableList = list || []
          this.pagerOptions.totalCount = res.data.total
          this.pagerOptions.totalCount = res.total
        }
      })
    },
@@ -193,7 +197,7 @@
          }
        }
        .right {
          width: 50%;
          width: 25%;
          .right_status {
            margin-top: 5px;
          }