This commit is contained in:
liushuai
2020-06-08 17:57:49 +08:00
parent 6966adb952
commit fa5f12d664
16 changed files with 679 additions and 87 deletions

View File

@@ -157,7 +157,7 @@
<!-- <h4 style="margin-top: 5px;margin-bottom: 0px;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: 450px;" height="450px" size="mini">
<el-table :data="tableData2" border highlight-current-row style="width: 100%;max-height: 400px;" height="300px" size="mini">
<el-table-column label="名称" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.采购物料名称 || scope.row.离线物料名称 || scope.row.采购零件名称 }}
@@ -193,6 +193,11 @@
{{ scope.row.到票数量 }}
</template>
</el-table-column>
<el-table-column label="金额" align="center" width="100">
<template slot-scope="scope">
{{ Number(scope.row.金额).toFixed(2) }}
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="100">
<template slot-scope="scope">
<el-tooltip v-show="true" :open-delay="100" content="删除" placement="right">
@@ -201,6 +206,7 @@
</template>
</el-table-column>
</el-table>
<span style="margin-left: 1080px">到票总额{{ monetaryTotal.toFixed(2) }}</span>
</el-card>
<el-dialog v-el-drag-dialog :title="title1" :visible.sync="dialogVisible1" center style="min-height: 300px" width="700px">
@@ -283,7 +289,7 @@
</div>
</el-dialog>
<el-dialog v-el-drag-dialog :title="title2" :visible.sync="dialogVisible2" center style="min-height: 300px" width="900px">
<el-dialog v-el-drag-dialog :title="title2" :visible.sync="dialogVisible2" center style="min-height: 300px" width="1000px">
<span>供应商</span>
<el-input v-model="supplierName" size="small" placeholder="请选择供应商到票" style="margin: 0 5px 10px 0;" readonly/>
<el-radio-group v-model="contractType" size="small" @change="searchTable01()">
@@ -344,6 +350,11 @@
<el-input-number v-model="scope.row.本次到票数量" :min="0" :max="scope.row.已到货数量 - scope.row.到票数量" size="mini" controls-position="right" style="width: 100%;"/>
</template>
</el-table-column>
<el-table-column label="本次到票金额" align="center" width="100">
<template slot-scope="scope">
{{ Number(scope.row.本次到票数量 * scope.row.单价).toFixed(2) }}
</template>
</el-table-column>
</el-table>
<el-table v-show="showtable03" ref="multipleTable" :data="tableData03" border style="width: 100%;max-height: 250px;" height="250px" size="mini" @selection-change="handleSelectionChange">
<el-table-column :selectable="selectable" type="selection" align="center" width="45"/>
@@ -400,6 +411,7 @@ export default {
name: '', // 发票结算申请
data() {
return {
monetaryTotal: 0,
submitAdd1_disable: false,
dateRange: '',
pickerOptions: {
@@ -672,6 +684,7 @@ export default {
}
},
searchTable2(row) {
this.monetaryTotal = 0
this.applyOrderNum = row.发票结算申请单流水号
this.invoiceNumber = row.发票号
this.supplierName = row.供应商名称
@@ -679,6 +692,11 @@ export default {
Number(row.是否提交申请) === 1 ? this.disabled = true : this.disabled = false
searchTable2(row.发票结算申请单流水号).then(response => {
this.tableData2 = response.data
if (response.data.length !== 0) {
for (let i = 0; i < response.data.length; i++) {
this.monetaryTotal += response.data[i].金额
}
}
})
},
addInStoreRecord() {