解决供应商对账页面的单据点击不弹出的bug
This commit is contained in:
@@ -57,16 +57,18 @@
|
|||||||
</a-table>
|
</a-table>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<bill-detail ref="modalDetail"></bill-detail>
|
<bill-detail ref="modalBillDetail"></bill-detail>
|
||||||
|
<financial-detail ref="modalFinancialDetail"></financial-detail>
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import BillDetail from '../bill/dialog/BillDetail'
|
import BillDetail from '../bill/dialog/BillDetail'
|
||||||
|
import FinancialDetail from '../financial/dialog/FinancialDetail'
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { getNowFormatMonth } from '@/utils/util';
|
import { getNowFormatMonth } from '@/utils/util';
|
||||||
import {findBySelectSup, findSupplierById, findDepotHeadTotalPay, findAccountHeadTotalPay, findBillDetailByNumber} from '@/api/api'
|
import {findBySelectSup, findSupplierById, findDepotHeadTotalPay, findAccountHeadTotalPay, findBillDetailByNumber,findFinancialDetailByNumber} from '@/api/api'
|
||||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
export default {
|
export default {
|
||||||
@@ -74,6 +76,7 @@
|
|||||||
mixins:[JeecgListMixin],
|
mixins:[JeecgListMixin],
|
||||||
components: {
|
components: {
|
||||||
BillDetail,
|
BillDetail,
|
||||||
|
FinancialDetail,
|
||||||
JEllipsis
|
JEllipsis
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@@ -190,11 +193,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
myHandleDetail(record) {
|
myHandleDetail(record) {
|
||||||
findBillDetailByNumber({ number: record.number }).then((res) => {
|
if(record.type === '支出' || record.type === '付款') {
|
||||||
if (res && res.code === 200) {
|
findFinancialDetailByNumber({ billNo: record.number }).then((res) => {
|
||||||
this.handleDetail(res.data, record.type);
|
if (res && res.code === 200) {
|
||||||
}
|
this.$refs.modalFinancialDetail.show(res.data, record.type);
|
||||||
})
|
this.$refs.modalFinancialDetail.title="详情";
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
findBillDetailByNumber({ number: record.number }).then((res) => {
|
||||||
|
if (res && res.code === 200) {
|
||||||
|
this.$refs.modalBillDetail.show(res.data, record.type);
|
||||||
|
this.$refs.modalBillDetail.title="详情";
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
searchQuery() {
|
searchQuery() {
|
||||||
if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){
|
if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){
|
||||||
|
|||||||
Reference in New Issue
Block a user