瀏覽代碼

1、http地址增加a标签 2、无车运单号查询发票增加发票状态和发票状态原因字段

mashengyi 2 年之前
父節點
當前提交
ef70e07482

+ 3 - 0
src/views/noCar/hcInvoice.vue

@@ -85,6 +85,9 @@
             width="140"
             label="红票下载url"
             show-overflow-tooltip>
+             <template slot-scope="scope">
+               <a :href="scope.row.invoiceUrl" target="_blank">{{scope.row.invoiceUrl}}</a>
+            </template>
           </el-table-column>
         </el-table>
       </template>

+ 36 - 1
src/views/noCar/invoice.vue

@@ -178,11 +178,19 @@
             prop="invoiceHtmlUrl"
             label="预览地址"
             show-overflow-tooltip>
+             <template slot-scope="scope">
+               <a :href="scope.row.invoiceHtmlUrl" target="_blank">{{scope.row.invoiceHtmlUrl}}</a>
+            </template>
           </el-table-column>
+
+
           <el-table-column
             prop="invoiceUrl"
             label="下载地址"
             show-overflow-tooltip>
+             <template slot-scope="scope">
+               <a :href="scope.row.invoiceUrl" target="_blank">{{scope.row.invoiceUrl}}</a>
+            </template>
           </el-table-column>
            <el-table-column
             prop="calculateTime"
@@ -200,6 +208,22 @@
               <span v-else-if="scope.row.billStatus == 4" style="color: red">超时运单</span>
             </template>
           </el-table-column>
+          <el-table-column
+            prop="invoiceStatus"
+            label="发票状态"
+            show-overflow-tooltip>
+             <template slot-scope="scope">
+              <span v-if="scope.row.invoiceStatus == 1" style="color: green">待开票</span>
+              <span v-else-if="scope.row.invoiceStatus == 2" style="color: green">开票中</span>
+              <span v-else-if="scope.row.invoiceStatus == 3" style="color: green">开票完成</span>
+            </template>
+          </el-table-column>
+          <el-table-column
+            prop="msg"
+            label="发票状态信息"
+            show-overflow-tooltip>
+          </el-table-column>
+
            <el-table-column
             prop="interType"
             label="对接方式"
@@ -520,8 +544,11 @@ import XLSX from "xlsx";
                       {"title":"税率","key":"taxRate"},
                       {"title":"扣费时间","key":"calculateTime"},
                       {"title":"运单状态","key":"billStatus"},
+                      {"title":"发票状态","key":"invoiceStatus"},
+                      {"title":"发票状态信息","key":"msg"},
                       {"title":"预览地址","key":"invoiceHtmlUrl"},
-                      {"title":"下载地址","key":"invoiceUrl"}  
+                      {"title":"下载地址","key":"invoiceUrl"}
+                  
                          
                     ];
                     this.exportExcelComm(cloums,recodes,name,loading)
@@ -543,6 +570,14 @@ import XLSX from "xlsx";
                  }else {
                    return "超时运单";
                  }
+              } else if(j == 'invoiceStatus'){
+                 if(v[j] == 1){
+                   return "待开票";
+                 } else if(v[j] == 2){
+                   return "开票中";
+                 }else{
+                   return "开票完成";
+                 }
               }else if(j =='fee'){
                   return v[j]/100;
               }else if(j =='totalAmount'){

+ 6 - 0
src/views/platform/apply/already.vue

@@ -147,11 +147,17 @@
             prop="invoiceHtmlUrl"
             label="预览地址"
             show-overflow-tooltip>
+            <template slot-scope="scope">
+               <a :href="scope.row.invoiceHtmlUrl" target="_blank">{{scope.row.invoiceHtmlUrl}}</a>
+            </template>
           </el-table-column>
           <el-table-column
             prop="invoiceUrl"
             label="下载地址"
             show-overflow-tooltip>
+            <template slot-scope="scope">
+               <a :href="scope.row.invoiceUrl" target="_blank">{{scope.row.invoiceUrl}}</a>
+            </template>
           </el-table-column>
            <el-table-column
             prop="tradeStatus"

+ 32 - 0
src/views/platform/invoice/list.vue

@@ -213,11 +213,17 @@
             prop="invoiceHtmlUrl"
             label="预览地址"
             show-overflow-tooltip>
+            <template slot-scope="scope">
+               <a :href="scope.row.invoiceHtmlUrl" target="_blank">{{scope.row.invoiceHtmlUrl}}</a>
+            </template>
           </el-table-column>
           <el-table-column
             prop="invoiceUrl"
             label="下载地址"
             show-overflow-tooltip>
+            <template slot-scope="scope">
+               <a :href="scope.row.invoiceUrl" target="_blank">{{scope.row.invoiceUrl}}</a>
+            </template>
           </el-table-column>
            <el-table-column
             prop="billStatus"
@@ -230,6 +236,22 @@
               <span v-else-if="scope.row.billStatus == 4" style="color: red">超时运单</span>
             </template>
           </el-table-column>
+          <el-table-column
+            prop="invoiceStatus"
+            label="发票状态"
+            show-overflow-tooltip>
+             <template slot-scope="scope">
+              <span v-if="scope.row.invoiceStatus == 1" style="color: green">待开票</span>
+              <span v-else-if="scope.row.invoiceStatus == 2" style="color: green">开票中</span>
+              <span v-else-if="scope.row.invoiceStatus == 3" style="color: green">开票完成</span>
+            </template>
+          </el-table-column>
+          <el-table-column
+            prop="msg"
+            label="发票状态信息"
+             width="120"
+            show-overflow-tooltip>
+          </el-table-column>
            <el-table-column
             prop="calculateTime"
             label="扣费时间"
@@ -482,6 +504,8 @@ export default{
                       {"title":"税率","key":"taxRate"},
                       {"title":"扣费时间","key":"calculateTime"},
                       {"title":"运单状态","key":"billStatus"},
+                      {"title":"发票状态","key":"invoiceStatus"},
+                      {"title":"发票状态信息","key":"msg"},
                       {"title":"预览地址","key":"invoiceHtmlUrl"},
                       {"title":"下载地址","key":"invoiceUrl"}  
                          
@@ -506,6 +530,14 @@ export default{
                  }else {
                    return "超时运单";
                  }
+              }else if(j == 'invoiceStatus'){
+                 if(v[j] == 1){
+                   return "待开票";
+                 } else if(v[j] == 2){
+                   return "开票中";
+                 }else{
+                   return "开票完成";
+                 }
               }else if(j =='fee'){
                   return v[j]/100;
               }else if(j =='totalAmount'){

+ 6 - 0
src/views/selfCar/invoice.vue

@@ -175,11 +175,17 @@
             prop="invoiceHtmlUrl"
             label="预览地址"
             show-overflow-tooltip>
+            <template slot-scope="scope">
+               <a :href="scope.row.invoiceHtmlUrl" target="_blank">{{scope.row.invoiceHtmlUrl}}</a>
+            </template>
           </el-table-column>
           <el-table-column
             prop="invoiceUrl"
             label="下载地址"
             show-overflow-tooltip>
+            <template slot-scope="scope">
+               <a :href="scope.row.invoiceUrl" target="_blank">{{scope.row.invoiceUrl}}</a>
+            </template>
           </el-table-column>
            <el-table-column
             prop="tradeStatus"