|
@@ -12,18 +12,18 @@
|
|
<div v-if="isShow">
|
|
<div v-if="isShow">
|
|
<el-radio v-model="checkType" label="1" style="margin-right: 20px">项目</el-radio>
|
|
<el-radio v-model="checkType" label="1" style="margin-right: 20px">项目</el-radio>
|
|
<el-radio v-model="checkType" label="2" style="margin-right: 20px">报告</el-radio>
|
|
<el-radio v-model="checkType" label="2" style="margin-right: 20px">报告</el-radio>
|
|
- <el-radio v-if="hasPermission('cw_finance:invoice:add:report')" v-model="checkType" label="3" style="margin-right: 20px">其他</el-radio>
|
|
|
|
|
|
+ <el-radio v-if="hasPermission('cw_finance:invoice:add:report')" v-model="checkType" label="3" style="margin-right: 20px">其他</el-radio>
|
|
</div>
|
|
</div>
|
|
<!--报告 -->
|
|
<!--报告 -->
|
|
<div v-if="checkType === '2'" style="height: calc(100% - 80px);">
|
|
<div v-if="checkType === '2'" style="height: calc(100% - 80px);">
|
|
- <el-form :inline="true" class="query-form" ref="searchForm" :model="searchForm"
|
|
|
|
|
|
+ <el-form size="large" :inline="true" class="query-form" ref="searchForm" :model="searchForm"
|
|
@submit.native.prevent>
|
|
@submit.native.prevent>
|
|
<!-- 搜索框-->
|
|
<!-- 搜索框-->
|
|
<el-form-item label="项目名称" prop="projectName">
|
|
<el-form-item label="项目名称" prop="projectName">
|
|
- <el-input v-model="searchForm.projectName" placeholder="请输入项目名称" clearable></el-input>
|
|
|
|
|
|
+ <el-input size="large" v-model="searchForm.projectName" placeholder="请输入项目名称" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="报告编号" prop="reportNo">
|
|
|
|
- <el-input v-model="searchForm.reportNo" placeholder="请输入报告号" clearable></el-input>
|
|
|
|
|
|
+ <el-form-item label="报告号" prop="reportNo">
|
|
|
|
+ <el-input size="large" v-model="searchForm.reportNo" placeholder="请输入报告号" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="报告创建时间" prop="createDates">
|
|
<el-form-item label="报告创建时间" prop="createDates">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
@@ -39,8 +39,8 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-button type="primary" @click="list1()" icon="el-icon-search">查询</el-button>
|
|
|
|
- <el-button @click="resetSearch1()" icon="el-icon-refresh-right">重置</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="list1()" size="large" icon="el-icon-search">查询</el-button>
|
|
|
|
+ <el-button @click="resetSearch1()" size="large" icon="el-icon-refresh-right">重置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
@@ -48,22 +48,25 @@
|
|
border="inner"
|
|
border="inner"
|
|
auto-resize
|
|
auto-resize
|
|
resizable
|
|
resizable
|
|
- height="400px"
|
|
|
|
|
|
+ height="550px"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
|
+ size="large"
|
|
ref="projectTable1"
|
|
ref="projectTable1"
|
|
show-header-overflow
|
|
show-header-overflow
|
|
show-overflow
|
|
show-overflow
|
|
highlight-hover-row
|
|
highlight-hover-row
|
|
:menu-config="{}"
|
|
:menu-config="{}"
|
|
:print-config="{}"
|
|
:print-config="{}"
|
|
|
|
+ @sort-change=""
|
|
:sort-config="{remote:true}"
|
|
:sort-config="{remote:true}"
|
|
:data="dataList1"
|
|
:data="dataList1"
|
|
:row-config="{isCurrent: true}"
|
|
:row-config="{isCurrent: true}"
|
|
:checkbox-config="{trigger: 'row'}"
|
|
:checkbox-config="{trigger: 'row'}"
|
|
>
|
|
>
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
- <vxe-column type="checkbox" width="40px"></vxe-column>
|
|
|
|
|
|
+ <vxe-column type="checkbox" width="60px"></vxe-column>
|
|
<vxe-column min-width="230" align="center" title="项目名称" field="projectName"></vxe-column>
|
|
<vxe-column min-width="230" align="center" title="项目名称" field="projectName"></vxe-column>
|
|
|
|
+ <vxe-column min-width="230" align="center" title="项目编号" field="projectNumber"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="报告文号" field="reportNo"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="报告文号" field="reportNo"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="合同名称" field="contractName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="合同名称" field="contractName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="报告创建人" field="userName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="报告创建人" field="userName"></vxe-column>
|
|
@@ -72,6 +75,7 @@
|
|
</vxe-table>
|
|
</vxe-table>
|
|
<vxe-pager
|
|
<vxe-pager
|
|
background
|
|
background
|
|
|
|
+ size="large"
|
|
:current-page="tablePage1.currentPage"
|
|
:current-page="tablePage1.currentPage"
|
|
:page-size="tablePage1.pageSize"
|
|
:page-size="tablePage1.pageSize"
|
|
:total="tablePage1.total"
|
|
:total="tablePage1.total"
|
|
@@ -112,7 +116,7 @@
|
|
border="inner"
|
|
border="inner"
|
|
auto-resize
|
|
auto-resize
|
|
resizable
|
|
resizable
|
|
- height="400px"
|
|
|
|
|
|
+ height="550px"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
ref="projectTable"
|
|
ref="projectTable"
|
|
show-header-overflow
|
|
show-header-overflow
|
|
@@ -127,7 +131,7 @@
|
|
>
|
|
>
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column type="checkbox" width="60px"></vxe-column>
|
|
<vxe-column type="checkbox" width="60px"></vxe-column>
|
|
- <vxe-column min-width="230" align="center" title="项目名称" field="projectName"></vxe-column>
|
|
|
|
|
|
+ <vxe-column min-width="160" align="center" title="项目名称" field="projectName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="项目编号" field="projectNumber"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="项目编号" field="projectNumber"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="合同名称" field="contractName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="合同名称" field="contractName"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="创建人" field="createBy.name"></vxe-column>
|
|
<vxe-column min-width="160" align="center" title="创建人" field="createBy.name"></vxe-column>
|
|
@@ -171,7 +175,7 @@
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
- title: '项目选择',
|
|
|
|
|
|
+ title: '',
|
|
method: '',
|
|
method: '',
|
|
visible: false,
|
|
visible: false,
|
|
loading: false,
|
|
loading: false,
|
|
@@ -181,12 +185,12 @@
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
orders: []
|
|
orders: []
|
|
},
|
|
},
|
|
- tablePage1: {
|
|
|
|
- total: 0,
|
|
|
|
- currentPage: 1,
|
|
|
|
- pageSize: 10,
|
|
|
|
- orders: []
|
|
|
|
- },
|
|
|
|
|
|
+ tablePage1: {
|
|
|
|
+ total: 0,
|
|
|
|
+ currentPage: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ orders: []
|
|
|
|
+ },
|
|
dataList: [],
|
|
dataList: [],
|
|
dataList1: [],
|
|
dataList1: [],
|
|
searchForm: {
|
|
searchForm: {
|
|
@@ -239,6 +243,9 @@
|
|
} else if (isShow === '1') {
|
|
} else if (isShow === '1') {
|
|
this.isShow = false
|
|
this.isShow = false
|
|
this.checkType = '1'
|
|
this.checkType = '1'
|
|
|
|
+ }else if (isShow === '2') {
|
|
|
|
+ this.isShow = false
|
|
|
|
+ this.checkType = '2'
|
|
} else {
|
|
} else {
|
|
this.isShow = false
|
|
this.isShow = false
|
|
this.checkType = '3'
|
|
this.checkType = '3'
|
|
@@ -251,6 +258,7 @@
|
|
}
|
|
}
|
|
this.visible = true
|
|
this.visible = true
|
|
this.list()
|
|
this.list()
|
|
|
|
+ this.list1()
|
|
},
|
|
},
|
|
// 表单提交
|
|
// 表单提交
|
|
getProgram () {
|
|
getProgram () {
|
|
@@ -304,20 +312,20 @@
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- list1 () {
|
|
|
|
- this.loading = true
|
|
|
|
- this.searchForm.status = '5'
|
|
|
|
- this.projectRecordsService.list1({
|
|
|
|
- 'current': this.tablePage1.currentPage,
|
|
|
|
- 'size': this.tablePage1.pageSize,
|
|
|
|
- 'orders': this.tablePage1.orders,
|
|
|
|
- ...this.searchForm
|
|
|
|
- }).then((data) => {
|
|
|
|
- this.dataList1 = data.records
|
|
|
|
- this.tablePage1.total = data.total
|
|
|
|
- this.loading = false
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+ list1 () {
|
|
|
|
+ this.loading = true
|
|
|
|
+ this.searchForm.status = '5'
|
|
|
|
+ projectRecordsService.list1({
|
|
|
|
+ 'current': this.tablePage1.currentPage,
|
|
|
|
+ 'size': this.tablePage1.pageSize,
|
|
|
|
+ 'orders': this.tablePage1.orders,
|
|
|
|
+ ...this.searchForm
|
|
|
|
+ }).then((data) => {
|
|
|
|
+ this.dataList1 = data.records
|
|
|
|
+ this.tablePage1.total = data.total
|
|
|
|
+ this.loading = false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 当前页
|
|
// 当前页
|
|
currentChangeHandle ({currentPage, pageSize}) {
|
|
currentChangeHandle ({currentPage, pageSize}) {
|
|
this.tablePage.currentPage = currentPage
|
|
this.tablePage.currentPage = currentPage
|
|
@@ -328,15 +336,15 @@
|
|
this.$refs.searchForm.resetFields()
|
|
this.$refs.searchForm.resetFields()
|
|
this.list()
|
|
this.list()
|
|
},
|
|
},
|
|
- resetSearch1 () {
|
|
|
|
- this.$refs.searchForm.resetFields()
|
|
|
|
- this.list1()
|
|
|
|
- },
|
|
|
|
- currentChangeHandle1 ({currentPage, pageSize}) {
|
|
|
|
- this.tablePage1.currentPage = currentPage
|
|
|
|
- this.tablePage1.pageSize = pageSize
|
|
|
|
- this.list1()
|
|
|
|
- },
|
|
|
|
|
|
+ currentChangeHandle1 ({currentPage, pageSize}) {
|
|
|
|
+ this.tablePage1.currentPage = currentPage
|
|
|
|
+ this.tablePage1.pageSize = pageSize
|
|
|
|
+ this.list1()
|
|
|
|
+ },
|
|
|
|
+ resetSearch1 () {
|
|
|
|
+ this.$refs.searchForm.resetFields()
|
|
|
|
+ this.list1()
|
|
|
|
+ },
|
|
close () {
|
|
close () {
|
|
this.detail = ''
|
|
this.detail = ''
|
|
this.visible = false
|
|
this.visible = false
|