haojianlong преди 5 години
родител
ревизия
7831d7d996
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 5 1
      src/components/config_point/step3_edit/index.vue
  2. 1 1
      src/components/config_point/step3_point/3_temps.vue

+ 5 - 1
src/components/config_point/step3_edit/index.vue

@@ -151,6 +151,10 @@ export default {
   methods: {
     //保存
     save() {
+      if (!this.form.EquipmentMark) {
+        this.errMsg();
+        return false;
+      }
       this.$refs.dictionaryCas.validate(valid => {
         if (valid) {
           for (let i = 0; i < this.typeList.length; i++) {
@@ -248,7 +252,7 @@ export default {
         if (temp.length == 3) {
           //设备-部件-空间
           eachData.EquipmentTypeCode = temp[1]
-          eachData.EquipmentType = temp[1]
+          eachData.EquipmentType = tempNames[1]
         } else if (temp.length == 4) {
           eachData.SpecialtyCode = temp[1]
           eachData.Specialty = tempNames[1]

+ 1 - 1
src/components/config_point/step3_point/3_temps.vue

@@ -406,7 +406,7 @@ export default {
         if (temp.length == 3) {
           //设备-部件-空间
           eachData.EquipmentTypeCode = temp[1]
-          eachData.EquipmentType = temp[1]
+          eachData.EquipmentType = tempNames[1]
         } else if (temp.length == 4) {
           eachData.SpecialtyCode = temp[1]
           eachData.Specialty = tempNames[1]