Commit 8b03345b by hulei

到单单据表格调整

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