|
@@ -92,7 +92,7 @@
|
|
|
width="150"
|
|
|
label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="true" type="text" size="small" @click="detailHandle(scope.row.customerAccountId, scope.row, true)">详情</el-button>
|
|
|
+ <el-button v-if="true" type="text" size="small" @click="detailHandle(scope.row.purchaseInvoiceId)">详情</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -108,14 +108,17 @@
|
|
|
</template>
|
|
|
<!-- 弹窗, 新增 / 修改 -->
|
|
|
<!-- <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @onChose="onClose"/> -->
|
|
|
+ <detail v-if="detailVisible" ref="detail" @onChose="onClose"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { getSupplierInvoiceInfo } from '@/api/finance'
|
|
|
+ import Detail from './purchase-invoice-detail'
|
|
|
export default {
|
|
|
name: 'supplier-invoice-list',
|
|
|
components: {
|
|
|
+ Detail
|
|
|
},
|
|
|
props: {
|
|
|
supplierId: {
|
|
@@ -214,9 +217,9 @@
|
|
|
},
|
|
|
detailHandle (id) {
|
|
|
this.detailVisible = true
|
|
|
- // this.$nextTick(() => {
|
|
|
- // this.$refs.detail.init(id)
|
|
|
- // })
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.detail.init(id)
|
|
|
+ })
|
|
|
},
|
|
|
// 新增/修改
|
|
|
addOrUpdateHandle (id, customerAccount, disable) {
|