田源
2023-11-13 011a8921ba81682c9c468a9cc42ddefbb0790385
Source/UBCS-WEB/src/components/FormTemplate/index.vue
@@ -226,6 +226,13 @@
      },
    },
  },
  watch:{
    codeApplyForm:{
      handler(newval,oldval){
        // console.log('newval',newval)
      }
    }
  },
  methods: {
    openDialog() {
      this.getFormTemplate();
@@ -325,6 +332,7 @@
          this.$refs.CodeApply.form[item.name] = undefined;
          item.readOnly=false;
          item.referConfig.extraParams.parentClassifyValueOid=data.value;
          item.referConfig.reloadData = true;
          childItems.push(item)
        }
        return item;
@@ -355,7 +363,7 @@
      //   }
      // }
      let resembleQueryList = [];
      if (this.$refs.resembleQueryRef) {
      if (this.showResembleQuery && this.$refs.resembleQueryRef) {
        // 进行相似项查询
        resembleQueryList = await this.$refs.resembleQueryRef.resembleQuery(
          this.form
@@ -413,6 +421,8 @@
      resForm.codeClassifyOid = this.codeClassifyOid;
      resForm.codeRuleOid = this.codeRuleOid;
      resForm.templateOid = this.templateOid;
      // console.log('formValue',formValue)
      // console.log('resForm',resForm)
      this.$emit("submit", resForm);
    },
    getDefaultValueAndFormValues(form) {