From f716ce30de91dbcbf55ce5e3c658e7a165b7ee81 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 14 七月 2023 15:45:43 +0800
Subject: [PATCH] 主数据按钮

---
 Source/UBCS-WEB/src/components/FormTemplate/index.vue |   37 ++++++++++++++++++++++++-------------
 1 files changed, 24 insertions(+), 13 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
index c7e2680..e1d75ee 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
@@ -313,13 +313,13 @@
       if (!formValidate) return;
       let codeValidate = true;
       // 杩涜鐮佸�肩敵璇锋牎楠�
-      if (this.showCodeApply) {
-        codeValidate = await this.$refs.CodeApply.validate();
-        if (!codeValidate) {
-          this.activeName = "codeApply";
-          return false;
-        }
-      }
+      // if (this.showCodeApply) {
+      //   codeValidate = await this.$refs.CodeApply.validate();
+      //   if (!codeValidate) {
+      //     this.activeName = "codeApply";
+      //     return false;
+      //   }
+      // }
       let resembleQueryList = [];
       if (this.$refs.resembleQueryRef) {
         // 杩涜鐩镐技椤规煡璇�
@@ -332,6 +332,20 @@
         const { defaultValue, formValue } = this.getDefaultValueAndFormValues(
           this.form
         );
+        const noData = [
+          "jiliangdwname",
+          "materialtypeText",
+          "morengongysname",
+          "$caigouwl",
+          "$xiaoshouwl",
+          "$shifoupihaoguanli",
+          "lcstatus_text",
+          "hesuanfenleiname",
+          "$kucunwl",
+        ];
+        noData.forEach((item) => {
+          this.$delete(formValue, item);
+        });
         resForm.data = formValue;
         resForm = Object.assign({}, resForm, defaultValue);
         resForm.secDTOList = [];
@@ -373,11 +387,9 @@
             let resForm = {};
             const { defaultValue, formValue } =
               this.getDefaultValueAndFormValues(this.form);
-            noData.forEach(item => {
-              if (formValue[item]) {
-                this.$delete(formValue, item)
-              }
-            })
+            noData.forEach((item) => {
+              this.$delete(formValue, item);
+            });
             resForm.data = formValue;
             resForm = Object.assign({}, resForm, defaultValue);
             resForm.secDTOList = this.secVOList.map((item) => {
@@ -389,7 +401,6 @@
             resForm.codeClassifyOid = this.codeClassifyOid;
             resForm.codeRuleOid = this.codeRuleOid;
             resForm.templateOid = this.templateOid;
-            console.log(resForm, 'ddd');
             this.$emit("submit", resForm);
           })
           .catch(() => {});

--
Gitblit v1.9.3