|
@@ -38,6 +38,9 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-divider></el-divider>
|
|
<el-divider></el-divider>
|
|
|
|
+ <el-row class="button-group">
|
|
|
|
+ <el-button type="success" size="small" plain icon="el-icon-upload2" @click="batchRecharge">批量充值</el-button>
|
|
|
|
+ </el-row>
|
|
<el-table
|
|
<el-table
|
|
ref="formTable"
|
|
ref="formTable"
|
|
:data="tableData"
|
|
:data="tableData"
|
|
@@ -50,20 +53,20 @@
|
|
>
|
|
>
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
<el-table-column type="index" label="序号" :index="indexMethod" width="50"></el-table-column>
|
|
<el-table-column type="index" label="序号" :index="indexMethod" width="50"></el-table-column>
|
|
- <el-table-column prop="companyName" label="部门" width="200"></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="companyName" label="部门" width="250"></el-table-column>
|
|
<el-table-column prop="personName" label="姓名" width="100"></el-table-column>
|
|
<el-table-column prop="personName" label="姓名" width="100"></el-table-column>
|
|
- <el-table-column prop="cardNumber" label="卡号" width="150"></el-table-column>
|
|
|
|
- <el-table-column prop="balanceFee" label="剩余金额(元)" width="120" ></el-table-column>
|
|
|
|
- <el-table-column prop="lastRechargeTime" label="上次充值时间" width="150"></el-table-column>
|
|
|
|
- <el-table-column prop="lastMealTime" label="上次就餐时间" width="150"></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="jobNumber" label="工号" width="130"></el-table-column>
|
|
|
|
+ <el-table-column prop="balanceFee" label="剩余金额(元)" width="150" ></el-table-column>
|
|
|
|
+ <el-table-column prop="lastRechargeTime" label="上次充值时间" ></el-table-column>
|
|
|
|
+ <el-table-column prop="lastMealTime" label="上次就餐时间" ></el-table-column>
|
|
<el-table-column label="操作" width="250" fixed="right">
|
|
<el-table-column label="操作" width="250" fixed="right">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
- <el-link type="success" @click="handleEdit(row)">充值</el-link>
|
|
|
|
|
|
+ <el-link type="success" @click="handleRecharge(row)">充值</el-link>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
- <el-link type="primary" @click="handleDelete(row)">充值记录</el-link>
|
|
|
|
|
|
+ <el-link type="primary" @click="searchRechargeRecord(row)">充值记录</el-link>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<el-link type="primary" @click="searchRecord(row)">就餐记录</el-link>
|
|
<el-link type="primary" @click="searchRecord(row)">就餐记录</el-link>
|
|
@@ -86,10 +89,24 @@
|
|
:title="modalTitle"
|
|
:title="modalTitle"
|
|
@close="onDetailModalClose"
|
|
@close="onDetailModalClose"
|
|
></canteenDiningRecord-list>
|
|
></canteenDiningRecord-list>
|
|
|
|
+ <canteenOutsourcerRechargeRecord-list
|
|
|
|
+ v-if="showModal2"
|
|
|
|
+ :personId="personId"
|
|
|
|
+ :title="modalTitle2"
|
|
|
|
+ @close="onDetailModalClose2"
|
|
|
|
+ ></canteenOutsourcerRechargeRecord-list>
|
|
|
|
+ <canteenOutsourcerRecharge
|
|
|
|
+ v-if="showModal3"
|
|
|
|
+ :personId="personId"
|
|
|
|
+ :title="modalTitle3"
|
|
|
|
+ @close="onDetailModalClose3"
|
|
|
|
+ ></canteenOutsourcerRecharge>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import Constant from "@/constant";
|
|
import Constant from "@/constant";
|
|
|
|
+import canteenOutsourcerRechargeRecordList from "./canteenOutsourcerRechargeRecord-list";
|
|
|
|
+import canteenOutsourcerRecharge from "./canteenOutsourcerRecharge";
|
|
import canteenDiningRecordList from "./canteenDiningRecord-list";
|
|
import canteenDiningRecordList from "./canteenDiningRecord-list";
|
|
import canteenOutsourcerBalanceApi from "@/api/base/canteenOutsourcerBalance";
|
|
import canteenOutsourcerBalanceApi from "@/api/base/canteenOutsourcerBalance";
|
|
import pageUtil from "@/utils/page";
|
|
import pageUtil from "@/utils/page";
|
|
@@ -119,7 +136,11 @@ export default {
|
|
pageSizeList: [10, 20, 30],
|
|
pageSizeList: [10, 20, 30],
|
|
multipleSelection: [],
|
|
multipleSelection: [],
|
|
showModal: false,
|
|
showModal: false,
|
|
|
|
+ showModal2: false,
|
|
|
|
+ showModal3: false,
|
|
modalTitle: "",
|
|
modalTitle: "",
|
|
|
|
+ modalTitle2: "",
|
|
|
|
+ modalTitle3: "",
|
|
businessKey: "",
|
|
businessKey: "",
|
|
companyResult: [],
|
|
companyResult: [],
|
|
tableHeight: 400,
|
|
tableHeight: 400,
|
|
@@ -281,10 +302,44 @@ export default {
|
|
this.changePage(this.pageIndex);
|
|
this.changePage(this.pageIndex);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ onDetailModalClose2(refreshed) {
|
|
|
|
+ //保存成功后回调
|
|
|
|
+ this.showModal2 = false;
|
|
|
|
+
|
|
|
|
+ if (refreshed) {
|
|
|
|
+ this.changePage(this.pageIndex);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ onDetailModalClose3(refreshed) {
|
|
|
|
+ //保存成功后回调
|
|
|
|
+ this.showModal3 = false;
|
|
|
|
+
|
|
|
|
+ if (refreshed) {
|
|
|
|
+ this.changePage(this.pageIndex);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ searchRechargeRecord(record) {
|
|
|
|
+ this.personId = record.personId;
|
|
|
|
+ this.showModal2 = true;
|
|
|
|
+ },
|
|
searchRecord(record) {
|
|
searchRecord(record) {
|
|
this.personId = record.personId;
|
|
this.personId = record.personId;
|
|
this.showModal = true;
|
|
this.showModal = true;
|
|
},
|
|
},
|
|
|
|
+ handleRecharge(record){
|
|
|
|
+ this.personId = record.personId;
|
|
|
|
+ this.showModal3 = true;
|
|
|
|
+ },
|
|
|
|
+ batchRecharge(){
|
|
|
|
+ var self = this;
|
|
|
|
+ var idList = this.multipleSelection.map(record => {
|
|
|
|
+ return record.personId;
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ self.personId = idList;
|
|
|
|
+
|
|
|
|
+ this.showModal3 = true;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
mounted: function() {
|
|
mounted: function() {
|
|
var self = this;
|
|
var self = this;
|
|
@@ -296,6 +351,8 @@ export default {
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
"canteenDiningRecord-list": canteenDiningRecordList,
|
|
"canteenDiningRecord-list": canteenDiningRecordList,
|
|
|
|
+ "canteenOutsourcerRechargeRecord-list": canteenOutsourcerRechargeRecordList,
|
|
|
|
+ "canteenOutsourcerRecharge":canteenOutsourcerRecharge,
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|