Commit 33901a98 by 潘际乾

单据详情

parent b225dd03
......@@ -200,7 +200,7 @@
style="margin-left:0"
size="small"
type="primary"
@click="selectGridPDF(scope.row.id, scoped.$index)"
@click="openPdfDialog(scope.row.id, scoped.$index)"
>选择</el-button
>
</template>
......@@ -227,6 +227,7 @@
</span>
</el-dialog>
</c-col>
<OcrInvoicesRecognition ref="ocrInvoices" v-on:confirm="selectGridPDF"></OcrInvoicesRecognition>
</div>
</template>
<script>
......@@ -235,10 +236,13 @@ import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditdck/Event";
import OcrInvoicesRecognition from "./OcrInvoicesRecognition.vue";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [CommonProcess],
components: { OcrInvoicesRecognition },
data() {
return {
addDialogVisible: false,
......@@ -339,6 +343,10 @@ export default {
],
gridPDFData:[],
selectPDFData:"",
selectedPdf: {
id: '',
index: null
}
};
},
methods: {
......@@ -354,7 +362,14 @@ export default {
addPDF(idx){
this.selectPDFData = idx;
},
selectGridPDF(id, idx){
openPdfDialog(id, idx) {
this.$refs.ocrInvoices.show = true
this.selectedPdf.id = id;
this.selectedPdf.index = idx;
},
selectGridPDF(){
const id = this.selectedPdf.id;
const idx = this.selectedPdf.index;
var tempData = [];
var list = [];
var flag = false;
......
......@@ -84,6 +84,7 @@ export default {
},
methods: {
save() {
this.$emit("confirm")
this.close();
},
close() {
......
<template>
<div>
<c-button @click="click">KO</c-button>
<OcrInvoicesRecognition ref="ocrInvoices"></OcrInvoicesRecognition>
</div>
</template>
<script>
import OcrInvoicesRecognition from "./OcrInvoicesRecognition.vue";
export default {
components: { OcrInvoicesRecognition },
methods: {
click() {
this.$refs.ocrInvoices.show = true
}
}
}
</script>
<style>
</style>
\ No newline at end of file
......@@ -79,10 +79,7 @@
<el-tab-pane label="授信额度" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="Test" name="Test">
<Test/>
</el-tab-pane>
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
......@@ -109,7 +106,6 @@ import Ovwp from "./Ovwp";
import Docpre from "./Docpre";
import Shpdet from "./Shpdet";
// import Limitbody from "./Limitbody";
import Test from "./Test.vue";
import Glepan from "~/views/Public/Glepan";
import Setpan from "~/views/Public/Setpan";
......@@ -133,7 +129,6 @@ export default {
"m-limitbody": Limitbody,
"m-coninfp": Coninfp,
"m-ccvpan": Ccvpan,
Test
},
provide() {
return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment