|
@@ -44,9 +44,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
- <template slot="rqSearch">
|
|
|
|
|
|
|
+ <template slot="recordDateSearch">
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
- v-model="params.rq"
|
|
|
|
|
|
|
+ v-model="params.recordDateRange"
|
|
|
type="daterange"
|
|
type="daterange"
|
|
|
range-separator="至"
|
|
range-separator="至"
|
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
@@ -60,9 +60,9 @@
|
|
|
<template slot="amountSearch">
|
|
<template slot="amountSearch">
|
|
|
<div style="display: flex; align-items: center;">
|
|
<div style="display: flex; align-items: center;">
|
|
|
<span>金额区间(元):</span>
|
|
<span>金额区间(元):</span>
|
|
|
- <avue-input-number v-model="params.amountStart" :min="0" style="width: 120px !important;"></avue-input-number>
|
|
|
|
|
|
|
+ <avue-input-number v-model="params.amountMin" :min="0" style="width: 120px !important;"></avue-input-number>
|
|
|
<span style="width: 20px; text-align: center;">至</span>
|
|
<span style="width: 20px; text-align: center;">至</span>
|
|
|
- <avue-input-number v-model="params.amountEnd" :min="0" style="width: 120px !important;"></avue-input-number>
|
|
|
|
|
|
|
+ <avue-input-number v-model="params.amountMax" :min="0" style="width: 120px !important;"></avue-input-number>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -134,21 +134,30 @@ export default window.$crudCommon({
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- loadData() {},
|
|
|
|
|
|
|
+ getSearchParams() {
|
|
|
|
|
+ const newParams = { ...this.params };
|
|
|
|
|
+ if (newParams.recordDateRange && newParams.recordDateRange.length) {
|
|
|
|
|
+ newParams.recordDateMin = newParams.recordDateRange[0];
|
|
|
|
|
+ newParams.recordDateMax = newParams.recordDateRange[1];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ delete newParams.recordDateRange;
|
|
|
|
|
+ return newParams;
|
|
|
|
|
+ },
|
|
|
getFormData() {
|
|
getFormData() {
|
|
|
return { ...this.form, yearAndMonth: this.params.yearAndMonth };
|
|
return { ...this.form, yearAndMonth: this.params.yearAndMonth };
|
|
|
},
|
|
},
|
|
|
handleImport() {
|
|
handleImport() {
|
|
|
let excelParams = { yearAndMonth: this.params.yearAndMonth };
|
|
let excelParams = { yearAndMonth: this.params.yearAndMonth };
|
|
|
- this.$refs.uploadExcelDialog.open('/api/kd-scientific/direct-cost/import', excelParams);
|
|
|
|
|
|
|
+ this.$refs.uploadExcelDialog.open('/api/kd-scientific/xm/design-cost/import', excelParams);
|
|
|
},
|
|
},
|
|
|
uploadAfter() {
|
|
uploadAfter() {
|
|
|
this.page.currentPage = 1;
|
|
this.page.currentPage = 1;
|
|
|
this.getList(this.page);
|
|
this.getList(this.page);
|
|
|
},
|
|
},
|
|
|
handleExport() {
|
|
handleExport() {
|
|
|
- exportBlob(`/api/kd-scientific/direct-cost/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
|
|
- downloadXls(res.data, `设计费用、装备调试费用与试验费用基本信息台账${this.params.yearAndMonth}.xlsx`);
|
|
|
|
|
|
|
+ exportBlob(`/api/kd-scientific/xm/design-cost/export-xmDesignCost?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
|
|
+ downloadXls(res.data, `${this.params.yearAndMonth}设计费用、装备调试费用与试验费用基本信息台账.xlsx`);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
@@ -157,7 +166,7 @@ export default window.$crudCommon({
|
|
|
*/
|
|
*/
|
|
|
printTable(isLandscape) {
|
|
printTable(isLandscape) {
|
|
|
this.wideTableColumns = this.$refs.crud.columnOption;
|
|
this.wideTableColumns = this.$refs.crud.columnOption;
|
|
|
- this.printTitle = `设计费用、装备调试费用与试验费用基本信息台账${this.params.yearAndMonth}`;
|
|
|
|
|
|
|
+ this.printTitle = `${this.params.yearAndMonth}设计费用、装备调试费用与试验费用基本信息台账`;
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.printWideTable.printTable(isLandscape);
|
|
this.$refs.printWideTable.printTable(isLandscape);
|
|
|
})
|
|
})
|