车间管理模块新增和修改操作车间的时候入参和显示使用字段修改和逻辑处理
3个文件已修改
52 ■■■■ 已修改文件
src/views/productManage/productRegisterForm/addProductRegisterPage.vue 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemSetting/workshopManage/components/addDialog.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemSetting/workshopManage/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/productRegisterForm/addProductRegisterPage.vue
@@ -213,13 +213,20 @@
                        label=""
                        @input="inputStart"
                        label-width="0"
                        label-position="right"
                        prop="fallingSilkBucketOne"
                        :rules="[
                          {
                            required: ruleForm.isfallingSilkBucketOne,
                            message: '请填写',
                            trigger: 'change',
                          },
                        ]"
                        class='margin_right_10px select-width-input'
                      >
                        <el-input
                          v-model="ruleForm.fallingSilkBucketOne"
                          size="small"
                          class="d-b-c-input"
                        ></el-input>
                      </el-form-item>
                      <el-checkbox
@@ -231,6 +238,13 @@
                        label=""
                        @input="inputStart"
                        label-width="0"
                        :rules="[
                          {
                            required: ruleForm.isfallingSilkBucketTwo,
                            message: '请填写',
                            trigger: 'change',
                          },
                        ]"
                        prop="fallingSilkBucketTwo"
                        class='margin_right_10px select-width-input'
                      >
@@ -248,7 +262,14 @@
                      <el-form-item
                        label=""
                        @input="inputStart"
                        label-width="0"
                        label-width=""
                        :rules="[
                          {
                            required: ruleForm.isfallingSilkBucketThree,
                            message: '请填写',
                            trigger: 'change',
                          },
                        ]"
                        prop="fallingSilkBucketThree"
                        class='margin_right_10px select-width-input'
                      >
@@ -759,18 +780,19 @@
            if(this.tableDataCircles[j].carNumber==this.tableData[i].carNumber){
              let circle=this.tableDataCircles[j].circle
              let pieceNumberList=this.tableDataCircles[j].pieceNumbers||[]
              this.tableData[i]['allYield'+circle]=this.tableDataCircles[j]['allYield'+circle]
              this.tableData[i]['oneYield'+circle]=this.tableDataCircles[j]['oneYield'+circle]
              this.tableData[i]['reelingdiscount'+circle]=this.tableDataCircles[j]['reelingdiscount'+circle]
              this.tableData[i]['allYield'+circle]=this.tableDataCircles[j]['allYield']
              this.tableData[i]['oneYield'+circle]=this.tableDataCircles[j]['oneYield']
              this.tableData[i]['reelingdiscount'+circle]=this.tableDataCircles[j]['reelingdiscount']
              if(pieceNumberList.length>0){
                for(let k in pieceNumberList){
                  this.tableData[i]['pieceNumber'+circle+pieceNumberList[k].pieceNumber]
                  this.tableData[i]['pieceNumber'+circle+pieceNumberList[k].pieceNumber]=pieceNumberList[k].value
                }
              }
            }
          }
        }
      }
      console.log(this.tableData,'==this.tableData')
      this.ruleForm.carNumber=this.tableData.length>0?this.tableData[0].carNumber:''
    },
    // 表格的计算问题
@@ -907,6 +929,11 @@
            })
            this.$set(this.tableData[i],'isBlue',true)
            this.$set(this.tableData[i],'pieceNumber'+form.pieceNumber+form.pieces,form.netWeight)
            this.tableShow=false;
            this.$nextTick(()=>{
              this.tableShow=true;
              this.$forceUpdate();
            })
            break;
          }
        }
@@ -1207,7 +1234,6 @@
            circles.push(listItems3)
            items.push(listItems4)
          }
          console.log(circles,'circles')
          let params = {
            ...form,
            circles: circles,
@@ -1285,7 +1311,8 @@
    .select-width {
      width: calc(100%  - 20px);
      .select-width-input{
        width:calc(100% - 200px);float:left;
        width:150px;
        float:left;
      }
    }
    .body-top {
@@ -1356,7 +1383,4 @@
.c-n {
  cursor: no-drop;
}
::v-deep {
}
</style>
</style>
src/views/systemSetting/workshopManage/components/addDialog.vue
@@ -147,7 +147,7 @@
    },
    setParams(){
      let params={
        workshopNumber:this.editConfig.infomitton.workshop.ID+"",
        workshopNumber:this.editConfig.infomitton.workshop.number+"",
        workshopName:this.editConfig.infomitton.workshop.name,
        groupNumber:Number(this.editConfig.infomitton.groupNumber),
        startCarNumber:Number(this.editConfig.infomitton.startCarNumber),
src/views/systemSetting/workshopManage/index.vue
@@ -187,7 +187,7 @@
        this.editConfig.infomitton = {
          ...row,
          workshop:{
            ID:row.workshopNumber,
            number:row.workshopNumber,
            name:row.workshopName
          }
        }