|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <basic-container>
|
|
|
|
|
|
+ <basic-container v-if="show">
|
|
<avue-crud :option="option"
|
|
<avue-crud :option="option"
|
|
:data="dataList"
|
|
:data="dataList"
|
|
ref="crud"
|
|
ref="crud"
|
|
@@ -35,14 +35,14 @@
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-view"
|
|
icon="el-icon-view"
|
|
size="small"
|
|
size="small"
|
|
- @click.stop="beforeOpenPage(scope.row,scope.index)"
|
|
|
|
|
|
+ @click.stop="beforeOpenPage(scope.row,1)"
|
|
>查看
|
|
>查看
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
size="small"
|
|
size="small"
|
|
- @click.stop="editOpen(scope.row,scope.index)"
|
|
|
|
|
|
+ @click.stop="editOpen(scope.row,2)"
|
|
>编辑
|
|
>编辑
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
@@ -55,6 +55,12 @@
|
|
</template>
|
|
</template>
|
|
</avue-crud>
|
|
</avue-crud>
|
|
</basic-container>
|
|
</basic-container>
|
|
|
|
+ <detail-page
|
|
|
|
+ ref="detail"
|
|
|
|
+ @goBack="goBack"
|
|
|
|
+ :detailData="detailData"
|
|
|
|
+ v-else
|
|
|
|
+ ></detail-page>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -62,6 +68,7 @@ import option from "./config/mainList.json";
|
|
import {customerList, typeSave, deleteDetails} from "@/api/basicData/configuration"
|
|
import {customerList, typeSave, deleteDetails} from "@/api/basicData/configuration"
|
|
import {selectInvoiceList,
|
|
import {selectInvoiceList,
|
|
removeInvoiceList,} from "@/api/importTrade/invoice"
|
|
removeInvoiceList,} from "@/api/importTrade/invoice"
|
|
|
|
+import detailPage from "./detailsPageEdit.vue";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "customerInformation",
|
|
name: "customerInformation",
|
|
@@ -70,6 +77,8 @@ export default {
|
|
form: {},
|
|
form: {},
|
|
option: option,
|
|
option: option,
|
|
parentId: 0,
|
|
parentId: 0,
|
|
|
|
+ show:true,
|
|
|
|
+ detailData:{},
|
|
dataList: [],
|
|
dataList: [],
|
|
page: {
|
|
page: {
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
@@ -78,6 +87,9 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ components:{
|
|
|
|
+ detailPage
|
|
|
|
+ },
|
|
created() {
|
|
created() {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -136,24 +148,27 @@ export default {
|
|
this.$refs.crud.rowAdd();
|
|
this.$refs.crud.rowAdd();
|
|
},
|
|
},
|
|
//查看跳转页面
|
|
//查看跳转页面
|
|
- beforeOpenPage(row, index) {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: "/importInvoice_detailsPage",
|
|
|
|
- query: {id: JSON.stringify(row.id)},
|
|
|
|
- });
|
|
|
|
|
|
+ beforeOpenPage(row, status) {
|
|
|
|
+ this.detailData = {
|
|
|
|
+ id: row.id,
|
|
|
|
+ status: status
|
|
|
|
+ };
|
|
|
|
+ this.show = false;
|
|
},
|
|
},
|
|
//新增跳转页面
|
|
//新增跳转页面
|
|
- beforeOpen(row, index) {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: "/importInvoice_detailsPage",
|
|
|
|
- query: {id: JSON.stringify(row.id)},
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- editOpen(row, index) {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: "/importInvoice_detailsPage",
|
|
|
|
- query: {id: JSON.stringify(row.id)},
|
|
|
|
- });
|
|
|
|
|
|
+ beforeOpen(row) {
|
|
|
|
+ this.detailData = {
|
|
|
|
+ id: row.id,
|
|
|
|
+ status: 0
|
|
|
|
+ };
|
|
|
|
+ this.show = false;
|
|
|
|
+ },
|
|
|
|
+ editOpen(row, status) {
|
|
|
|
+ this.detailData = {
|
|
|
|
+ id: row.id,
|
|
|
|
+ status: status
|
|
|
|
+ };
|
|
|
|
+ this.show = false;
|
|
},
|
|
},
|
|
//点击新增时触发
|
|
//点击新增时触发
|
|
beforeClose(done) {
|
|
beforeClose(done) {
|
|
@@ -194,6 +209,10 @@ export default {
|
|
this.page.total = res.data.data.total
|
|
this.page.total = res.data.data.total
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ goBack() {
|
|
|
|
+ this.detailData=this.$options.data().detailData
|
|
|
|
+ this.show = true;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|