|
@@ -51,7 +51,7 @@
|
|
</a-descriptions-item>
|
|
</a-descriptions-item>
|
|
<a-descriptions-item label="收款类型">
|
|
<a-descriptions-item label="收款类型">
|
|
<span>{{ detail.keepTypeDictValue || '--' }}</span>
|
|
<span>{{ detail.keepTypeDictValue || '--' }}</span>
|
|
- <span v-if="detail.keepTypeDictValue =='仅标记收款'"><a-button type="link" class="link-bule">
|
|
|
|
|
|
+ <span v-if="detail.keepTypeDictValue =='仅标记收款'" @click="handleAssociated"><a-button type="link" :loading="associatedLoading" style="margin-left:10px;" class="link-bule">
|
|
关联收款单
|
|
关联收款单
|
|
</a-button></span>
|
|
</a-button></span>
|
|
</a-descriptions-item>
|
|
</a-descriptions-item>
|
|
@@ -109,7 +109,7 @@ import { STable, VSelect } from '@/components'
|
|
import commonModal from '@/views/common/commonModal.vue'
|
|
import commonModal from '@/views/common/commonModal.vue'
|
|
import printModel from '../receiptPrint/printModel.vue'
|
|
import printModel from '../receiptPrint/printModel.vue'
|
|
import detailModal from '@/views/financialManagement/financialCollection/detail.vue'
|
|
import detailModal from '@/views/financialManagement/financialCollection/detail.vue'
|
|
-import { settleReceiptFindBySn } from '@/api/settleReceipt.js'
|
|
|
|
|
|
+import { settleReceiptFindBySn,settleReceiptBookBatch } from '@/api/settleReceipt.js'
|
|
export default {
|
|
export default {
|
|
name: 'VoucherModal',
|
|
name: 'VoucherModal',
|
|
components: { STable, VSelect, commonModal, printModel, detailModal },
|
|
components: { STable, VSelect, commonModal, printModel, detailModal },
|
|
@@ -152,7 +152,8 @@ export default {
|
|
{ title: '审核时间', dataIndex: 'auditDate', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '审核时间', dataIndex: 'auditDate', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '状态', dataIndex: 'statusDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
{ title: '状态', dataIndex: 'statusDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
],
|
|
],
|
|
- tableData: []
|
|
|
|
|
|
+ tableData: [],
|
|
|
|
+ associatedLoading:false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -193,6 +194,23 @@ export default {
|
|
this.$emit('cancel')
|
|
this.$emit('cancel')
|
|
this.detail = null
|
|
this.detail = null
|
|
this.tableData = []
|
|
this.tableData = []
|
|
|
|
+ },
|
|
|
|
+ //关联收款单
|
|
|
|
+ handleAssociated(){
|
|
|
|
+ let snList,bookSnList=[];
|
|
|
|
+ snList.push(data.accountReceiptSn)
|
|
|
|
+ bookSnList.push(data.bookSn)
|
|
|
|
+ let ajax_data={
|
|
|
|
+ snList:snList,
|
|
|
|
+ bookSnList:bookSnList
|
|
|
|
+ }
|
|
|
|
+ this.associatedLoading = true
|
|
|
|
+ settleReceiptBookBatch(ajax_data).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ this.handleCommonCancel();
|
|
|
|
+ }
|
|
|
|
+ this.associatedLoading = false
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|