Commit 8b03345b by hulei

到单单据表格调整

parent 8cffbbee
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<!-- =================已交单据====================== --> <!-- =================已交单据====================== -->
<c-col :span="24"> <c-col :span="24">
<el-button style="margin-bottom:5px;float:right" @click="addDocgrdDataStore" type="primary">新增单据</el-button> <c-button style="margin-bottom:5px;float:right" @click="addDocgrdDataStore" type="primary">新增单据</c-button>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<!-- :list="model.bdtp.docgrdm.docgrd" --> <!-- :list="model.bdtp.docgrdm.docgrd" -->
...@@ -178,8 +178,8 @@ ...@@ -178,8 +178,8 @@
</el-table-column> </el-table-column>
<el-table-column prop="docnam" label="Document" width="auto"> <el-table-column prop="docnam" label="Document" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="state" label="状态" width="auto"> <!-- <el-table-column prop="state" label="状态" width="auto">
</el-table-column> </el-table-column> -->
<el-table-column label="操作" prop="det" width="170px" fixed="right"> <el-table-column label="操作" prop="det" width="170px" fixed="right">
<!-- <template slot="header"> <!-- <template slot="header">
<span>操作</span> <span>操作</span>
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
style="margin-left:0" style="margin-left:0"
size="small" size="small"
type="primary" type="primary"
@click="openPdfDialog(scope.row.id, scoped.$index)" @click="openPdfDialog(scoped.row.id, scoped.$index)"
>选择</el-button >选择</el-button
> >
</template> </template>
...@@ -214,8 +214,8 @@ ...@@ -214,8 +214,8 @@
<div class="file-add" title="导入文件" @click="importFile"> <div class="file-add" title="导入文件" @click="importFile">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</div> </div>
<el-button slot="reference" @click="addPDF(scope.row.id)" type="primary">添加</el-button> <c-button slot="reference" @click="addPDF(scope.row.id)" type="primary">添加</c-button>
<el-button v-if="scope.row.state != '缺失'" slot="reference" @click="detailPDF(scope.row.id)">详情</el-button> <c-button v-if="scope.row.state != '缺失'" slot="reference" @click="detailPDF(scope.row.id)">详情</c-button>
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
...@@ -287,23 +287,23 @@ export default { ...@@ -287,23 +287,23 @@ export default {
docgrdDataStore:[ docgrdDataStore:[
{ {
id:"invoice", id:"invoice",
cmail1:"发票", cmail1:"1",
cmail2:"", cmail2:"",
docnam:"", docnam:"发票",
state:"缺失", state:"缺失",
}, },
{ {
id:"receipt", id:"receipt",
cmail1:"货物收据", cmail1:"1",
cmail2:"", cmail2:"",
docnam:"", docnam:"货物收据",
state:"缺失", state:"缺失",
}, },
{ {
id:"oceanShipping", id:"oceanShipping",
cmail1:"海运提单", cmail1:"1",
cmail2:"", cmail2:"",
docnam:"", docnam:"海运提单",
state:"缺失", state:"缺失",
}, },
], ],
...@@ -408,6 +408,9 @@ export default { ...@@ -408,6 +408,9 @@ export default {
this.$refs.ocrRecognition.formData.type = this.$refs.ocrRecognition.fileType[tempId].value; this.$refs.ocrRecognition.formData.type = this.$refs.ocrRecognition.fileType[tempId].value;
this.selectedPdf.id = id; this.selectedPdf.id = id;
this.selectedPdf.index = idx; this.selectedPdf.index = idx;
this.$nextTick(() => {
this.$refs.ocrRecognition.fileUrl = require(`~/assets/demo-files/${this.$refs.ocrRecognition.formData.type}.jpg`)
})
}, },
selectGridPDF(){ selectGridPDF(){
const id = this.selectedPdf.id; const id = this.selectedPdf.id;
...@@ -516,7 +519,7 @@ export default { ...@@ -516,7 +519,7 @@ export default {
// if(this.gridData[i].id == this.selectPDFData){ // if(this.gridData[i].id == this.selectPDFData){
// arr.push({"id" : this.gridData[i].id}); // arr.push({"id" : this.gridData[i].id});
for(let j = 0; j < this.gridData[i].data.length; j++){ for(let j = 0; j < this.gridData[i].data.length; j++){
arr.push({"name" : this.gridData[i].data[j].name}); arr.push({"name" : this.gridData[i].data[j].name, "id": this.gridData[i].id });
} }
// break; // break;
// } // }
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
<t-diasel /> <t-diasel />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--
<el-tab-pane label="数据对比" name="compare"> <el-tab-pane label="数据对比" name="compare">
<span slot="label"> <span slot="label">
数据对比 数据对比
...@@ -70,6 +71,7 @@ ...@@ -70,6 +71,7 @@
<t-compare /> <t-compare />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
-->
</c-tabs> </c-tabs>
</div> </div>
</template> </template>
......
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