浏览代码

创客付款单调整

LiFei 3 年之前
父节点
当前提交
6e76d2756c

+ 1 - 1
src/views/hlwinvoice/modules/HlwInvoiceManageModalForm.vue

@@ -215,7 +215,7 @@
         this.visible = false
       },
       paymentDetail(record){
-        this.$router.push({ path: '/wisdom/hlwInvoice/add',query:{record:record }})
+        this.$router.push({ path: '/wisdom/hlwInvoice/add',query:{record:JSON.stringify(record) }})
       }
 
 

+ 2 - 2
src/views/hlwinvoice/modules/HlwInvoiceManagePaymentModal.vue

@@ -29,8 +29,8 @@
     },
     data () {
       return {
-        tabs: {tab1: '开票明细'},
-        tabs_detail: {tab1: '开票明细'},
+        tabs: {tab1: '创客付款单'},
+        tabs_detail: {tab1: '创客付款单'},
         title:"操作",
         width:800,
         visible: false,

+ 12 - 9
src/views/hlwinvoice/modules/HlwInvoiceManagePaymentModalForm.vue

@@ -15,12 +15,12 @@
       <a-row :gutter="24">
         <a-col :lg="12" :md="12" :sm="24">
           <a-form-model-item label="批次单号" :labelCol="labelCol" :wrapperCol="wrapperCol" >
-            {{this.$route.query.record.paymentCode}}
+            {{this.model.paymentCode}}
           </a-form-model-item>
         </a-col>
         <a-col :lg="12" :md="12" :sm="24">
           <a-form-model-item label="任务单号" :labelCol="labelCol" :wrapperCol="wrapperCol" >
-            {{this.$route.query.record.requirementCode}}
+            {{this.model.requirementCode}}
           </a-form-model-item>
         </a-col>
       </a-row>
@@ -28,12 +28,12 @@
       <a-row :gutter="24">
         <a-col :lg="12" :md="12" :sm="24">
           <a-form-model-item label="任务名称" :labelCol="labelCol" :wrapperCol="wrapperCol" >
-            {{this.$route.query.record.requirementName}}
+            {{this.model.requirementName}}
           </a-form-model-item>
         </a-col>
         <a-col :lg="12" :md="12" :sm="24">
           <a-form-model-item label="服务内容" :labelCol="labelCol" :wrapperCol="wrapperCol" >
-            {{this.$route.query.record.invoiceCategoryName}}
+            {{this.model.invoiceCategoryName}}
           </a-form-model-item>
         </a-col>
       </a-row>
@@ -43,7 +43,7 @@
       <a-row :gutter="24">
         <a-col :lg="12" :md="12" :sm="24">
           <a-form-model-item label="企业名称" :labelCol="labelCol" :wrapperCol="wrapperCol" >
-            {{this.$route.query.record.companyName}}
+            {{this.model.companyName}}
           </a-form-model-item>
         </a-col>
       </a-row>
@@ -53,12 +53,12 @@
       <a-row :gutter="24">
         <a-col :lg="12" :md="12" :sm="24">
           <a-form-model-item label="服务商" :labelCol="labelCol" :wrapperCol="wrapperCol" >
-            {{this.$route.query.record.subcontractorName}}
+            {{this.model.subcontractorName}}
           </a-form-model-item>
         </a-col>
         <a-col :lg="12" :md="12" :sm="24">
           <a-form-model-item label="服务费率" :labelCol="labelCol" :wrapperCol="wrapperCol" >
-            {{this.$route.query.record.serviceRate}}%
+            {{this.model.serviceRate}}%
           </a-form-model-item>
         </a-col>
       </a-row>
@@ -198,13 +198,13 @@
       },
     },
     created () {
+      this.model=JSON.parse(this.$route.query.record)
       this.loadData(1)
     },
     methods: {
       initDictConfig(){
       },
       edit (record) {
-        this.model = Object.assign({}, record);
         this.visible = true;
       },
       loadData(arg) {
@@ -212,12 +212,15 @@
           this.$message.error('请设置url.list属性!')
           return
         }
+        if(!this.model.id){
+          return;
+        }
         //加载数据 若传入参数1则加载第一页的内容
         if (arg === 1) {
           this.ipagination.current = 1
         }
         var params = this.getQueryParams();//查询条件
-        params.paymentId=this.$route.query.record.id;
+        params.paymentId=this.model.id;
         this.loading = true
         getAction(this.url.list, params).then((res) => {
           if (res.success) {