loulijun2021
2023-03-20 a1c2af547ceee7a78226cb7f271b9f9cd1854786
src/views/scgl/gd.vue
@@ -320,7 +320,7 @@
              <div class="operationClass">
                <el-tooltip class="item" effect="dark" content="打印工单" placement="top">
                  <i
                    class="el-icon-tickets"
                    class="el-icon-printer"
                    style="cursor: pointer;color: #42b983;margin-right: 15px"
                    @click="handlePrint(row.wo_code)"
                  />
@@ -414,7 +414,7 @@
              <div class="operationClass">
                <el-tooltip class="item" effect="dark" content="打印工序" placement="top">
                  <i
                    class="el-icon-tickets"
                    class="el-icon-printer"
                    style="cursor: pointer;color: #42b983;margin-right: 15px"
                    @click="supplementSmallClick(row)"
                  />
@@ -1175,8 +1175,8 @@
                  {{ formApprove.partspec }}
                </el-form-item>
                <el-form-item label="产品名称:" class="formContent" style="width: 100%;">
                  <!--                  {{ formApprove.partname }}-->
                  王力-5寸H型单曲合页(加彩款)左上页金工件
                  {{ formApprove.partname }}
                  <!--                  王力-5寸H型单曲合页(加彩款)左上页金工件-->
                </el-form-item>
                <el-form-item label="工单数量:" class="formContent">
@@ -2523,6 +2523,10 @@
          this.$nextTick(() => {
            console.log(this.qrForm.qrvalue, 3333)
            this.bindQRCode2(this.qrForm.qrvalue)
            const div = document.getElementById('qrCode2')
            // 这么多代码只需要这一句实现我们所需要的功能,定位div滚动条位置在底部,scrollHeight计算出div的高度,再scrollTop 设置滚动条的高度为多少
            div.scrollTop = div.scrollHeight // 滚动条位于最底部
            // div.scrollTop = 0 // 滚动条位于最顶部
          })
        }
      })