谢杰标 2 years ago
parent
commit
653b5d5633
2 changed files with 13 additions and 26 deletions
  1. 12 23
      src/views/financed/cost/dislogSet.vue
  2. 1 3
      src/views/financed/cost/index.vue

+ 12 - 23
src/views/financed/cost/dislogSet.vue

@@ -307,11 +307,11 @@ export default {
     add(index, data) {
     add(index, data) {
       data = data || {
       data = data || {
         projectId: undefined,
         projectId: undefined,
-        itemName: 456,
-        itemCategory: 1,
+        itemName: undefined,
+        itemCategory: undefined,
         businessId: undefined,
         businessId: undefined,
-        educationTypeId: 21,
-        itemType: 1,
+        educationTypeId: undefined,
+        itemType: undefined,
         typeValue: undefined,
         typeValue: undefined,
         minValue: undefined,
         minValue: undefined,
         maxValue: undefined,
         maxValue: undefined,
@@ -324,37 +324,25 @@ export default {
     close() {
     close() {
       this.$refs["form"].resetFields();
       this.$refs["form"].resetFields();
     },
     },
-    changeEduType() {},
     resetForm() {
     resetForm() {
       this.form = {
       this.form = {
         itemList: [
         itemList: [
           {
           {
             projectId: undefined,
             projectId: undefined,
-            itemName: 456,
-            itemCategory: 1,
-            businessId: 151,
-            educationTypeId: 21,
-            itemType: 1,
-            typeValue: undefined,
-            minValue: undefined,
-            maxValue: undefined,
-          },
-          {
-            projectId: undefined,
-            itemName: 456,
-            itemCategory: 1,
-            businessId: 151,
-            educationTypeId: 21,
-            itemType: 1,
+            itemName: undefined,
+            itemCategory: undefined,
+            businessId: undefined,
+            educationTypeId: undefined,
+            itemType: undefined,
             typeValue: undefined,
             typeValue: undefined,
             minValue: undefined,
             minValue: undefined,
             maxValue: undefined,
             maxValue: undefined,
           },
           },
         ],
         ],
         tpId: undefined,
         tpId: undefined,
-        tpName: 123,
+        tpName: undefined,
         defaultStatus: 0,
         defaultStatus: 0,
-        tenantId: "1",
+        tenantId: undefined,
       };
       };
     },
     },
     cb() {
     cb() {
@@ -378,6 +366,7 @@ export default {
     changeMaxValue(prop) {
     changeMaxValue(prop) {
       this.$refs.form.validateField(prop);
       this.$refs.form.validateField(prop);
     },
     },
+    // 阶梯校验
     isHaveIntersect(list) {
     isHaveIntersect(list) {
       const isEmpty = list.some((e) => !e.minValue && !e.maxValue);
       const isEmpty = list.some((e) => !e.minValue && !e.maxValue);
       if (isEmpty) {
       if (isEmpty) {

+ 1 - 3
src/views/financed/cost/index.vue

@@ -72,7 +72,7 @@ export default {
   components: { searchBoxNew, tableList, pagination, dislogSet },
   components: { searchBoxNew, tableList, pagination, dislogSet },
   data() {
   data() {
     return {
     return {
-      loading: false, //当前表单加载是否加载动画
+      loading: false, 
       navText: {
       navText: {
         title: "成本模板",
         title: "成本模板",
         index: 0,
         index: 0,
@@ -83,7 +83,6 @@ export default {
         openCheckMore: true,
         openCheckMore: true,
         custom: false,
         custom: false,
       },
       },
-      //搜索
       formList: [
       formList: [
         {
         {
           prop: "tpName",
           prop: "tpName",
@@ -91,7 +90,6 @@ export default {
         },
         },
       ],
       ],
       formData: {},
       formData: {},
-      // 表单
       tableSet: [
       tableSet: [
         {
         {
           label: "模板名称",
           label: "模板名称",