loulijun2021
2023-03-20 ed4da27a04e5c00dc2a457d9bdc92eacd38398a8
1.流转二维码bug修改
已修改3个文件
28 ■■■■■ 文件已修改
src/views/sbgl/bybz.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sbgl/djbz.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scgl/gd.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sbgl/bybz.vue
@@ -395,7 +395,7 @@
          show-checkbox
          node-key="code"
          default-expand-all
          style="height: 300px"
          style="height: 320px;overflow: auto"
          :props="defaultPropsOfEqpTree"
          @check="checkBoxClick"
        />
src/views/sbgl/djbz.vue
@@ -439,7 +439,7 @@
          show-checkbox
          node-key="code"
          default-expand-all
          style="height: 300px"
          style="height: 320px;overflow: auto"
          :props="defaultPropsOfEqpTree"
          @check="checkBoxClick"
        />
src/views/scgl/gd.vue
@@ -93,7 +93,10 @@
            </el-form-item>
          </div>
          <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}">
          <div
            class="bodySearchReset"
            :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}"
          >
            <el-button v-waves type="primary" icon="el-icon-search" @click="search">查询</el-button>
            <el-button v-waves type="info" icon="el-icon-refresh" @click="reset">重置</el-button>
          </div>
@@ -746,7 +749,7 @@
          <!--          <el-button v-waves v-if="operation==='add'" type="primary" @click="dialogVisibleConfirmPreview('add')">预览</el-button>-->
          <el-button
            v-if="!sumbitBottonIsDisabled"
            v-if="!submitBottonIsDisabled"
            v-waves
            type="primary"
            :loading="$store.state.app.buttonIsDisabled"
@@ -755,7 +758,7 @@
          >确 定</el-button>
          <el-button
            v-if="sumbitBottonIsDisabled"
            v-if="submitBottonIsDisabled"
            v-waves
            type="primary"
            disabled
@@ -2016,7 +2019,7 @@
          return time.getTime() < Date.now() - 8.64e7
        }
      },
      sumbitBottonIsDisabled: false
      submitBottonIsDisabled: false
    }
  },
  created() {
@@ -2152,7 +2155,7 @@
      this.dialogForm.wkshopcode = ''
      this.sumbitBottonIsDisabled = false
      this.submitBottonIsDisabled = false
    },
    // 工艺路线值改变
    async routecodeChange(val) {
@@ -2165,7 +2168,7 @@
      this.wkshopArr = res2
      this.dialogForm.wkshopcode = ''
      this.sumbitBottonIsDisabled = false
      this.submitBottonIsDisabled = false
    },
    // 生产车间值改变时
    wkshopcodeChange(val) {
@@ -2178,7 +2181,7 @@
        // console.log(res, 1)
      }).catch(err => {
        // console.log(err, 2)
        this.sumbitBottonIsDisabled = true
        this.submitBottonIsDisabled = true
      })
    },
@@ -2343,7 +2346,7 @@
      this.bomIdArr = []
      this.$refs.dialogForm.clearValidate()
      this.sumbitBottonIsDisabled = false
      this.submitBottonIsDisabled = false
    },
    // 对话框取消
    dialogVisibleCancel() {
@@ -2577,6 +2580,11 @@
          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 // 滚动条位于最顶部
          })
        }
      })