LiFei 3 år sedan
förälder
incheckning
e8ebc8a246

+ 15 - 3
src/views/hlwinvoice/HlwInvoiceManageList.vue

@@ -76,9 +76,16 @@
 
 
         <span slot="action" slot-scope="text, record">
-            <a @click="viewInvoice(record)" >查看发票</a>
+            <a @click="handleDetail(record)" >开票明细</a>
+
            <a-divider type="vertical"  />
-            <a @click="handleDetail(record)" >发票明细</a>
+
+          <template v-if="!record.invoiceNumber">
+            <a style="color: orangered" @click="viewInvoice(record)" >开票反馈</a>
+           </template>
+          <template v-else>
+             <a style="color:limegreen" @click="viewInvoice1(record)" >查看发票</a>
+          </template>
 
         </span>
 
@@ -230,6 +237,12 @@
       },
       viewInvoice(record){
         record.totalPayment=record.amount
+        this.$refs.modalFormInvoice.edit(record);
+        this.$refs.modalFormInvoice.title = '开票反馈'
+        this.$refs.modalFormInvoice.disableSubmit = false
+      },
+      viewInvoice1(record){
+        record.totalPayment=record.amount
         //type=1是编辑
         record.type=1
         this.$refs.modalFormInvoice.edit(record);
@@ -238,7 +251,6 @@
       }
 
 
-
     }
   }
 </script>

+ 4 - 4
src/views/hlwinvoice/modules/HlwInvoiceModal.vue

@@ -15,6 +15,9 @@
         <a-form-item label="付款企业" :labelCol="labelCol" :wrapperCol="wrapperCol">
              {{model.companyName}}
         </a-form-item>
+        <a-form-item label="开票内容" :labelCol="labelCol" :wrapperCol="wrapperCol">
+          {{model.invoiceCategoryName}}
+        </a-form-item>
         <a-form-item label="通过平台" :labelCol="labelCol" :wrapperCol="wrapperCol">
           <template v-if="model.isThroughPlatform==1">是</template>
           <template v-else="">否</template>
@@ -221,7 +224,7 @@
             let method = '';
             httpurl+=this.url.add;
             method = 'post';
-            let formData = {}
+            let formData = Object.assign(this.model, {});
             //多图
             let path = '';
             let arr = []
@@ -242,13 +245,10 @@
                 path1 = arr1.join(',')
               }
               formData.serviceInvoice = path1;
-              formData.serviceAmount=this.model.serviceAmount
               formData.serviceInvoiceNumber=this.form.getFieldValue("serviceInvoiceNumber")
             }
             formData.invoice = path;
-            formData.amount=this.model.totalPayment
             formData.invoiceNumber=this.form.getFieldValue("invoiceNumber")
-            formData.idsList = this.model.idsList;
             console.log("表单提交数据",formData)
             httpAction(httpurl,formData,method).then((res)=>{
               if(res.success){