|
@@ -112,7 +112,8 @@
|
|
|
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
<a-menu slot="overlay">
|
|
|
- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>对比</a-menu-item>
|
|
|
+ <!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>对比</a-menu-item> -->
|
|
|
+ <a-menu-item key="1" @click="batchDuiBi"><a-icon type="shrink" />对比</a-menu-item>
|
|
|
</a-menu>
|
|
|
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
|
|
|
</a-dropdown>
|
|
@@ -221,27 +222,55 @@
|
|
|
</div>
|
|
|
|
|
|
<project-detail-modal ref="proCostDetail"></project-detail-modal>
|
|
|
+
|
|
|
+ <j-modal
|
|
|
+ :width="1200"
|
|
|
+ :visible="duiBi"
|
|
|
+ switchFullscreen
|
|
|
+ @cancel="handleGb">
|
|
|
+
|
|
|
+ <a-tabs default-active-key="1">
|
|
|
+ <a-tab-pane key="1" tab="总体对比">
|
|
|
+ <all-list :duibiList="duibiList"></all-list>
|
|
|
+ </a-tab-pane>
|
|
|
+ <a-tab-pane key="2" tab="材料费对比" force-render>
|
|
|
+ <wuliao-list></wuliao-list>
|
|
|
+ </a-tab-pane>
|
|
|
+ </a-tabs>
|
|
|
+
|
|
|
+ <template slot="footer">
|
|
|
+ <a-button @click="handleGb">关闭</a-button>
|
|
|
+ </template>
|
|
|
+ </j-modal>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import Vue from 'vue'
|
|
|
- import { columnsSelect, columnsEdit, proCostYSKdetail, proCostContractdetail } from '@/api/kzksApi.js'
|
|
|
+ import { columnsSelect, columnsEdit, proCostYSKdetail, proCostContractdetail, getDbList } from '@/api/kzksApi.js'
|
|
|
|
|
|
import '@/assets/less/TableExpand.less'
|
|
|
import { mixinDevice } from '@/utils/mixin'
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import ProjectDetailModal from './modulesDetail/ProjectDetailModal'
|
|
|
+import AllList from '../projectContrastList/allList.vue'
|
|
|
+import WuliaoList from '../projectContrastList/wuliaoList.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'ProjectCostList',
|
|
|
mixins:[JeecgListMixin, mixinDevice],
|
|
|
components: {
|
|
|
- ProjectDetailModal
|
|
|
+ AllList,
|
|
|
+ WuliaoList,
|
|
|
+ ProjectDetailModal,
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
description: '项目成本管理页面',
|
|
|
+ // 获取到的对比数据
|
|
|
+ duibiList: [],
|
|
|
+ // 对比弹框是否显示
|
|
|
+ duiBi: false,
|
|
|
// 表头:当前显示的列,初始为全部
|
|
|
columns: [],
|
|
|
//列设置:多选弹窗显示的
|
|
@@ -646,6 +675,22 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 对比
|
|
|
+ batchDuiBi(){
|
|
|
+ console.log(this.selectedRowKeys)
|
|
|
+ // console.log(JSON.stringify(this.selectedRowKeys))
|
|
|
+ var a = this.selectedRowKeys
|
|
|
+ var ids = a.toString()
|
|
|
+ getDbList({ids: ids}).then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ this.duibiList = res
|
|
|
+ this.duiBi = true
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 关闭对比弹框
|
|
|
+ handleGb(){
|
|
|
+ this.duiBi = false
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|