| 
					
				 | 
			
			
				@@ -15,7 +15,27 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         @on-load="onLoad" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :table-loading="loading" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         @saveColumn="saveColumn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        @expand-change="expandChange" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <template slot-scope="scope" slot="expand"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-table :data="scope.row.insideList" v-loading="scope.row.loading"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-table-column  label="发货单号" prop="billNo" align="center" show-overflow-tooltip width="200"></el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-table-column  label="订单号" prop="orderNo" align="center" show-overflow-tooltip width="200"></el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-table-column  label="状态" prop="status" align="center" show-overflow-tooltip width="200"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <span>{{ scope.row.status == 0? '正常': '停用' }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-table-column  label="消费类型" prop="pointsType" align="center" show-overflow-tooltip width="200"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <span>{{ scope.row.overpaymentType == 0? '增加': '消费' }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-table-column  label="创建时间" prop="createTime" align="center" show-overflow-tooltip width="200"></el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-table-column  label="创建人" prop="createUser" align="center" show-overflow-tooltip width="200"></el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-table-column  label="备注" prop="remarks" align="center" show-overflow-tooltip width="200"></el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <template slot="corpIdSearch"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <crop-select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             v-model="search.corpId" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,7 +52,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import option from './config/mainList.json'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import {getList} from '@/api/maintenance/integral'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import {getList, detail} from '@/api/maintenance/integral'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: "index", 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -75,6 +95,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.page.pageSize = val; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     refreshChange() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.dataList.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$refs.crud.toggleRowExpansion(item, false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.page.currentPage = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.onLoad(this.page, this.search); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onLoad(page, params) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -86,16 +110,34 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (this.page.total) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.option.height = window.innerHeight - 260; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.dataList.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$set(item,'insideList',[]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$set(item,'loading', true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .finally(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.loading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 表格展开触发 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    expandChange(row, index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (row.loading) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        detail({pid: row.id}).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          row.insideList = res.data.data? res.data.data.records: [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          row.loading = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     async saveColumn() {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <style scoped> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/deep/ .el-table__expanded-cell .el-table__header-wrapper .cell { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  font-size: 8px !important; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/deep/ .el-table__body-wrapper .cell { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  font-size: 8px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </style> 
			 |