licp
2024-12-05 5607d43c15656058cb9e725612e2d477201f62a1
多样品,批量编辑信息
已修改2个文件
59 ■■■■ 文件已修改
src/components/do/b1-ins-order/add.vue 53 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-ins-order/add.vue
@@ -360,7 +360,7 @@
              </el-date-picker>
            </div>
          </el-col>
          <el-col class="search_thing" :span="6">
          <el-col class="search_thing" :span="6" v-if="addObj.formType!='其他成品'&&addObj.formType">
            <div class="search_label"><span class="required-span">* </span>样机完成时间:</div>
            <div class="search_input">
              <el-date-picker
@@ -409,11 +409,33 @@
      <div style="height: auto;">
        <div class="search" v-if="active==1" style="display: flex;background: transparent;">
          <div class="search_thing">
            <div class="search_label">样品名称:</div>
            <div class="search_input">
              <el-input size="small" v-model="allInfo.sample" @change="changeModel('sample')"></el-input>
            </div>
          </div>
          <div class="search_thing">
            <div class="search_label">样品类别:</div>
            <div class="search_input">
              <el-select v-model="model" :placeholder="active>1 ? '' : '请输入'" filterable allow-create default-first-option size="small"
                @change="changeModel">
              <el-select v-model="allInfo.model" :placeholder="active>1 ? '' : '请输入'" filterable allow-create default-first-option size="small"
                @change="changeModel('model')">
                <el-option v-for="item in models" :key="item.value" :label="item.label" :value="item.value">
                </el-option>
              </el-select>
            </div>
          </div>
          <div class="search_thing">
            <div class="search_label">产品型号:</div>
            <div class="search_input">
              <el-input size="small" v-model="allInfo.modelNum" @change="changeModel('modelNum')"></el-input>
            </div>
          </div>
          <div class="search_thing">
            <div class="search_label">试验标准:</div>
            <div class="search_input">
              <el-select v-model="allInfo.testRequirements" :placeholder="active>1 ? '' : '请输入'" filterable allow-create default-first-option size="small"
                @change="changeModel('testRequirements')">
                <el-option v-for="item in standard" :key="item.value" :label="item.label" :value="item.value">
                </el-option>
              </el-select>
            </div>
@@ -1307,7 +1329,13 @@
          num:null,
        },
        powerShow:false,
        powerTable:[]
        powerTable:[],
        allInfo:{
          model:null,
          sample:null,
          modelNum:null,
          testRequirements:null,
        }
      }
    },
    watch: {
@@ -1358,11 +1386,17 @@
        }
      },
      'addObj.sample'(val) {
        this.model = null
        this.allInfo.model = null
        this.allInfo.sample = null
        this.allInfo.modelNum = null
        this.allInfo.testRequirements = null
        this.standardMethodListId = []
      },
      'addObj.sampleNum'(val) {
        this.model = null
        this.allInfo.model = null
        this.allInfo.sample = null
        this.allInfo.modelNum = null
        this.allInfo.testRequirements = null
        this.standardMethodListId = []
      },
      active(val){
@@ -1902,6 +1936,8 @@
          this.$message.error('请选择检验标准')
        } else if(this.addObj.formType&&this.addObj.formType!='其他成品'&&!this.addObj.issueUser){
          this.$message.error('请选择通知至样机员')
        }else if(this.addObj.formType&&this.addObj.formType!='其他成品'&&!this.addObj.issueTime){
          this.$message.error('请选择样机完成时间')
        }else{
          //校验检验项的要求值和要求描述,仅委托要求
          // if(this.active==1&&this.isAskOnlyRead){
@@ -2921,11 +2957,12 @@
          }
        })
      },
      changeModel() {
      changeModel(type) {
        this.sampleList.forEach(a => {
          let obj = this.sampleIds.find(b => b == a.id)
          if (obj) {
            a.model = this.model
            this.$set(a,type, this.allInfo[type])
            // a[type] = this.allInfo[type]
          }
        })
      },
src/main.js
@@ -25,11 +25,11 @@
// //通信测试库
// Vue.prototype.LOCATIONVUE = "http://10.1.13.77:8080";
const javaApi = 'http://10.1.13.77:8001';
// const javaApi = 'http://10.1.13.77:8001';
// 通信正式库
// Vue.prototype.LOCATIONVUE = "https://ztwxlims.ztt.cn:7443";
// const javaApi = 'https://ztwxlims.ztt.cn:7443/lims/';
Vue.prototype.LOCATIONVUE = "https://ztwxlims.ztt.cn:7443";
const javaApi = 'https://ztwxlims.ztt.cn:7443/lims/';
//云
// Vue.prototype.LOCATIONVUE = "http://114.132.189.42:8080";