From 71927d489198518e2a9e4188340dfbdc35caa3a2 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期三, 29 十一月 2023 10:46:08 +0800
Subject: [PATCH] 1.标准变系列,系列变系列测试 2.业务数据数据更改,直接发布
---
Source/UBCS-WEB/src/components/FormTemplate/index.vue | 41 ++++++++++++++++++++++++++++++++++++++++-
1 files changed, 40 insertions(+), 1 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
index 858400a..dd94ab2 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
@@ -12,6 +12,7 @@
>
<FormTemplate
key="masterForm" data-key="masterForm"
+ :status="status"
v-bind="$attrs"
:type="type"
:TreeValue="TreeValue"
@@ -41,6 +42,8 @@
:selfColumnConfig="selfColumnConfig"
ref="CodeApply"
@getFormData="getCodeApplyFormData"
+ @attrList="attrListForm"
+ @isSeriesType="isSeriesTypeString"
@referConfigDataUpdate="referConfigDataUpdate"
></FormTemplate>
</el-tab-pane>
@@ -91,6 +94,10 @@
name: "FormTemplateDialog",
components: { ResembleQuery, FormTemplate },
props: {
+ status:{
+ type: String,
+ default: "",
+ },
visible: {
type: Boolean,
default: false,
@@ -131,6 +138,8 @@
},
data() {
return {
+ isSeriesType:{},
+ attrList:[],
eventList:[],
//鐮佸�肩殑绗簩绉嶅彧璇婚殣钘忔儏鍐�
codeValueApplyStatus:'',
@@ -226,6 +235,13 @@
},
},
},
+ watch:{
+ codeApplyForm:{
+ handler(newval,oldval){
+ // console.log('newval',newval)
+ }
+ }
+ },
methods: {
openDialog() {
this.getFormTemplate();
@@ -310,9 +326,31 @@
});
},
getFormData(form) {
+ // if (this.status === "apply"){
+ // form.codeStandardEditType = "鍒跺畾";
+ // return;
+ // }
this.form = form;
+ // console.log("form",form)
+ //灞炴�х爜娈佃祴鍊�
+ if (this.attrList) {
+ this.attrList.forEach(item => {
+ if (this.form.hasOwnProperty(item.referAttributeId)) {
+ this.codeApplyForm[item.oid] = this.form[item.referAttributeId];
+ }
+ })
+ }
+
+ },
+ isSeriesTypeString(val){
+ this.isSeriesType = val;
+ },
+ //灞炴�х爜娈佃祴鍊�
+ attrListForm(attrListForm){
+ this.attrList=attrListForm;
},
getCodeApplyFormData(codeApplyForm) {
+ // console.log("codeApplyForm",codeApplyForm)
this.codeApplyForm = codeApplyForm;
},
// 鍙傜収缁勪欢鏁版嵁鍙樻洿
@@ -325,6 +363,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 +394,7 @@
// }
// }
let resembleQueryList = [];
- if (this.$refs.resembleQueryRef) {
+ if (this.showResembleQuery && this.$refs.resembleQueryRef) {
// 杩涜鐩镐技椤规煡璇�
resembleQueryList = await this.$refs.resembleQueryRef.resembleQuery(
this.form
--
Gitblit v1.10.0