3e9137a84ecb73c1d84e3290413c20020ccad3ea..d98942fd0d8b9097e5a5ed4e4f2b3161a0174661
2023-11-09 王震
Merge remote-tracking branch 'origin/master'
d98942 对比 | 目录
2023-11-09 王震
s
0999d3 对比 | 目录
2023-11-09 王震
Merge remote-tracking branch 'origin/master'
e855db 对比 | 目录
2023-11-09 王震
s
d27482 对比 | 目录
已修改4个文件
60 ■■■■■ 文件已修改
src/views/equipment/metering/metering-form.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/finishedProductInspection/finishedProduct-form.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/rawMaterial/rawMaterial-form.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipment/metering/metering-form.vue
@@ -40,7 +40,7 @@
    </el-date-picker>
  </el-form-item>
  </el-col>
          <el-col :span="12">
            <el-form-item label="责任人" prop="createUser">
              <el-input
@@ -58,7 +58,7 @@
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="责任部门" prop="responsibleDepartment">
              <el-input
@@ -90,7 +90,7 @@
                placeholder="检定/校准"
              ></el-input>
            </el-form-item>
          </el-col>
          </el-col>
          <el-col :span="12">
            <el-form-item label="分类" prop="classification">
              <el-input
@@ -98,7 +98,7 @@
                placeholder="分类"
              ></el-input>
            </el-form-item>
          </el-col>
          </el-col>
          <el-col :span="12">
            <el-form-item label="定点位置" prop="fixedPointPosition">
              <el-input
@@ -106,8 +106,8 @@
                placeholder="定点位置"
              ></el-input>
            </el-form-item>
          </el-col>
          </el-col>
          <!-- <el-col :span="12">
@@ -250,7 +250,7 @@
          }
        })
      },
      initFactorySelect() {
        loadFactoryList().then((res) => {
          this.factoryOptions = res.data
@@ -260,11 +260,11 @@
        })
      }
    },
    created() {
      this.initFactorySelect()
      this.getEquipmentState()
    //   remote('work_shop').then((response) => {
    //     if (response.data.code === 0) {
    //       this.workshopList = response.data.data
@@ -275,4 +275,3 @@
    }
  }
  </script>
src/views/quality/finishedProductInspection/finishedProduct-form.vue
@@ -96,21 +96,22 @@
                        <el-table-column prop="required" label="标准值" width="240" ></el-table-column>
                        <el-table-column prop="inspectionValue" v-for="(item, index) in empiricalValueAdd" :key="index" label="检测值"
                            width="240" style="text-align: center;">
                            <template slot-scope="scope">
                                <el-col v-if="scope.row.itype === '1'">
                                    <el-tooltip v-if="scope.row.iname!=null" :disabled="scope.row.eId != null"
                                        class="item" effect="dark" content="请先选择设备!"
                                            placement="top-start">
                                            <el-input :disabled="scope.row.eId == null" v-model="scope.row.empiricalValueAddss[index]"
                                                @blur="changeState(scope.row, scope.$index)" placeholder="请输入检测值"></el-input>
                                                @blur="changeState(scope.row, index)" placeholder="请输入检测值"></el-input>
                                            <span v-if="resultVal != null" v-text="scope.row.empiricalValueAddss[index]"></span>
                                    </el-tooltip>
                                </el-col>
                                <el-col v-else>
                                        <el-tooltip v-if="scope.row.iname != null" :disabled="scope.row.eId != null"
                                            class="item" effect="dark" content="请先选择设备!" placement="top-start">
                                            <el-select style="width: 100%;" @change="changeState(scope.row, scope.$index)" :disabled="scope.row.eId == null" v-model="scope.row.empiricalValueAddss[index]" placeholder="请选择">
                                                <el-option v-for="(item,i) in dataVal" :key="item.value" :label="item.label"
                                            <el-select style="width: 100%;" @change="changeState(scope.row, index)" :disabled="scope.row.eId == null" v-model="scope.row.empiricalValueAddss[index]" placeholder="请选择">
                                                <el-option v-for="item in dataVal" :key="item.value" :label="item.label"
                                                    :value="item.value">
                                                </el-option>
                                            </el-select>
@@ -128,12 +129,12 @@
                                    <el-select style="width:100%" v-model="scope.row.eId"
                                    v-if="scope.row.iname != null" filterable @change="updateDevice(scope.row,scope.$index)">
                                        <el-option v-for="(item,index) in deviceList"
                                        :key="item.id" :value="item.id" :label="item.number +'-'+ item.name"></el-option>
                                        :key="index" :value="item.id" :label="item.number +'-'+ item.name"></el-option>
                                    </el-select>
                                </div>
                            </template>
                        </el-table-column>
                        <el-table-column prop="inspectionValue" v-for="(item, index) in empiricalValueAdd" :key="item"
                        <el-table-column prop="inspectionValue" v-for="(item, index) in empiricalValueAdd" :key="index"
                                label="检验描述" width="240" style="text-align: center;">
                                <template slot-scope="scope">
                                    <el-col v-if="scope.row.itype === '1'">
@@ -142,7 +143,7 @@
                                            <el-input :disabled="scope.row.eId == null"
                                                v-model="scope.row.inote"
                                                @blur="changeState(scope.row, scope.$index)" placeholder="请输入检验描述"></el-input>
                                                @blur="changeState(scope.row, index)" placeholder="请输入检验描述"></el-input>
                                            <span v-if="resultVal != null && processInspectVo.id != null"
                                                v-text="scope.row.inote"></span>
@@ -153,7 +154,7 @@
                                            class="item" effect="dark" content="请先选择设备!" placement="top-start">
                                            <el-input :disabled="scope.row.eId == null"
                                                v-model="scope.row.inote"
                                                @blur="changeState(scope.row, scope.$index)" placeholder="请输入检测值"></el-input>
                                                @blur="changeState(scope.row, index)" placeholder="请输入检测值"></el-input>
                                            <!-- <el-select style="width: 100%;" @change="changeState(scope.row, index)" :disabled="scope.row.eId == null" v-model="scope.row.inote" placeholder="请选择">
                                                <el-option v-for="item in dataVal" :key="item.value" :label="item.label"
                                                    :value="item.value">
@@ -275,6 +276,7 @@
        this.init()
    },
    methods: {
        submitSave(){
            let pro = 0
            this.inspectionItems.forEach(item => {
@@ -348,7 +350,7 @@
                    let userList = []
                    result.children.forEach(item=>{
                        item.iid = Math.random()
                        if(item.children){
                        if(item.children != undefined){
                            item.children.forEach(obj=>{
                                let arr = []
                                if(obj.userName){
@@ -358,9 +360,9 @@
                                    arr = obj.inspectionValue.split(",")
                                }
                                obj.empiricalValueAddss = arr
                                // if(obj.note){
                                //         snote=obj.inote
                                //     }
                                if(obj.note){
                                        snote=obj.inote
                                    }
                                if(arr.length > this.empiricalValueAdd){
                                    this.empiricalValueAdd = arr.length
                                }
@@ -388,7 +390,7 @@
            })
        },
        updateDevice(row,index){
            updateDeviceById({equiomentId:row.eId,fpid:row.iid}).then(res=>{
            updateDeviceById({equiomentId:row.eId,fpid:row.iId}).then(res=>{
                this.inspectionItems.forEach(obj=>{
                    if(obj.children){
                        obj.children[index-1].inspectionValue = ''
src/views/quality/rawMaterial/rawMaterial-form.vue
@@ -625,7 +625,21 @@
        row.children.push(obj)
      },
      save(){
        let data = this.dataForm
        console.log('--------',data);
        console.log("-----",this.list);
        this.list.forEach(item=>{
          item.children.forEach(c=>{
            let arr=c.testValueList
            let val=''
            arr.forEach(a=>{
              val+=a+","
            })
            let end=val.substring(0,val.length-1)
            c.testValue=end
          })
        })
        data.rawInsProducts = this.list
        addRawInspects(data).then(res=>{
            this.$message.success("保存成功")
vue.config.js
@@ -5,6 +5,7 @@
// const url = 'http://192.168.0.23:9999'
// const url = 'http://192.168.0.51:9999'
const url = 'http://192.168.0.23:9999'
// const url = 'http://ztt-gateway:9999'
const localUrl = 'http://localhost:8089'
//const localUrl = 'http://10.88.15.95:8089'
const CompressionWebpackPlugin = require('compression-webpack-plugin')