From 27cf04fbbc844b3c0fb758d165d030c4929e466d Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 06 九月 2023 10:35:03 +0800
Subject: [PATCH] 主数据固定码段 默认值

---
 Source/UBCS-WEB/src/components/FormTemplate/index.vue |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
index d2585c3..8597543 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
@@ -134,12 +134,12 @@
       showCodeApply: false,
       showResembleQuery: false,
       selfColumnType: {
-        codefixedsec: "combox",
-        codeclassifysec: "refer",
-        codevariablesec: "text",
+        codefixedsec: "combox",//鍥哄畾鐮佹
+        codeclassifysec: "refer",//鍒嗙被鐮佹
+        codevariablesec: "text",//鍙彉鐮佹
+        coderefersec: "refer",//寮曠敤鐮佹
         codeattrsec: "text",
         codelevelsec: "text",
-        coderefersec: "refer",
         codedatesec: "date"
       },
       selfColumnConfig: {
@@ -244,7 +244,7 @@
             } else {
               this.showResembleQuery = false;
             }
-            console.log(this.hasResemble, "this.hasResemblethis.hasResemble");
+            // console.log(this.hasResemble, "this.hasResemblethis.hasResemble");
             this.$nextTick(() => {
               this.$refs.FormTemplate.templateRender(
                 res.data.formDefineVO.items
@@ -265,13 +265,20 @@
         if (res.data && res.data.code === 200) {
           this.codeRuleOid = res.data.data.oid;
           const typeList = [
+            //鍥哄畾鐮佹
             "codefixedsec",
+            //鍒嗙被鐮佹
             "codeclassifysec",
+            //鍙彉鐮佹
             "codevariablesec",
+            //寮曠敤鐮佹
             "coderefersec",
+            //灞炴�х爜娈�
             "codeattrsec",
+            //鏃ユ湡鐮佹
+            "codedatesec",
+            //灞傜骇鐮佹
             "codelevelsec",
-            "codedatesec"
           ];
           this.secVOList = (res.data.data.secVOList || []).filter((item) =>
             typeList.includes(item.secType)
@@ -286,6 +293,8 @@
             this.showCodeApply = false;
           }
         }
+        // console.log(' this.secVOList',this.secVOList)
+        // console.log(' res.data.data.secVOList',res.data.data.secVOList)
       });
     },
     getFormData(form) {
@@ -301,6 +310,8 @@
         if (item.parentClassifySecOid === field) {
           this.$refs.CodeApply.form[item.oid] = undefined;
           this.$refs.CodeApply.form[item.name] = undefined;
+          item.readOnly=false;
+          item.referConfig.extraParams.parentClassifyValueOid=data.value;
         }
         return item;
       });
@@ -414,6 +425,7 @@
     getReferConfig(item) {
       let params = {};
       if (item.secType == "codeclassifysec") {
+        //鍒嗙被鐮佹
         params = {
           isMuti: false,
           type: "grid",
@@ -458,6 +470,7 @@
           },
         };
       } else if (item.secType == "coderefersec") {
+        //寮曠敤鐮佹
         params = JSON.parse(item.referValueInfo);
       }
       return params;

--
Gitblit v1.9.3