|  | @@ -181,17 +181,34 @@
 | 
	
		
			
				|  |  |                                 @search-criteria-switch="searchCriteriaSwitch">
 | 
	
		
			
				|  |  |                      </avue-crud>
 | 
	
		
			
				|  |  |                  </el-tab-pane>
 | 
	
		
			
				|  |  | +                <el-tab-pane label="会员卡金额消费记录" name="jexfjl">
 | 
	
		
			
				|  |  | +                    <avue-crud :option="hykoption"
 | 
	
		
			
				|  |  | +                               :data="hykdataList"
 | 
	
		
			
				|  |  | +                               ref="crud"
 | 
	
		
			
				|  |  | +                               v-model="hykform"
 | 
	
		
			
				|  |  | +                               :page.sync="hykmxpage"
 | 
	
		
			
				|  |  | +                               :search.sync="hykmxsearch"
 | 
	
		
			
				|  |  | +                               :table-loading="hykmxloading"
 | 
	
		
			
				|  |  | +                               @search-change="czmxsearchChange"
 | 
	
		
			
				|  |  | +                               @size-change="czmxsizeChange"
 | 
	
		
			
				|  |  | +                               @refresh-change="czmxrefreshChange"
 | 
	
		
			
				|  |  | +                               @saveColumn="czmxsaveColumn"
 | 
	
		
			
				|  |  | +                               @resetColumn="czmxresetColumn"
 | 
	
		
			
				|  |  | +                               @on-load="hykmxonLoad"
 | 
	
		
			
				|  |  | +                               @search-criteria-switch="searchCriteriaSwitch">
 | 
	
		
			
				|  |  | +                    </avue-crud>
 | 
	
		
			
				|  |  | +                </el-tab-pane>
 | 
	
		
			
				|  |  |              </el-tabs>
 | 
	
		
			
				|  |  |          </basic-container>
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | -import { optionList, sellOption, capitalOption, czoption } from "./js/optionList";
 | 
	
		
			
				|  |  | +import { optionList, sellOption, capitalOption, czoption,hykoption } from "./js/optionList";
 | 
	
		
			
				|  |  |  import { getList, getCorpsAll, gainUser, getCorpType, getAllgoods } from "@/api/basicData/salesOrder";
 | 
	
		
			
				|  |  |  import { getDetails, getSellList } from "@/api/basicData/client";
 | 
	
		
			
				|  |  |  import { validatenull } from "@/util/validate";
 | 
	
		
			
				|  |  | -import {corpscechargerecordList} from "@/api/financialManagement/financialManagement";
 | 
	
		
			
				|  |  | +import {consumptionRecords, corpscechargerecordList} from "@/api/financialManagement/financialManagement";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |      name: "index",
 | 
	
	
		
			
				|  | @@ -234,9 +251,25 @@ export default {
 | 
	
		
			
				|  |  |              // 页码
 | 
	
		
			
				|  |  |              czmxpage: {
 | 
	
		
			
				|  |  |                  pageSize: 10,
 | 
	
		
			
				|  |  | -                pagerCount: 5,
 | 
	
		
			
				|  |  | +                pagerCount: 1,
 | 
	
		
			
				|  |  | +                total: 0,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // 会员卡金额消费记录配置
 | 
	
		
			
				|  |  | +            hykoption:hykoption,
 | 
	
		
			
				|  |  | +            // 会员卡的数据
 | 
	
		
			
				|  |  | +            hykdataList:[],
 | 
	
		
			
				|  |  | +            // 会员卡绑定的值
 | 
	
		
			
				|  |  | +            hykform:{},
 | 
	
		
			
				|  |  | +            // 页码
 | 
	
		
			
				|  |  | +            hykmxpage: {
 | 
	
		
			
				|  |  | +                pageSize: 10,
 | 
	
		
			
				|  |  | +                pagerCount: 1,
 | 
	
		
			
				|  |  |                  total: 0,
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  | +            // 表单搜索的变量对象
 | 
	
		
			
				|  |  | +            hykmxsearch:{},
 | 
	
		
			
				|  |  | +            hykmxloading:false,
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              sellOption: {},
 | 
	
		
			
				|  |  |              capitalOption: {},
 | 
	
		
			
				|  |  |              sellList: [],
 | 
	
	
		
			
				|  | @@ -400,6 +433,24 @@ export default {
 | 
	
		
			
				|  |  |                  this.$refs.crud.$refs.dialogColumn.columnBox = false;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | +        // 会员卡消费记录
 | 
	
		
			
				|  |  | +        hykmxonLoad(page,params){
 | 
	
		
			
				|  |  | +            consumptionRecords({
 | 
	
		
			
				|  |  | +                currentPage:page.currentPage,
 | 
	
		
			
				|  |  | +                pageSize:page.pageSize,
 | 
	
		
			
				|  |  | +                corpId:this.detailData.id,
 | 
	
		
			
				|  |  | +                ...params
 | 
	
		
			
				|  |  | +            }).then(res =>{
 | 
	
		
			
				|  |  | +                this.hykdataList = res.data.data.records
 | 
	
		
			
				|  |  | +                this.hykmxpage.total = res.data.data.total
 | 
	
		
			
				|  |  | +                if (this.hykmxpage.total) {
 | 
	
		
			
				|  |  | +                    this.hykoption.height = window.innerHeight - 240;
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }).finally(()=>{
 | 
	
		
			
				|  |  | +                this.czloading = false
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          getAllWorkDicts() {
 | 
	
		
			
				|  |  |              gainUser().then(res => {
 | 
	
		
			
				|  |  |                  this.findObject(this.sellOption.column, "createUser").dicData = res.data.data;
 |