|
@@ -43,7 +43,7 @@
|
|
|
filterable
|
|
|
clearable
|
|
|
placeholder="请选择审核状态">
|
|
|
- <el-option v-for="(item,index) in orderServerList"
|
|
|
+ <el-option v-for="(item,index) in orderAuditTypeList"
|
|
|
:key="index"
|
|
|
:label="item.label"
|
|
|
:value="item.value"></el-option>
|
|
@@ -55,36 +55,59 @@
|
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
|
:data="tableList">
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
+ prop="merNo"
|
|
|
label="交易流水号"></el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
+ prop="organ.name"
|
|
|
label="分部"></el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
+ prop="school.name"
|
|
|
label="学校名称"></el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
+ prop="serviceAmount"
|
|
|
label="服务收入">
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
+ prop="saleAmount"
|
|
|
label="销售收入"></el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
- label="备注"></el-table-column>
|
|
|
+ prop="memo"
|
|
|
+ label="备注">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <Tooltip :content="scope.row.memo?scope.row.memo:''" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
+ prop="operator.username"
|
|
|
label="申请人"></el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
- label="状态"></el-table-column>
|
|
|
+ prop="auditStatus"
|
|
|
+ label="状态">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{scope.row.auditStatus?(scope.row.auditStatus| orderAuditType):'审核通过'}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
- label="交易日期"></el-table-column>
|
|
|
+ prop="payTime"
|
|
|
+ label="交易日期">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{scope.row.payTime | dateForMinFormat}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
- label="申请时间"></el-table-column>
|
|
|
+ prop="createTime"
|
|
|
+ label="申请时间">
|
|
|
+
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{scope.row.createTime | dateForMinFormat}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
prop="studentId"
|
|
|
label="操作">
|
|
@@ -107,7 +130,8 @@
|
|
|
<el-dialog title="审核详情"
|
|
|
:visible.sync="orderVisible"
|
|
|
width="600px">
|
|
|
- <orderAuditDetail />
|
|
|
+ <orderAuditDetail :orderId='activceId'
|
|
|
+ v-if="orderVisible" />
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -118,10 +142,13 @@ import { getToken } from "@/utils/auth";
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
import load from "@/utils/loading";
|
|
|
import { getEmployeeOrgan } from "@/api/buildTeam";
|
|
|
-import { orderServerList } from "@/utils/searchArray"
|
|
|
+import { orderServerList, orderAuditTypeList } from "@/utils/searchArray"
|
|
|
import orderAuditDetail from './orderAuditDetail'
|
|
|
+import { getRouteOrderList } from '@/api/orderManager'
|
|
|
+import { formatData } from '@/utils/utils';
|
|
|
+import Tooltip from '@/components/Tooltip/index'
|
|
|
export default {
|
|
|
- components: { pagination, orderAuditDetail },
|
|
|
+ components: { pagination, orderAuditDetail, Tooltip },
|
|
|
data () {
|
|
|
return {
|
|
|
searchForm: {
|
|
@@ -131,6 +158,7 @@ export default {
|
|
|
tableList: [{}],
|
|
|
organList: [],
|
|
|
orderServerList,
|
|
|
+ orderAuditTypeList,
|
|
|
rules: {
|
|
|
// 分页规则
|
|
|
limit: 10, // 限制显示条数
|
|
@@ -138,7 +166,8 @@ export default {
|
|
|
total: 0, // 总条数
|
|
|
page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
},
|
|
|
- orderVisible: false
|
|
|
+ orderVisible: false,
|
|
|
+ activceId: null
|
|
|
};
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -153,17 +182,27 @@ export default {
|
|
|
// 获取分部
|
|
|
|
|
|
this.init();
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
// activated () {
|
|
|
// this.init();
|
|
|
// },
|
|
|
methods: {
|
|
|
init () {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ getList () {
|
|
|
+ let params = this.searchForm
|
|
|
+ params.rows = this.rules.limit
|
|
|
+ params.page = this.rules.page
|
|
|
+ getRouteOrderList(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.tableList = res.data.rows
|
|
|
+ this.rules.total = res.data.total
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
- getList () { },
|
|
|
lookDetail (row) {
|
|
|
+ this.activceId = row.id
|
|
|
this.orderVisible = true
|
|
|
}
|
|
|
}
|