增加功能:根据出入库单据id查询收付款单号
This commit is contained in:
@@ -342,6 +342,13 @@
|
|||||||
{{model.debt}}
|
{{model.debt}}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<a-col v-if="financialBillNoList.length" :span="6">
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款单号">
|
||||||
|
<template v-for="(item, index) in financialBillNoList">
|
||||||
|
<a @click="myHandleFinancialDetail(item.billNo)">{{item.billNo}}</a><br/>
|
||||||
|
</template>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
@@ -605,6 +612,13 @@
|
|||||||
{{model.salesManStr}}
|
{{model.salesManStr}}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<a-col v-if="financialBillNoList.length" :span="6">
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款单号">
|
||||||
|
<template v-for="(item, index) in financialBillNoList">
|
||||||
|
<a @click="myHandleFinancialDetail(item.billNo)">{{item.billNo}}</a><br/>
|
||||||
|
</template>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
@@ -954,21 +968,24 @@
|
|||||||
</template>
|
</template>
|
||||||
</a-form>
|
</a-form>
|
||||||
<bill-print-iframe ref="modalDetail"></bill-print-iframe>
|
<bill-print-iframe ref="modalDetail"></bill-print-iframe>
|
||||||
|
<financial-detail ref="financialDetailModal"></financial-detail>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import { getAction } from '@/api/manage'
|
import { getAction } from '@/api/manage'
|
||||||
import { findBillDetailByNumber, getPlatformConfigByKey, getCurrentSystemConfig} from '@/api/api'
|
import { findBillDetailByNumber, findFinancialDetailByNumber, getPlatformConfigByKey, getCurrentSystemConfig} from '@/api/api'
|
||||||
import { getMpListShort } from "@/utils/util"
|
import { getMpListShort } from "@/utils/util"
|
||||||
import BillPrintIframe from './BillPrintIframe'
|
import BillPrintIframe from './BillPrintIframe'
|
||||||
|
import FinancialDetail from '../../financial/dialog/FinancialDetail'
|
||||||
import JUpload from '@/components/jeecg/JUpload'
|
import JUpload from '@/components/jeecg/JUpload'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: 'BillDetail',
|
name: 'BillDetail',
|
||||||
components: {
|
components: {
|
||||||
BillPrintIframe,
|
BillPrintIframe,
|
||||||
|
FinancialDetail,
|
||||||
JUpload
|
JUpload
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@@ -981,6 +998,7 @@
|
|||||||
billPrintFlag: false,
|
billPrintFlag: false,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
purchaseBySaleFlag: false,
|
purchaseBySaleFlag: false,
|
||||||
|
financialBillNoList: [],
|
||||||
tableWidth: {
|
tableWidth: {
|
||||||
'width': '1550px'
|
'width': '1550px'
|
||||||
},
|
},
|
||||||
@@ -1387,6 +1405,13 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getFinancialBillNoByBillId(billId) {
|
||||||
|
getAction('/accountHead/getFinancialBillNoByBillId', {billId: billId}).then(res => {
|
||||||
|
if(res && res.code === 200){
|
||||||
|
this.financialBillNoList = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
show(record, type) {
|
show(record, type) {
|
||||||
this.billType = type
|
this.billType = type
|
||||||
//附件下载
|
//附件下载
|
||||||
@@ -1417,6 +1442,7 @@
|
|||||||
this.requestSubTableData(record, type, url, params);
|
this.requestSubTableData(record, type, url, params);
|
||||||
this.initPlatform()
|
this.initPlatform()
|
||||||
this.getSystemConfig()
|
this.getSystemConfig()
|
||||||
|
this.getFinancialBillNoByBillId(this.model.id)
|
||||||
},
|
},
|
||||||
requestSubTableData(record, type, url, params, success) {
|
requestSubTableData(record, type, url, params, success) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
@@ -1446,6 +1472,17 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
myHandleFinancialDetail(billNo) {
|
||||||
|
let that = this
|
||||||
|
findFinancialDetailByNumber({ billNo: billNo }).then((res) => {
|
||||||
|
if (res && res.code === 200) {
|
||||||
|
if(that.$refs.financialDetailModal) {
|
||||||
|
that.$refs.financialDetailModal.show(res.data, res.data.type);
|
||||||
|
that.$refs.financialDetailModal.title= res.data.type + "-详情";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
//三联打印预览
|
//三联打印预览
|
||||||
handlePrint() {
|
handlePrint() {
|
||||||
getPlatformConfigByKey({"platformKey": "bill_print_url"}).then((res)=> {
|
getPlatformConfigByKey({"platformKey": "bill_print_url"}).then((res)=> {
|
||||||
|
|||||||
@@ -283,9 +283,6 @@
|
|||||||
:pagination="false"
|
:pagination="false"
|
||||||
:columns="moneyInColumns"
|
:columns="moneyInColumns"
|
||||||
:dataSource="dataSource">
|
:dataSource="dataSource">
|
||||||
<span slot="numberCustomRender" slot-scope="text, record">
|
|
||||||
<a @click="myHandleDetail(record)">{{record.billNumber}}</a>
|
|
||||||
</span>
|
|
||||||
</a-table>
|
</a-table>
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="24" :md="24" :sm="24">
|
<a-col :lg="24" :md="24" :sm="24">
|
||||||
@@ -395,20 +392,16 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
</a-form>
|
</a-form>
|
||||||
<!-- 表单区域 -->
|
|
||||||
<bill-detail ref="modalDetail"></bill-detail>
|
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import BillDetail from '../../bill/dialog/BillDetail'
|
|
||||||
import { getAction } from '@/api/manage'
|
import { getAction } from '@/api/manage'
|
||||||
import { findBillDetailByNumber} from '@/api/api'
|
import { findBillDetailByNumber} from '@/api/api'
|
||||||
import JUpload from '@/components/jeecg/JUpload'
|
import JUpload from '@/components/jeecg/JUpload'
|
||||||
export default {
|
export default {
|
||||||
name: 'FinancialDetail',
|
name: 'FinancialDetail',
|
||||||
components: {
|
components: {
|
||||||
BillDetail,
|
|
||||||
JUpload
|
JUpload
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@@ -455,8 +448,7 @@
|
|||||||
],
|
],
|
||||||
moneyInColumns: [
|
moneyInColumns: [
|
||||||
{
|
{
|
||||||
title: '销售单据编号', dataIndex: 'billNumber', width: '20%',
|
title: '销售单据编号', dataIndex: 'billNumber', width: '20%'
|
||||||
scopedSlots: { customRender: 'numberCustomRender' },
|
|
||||||
},
|
},
|
||||||
{ title: '应收欠款',dataIndex: 'needDebt', width: '10%'},
|
{ title: '应收欠款',dataIndex: 'needDebt', width: '10%'},
|
||||||
{ title: '已收欠款',dataIndex: 'finishDebt', width: '10%'},
|
{ title: '已收欠款',dataIndex: 'finishDebt', width: '10%'},
|
||||||
@@ -464,7 +456,9 @@
|
|||||||
{ title: '备注',dataIndex: 'remark', width: '20%'}
|
{ title: '备注',dataIndex: 'remark', width: '20%'}
|
||||||
],
|
],
|
||||||
moneyOutColumns: [
|
moneyOutColumns: [
|
||||||
{ title: '采购单据编号',dataIndex: 'billNumber',width: '20%'},
|
{
|
||||||
|
title: '采购单据编号', dataIndex: 'billNumber', width: '20%'
|
||||||
|
},
|
||||||
{ title: '应付欠款',dataIndex: 'needDebt', width: '10%'},
|
{ title: '应付欠款',dataIndex: 'needDebt', width: '10%'},
|
||||||
{ title: '已付欠款',dataIndex: 'finishDebt', width: '10%'},
|
{ title: '已付欠款',dataIndex: 'finishDebt', width: '10%'},
|
||||||
{ title: '本次付款',dataIndex: 'eachAmount', width: '10%'},
|
{ title: '本次付款',dataIndex: 'eachAmount', width: '10%'},
|
||||||
@@ -510,14 +504,6 @@
|
|||||||
this.$emit('close');
|
this.$emit('close');
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
},
|
},
|
||||||
myHandleDetail(record) {
|
|
||||||
findBillDetailByNumber({ number: record.billNumber }).then((res) => {
|
|
||||||
if (res && res.code === 200) {
|
|
||||||
this.$refs.modalDetail.show(res.data, res.data.subType + res.data.type);
|
|
||||||
this.$refs.modalDetail.title= res.data.subType + res.data.type + "-详情";
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user