小小儁爺
2024-10-14 19ae7b374b4a2a356de70dbc61f49ce00d1bd83f
src/views/kanbanManager/ckgl.vue
@@ -19,12 +19,12 @@
      <div style="display: flex;justify-content: space-between;padding:0 20px 20px 20px;height: 950px">
        <div style="width: 1350px;z-index: 2;margin-top: 50px;" class="flex_c_b">
          <div style="height: 470px;">
          <div style="height: 945px;">
            <div class="smallTitle">
              <svg-icon icon-class="cpdrk" class="svg_class" />
              生产待入库
            </div>
            <div class="lineContent horn" style="height: 410px">
            <div class="lineContent horn" style="height: 885px">
              <el-table
                ref="tableDataTopRef"
                :data="tableDataTop"
@@ -32,7 +32,7 @@
                class="tableData"
                :header-cell-style="headerCellStyleCenter"
                :cell-style="cellStyleCenter"
                height="405"
                height="880"
              >
                <el-table-column
                  prop="voucherdate"
@@ -56,22 +56,22 @@
                <el-table-column
                  prop="wkshp_name"
                  label="生产车间"
                  width="105"
                  width="135"
                >
                  <template slot-scope="{row}">
                    <div class="ellipsis">{{ row.wkshp_name }}</div>
                  </template>
                </el-table-column>
                <el-table-column
                  prop="saleOrderCode"
                  label="销售订单号"
                  width="200"
                >
                  <template slot-scope="{row}">
                    <div v-if="row.saleOrderCode" class="ellipsis">{{ row.saleOrderCode }}</div>
                    <div v-else>/</div>
                  </template>
                </el-table-column>
                <!--                <el-table-column-->
                <!--                  prop="saleOrderCode"-->
                <!--                  label="销售订单号"-->
                <!--                  width="200"-->
                <!--                >-->
                <!--                  <template slot-scope="{row}">-->
                <!--                    <div v-if="row.saleOrderCode" class="ellipsis">{{ row.saleOrderCode }}</div>-->
                <!--                    <div v-else>/</div>-->
                <!--                  </template>-->
                <!--                </el-table-column>-->
                <!--                <el-table-column-->
                <!--                  prop="materiel_code"-->
                <!--                  label="产品编号"-->
@@ -84,26 +84,26 @@
                <el-table-column
                  prop="materiel_name"
                  label="产品名称"
                  width="170"
                  width="400"
                >
                  <template slot-scope="{row}">
                    <div class="ellipsis">{{ row.materiel_name }}</div>
                  </template>
                </el-table-column>
                <el-table-column
                  prop="specification"
                  label="规格型号"
                  width="136"
                >
                  <template slot-scope="{row}">
                    <div v-if="row.specification" class="ellipsis">{{ row.specification }}</div>
                    <div v-else>/</div>
                  </template>
                </el-table-column>
                <!--                <el-table-column-->
                <!--                  prop="specification"-->
                <!--                  label="规格型号"-->
                <!--                  width="136"-->
                <!--                >-->
                <!--                  <template slot-scope="{row}">-->
                <!--                    <div v-if="row.specification" class="ellipsis">{{ row.specification }}</div>-->
                <!--                    <div v-else>/</div>-->
                <!--                  </template>-->
                <!--                </el-table-column>-->
                <el-table-column
                  prop="stck_name"
                  label="预入仓库"
                  width="100"
                  width="156"
                >
                  <template slot-scope="{row}">
                    <div v-if="row.stck_name" class="ellipsis">{{ row.stck_name }}</div>
@@ -113,7 +113,7 @@
                <el-table-column
                  prop="quantity"
                  label="数量"
                  width="63"
                  width="83"
                />
                <el-table-column
                  prop="totalStockInQuantity"
@@ -154,7 +154,7 @@
              </el-table>
            </div>
          </div>
          <div style="height: 470px;margin-top: 30px;">
          <div v-if="false" style="height: 470px;margin-top: 30px;">
            <div class="smallTitle">
              <svg-icon icon-class="drk" class="svg_class" />
              委外待入库
@@ -332,7 +332,7 @@
    this.updateOnlineStatus({ type: this.onLine ? 'online' : 'offline', isFirst: true })
    this.getWareHouseTopLeftData()
    this.getWareHouseTopBottomData()
    // this.getWareHouseTopBottomData()
    this.getEcharts()
  },
  beforeDestroy() {
@@ -380,13 +380,13 @@
            WareHouseTopLeftData().then(res => {
              this.tableDataTop = res.data
              // this.number1 = this.tableDataTop.length
              if (this.tableDataTop.length > 10) {
              if (this.tableDataTop.length > 22) {
                clearInterval(this.tableTopTask)
                this.getWareHouseTopLeftData()
              }
            })
          }
        }, this.tableDataTop.length <= 10 ? 1000 * 30 : 200)
        }, this.tableDataTop.length <= 22 ? 1000 * 30 : 200)
      })
    },
    // 获取左下table数据