|
@@ -0,0 +1,115 @@
|
|
|
+<template>
|
|
|
+ <basic-container>
|
|
|
+ <avue-crud :option="option"
|
|
|
+ :data="dataList"
|
|
|
+ ref="crud"
|
|
|
+ v-model="form"
|
|
|
+ :page.sync="page"
|
|
|
+ :search.sync="search"
|
|
|
+ :table-loading="loading"
|
|
|
+ @search-change="searchChange"
|
|
|
+ @search-reset="searchReset"
|
|
|
+ @selection-change="selectionChange"
|
|
|
+ @current-change="currentChange"
|
|
|
+ @size-change="sizeChange"
|
|
|
+ @refresh-change="refreshChange"
|
|
|
+ @on-load="onLoad">
|
|
|
+ <template slot-scope="scope" slot="menu">
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ size="small"
|
|
|
+ @click.stop="editOpen(scope.row)"
|
|
|
+ >编辑
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </avue-crud>
|
|
|
+ </basic-container>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import option from "./config/mainList.json";
|
|
|
+
|
|
|
+ export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ loading : false,
|
|
|
+ form: {},
|
|
|
+ search:{},
|
|
|
+ show:true,
|
|
|
+ detailData:{},
|
|
|
+ option: option,
|
|
|
+ parentId:0,
|
|
|
+ dataList: [],
|
|
|
+ page: {
|
|
|
+ pageSize: 10,
|
|
|
+ pagerCount: 5,
|
|
|
+ total: 0,
|
|
|
+ },
|
|
|
+ query:{},
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ },
|
|
|
+
|
|
|
+ methods: {
|
|
|
+ //新单打开
|
|
|
+ addReceipt(row){
|
|
|
+
|
|
|
+ },
|
|
|
+ //编辑打开
|
|
|
+ editOpen(row, status){
|
|
|
+
|
|
|
+ },
|
|
|
+ rowDel(row, index, done) {
|
|
|
+
|
|
|
+ },
|
|
|
+ //点击搜索按钮触发
|
|
|
+ searchChange(params, done) {
|
|
|
+ this.query = params;
|
|
|
+ this.page.currentPage = 1;
|
|
|
+ this.onLoad(this.page, params);
|
|
|
+ done()
|
|
|
+ },
|
|
|
+ searchReset() {
|
|
|
+ console.log('1')
|
|
|
+ },
|
|
|
+ selectionChange() {
|
|
|
+ console.log('1')
|
|
|
+ },
|
|
|
+ currentChange() {
|
|
|
+ console.log('1')
|
|
|
+ },
|
|
|
+ sizeChange() {
|
|
|
+ console.log('1')
|
|
|
+ },
|
|
|
+ refreshChange() {
|
|
|
+ console.log('1')
|
|
|
+ },
|
|
|
+ onLoad(page, params = {}) {
|
|
|
+ // this.loading = true;
|
|
|
+ // if (params.createTime != undefined) { //合同
|
|
|
+ // params.createStartDate = params.createTime[0]+ " " + "00:00:00";
|
|
|
+ // params.createEndDate = params.createTime[1] + " " + "23:59:59";
|
|
|
+ // this.$delete(params,'createTime')
|
|
|
+ // }
|
|
|
+ // getBillList(page.currentPage, page.pageSize,params).then(res=>{
|
|
|
+ // this.dataList = res.data.data.records
|
|
|
+ // this.page.total = res.data.data.total
|
|
|
+ // this.loading = false;
|
|
|
+ // })
|
|
|
+ },
|
|
|
+ goBack() {
|
|
|
+ this.detailData=this.$options.data().detailData
|
|
|
+ this.show = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+
|
|
|
+</style>
|