[update] 到账开票bug修改;导出功能
This commit is contained in:
@@ -93,7 +93,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
<!-- 来款阶段-->
|
<!-- 来款阶段-->
|
||||||
<arrive-stage-module ref="arriveStage" @ok="modalFormOk" :project-id="selectProjectId"></arrive-stage-module>
|
<arrive-stage-module
|
||||||
|
ref="arriveStage"
|
||||||
|
@ok="modalFormOk"
|
||||||
|
:project-id="selectProjectId"
|
||||||
|
:visible.sync="arriveVisible"></arrive-stage-module>
|
||||||
<!-- 开票阶段-->
|
<!-- 开票阶段-->
|
||||||
<invoicing-stage-module
|
<invoicing-stage-module
|
||||||
ref="invoicingStage"
|
ref="invoicingStage"
|
||||||
@@ -101,6 +105,7 @@
|
|||||||
:project-id="selectProjectId"
|
:project-id="selectProjectId"
|
||||||
:project-type="selectProjectType"
|
:project-type="selectProjectType"
|
||||||
:project-name="selectProjectName"
|
:project-name="selectProjectName"
|
||||||
|
:visible.sync="invoicingVisible"
|
||||||
:charge-company-name="selectProjectChargeCompanyName"></invoicing-stage-module>
|
:charge-company-name="selectProjectChargeCompanyName"></invoicing-stage-module>
|
||||||
<project-detail-modal ref="projectDetail"></project-detail-modal>
|
<project-detail-modal ref="projectDetail"></project-detail-modal>
|
||||||
</div>
|
</div>
|
||||||
@@ -225,12 +230,14 @@ export default {
|
|||||||
],
|
],
|
||||||
url: {
|
url: {
|
||||||
list: '/paymentRecord/payPaymentRecord/mainList',
|
list: '/paymentRecord/payPaymentRecord/mainList',
|
||||||
exportXlsUrl: ''
|
exportXlsUrl: '/paymentRecord/payPaymentRecord/exportXls'
|
||||||
},
|
},
|
||||||
selectProjectId: null, // 选中项目id
|
selectProjectId: null, // 选中项目id
|
||||||
selectProjectType: null, // 选中项目类型
|
selectProjectType: null, // 选中项目类型
|
||||||
selectProjectName: null, // 选中项目名称
|
selectProjectName: null, // 选中项目名称open
|
||||||
selectProjectChargeCompanyName: null // 选中项目来款企业
|
selectProjectChargeCompanyName: null, // 选中项目来款企业
|
||||||
|
invoicingVisible: false,
|
||||||
|
arriveVisible: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -240,7 +247,7 @@ export default {
|
|||||||
*/
|
*/
|
||||||
incomePayment(id) {
|
incomePayment(id) {
|
||||||
this.selectProjectId = id
|
this.selectProjectId = id
|
||||||
this.$refs.arriveStage.open()
|
this.arriveVisible = true
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 开票
|
* 开票
|
||||||
@@ -252,7 +259,7 @@ export default {
|
|||||||
this.selectProjectType = record.projectType
|
this.selectProjectType = record.projectType
|
||||||
this.selectProjectName = record.chargeProject
|
this.selectProjectName = record.chargeProject
|
||||||
this.selectProjectChargeCompanyName = record.chargeCompanyTemporaryName
|
this.selectProjectChargeCompanyName = record.chargeCompanyTemporaryName
|
||||||
this.$refs.invoicingStage.open()
|
this.invoicingVisible = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,19 +62,30 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
required: false,
|
required: false,
|
||||||
default: null
|
default: null
|
||||||
|
},
|
||||||
|
visible: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: '来款阶段',
|
title: '来款阶段',
|
||||||
width: 900,
|
width: 900,
|
||||||
visible: false,
|
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
form: this.$form.createForm(this),
|
form: this.$form.createForm(this),
|
||||||
// 阶段列表,用于循环展示阶段信息
|
// 阶段列表,用于循环展示阶段信息
|
||||||
stageList: []
|
stageList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
visible(value) {
|
||||||
|
if (value) {
|
||||||
|
this.open()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$refs.arriveModal.title = '添加阶段'
|
this.$refs.arriveModal.title = '添加阶段'
|
||||||
@@ -89,10 +100,10 @@ export default {
|
|||||||
},
|
},
|
||||||
open() {
|
open() {
|
||||||
this.loadData()
|
this.loadData()
|
||||||
this.visible = true
|
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.visible = false
|
this.$emit('update:visible', false)
|
||||||
|
this.$emit('ok')
|
||||||
},
|
},
|
||||||
loadData() {
|
loadData() {
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
|
||||||
<!-- <a-empty v-else></a-empty>-->
|
<!-- <a-empty v-else></a-empty>-->
|
||||||
|
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button type="primary" @click="handleAdd">添加阶段</a-button>
|
<a-button type="primary" @click="handleAdd">添加阶段</a-button>
|
||||||
@@ -72,25 +72,44 @@ import { payBillList } from '../../../../api/incomePaymentsApi'
|
|||||||
export default {
|
export default {
|
||||||
name: 'InvoicingStageModule',
|
name: 'InvoicingStageModule',
|
||||||
components: { InvoicingModule },
|
components: { InvoicingModule },
|
||||||
|
provide: {
|
||||||
|
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
// 项目id
|
// 项目id
|
||||||
projectId: {
|
projectId: {
|
||||||
type: String,
|
type: String,
|
||||||
required: false,
|
required: false,
|
||||||
default: null
|
default: null
|
||||||
|
},
|
||||||
|
// 弹窗显隐
|
||||||
|
visible: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: '开票阶段',
|
title: '开票阶段',
|
||||||
width: 900,
|
width: 900,
|
||||||
visible: false,
|
// visible: false,
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
form: this.$form.createForm(this),
|
form: this.$form.createForm(this),
|
||||||
// 阶段列表,用于循环展示阶段信息
|
// 阶段列表,用于循环展示阶段信息
|
||||||
stageList: []
|
stageList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
// 弹窗显示时获取数据
|
||||||
|
visible: {
|
||||||
|
handler(value) {
|
||||||
|
if(value) {
|
||||||
|
this.open()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$refs.invoicingModal.title = '添加阶段'
|
this.$refs.invoicingModal.title = '添加阶段'
|
||||||
@@ -104,11 +123,14 @@ export default {
|
|||||||
this.close()
|
this.close()
|
||||||
},
|
},
|
||||||
open() {
|
open() {
|
||||||
|
// this.visible = true
|
||||||
|
console.log(this.projectId)
|
||||||
this.loadData()
|
this.loadData()
|
||||||
this.visible = true
|
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.visible = false
|
// this.visible = false
|
||||||
|
this.$emit('update:visible', false)
|
||||||
|
this.$emit('ok')
|
||||||
},
|
},
|
||||||
loadData() {
|
loadData() {
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
@@ -153,7 +175,7 @@ export default {
|
|||||||
//将【一十】换成【十】
|
//将【一十】换成【十】
|
||||||
result = result.replace(/^一十/g, '十')
|
result = result.replace(/^一十/g, '十')
|
||||||
return result
|
return result
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user