|
@@ -218,7 +218,7 @@
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="150" title="发票申请编号" align="center" field="no">
|
|
<vxe-column min-width="150" title="发票申请编号" align="center" field="no">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-link type="primary" :underline="false" @click="view(false, scope.row.id)">{{scope.row.no}}</el-link>
|
|
|
|
|
|
+ <el-link type="primary" :underline="false" @click="view(false, scope.row)">{{scope.row.no}}</el-link>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="150" title="发票号" align="center" field="number"></vxe-column>
|
|
<vxe-column min-width="150" title="发票号" align="center" field="number"></vxe-column>
|
|
@@ -226,11 +226,11 @@
|
|
<vxe-column min-width="150" title="经办人" align="center" field="operator"></vxe-column>
|
|
<vxe-column min-width="150" title="经办人" align="center" field="operator"></vxe-column>
|
|
<vxe-column min-width="150" title="经办人部门" align="center" field="operatorOffice"></vxe-column>
|
|
<vxe-column min-width="150" title="经办人部门" align="center" field="operatorOffice"></vxe-column>
|
|
<vxe-column min-width="150" title="开票总金额(元)" align="center" field="account"></vxe-column>
|
|
<vxe-column min-width="150" title="开票总金额(元)" align="center" field="account"></vxe-column>
|
|
- <vxe-column min-width="150" title="发票金额(元)" align="center" field="accountDetail"></vxe-column>
|
|
|
|
- <vxe-column min-width="150" title="报备类型" align="center" field="label">
|
|
|
|
-<!-- <template #default="scope">-->
|
|
|
|
-<!-- {{$dictUtils.getDictLabel('cw_work_client_report_type', scope.row.reportType, '')}}-->
|
|
|
|
-<!-- </template>-->
|
|
|
|
|
|
+ <vxe-column min-width="150" title="发票金额(元)" align="center" field="account"></vxe-column>
|
|
|
|
+ <vxe-column min-width="150" title="报备类型" align="center" field="reportType">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ {{$dictUtils.getDictLabel('cw_work_client_report_type', scope.row.reportType, '')}}
|
|
|
|
+ </template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="120" title="开票内容" align="center" field="billingContent">
|
|
<vxe-column min-width="120" title="开票内容" align="center" field="billingContent">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
@@ -308,7 +308,25 @@
|
|
<!-- <ProgramForm ref="programForm"></ProgramForm>-->
|
|
<!-- <ProgramForm ref="programForm"></ProgramForm>-->
|
|
<InvoiceUpdateForm ref="invoiceUpdateForm" @refreshDataList="refreshList"></InvoiceUpdateForm>
|
|
<InvoiceUpdateForm ref="invoiceUpdateForm" @refreshDataList="refreshList"></InvoiceUpdateForm>
|
|
<ProjectForm ref="projectForm"></ProjectForm>
|
|
<ProjectForm ref="projectForm"></ProjectForm>
|
|
|
|
+ <ReportManagementForm ref="reportManagementForm"></ReportManagementForm>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <el-dialog title="详情信息" v-model="dialogFormVisible">
|
|
|
|
+ <el-form :model="form">
|
|
|
|
+ <el-row :gutter="15">
|
|
|
|
+ <el-col :span="21">
|
|
|
|
+ <el-form-item label="详情" prop="programName">
|
|
|
|
+ <el-input :readonly="true" style="width: 100%" type="textarea" maxlength="500" v-model="searchForm.programName" show-word-limit>{{this.searchForm.programName}}</el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
|
|
+
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -324,11 +342,11 @@
|
|
import ProgramPageForm from '@/views/finance/invoice/ProgramPageForm'
|
|
import ProgramPageForm from '@/views/finance/invoice/ProgramPageForm'
|
|
import InvoiceUpdateForm from './InvoiceUpdateForm'
|
|
import InvoiceUpdateForm from './InvoiceUpdateForm'
|
|
import ProjectForm from '@/views/cw/projectRecords/ProjectRecordsForm'
|
|
import ProjectForm from '@/views/cw/projectRecords/ProjectRecordsForm'
|
|
- import projectPageForm from './ProgramPageForm'
|
|
|
|
|
|
+ import ReportManagementForm from '@/views/cw/reportManagement/ReportManagementForm'
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
-
|
|
|
|
|
|
+ dialogFormVisible:false,
|
|
searchVisible: true,
|
|
searchVisible: true,
|
|
showHideItem: false,
|
|
showHideItem: false,
|
|
showHideIcon: 'el-icon-arrow-down',
|
|
showHideIcon: 'el-icon-arrow-down',
|
|
@@ -381,7 +399,8 @@
|
|
ProgramPageForm,
|
|
ProgramPageForm,
|
|
ProgramForm,
|
|
ProgramForm,
|
|
InvoiceUpdateForm,
|
|
InvoiceUpdateForm,
|
|
- ProjectForm
|
|
|
|
|
|
+ ProjectForm,
|
|
|
|
+ ReportManagementForm,
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -428,12 +447,21 @@
|
|
this.$refs.invoiceForm.init(false, id, true)
|
|
this.$refs.invoiceForm.init(false, id, true)
|
|
},
|
|
},
|
|
// 查看 flag为true时,弹窗为收款,其他值为查看发票详情
|
|
// 查看 flag为true时,弹窗为收款,其他值为查看发票详情
|
|
- view (flag, id) {
|
|
|
|
- this.$refs.invoiceForm.init(flag, id)
|
|
|
|
|
|
+ view (flag, row) {
|
|
|
|
+ this.$refs.invoiceForm.init(flag, row.id)
|
|
},
|
|
},
|
|
// 查看项目数据
|
|
// 查看项目数据
|
|
viewProject (row) {
|
|
viewProject (row) {
|
|
- this.$refs.projectForm.init('view', row.programId)
|
|
|
|
|
|
+ console.log(row.recordType)
|
|
|
|
+ if (row.recordType=='1'){
|
|
|
|
+ this.$refs.projectForm.init('view', row.programId)
|
|
|
|
+ }else if (row.recordType=='2'){
|
|
|
|
+ this.$refs.reportManagementForm.init('view', row.programId, '报告审核单下载')
|
|
|
|
+ }else if (row.recordType=='0'){
|
|
|
|
+ this.dialogFormVisible=true
|
|
|
|
+ this.searchForm.programName=row.programName
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
// 获取数据列表
|
|
// 获取数据列表
|
|
refreshList () {
|
|
refreshList () {
|
|
@@ -485,24 +513,6 @@
|
|
} else {
|
|
} else {
|
|
item.programName = ''
|
|
item.programName = ''
|
|
}
|
|
}
|
|
- // if (!this.commonJS.isEmpty(item.financeInvoiceDetailDTOList)) {
|
|
|
|
- // item.accountDetail = 0
|
|
|
|
- // let num = ''
|
|
|
|
- // item.financeInvoiceDetailDTOList.forEach((detail, index) => {
|
|
|
|
- // if (!this.commonJS.isEmpty(detail.account)) {
|
|
|
|
- // item.accountDetail = parseFloat(parseFloat(item.accountDetail) + parseFloat(detail.account)).toFixed(2)
|
|
|
|
- // }
|
|
|
|
- // if ((index + 1) !== item.financeInvoiceDetailDTOList.length) {
|
|
|
|
- // num = num + detail.number + ','
|
|
|
|
- // } else {
|
|
|
|
- // num = num + detail.number
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // item.number = num
|
|
|
|
- // } else {
|
|
|
|
- // item.number = ''
|
|
|
|
- // item.accountDetail = ''
|
|
|
|
- // }
|
|
|
|
})
|
|
})
|
|
this.tablePage.total = data.total
|
|
this.tablePage.total = data.total
|
|
this.loading = false
|
|
this.loading = false
|