|
@@ -116,6 +116,7 @@
|
|
|
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> -->
|
|
|
<a-button @click="handleExpand" type="primary" icon="column-height">折叠/展开</a-button>
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">导入</a-button>
|
|
|
+ <a-button @click="handleComputed" type="primary" icon="reconciliation">计算</a-button>
|
|
|
<!-- <a-button type="primary" icon="download" @click="handleExportXls('项目成本')">导出</a-button> -->
|
|
|
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
|
|
<a-button type="primary" icon="import">导入</a-button>
|
|
@@ -165,7 +166,7 @@
|
|
|
<a-table
|
|
|
ref="table"
|
|
|
size="middle"
|
|
|
- :scroll="{x:true,y: scrollHeight}"
|
|
|
+ :scroll="{x:true,}"
|
|
|
bordered
|
|
|
rowKey="id"
|
|
|
:columns="columns"
|
|
@@ -325,7 +326,7 @@
|
|
|
// import VueDraggableResizable from 'vue-draggable-resizable';
|
|
|
// Vue.component('vue-draggable-resizable', VueDraggableResizable);
|
|
|
|
|
|
- import { columnsSelect, columnsEdit, proCostYSKdetail, proCostContractdetail, getDbList, getHjList, getDbClList, insertIntoProject } from '@/api/kzksApi.js'
|
|
|
+ import { columnsSelect, columnsEdit, proCostYSKdetail, proCostContractdetail, getDbList, getHjList, getDbClList, insertIntoProject, visibleClientStart } from '@/api/kzksApi.js'
|
|
|
|
|
|
import '@/assets/less/TableExpand.less'
|
|
|
import { mixinDevice } from '@/utils/mixin'
|
|
@@ -1035,6 +1036,14 @@ import { number } from 'echarts';
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 费用导入后执行一次计算程序
|
|
|
+ handleComputed(){
|
|
|
+ this.loading = true
|
|
|
+ visibleClientStart().then(response => {
|
|
|
+ console.log(response)
|
|
|
+ this.loadData()
|
|
|
+ })
|
|
|
+ },
|
|
|
// 比对
|
|
|
batchDuiBi(){
|
|
|
// console.log(this.selectedRowKeys,this.selectionRows)
|