LiFei il y a 3 ans
Parent
commit
7661a56a82
1 fichiers modifiés avec 7 ajouts et 4 suppressions
  1. 7 4
      src/views/hlwinvoice/modules/HlwInvoiceManageModalForm.vue

+ 7 - 4
src/views/hlwinvoice/modules/HlwInvoiceManageModalForm.vue

@@ -1,6 +1,6 @@
 <template>
   <a-spin :spinning="confirmLoading">
-    <a-form-model ref="form" :model="model" :rules="validatorRules">
+    <a-form :form="form">
 
       <!-- 查询区域 -->
       <div class="table-page-search-wrapper">
@@ -57,7 +57,7 @@
 
 
 
-    </a-form-model>
+    </a-form>
   </a-spin>
 </template>
 
@@ -76,6 +76,7 @@
     },
     data () {
       return {
+        form: this.$form.createForm(this),
         validatorRules:{},
         title:"操作",
         bodyStyle: {
@@ -162,7 +163,7 @@
           }
         ],
         url: {
-          list: "/wisdom/hlwPayment/detailList",
+          list: "/wisdom/hlwInvoice/paymentList",
         },
         dictOptions:{},
       }
@@ -179,6 +180,7 @@
       initDictConfig(){
       },
       edit (record) {
+        this.form.resetFields();
         this.model = Object.assign({}, record);
         this.visible = true;
       },
@@ -192,7 +194,7 @@
           this.ipagination.current = 1
         }
         var params = this.getQueryParams();//查询条件
-        params.invoiceId=this.$route.query.id;
+        params.id=this.$route.query.id;
         this.loading = true
         getAction(this.url.list, params).then((res) => {
           if (res.success) {
@@ -215,6 +217,7 @@
         this.visible = false
       },
       paymentDetail(record){
+        record.paymentId=record.id
         this.$router.push({ path: '/wisdom/hlwInvoice/add',query:{record:record }})
       }