loulijun2021
2022-12-02 bf2f6079c6b94e1e429c48501a13fa38be71ecd0
1.看板接口接入
已修改4个文件
31 ■■■■■ 文件已修改
src/views/kb/cjsc.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kb/cjzl.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kb/zhkb.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scgl/sckbg.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kb/cjsc.vue
@@ -370,7 +370,7 @@
      let startValue = 0 // 初始值
      const scale = 10// 刻度
      WkshpLineData({ LineCode: 'DEV06' }).then(res => {
      WkshpLineData({ LineCode: 'DEV01' }).then(res => {
        this.tableDataLeftTopTemp = res.data
        this.tableDataLeftTop = this.tableDataLeftTopTemp.slice(startValue, startValue + scale)
src/views/kb/cjzl.vue
@@ -65,12 +65,12 @@
                </template>
              </el-table-column>
              <el-table-column
                prop="cxmc"
                prop="eqp_name"
                width="95"
                label="产线名称"
              >
                <template slot-scope="{row}">
                  <div>{{ row.cxmc }}</div>
                  <div>{{ row.eqp_name }}</div>
                </template>
              </el-table-column>
              <el-table-column
@@ -84,12 +84,12 @@
              </el-table-column>
              <el-table-column
                prop="cpmc"
                prop="partname"
                width="100"
                label="产品名称"
              >
                <template slot-scope="{row}">
                  <div class="ellipsis">{{ row.cpmc }}</div>
                  <div class="ellipsis">{{ row.partname }}</div>
                </template>
              </el-table-column>
              <el-table-column
@@ -162,7 +162,9 @@
      headTime: '',
      tableDataCenterTop: [],
      tableDataCenterTopTemp: []
      tableDataCenterTopTemp: [],
      StepCode: 'Step02'
    }
  },
  created() {
@@ -204,26 +206,26 @@
      }, 1000 * 10)
    },
    getLeftTopEcharts() {
      BadTop5({ StepCode: 'Step02' }).then(res => {
      BadTop5({ StepCode: this.StepCode }).then(res => {
        const dataArr = res.data.map(i => i.cont)
        const titlenameArr = res.data.map(i => i.name)
        loadEcharts('bar01', bar02(dataArr, titlenameArr))
      })
    },
    getLeftBottomEcharts() {
      BadWeek({ StepCode: 'Step02' }).then(res => {
      BadWeek({ StepCode: this.StepCode }).then(res => {
        const dataX = res.data.map(i => i.click_date)
        const dataY = res.data.map(i => i.count)
        loadEcharts('line01', line02(dataX, dataY))
      })
    },
    getRightTopEcharts() {
      BadDayDistriBute({ StepCode: 'Step02' }).then(res => {
      BadDayDistriBute({ StepCode: this.StepCode }).then(res => {
        loadEcharts('bar02', bar04(res.data))
      })
    },
    getRightBottomEcharts() {
      BadWeekDistriBute({ StepCode: 'Step02' }).then(res => {
      BadWeekDistriBute({ StepCode: this.StepCode }).then(res => {
        loadEcharts('pie01', pie02(res.data))
      })
    },
@@ -231,7 +233,7 @@
    getCenterTableDataSetInterval() {
      let startValue = 0 // 初始值
      const scale = 23// 刻度
      BadContManger({ StepCode: 'Step02' }).then(res => {
      BadContManger({ StepCode: this.StepCode }).then(res => {
        this.tableDataCenterTopTemp = res.data
        this.tableDataCenterTop = this.tableDataCenterTopTemp.slice(startValue, startValue + scale)
src/views/kb/zhkb.vue
@@ -313,11 +313,15 @@
        res1.data.forEach(item => {
          this.ShopArr.push(item.org_code)
        })
        if (this.ShopArr.length > 0) {
        this.getShopSearchLine()
        this.getRightRightData()
        this.getLeftBottomData()
        this.getEcharts()
      }
      }
      if (this.ShopArr.length > 0) {
      setInterval(() => {
        this.ShopSearchTask = ShopSearch().then(res1 => {
          if (res1.code === '200') {
@@ -328,6 +332,7 @@
          }
        })
      }, 1000 * 60)
      }
    },
    // 产线加工中任务
    getShopSearchLine() {
src/views/scgl/sckbg.vue
@@ -297,7 +297,7 @@
                sortable="custom"
              />
              <el-table-column
                label="未报工数量"
                label="未收料数量"
                width="120"
              >
                <!--                sortable="custom"-->