Commit 33901a98 by 潘际乾

单据详情

parent b225dd03
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
style="margin-left:0" style="margin-left:0"
size="small" size="small"
type="primary" type="primary"
@click="selectGridPDF(scope.row.id, scoped.$index)" @click="openPdfDialog(scope.row.id, scoped.$index)"
>选择</el-button >选择</el-button
> >
</template> </template>
...@@ -227,6 +227,7 @@ ...@@ -227,6 +227,7 @@
</span> </span>
</el-dialog> </el-dialog>
</c-col> </c-col>
<OcrInvoicesRecognition ref="ocrInvoices" v-on:confirm="selectGridPDF"></OcrInvoicesRecognition>
</div> </div>
</template> </template>
<script> <script>
...@@ -235,10 +236,13 @@ import CommonProcess from "~/mixin/CommonProcess"; ...@@ -235,10 +236,13 @@ import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditdck/Event"; import Event from "~/model/Ditdck/Event";
import OcrInvoicesRecognition from "./OcrInvoicesRecognition.vue";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [CommonProcess], mixins: [CommonProcess],
components: { OcrInvoicesRecognition },
data() { data() {
return { return {
addDialogVisible: false, addDialogVisible: false,
...@@ -339,6 +343,10 @@ export default { ...@@ -339,6 +343,10 @@ export default {
], ],
gridPDFData:[], gridPDFData:[],
selectPDFData:"", selectPDFData:"",
selectedPdf: {
id: '',
index: null
}
}; };
}, },
methods: { methods: {
...@@ -354,7 +362,14 @@ export default { ...@@ -354,7 +362,14 @@ export default {
addPDF(idx){ addPDF(idx){
this.selectPDFData = 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 tempData = [];
var list = []; var list = [];
var flag = false; var flag = false;
......
...@@ -84,6 +84,7 @@ export default { ...@@ -84,6 +84,7 @@ export default {
}, },
methods: { methods: {
save() { save() {
this.$emit("confirm")
this.close(); this.close();
}, },
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 @@ ...@@ -79,10 +79,7 @@
<el-tab-pane label="授信额度" name="limitbody"> <el-tab-pane label="授信额度" name="limitbody">
<m-limitbody :model="model" :codes="codes" /> <m-limitbody :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="Test" name="Test">
<Test/>
</el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-grid-ety-prompt-dialog <c-grid-ety-prompt-dialog
...@@ -109,7 +106,6 @@ import Ovwp from "./Ovwp"; ...@@ -109,7 +106,6 @@ import Ovwp from "./Ovwp";
import Docpre from "./Docpre"; import Docpre from "./Docpre";
import Shpdet from "./Shpdet"; import Shpdet from "./Shpdet";
// import Limitbody from "./Limitbody"; // import Limitbody from "./Limitbody";
import Test from "./Test.vue";
import Glepan from "~/views/Public/Glepan"; import Glepan from "~/views/Public/Glepan";
import Setpan from "~/views/Public/Setpan"; import Setpan from "~/views/Public/Setpan";
...@@ -133,7 +129,6 @@ export default { ...@@ -133,7 +129,6 @@ export default {
"m-limitbody": Limitbody, "m-limitbody": Limitbody,
"m-coninfp": Coninfp, "m-coninfp": Coninfp,
"m-ccvpan": Ccvpan, "m-ccvpan": Ccvpan,
Test
}, },
provide() { provide() {
return { 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