更新
This commit is contained in:
@@ -79,6 +79,11 @@
|
||||
{{ scope.row.开票金额.toFixed(2) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="到货金额(元)" width="110px">
|
||||
<template slot-scope="scope">
|
||||
{{ Number(scope.row.到货金额).toFixed(2) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="供应商" prop="供应商名称" min-width="190px" width="190px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供应商名称 }}
|
||||
@@ -142,7 +147,7 @@
|
||||
</el-card>
|
||||
<el-card style="float: left;margin-left: 5px">
|
||||
<el-table :data="gridData" :header-cell-style="{fontFamily:'YouYuan',fontSize:'13px',fontWeight:200}" :summary-method="getSummaries" class="subTableHeader" show-summary border size="mini" style="width: 100%">
|
||||
<el-table-column width="50" align="center" type="index" label="序号"/>
|
||||
<el-table-column width="55" align="center" type="index" label="序号"/>
|
||||
<el-table-column label="到货单编号" align="center" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.到货单编号 }}
|
||||
@@ -499,6 +504,15 @@ export default {
|
||||
this.$message.success('增加成功')
|
||||
this.dialogVisible1 = false
|
||||
this.searchTable1()
|
||||
this.gongyingshang = []
|
||||
getGongyingshang().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.gongyingshang.push({
|
||||
label: response.data[i].供应商名称,
|
||||
value: response.data[i].供应商
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.error('增加失败')
|
||||
}
|
||||
@@ -553,6 +567,15 @@ export default {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('删除成功')
|
||||
this.searchTable1()
|
||||
this.gongyingshang = []
|
||||
getGongyingshang().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.gongyingshang.push({
|
||||
label: response.data[i].供应商名称,
|
||||
value: response.data[i].供应商
|
||||
})
|
||||
}
|
||||
})
|
||||
} else { this.$message.error('删除失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
@@ -589,6 +612,7 @@ export default {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('关联成功')
|
||||
this.dialogVisible = false
|
||||
this.searchTable1()
|
||||
searchInvoiceDetail(this.发票流水号).then(response => {
|
||||
this.gridData = response.data
|
||||
})
|
||||
@@ -597,15 +621,15 @@ export default {
|
||||
}
|
||||
},
|
||||
deleteTable10(row) {
|
||||
this.$confirm('确认删除吗?', '提示', {
|
||||
this.$confirm('确认取消关联吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
deleteInvoiceMX(row.发票明细流水号, row.到货单流水号).then(response => {
|
||||
console.log(response.data)
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('取消成功')
|
||||
this.searchTable1()
|
||||
searchInvoiceDetail(this.发票流水号).then(response => {
|
||||
this.gridData = response.data
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user