fix bug
This commit is contained in:
@@ -187,7 +187,7 @@
|
|||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button type="success" size="small" icon="el-icon-search" style="margin: 0 10px 10px 10px" @click="searchTable01()">查询</el-button>
|
<el-button type="success" size="small" icon="el-icon-search" style="margin: 0 10px 10px 10px" @click="searchTable01()">查询</el-button>
|
||||||
<el-table v-loading="" :data="tableData01" border style="max-height: 300px;" height="300px" size="mini" @row-click="searchTable03" @selection-change="handleSelectionChange">
|
<el-table v-loading="" :data="tableData01" highlight-current-row border style="max-height: 300px;" height="300px" size="mini" @row-click="searchTable03" @selection-change="handleSelectionChange">
|
||||||
<el-table-column :selectable="selectable" type="selection" align="center" width="50"/>
|
<el-table-column :selectable="selectable" type="selection" align="center" width="50"/>
|
||||||
<el-table-column label="离线合同编号" align="center" min-width="120">
|
<el-table-column label="离线合同编号" align="center" min-width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -433,12 +433,17 @@ export default {
|
|||||||
return sums
|
return sums
|
||||||
},
|
},
|
||||||
searchTable01() { // 查询待请款
|
searchTable01() { // 查询待请款
|
||||||
|
this.tableData01 = []
|
||||||
if (this.supplierValue) {
|
if (this.supplierValue) {
|
||||||
this.contractGroup = []
|
this.contractGroup = []
|
||||||
let check
|
let check
|
||||||
this.supplierValue ? check = 1 : check = 0
|
this.supplierValue ? check = 1 : check = 0
|
||||||
searchOfflineContract(check, this.supplierValue).then(response => {
|
searchOfflineContract(check, this.supplierValue).then(response => {
|
||||||
this.tableData01 = response.data
|
response.data.map(data => {
|
||||||
|
if (Number(data.离线合同状态) === 2) {
|
||||||
|
this.tableData01.push(data)
|
||||||
|
}
|
||||||
|
})
|
||||||
this.tableData01.map(v => {
|
this.tableData01.map(v => {
|
||||||
this.$set(v, '请款金额', 0)
|
this.$set(v, '请款金额', 0)
|
||||||
v.请款金额 = v.合同总额 - v.已付金额
|
v.请款金额 = v.合同总额 - v.已付金额
|
||||||
|
|||||||
@@ -193,9 +193,13 @@ export default {
|
|||||||
this.pageCurrent1 = val
|
this.pageCurrent1 = val
|
||||||
this.searchTable1()
|
this.searchTable1()
|
||||||
},
|
},
|
||||||
searchPlan(row) {
|
searchPlan(row, expandedRows) {
|
||||||
this.form1.采购合同流水号 = row.采购合同流水号
|
this.form1.采购合同流水号 = row.采购合同流水号
|
||||||
searchTable01(row.采购合同流水号).then(response => {
|
searchTable01(row.采购合同流水号).then(response => {
|
||||||
|
if (expandedRows.length > 1) {
|
||||||
|
this.expands = []
|
||||||
|
expandedRows.shift()
|
||||||
|
}
|
||||||
this.tableData01 = response.data
|
this.tableData01 = response.data
|
||||||
this.expands.indexOf(row.采购合同流水号) === -1 ? this.expands.push(row.采购合同流水号) : this.expands = []
|
this.expands.indexOf(row.采购合同流水号) === -1 ? this.expands.push(row.采购合同流水号) : this.expands = []
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user