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