| 
					
				 | 
			
			
				@@ -3,7 +3,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-form-item label="订单号"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          v-model="queryParams.refundId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          v-model="queryParams.orderId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           placeholder="请输入订单号" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           style="width: 240px;" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -12,7 +12,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-form-item label="抬头名称"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          v-model="queryParams.orderId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          v-model="queryParams.name" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           placeholder="请输入抬头名称" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           style="width: 240px;" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -21,15 +21,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-form-item label="类型"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          v-model="queryParams.status" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          v-model="queryParams.handlerType" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           placeholder="类型" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            v-for="dict in statusList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            :key="dict.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            :label="dict.name" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-for="dict in dict.type.lookup_type" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :key="dict.value" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :label="dict.label" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             :value="dict.value" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-select> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -42,9 +42,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            v-for="dict in statusList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            :key="dict.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            :label="dict.name" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-for="dict in dict.type.Invoicing_type" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :key="dict.value" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :label="dict.label" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             :value="dict.value" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-select> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -61,23 +61,23 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <el-table ref="tables" v-loading="loading" :data="dataList" border> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="序号" align="center" type="index" width="60"></el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table-column label="订单号" align="center" prop="id" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table-column label="订单金额" align="center" prop="orderId"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="订单号" align="center" prop="orderId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="订单金额(元)" align="center" prop="invoiceAmount" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="类型" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-button type="text" @click="openDetails(scope.row, 'order')">{{ scope.row.orderId }}</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <dict-tag :options="dict.type.lookup_type" :value="scope.row.handlerType"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table-column label="类型" align="center" prop="refundMobile" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table-column label="抬头名称" align="center" prop="transactionId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table-column label="税号" align="center" prop="type"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="抬头名称" align="center" prop="name" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="税号" align="center" prop="creditCode" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="状态" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <span>¥{{ scope.row.refundAmount }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <dict-tag :options="dict.type.Invoicing_type" :value="scope.row.status"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table-column label="状态" align="center" prop="refundReason" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table-column label="申请时间" align="center" prop="refundTime"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="申请时间" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <span>{{ parseTime(scope.row.refundTime) }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span>{{ parseTime(scope.row.createTime) }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -91,8 +91,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            v-if="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @click="openDetails(scope.row, 'refund')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-if="scope.row.status == 1" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @click="openRedBlood(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             v-hasPermi="['finance:InvoiceRecords:redblood']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           >冲红</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -109,9 +109,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 详情 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <details-dia ref="detailsDia" @getList="getList"></details-dia> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <orderDetails ref="orderDetails" @getList="getList"></orderDetails> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -119,11 +116,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { pageList } from '@/api/financeMr/InvoiceRecords' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import detailsDia from "./dialog/details.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import orderDetails from "./dialog/orderDetails.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  name: "agreement", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  dicts: ['agreement_type'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  components: { detailsDia, orderDetails }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  name: "InvoiceRecords", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  dicts: ['Invoicing_type','lookup_type'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  components: { detailsDia }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 遮罩层 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -151,17 +147,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       queryParams: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         pageNum: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         pageSize: 10, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      statusList: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        {id: 1, name: '申请中', value: 0}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        {id: 2, name: '退款成功', value: 1}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        {id: 3, name: '退款驳回', value: 2}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        {id: 4, name: '退款中', value: 3}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        {id: 5, name: '退款失败', value: 4}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      visibleStatus: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      newObj: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      visibleType: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   created() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -191,22 +177,34 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 重置按钮操作 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     resetQuery() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.dateRange = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$set(this.queryParams, 'refundId', ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$set(this.queryParams, 'orderId', ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$set(this.queryParams, 'refundMobile', ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$set(this.queryParams, 'name', ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$set(this.queryParams, 'status', ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$set(this.queryParams, 'transactionId', ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$set(this.queryParams, 'handlerType', ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParams.pageNum = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.handleQuery(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 详情按钮操作 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     openDetails(row, type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if(type == 'order') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$refs["orderDetails"].openDialog("详情", row, type); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$refs["detailsDia"].openDialog("详情", row, type); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$refs["detailsDia"].openDialog("详情", row, type); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    openRedBlood(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$confirm('您即将进行冲红操作,是否继续?', '提示', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          confirmButtonText: '确定', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          cancelButtonText: '取消', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          type: 'warning' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            type: 'success', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            message: '冲红成功!' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).catch(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            type: 'info', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            message: '已取消冲红' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          });           
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 |