licp
2024-12-20 1e09c6d454d55ef050104b7f64d5142022f0a0a0
src/components/do/b1-ins-order/add.vue
@@ -489,7 +489,7 @@
          <el-table-column prop="testRequirements" label="试验标准" align="center" min-width="100">
            <template slot-scope="scope">
              <el-select v-model="scope.row.testRequirements" :disabled="scope.row.model==null||active>1"
                placeholder="试验标准" size="small" :readonly="active>1" style="width: 100%;" clearable>
                placeholder="试验标准" size="small" :readonly="active>1" style="width: 100%;" clearable @change="changeModel0(scope.row)">
                <el-option v-for="item in standard" :key="item.id" :label="item.label" :value="item.value">
                </el-option>
              </el-select>
@@ -1930,9 +1930,7 @@
          this.$message.error('请输入样品型号')
        }else if (!this.addObj.appointed) {
          this.$message.error('请选择约定时间')
        }else if (!this.addObj.issueTime) {
          this.$message.error('请选择样机完成时间')
        } else if (!this.sampleList.every(m => m.standardMethodListId&&m.standardMethodListId.length>0)) {
        }else if (!this.sampleList.every(m => m.standardMethodListId&&m.standardMethodListId.length>0)) {
          this.$message.error('请选择检验标准')
        } else if(this.addObj.formType&&this.addObj.formType!='其他成品'&&!this.addObj.issueUser){
          this.$message.error('请选择通知至样机员')
@@ -2962,10 +2960,18 @@
          let obj = this.sampleIds.find(b => b == a.id)
          if (obj) {
            this.$set(a,type, this.allInfo[type])
            if(type=='testRequirements'&&a.standardMethodListId&&a.standardMethodListId.length>0){
              this.methodChange(a.standardMethodListId, a)
            }
            // a[type] = this.allInfo[type]
          }
        })
      },
      changeModel0(row){
        if(row.standardMethodListId&&row.standardMethodListId.length>0){
          this.methodChange(row.standardMethodListId, row)
        }
      },
      changeStandardMethodListId() {
        this.sampleList.forEach(a => {
          let obj = this.sampleIds.find(b => b == a.id)