小小儁爺
2025-06-13 889d80d88abd7b4a60846678624f4b976c15f820
1.新增判断:当不良数量为零时,合格数量不能为零
已修改2个文件
55 ■■■■■ 文件已修改
src/styles/global.css 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/produce/stepReport.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/styles/global.css
@@ -179,31 +179,31 @@
定义滚动条高宽及背景
高宽分别对应横竖滚动条的尺寸
*/
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  /*background-color: white;*/
  background-color: #f8f8fa;
}
/*::-webkit-scrollbar {*/
/*  width: 7px;*/
/*  height: 7px;*/
/*  !*background-color: white;*!*/
/*  background-color: #f8f8fa;*/
/*}*/
::-webkit-scrollbar-thumb {
  /*box-shadow: inset 0 0 0px white;*/
  box-shadow: inset 0 0 0px #f8f8fa;
  /*-webkit-box-shadow: inset 0 0 0px white;*/
  -webkit-box-shadow: inset 0 0 0px #f8f8fa;
  background-color: rgb(193, 193, 193);
  /*滚动条的背景颜色*/
  border-radius: 20px;
}
/*::-webkit-scrollbar-thumb {*/
/*  !*box-shadow: inset 0 0 0px white;*!*/
/*  box-shadow: inset 0 0 0px #f8f8fa;*/
/*  !*-webkit-box-shadow: inset 0 0 0px white;*!*/
/*  -webkit-box-shadow: inset 0 0 0px #f8f8fa;*/
/*  background-color: rgb(193, 193, 193);*/
/*  !*滚动条的背景颜色*!*/
/*  border-radius: 20px;*/
/*}*/
/*解决表格固定列时的压样式问题*/
.el-table__fixed {
  height: calc(100% - 7px) !important;
}
/*!*解决表格固定列时的压样式问题*!*/
/*.el-table__fixed {*/
/*  height: calc(100% - 7px) !important;*/
/*}*/
.el-table__fixed-right {
  height: calc(100% - 12px) !important;
}
/*.el-table__fixed-right {*/
/*  height: calc(100% - 12px) !important;*/
/*}*/
.el-table__fixed-right::before,
.el-table__fixed::before {
src/views/produce/stepReport.vue
@@ -1053,7 +1053,11 @@
      xx: ''
    }
  },
  activated() {   window.addEventListener('resize', this.getHeight)   this.getHeight() }, created() {
  activated() {
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
  },
  created() {
  },
  mounted() {
@@ -1346,6 +1350,11 @@
            if (parseFloat(this.dialogForm.noreportqty) < parseFloat(this.dialogForm.startqty) + parseFloat(this.dialogForm.noputqty)) {
              return this.$message.info('合格数量加不良数量不能大于了未报数量!')
            }
            if (parseFloat(this.dialogForm.startqty) === 0 && this.defectTableData.length === 0) {
              return this.$message.info('合格数量不能为零!')
            }
            let inbarcode = ''
            if (this.tableData.find(i => i.id === this.radioSelected).isend === 'Y') {
              const data1 = {