纤度登记和纤度检验 2个标签切换请求数据的逻辑处理和+2个模块修改操作时增加对应的检验和登记id
1个文件已修改
38 ■■■■ 已修改文件
src/views/productManage/silkRegisterForm/addPage.vue 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/silkRegisterForm/addPage.vue
@@ -162,7 +162,7 @@
              </el-row>
            </el-form-item>
            <el-form-item label="车号" prop="position" class="form-item">
              <el-input v-model="form.position" placeholder="请输入">
              <el-input v-model.number="form.position" placeholder="请输入">
              </el-input>
            </el-form-item>
          </el-form>
@@ -195,7 +195,7 @@
          <!-- <CommonSearch :show-add="false" :show-download="false" :amount-view="false" :show-action-btn="false"
                        placeholder="请输入关键词" @searchClick="onFilterSearch">
                        <template slot="leftButton"> -->
          <el-button size="small" type="primary" @click="cancelClickTwo"
          <el-button size="small" type="primary" @click="cancelClickOne"
            >放弃</el-button
          >
          <el-button
@@ -316,11 +316,11 @@
                show-overflow-tooltip
              >
              </el-table-column>
              <el-table-column prop="valueRange" label="野纤" width="120">
              <el-table-column prop="finenessGradeye" label="野纤" width="120">
              </el-table-column>
              <el-table-column prop="unit" label="大野" show-overflow-tooltip>
              <el-table-column prop="finenessGradebig" label="大野" show-overflow-tooltip>
              </el-table-column>
              <el-table-column prop="valueRange" label="特野" width="120">
              <el-table-column prop="finenessGradeSpecial" label="特野" width="120">
              </el-table-column>
              <el-table-column
                prop="finenessGrade"
@@ -576,6 +576,7 @@
                this.tableList.tableData = config.finenessList
                  ? config.finenessList
                  : [];
                  this.tableData=this.tableList.tableData
              }
            }
          );
@@ -618,6 +619,15 @@
                : [];
                for(let i in arr){
                    let round=arr[i].finenessRoundingItems
                    if(arr[i].finenessGrade){
                        if(arr[i].finenessGrade.indexOf('野纤')>-1){
                            arr[i].finenessGradeye=arr[i].finenessGrade
                        }else if(arr[i].finenessGrade.indexOf('大野')>-1){
                            arr[i].finenessGradebig=arr[i].finenessGrade
                        }else if(arr[i].finenessGrade.indexOf('特野')>-1){
                            arr[i].finenessGradeSpecial=arr[i].finenessGrade
                        }
                    }
                    if(round){
                        for(let j in round){
                            arr[i][round[j].fineness]=round[j].quantity
@@ -789,10 +799,15 @@
            sum: "",
          },
        ];
      }else{
        this.form.measureFineness=''
        this.form.twiceChange=''
        this.form.cleanliness=''
        this.form.purity=''
        this.form.marketProcessOrderNumber=''
        this.form.inspector=''
      }
    },
    // 纤度检验表
    cancelClickTwo() {},
    // 保存
    saveClickOne(formName) {
      this.$refs[formName].validate((valid) => {
@@ -801,7 +816,7 @@
          // params.workshopGroup=Number(params.workshopGroup)
          this.isAddloading = true;
          if (this.activeName == "first") {
            delete form.circle;
            delete form.circleTwo;
            let finenessList = JSON.parse(
              JSON.stringify(this.tableList.tableData)
            );
@@ -852,6 +867,7 @@
                    message: "保存成功!",
                    type: "success",
                  });
                  this.getDetailsData()
                }
                this.isAddloading = false;
              })
@@ -924,7 +940,7 @@
    .body-l {
      background-color: #fff;
      border-radius: 12px;
      height: calc(100% - 180px - 20px);
      height: calc(100% - 20px);
      width: calc(100% - 420px);
      float: left;
      overflow: hidden;
@@ -957,9 +973,9 @@
      }
      .list-view {
        height: calc(100% - 0px);
        height: calc(100% - 180px);
        min-height: 200px;
        overflow: hidden;
        overflow-y: auto;
      }
    }