scorpio hace 2 años
padre
commit
f7fa60482d
Se han modificado 1 ficheros con 61 adiciones y 19 borrados
  1. 61 19
      src/views/contract/component/info2.vue

+ 61 - 19
src/views/contract/component/info2.vue

@@ -5,15 +5,15 @@
     </div>
     <div class="ml-20 mr-20 mt-20">
       <avue-crud
-          :option="option"
-          :data="data"
-          ref="crud"
-          v-model="form"
-          :before-open="beforeOpen"
-          @row-del="rowDel"
-          @row-save="rowSave"
-          @row-update="rowUpdate"
-          @on-load="onLoad"
+        :option="option"
+        :data="data"
+        ref="crud"
+        v-model="form"
+        :before-open="beforeOpen"
+        @row-del="rowDel"
+        @row-save="rowSave"
+        @row-update="rowUpdate"
+        @on-load="onLoad"
       >
       </avue-crud>
     </div>
@@ -26,10 +26,12 @@ export default {
   data() {
     return {
       form: {},
-      data: [{
-        id: 3,
-        prop: 'ooooo'
-      }],
+      data: [
+        {
+          id: 3,
+          prop: 'ooooo'
+        }
+      ],
       option: {
         align: 'center',
         menuAlign: 'center',
@@ -49,27 +51,67 @@ export default {
         column: [
           {
             label: '名称',
-            prop: 'noticeType'
+            prop: 'name'
           },
           {
             label: '款项类别',
-            prop: 'noticeType'
+            prop: 'dictKey',
+            type: 'select',
+            dicUrl: '/api/blade-system/dict-biz/dictionary?code=contract-type',
+            props: {
+              label: 'dictValue',
+              value: 'dictKey'
+            }
           },
           {
             label: '支付金额',
-            prop: 'noticeType'
+            prop: 'payment',
+            type: 'number'
+          },
+          {
+            label: '付款人',
+            prop: 'noticeType',
+            hide: true
+          },
+          {
+            label: '收款人',
+            prop: 'noticeType',
+            hide: true
+          },
+          {
+            label: '支付账户',
+            prop: 'noticeType',
+            hide: true
+          },
+          {
+            label: '支付凭证',
+            prop: 'noticeType',
+            hide: true,
+            type: 'upload'
           },
           {
             label: '付款时间',
-            prop: 'noticeType'
+            prop: 'paymentTime',
+            type: 'date'
           },
           {
             label: '备注',
-            prop: 'noticeType'
-          },
+            prop: 'remark',
+            type: 'textarea',
+            span: 24,
+            rows: 5
+          }
         ]
       }
     }
+  },
+  methods: {
+    beforeOpen(done, type) {
+      if (type === 'view') {
+      } else {
+        done()
+      }
+    }
   }
 }
 </script>