|
@@ -5,7 +5,14 @@
|
|
|
<el-col :span="24" class="leftTop"> <span>|</span> <span>交易备案</span> </el-col>
|
|
|
<el-col :span="24" class="info">
|
|
|
<span v-if="view">
|
|
|
- <list :recruitInfo="recruitInfo" :total="total" @handleCurrentChange="handleCurrentChange" @shareBtn="shareBtn"></list>
|
|
|
+ <el-tabs v-model="activeName" type="card">
|
|
|
+ <el-tab-pane label="待确定" name="first">
|
|
|
+ <one :oneList="oneList" :oneTotal="oneTotal" @shareBtn="shareBtn"></one>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="审核完成" name="second">
|
|
|
+ <two :twoList="twoList" :twoTotal="twoTotal"></two>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
</span>
|
|
|
<span v-else>
|
|
|
<detail :form="form" @submitDate="onSubmit"></detail>
|
|
@@ -17,7 +24,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import list from './parts/list.vue';
|
|
|
+import one from './parts/one.vue';
|
|
|
+import two from './parts/two.vue';
|
|
|
import detail from './parts/detail.vue';
|
|
|
import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
|
|
|
const { mapActions: tranaudit } = createNamespacedHelpers('tranaudit');
|
|
@@ -28,17 +36,19 @@ export default {
|
|
|
name: 'recruit',
|
|
|
props: {},
|
|
|
components: {
|
|
|
- list,
|
|
|
+ one,
|
|
|
+ two,
|
|
|
detail,
|
|
|
},
|
|
|
data: () => ({
|
|
|
topTitle: '审核信息',
|
|
|
+ // 显示判断
|
|
|
view: true,
|
|
|
- recruitInfo: [],
|
|
|
- total: 1,
|
|
|
- currentPage: 0,
|
|
|
- pageSize: 10,
|
|
|
- skip: '',
|
|
|
+ activeName: 'first',
|
|
|
+ oneList: [],
|
|
|
+ oneTotal: 0,
|
|
|
+ twoList: [],
|
|
|
+ twoTotal: 0,
|
|
|
form: {},
|
|
|
}),
|
|
|
created() {
|
|
@@ -49,27 +59,19 @@ export default {
|
|
|
shareBtn(id) {
|
|
|
this.searchinfo(id), (this.view = false);
|
|
|
},
|
|
|
- // 删除
|
|
|
- // async deleteBtn(id) {
|
|
|
- // const res = await this.transactiondetele(id);
|
|
|
- // this.$checkRes(res, '删除成功', '删除失败');
|
|
|
- // this.search();
|
|
|
- // },
|
|
|
-
|
|
|
...productpact({ transactionQuery: 'query', productpactFetch: 'findpact', productpactUpdate: 'update' }),
|
|
|
...tranaudit({ tranauditList: 'query', tranauditListupdate: 'update' }),
|
|
|
...transactions({ transactionsfetch: 'fetch', transactionslist: 'query', transactiondetele: 'detele', transactionupdate: 'update' }),
|
|
|
...dock({ dockQuery: 'query', dockFetch: 'fetch' }),
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
const res = await this.dockFetch(this.user.uid);
|
|
|
- const arr = await this.transactionslist({ skip, dockid: res.data.id, limit, status: '4', ...info });
|
|
|
- this.$set(this, `recruitInfo`, arr.data);
|
|
|
- this.$set(this, `total`, arr.total);
|
|
|
- },
|
|
|
-
|
|
|
- async handleCurrentChange({ skip, limit, currentPage }) {
|
|
|
- this.$set(this, `skip`, skip);
|
|
|
- this.search();
|
|
|
+ const arr = await this.transactionslist({ dockid: res.data.id, ...info });
|
|
|
+ var one = arr.data.filter(item => item.status === '4');
|
|
|
+ var two = arr.data.filter(item => item.status === '2' || item.status === '3');
|
|
|
+ this.$set(this, `oneList`, one);
|
|
|
+ this.$set(this, `oneTotal`, one.length);
|
|
|
+ this.$set(this, `twoList`, two);
|
|
|
+ this.$set(this, `twoTotal`, two.length);
|
|
|
},
|
|
|
//审核页面
|
|
|
async searchinfo(id) {
|
|
@@ -91,6 +93,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
this.view = true;
|
|
|
+ this.search();
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -119,6 +122,6 @@ export default {
|
|
|
color: #22529a;
|
|
|
}
|
|
|
.info {
|
|
|
- padding: 0 40px 0 0;
|
|
|
+ padding: 0 40px 0 10px;
|
|
|
}
|
|
|
</style>
|