一行数据都没有只新增表头的时候无法保存的校验去掉+纤度登记表 修改的时候编号不可修改
3个文件已修改
15 ■■■■ 已修改文件
src/views/productManage/silkRegisterForm/addPage.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/silkRegisterForm/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemSetting/silkStandardSetting/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/silkRegisterForm/addPage.vue
@@ -48,7 +48,7 @@
            label-width="80px"
          >
            <el-form-item label="编号" prop="number" class="form-item">
              <el-input v-model="form.number" placeholder="请输入"> </el-input>
              <el-input v-model="form.number" :disabled="title=='修改'?true:false" placeholder="请输入"> </el-input>
            </el-form-item>
            <el-form-item label="落丝时间" prop="finishDate" class="form-item">
              <el-date-picker
@@ -451,6 +451,7 @@
  computed: {},
  data() {
    return {
      title:'',
      loading: false,
      activeName: "first",
      searchOptions: [],
@@ -576,6 +577,7 @@
      this.activeName = query.activeName ? query.activeName : "first";
      this.registerId = query.id ? query.id : "";
      this.inspectID = query.inspectID ? query.inspectID : "";
      this.title= query.title ? query.title : "";
    }
    this.getSelectDataList();
    this.keyword = "";
src/views/productManage/silkRegisterForm/index.vue
@@ -182,6 +182,7 @@
                  id:row.ID,
                  activeName:'first',
                  inspectID:row.finenessCheckID,
                  title:'修改'
                }
              });
    },
src/views/systemSetting/silkStandardSetting/index.vue
@@ -173,7 +173,6 @@
    },
    // 新增
    addBtnClick() {
      debugger
      console.log(this.silkTableList.tableData,'===1')
      console.log(this.tableData,'===2')
      if(this.isEdit){
@@ -231,10 +230,10 @@
      let tableData=JSON.parse(
                  JSON.stringify(this.silkTableList.tableData)
                );
        if(tableData.length==0&&!this.isEdit){
          this.$message.error('请先新增再保存!')
          return true;
        }
        // if(tableData.length==0&&!this.isEdit){
        //   this.$message.error('请先新增再保存!')
        //   return true;
        // }
      if (!this.isEdit) {
        let params = this.saveParam(tableData)
        saveRankStandard({
@@ -318,7 +317,6 @@
    },
    // 列表头输入回调
    addColumnInputChange(val, prop) {
      console.log(val, prop, this.columnInputList)
      this.columnInputList.forEach((item) => {
        if (item.rankProp == prop) {
          item.rankName = val