|
@@ -6,26 +6,36 @@
|
|
|
<y-page-list-layout :page-list="pageData" :page-para="listQuery" :get-page-list="selectRepertoryPage">
|
|
|
<template slot="left">
|
|
|
<el-input style="margin-left: 20px;width: 300px;float: left;" class="filter-item"
|
|
|
- v-model="listQuery.keyWord" placeholder="项目编号/报告号/项目名称/业务来源" clearable>
|
|
|
+ v-model="listQuery.keyWord" placeholder="项目编号/报告号/项目名称" clearable>
|
|
|
</el-input>
|
|
|
+ <el-date-picker style="margin-left: 20px;float: left;" v-model="selectDate" type="datetimerange"
|
|
|
+ :picker-options="pickerOptions" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd" range-separator="至"
|
|
|
+ start-placeholder="开始日期" end-placeholder="结束日期" align="right">
|
|
|
+ </el-date-picker>
|
|
|
<el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary" @click="searchList"
|
|
|
round>搜索
|
|
|
</el-button>
|
|
|
<el-button class="filter-item" style="float: left;" round type="success" @click="resetParams()">重置
|
|
|
</el-button>
|
|
|
</template>
|
|
|
+ <template slot="right">
|
|
|
+ <el-button class="filter-item" style="float: right;" round type="primary" :disabled="exportStatus"
|
|
|
+ @click="repertoryExport()">导出
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+
|
|
|
<parentTable ref="table" v-loading="listLoading" :data="pageData.records" slot="table" style="width: 100%;">
|
|
|
<el-table-column label="项目编号" align="center" width="150">
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.orderId }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="项目名称" align="center" width="150">
|
|
|
+ <el-table-column label="项目名称" align="center" width="300">
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.orderName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="报告号" align="center" width="150">
|
|
|
+ <el-table-column label="报告号" align="center" width="250">
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.reportNo }}</span>
|
|
|
</template>
|
|
@@ -40,17 +50,17 @@
|
|
|
<span>{{ row.methodName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="评估作业开始日" align="center" width="150">
|
|
|
+ <el-table-column label="评估作业开始日" align="center" width="200">
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.startTime }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="估价作业结束日" align="center" width="150">
|
|
|
+ <el-table-column label="估价作业结束日" align="center" width="200">
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.endTime }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="估价时点" align="center" width="150">
|
|
|
+ <el-table-column label="估价时点" align="center" width="200">
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.valuationBasisDate }}</span>
|
|
|
</template>
|
|
@@ -65,9 +75,69 @@
|
|
|
<span>{{ row.evaluatePrice }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="评估部门" align="center" width="150">
|
|
|
+ <el-table-column label="委托人" align="center" width="150">
|
|
|
<template slot-scope="{row}">
|
|
|
- <span>{{ row.evaluateDepartment }}</span>
|
|
|
+ <span>{{ row.bailor }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="委托人电话" align="center" width="150">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.bailorContactTel }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="第一报告人" align="center" width="150">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.firstReporter }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="第一报告人注册号" align="center" width="150">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.firstReporterRegistrationNo }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="参与报告人" align="center" width="150">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>待开发</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="参与报告人注册号" align="center" width="150">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>待开发</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="客户名称" align="center" width="150">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.customerName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="业务来源" align="center" width="150">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.customerSubName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="项目经理" align="center" width="150">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.managerName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="项目负责人" align="center" width="150">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.principalName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="入库时间" align="center" width="200">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.repertoryInTime }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="出库时间" align="center" width="200">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.repertoryOutTime }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="归档时间" align="center" width="200">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.archivedTime }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="市场部门" align="center" width="150">
|
|
@@ -75,6 +145,16 @@
|
|
|
<span>{{ row.marketDepartment }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="评估部门" align="center" width="150">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.evaluateDepartment }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="产品实收金额" align="center" width="150">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.productionRealAmount }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</parentTable>
|
|
|
</y-page-list-layout>
|
|
|
</div>
|
|
@@ -96,20 +176,18 @@ export default {
|
|
|
return {
|
|
|
pageData: { records: [] },
|
|
|
listLoading: false,
|
|
|
+ // 时间
|
|
|
+ selectDate: '',
|
|
|
listQuery: {
|
|
|
page: 1,
|
|
|
size: 10,
|
|
|
current: 1,
|
|
|
- // 节点code
|
|
|
- nodeCode: null,
|
|
|
- // 客户经理id
|
|
|
- clientManagerId: null,
|
|
|
- // 项目负责人id
|
|
|
- principalId: null,
|
|
|
- // 业务类型
|
|
|
- assetsBusinessGener: null,
|
|
|
// 关键字
|
|
|
- keyWord: null
|
|
|
+ keyWord: null,
|
|
|
+ // 开始时间
|
|
|
+ startTime: null,
|
|
|
+ // 结束时间
|
|
|
+ endTime: null
|
|
|
},
|
|
|
// 用户下拉列表
|
|
|
allUsers: [],
|
|
@@ -131,7 +209,35 @@ export default {
|
|
|
value: '其他',
|
|
|
label: '其他'
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ pickerOptions: {
|
|
|
+ shortcuts: [{
|
|
|
+ text: '最近一周',
|
|
|
+ onClick(picker) {
|
|
|
+ const end = new Date();
|
|
|
+ const start = new Date();
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
+ picker.$emit('pick', [start, end]);
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: '最近一个月',
|
|
|
+ onClick(picker) {
|
|
|
+ const end = new Date();
|
|
|
+ const start = new Date();
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
+ picker.$emit('pick', [start, end]);
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: '最近三个月',
|
|
|
+ onClick(picker) {
|
|
|
+ const end = new Date();
|
|
|
+ const start = new Date();
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
|
+ picker.$emit('pick', [start, end]);
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ },
|
|
|
+ exportStatus: true
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -141,9 +247,19 @@ export default {
|
|
|
methods: {
|
|
|
// 无条件分页查询
|
|
|
selectRepertoryPage() {
|
|
|
+ if (this.selectDate) {
|
|
|
+ this.listQuery.startTime = this.selectDate[0] + ' 00:00:00';
|
|
|
+ this.listQuery.endTime = this.selectDate[1] + ' 23:59:59';
|
|
|
+ }
|
|
|
this.$api.assets.selectRepertoryPage(this.listQuery).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.pageData = res.data;
|
|
|
+ if (this.listQuery.startTime !== null && this.listQuery.endTime !== null && res.data.records.length > 0) {
|
|
|
+ console.log(this.listQuery.startTime)
|
|
|
+ this.exportStatus = false;
|
|
|
+ }else {
|
|
|
+ this.exportStatus = true;
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -156,12 +272,21 @@ export default {
|
|
|
},
|
|
|
// 重置搜索条件
|
|
|
resetParams() {
|
|
|
+ this.exportStatus = true;
|
|
|
+ this.selectDate = '';
|
|
|
this.$router.push({ query: {} });
|
|
|
this.listQuery = {
|
|
|
current: 1,
|
|
|
size: 10,
|
|
|
}
|
|
|
this.selectRepertoryPage();
|
|
|
+ },
|
|
|
+ // 资产入库数据导出
|
|
|
+ repertoryExport() {
|
|
|
+ this.$utils.exportUtil(
|
|
|
+ "/assets/repertoryExport", this.listQuery,
|
|
|
+ "导出"
|
|
|
+ );
|
|
|
}
|
|
|
}
|
|
|
}
|