发票结算审批

This commit is contained in:
Vergil
2020-03-10 09:35:08 +08:00
parent 38b715e2e3
commit 28119888cf
2 changed files with 22 additions and 32 deletions

View File

@@ -8,9 +8,9 @@
{{ scope.row.供应商名称 }} {{ scope.row.供应商名称 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="请款时间" align="center" min-width="150"> <el-table-column label="请款金额" align="center" min-width="100" prop="请款金额">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.请款时间 }} {{ scope.row.请款金额 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="请款人" align="center" min-width="100"> <el-table-column label="请款人" align="center" min-width="100">
@@ -18,9 +18,9 @@
{{ scope.row.姓名 }} {{ scope.row.姓名 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="请款金额" align="center" min-width="100" prop="请款金额"> <el-table-column label="请款时间" align="center" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.请款金额 }} {{ scope.row.请款时间 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="审核" align="center" width="320"> <el-table-column label="审核" align="center" width="320">
@@ -39,10 +39,10 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-button slot="reference" type="success" size="mini" icon="el-icon-search" style="margin-right: 10px" @click="searchTable01(scope.row)">查看详情</el-button> <el-button slot="reference" type="text" size="mini" icon="el-icon-search" style="margin-right: 10px" @click="searchTable01(scope.row)">查看详情</el-button>
</el-popover> </el-popover>
<el-button type="primary" size="mini" icon="el-icon-check" @click="yesApproval(scope.row)">通过</el-button> <el-button type="text" size="mini" icon="el-icon-check" @click="yesApproval(scope.row)">通过</el-button>
<el-button type="danger" size="mini" icon="el-icon-close" @click="noApproval(scope.row)">不通</el-button> <el-button type="text" size="mini" icon="el-icon-close" @click="noApproval(scope.row)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

View File

@@ -7,8 +7,8 @@
<el-button type="success" size="small" icon="el-icon-search" style="margin-left:10px" @click="total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询</el-button> <el-button type="success" size="small" icon="el-icon-search" style="margin-left:10px" @click="total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询</el-button>
</el-card> </el-card>
<el-card> <el-card>
<h4 style="margin-top: 5px">发票结算申请单</h4> <!--<h4 style="margin-top: 5px">发票结算申请单</h4>-->
<el-table id="expandTable" :data="tableData1" border highlight-current-row style="width: 100%" height="330" size="mini" @row-click="searchTable2"> <el-table id="expandTable" :data="tableData1" border highlight-current-row style="width: 100%" height="330" size="mini">
<el-table-column label="展开" align="center" type="expand" > <el-table-column label="展开" align="center" type="expand" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-form label-position="left" inline class="demo-table-expand"> <el-form label-position="left" inline class="demo-table-expand">
@@ -51,7 +51,7 @@
{{ scope.row.发票号 }} {{ scope.row.发票号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="发票金额" align="center" min-width="70"> <el-table-column label="发票金额(元)" align="center" min-width="70">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.发票金额 }} {{ scope.row.发票金额 }}
</template> </template>
@@ -63,7 +63,7 @@
</el-table-column> </el-table-column>
<el-table-column label="申请时间" align="center" min-width="140"> <el-table-column label="申请时间" align="center" min-width="140">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.申请时间 ? scope.row.申请时间 : '—' }} {{ scope.row.申请时间 ? scope.row.申请时间.split(' ')[0] : '—' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="采购审批" align="center" min-width="60"> <el-table-column label="采购审批" align="center" min-width="60">
@@ -73,7 +73,7 @@
</el-table-column> </el-table-column>
<el-table-column label="审批时间" align="center" min-width="110"> <el-table-column label="审批时间" align="center" min-width="110">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.审批1时间 ? scope.row.审批1时间 : '—' }} {{ scope.row.审批1时间 ? scope.row.审批1时间split(' ')[0] : '—' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="财务审批" align="center" min-width="60"> <el-table-column label="财务审批" align="center" min-width="60">
@@ -83,7 +83,7 @@
</el-table-column> </el-table-column>
<el-table-column label="审批时间" align="center" min-width="110"> <el-table-column label="审批时间" align="center" min-width="110">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.审批2时间 ? scope.row.审批2时间 : '—' }} {{ scope.row.审批2时间 ? scope.row.审批2时间split(' ')[0] : '—' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="总经理审批" align="center" min-width="70"> <el-table-column label="总经理审批" align="center" min-width="70">
@@ -93,12 +93,13 @@
</el-table-column> </el-table-column>
<el-table-column label="审批时间" align="center" min-width="110"> <el-table-column label="审批时间" align="center" min-width="110">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.审批3时间 ? scope.row.审批3时间 : '—' }} {{ scope.row.审批3时间 ? scope.row.审批3时间split(' ')[0] : '—' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="100" fixed="right"> <el-table-column label="操作" align="center" width="160" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button :disabled="false" type="primary" size="mini" plain @click="excuteApprove(scope.row)">审批</el-button> <el-button slot="reference" type="text" size="mini" icon="el-icon-search" style="margin-right: 5px" @click="searchTable2(scope.row)">查看详情</el-button>
<el-button :disabled="false" type="text" icon="el-icon-check" size="mini" plain @click="excuteApprove(scope.row)">通过</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -115,10 +116,7 @@
</div> </div>
</el-card> </el-card>
<el-card> <el-dialog :visible.sync="dialogFormVisible" title="明细" center style="min-height: 200px" width="1000px">
<h4 style="margin-top: 5px;display: inline-block;width: 150px;">发票结算申请单明细</h4>
<span>发票号</span>
<el-input v-model="invoiceNumber" size="small" placeholder="请选择发票结算申请单" readonly/>
<el-table :data="tableData2" border highlight-current-row style="width: 100%;max-height: 250px;" height="250px" size="mini"> <el-table :data="tableData2" border highlight-current-row style="width: 100%;max-height: 250px;" height="250px" size="mini">
<el-table-column label="名称" align="center" min-width="100"> <el-table-column label="名称" align="center" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -135,28 +133,18 @@
{{ scope.row.采购物料规格 || scope.row.离线物料规格 || scope.row.采购零件规格 }} {{ scope.row.采购物料规格 || scope.row.离线物料规格 || scope.row.采购零件规格 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="供应商" align="center" min-width="150">
<template slot-scope="scope">
{{ scope.row.供应商名称 }}
</template>
</el-table-column>
<el-table-column label="合同编号" align="center" min-width="100"> <el-table-column label="合同编号" align="center" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.采购合同编号 || scope.row.离线合同编号 }} {{ scope.row.采购合同编号 || scope.row.离线合同编号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合同名称" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.采购合同名称 || scope.row.离线合同名称 }}
</template>
</el-table-column>
<el-table-column label="到票数量" align="center" width="100"> <el-table-column label="到票数量" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.到票数量 }} {{ scope.row.到票数量 }}
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-card> </el-dialog>
</div> </div>
</template> </template>
@@ -177,7 +165,8 @@ export default {
pageSize1: 10, pageSize1: 10,
invoiceNumber: '', invoiceNumber: '',
tableData2: [], tableData2: [],
tableData3: [] tableData3: [],
dialogFormVisible: false
} }
}, },
computed: { computed: {
@@ -255,6 +244,7 @@ export default {
this.invoiceNumber = row.发票号 this.invoiceNumber = row.发票号
searchTable2(row.发票结算申请单流水号).then(response => { searchTable2(row.发票结算申请单流水号).then(response => {
this.tableData2 = response.data this.tableData2 = response.data
this.dialogFormVisible = true
}) })
} }
} }