|
@@ -362,7 +362,6 @@ import { number } from 'echarts';
|
|
pageSize: 11, // 设置a-table调用时加上筛选行
|
|
pageSize: 11, // 设置a-table调用时加上筛选行
|
|
pageSizeOptions: ['11', '21', '31'],
|
|
pageSizeOptions: ['11', '21', '31'],
|
|
showTotal: (total, range) => {
|
|
showTotal: (total, range) => {
|
|
- // console.log(total, range, this.ipagination.current)
|
|
|
|
var current = this.ipagination.current
|
|
var current = this.ipagination.current
|
|
if(this.showListTotal){
|
|
if(this.showListTotal){
|
|
return (range[0] - current + 1) + "-" + (range[1] - current) + " 共" + this.showListTotal + "条"
|
|
return (range[0] - current + 1) + "-" + (range[1] - current) + " 共" + this.showListTotal + "条"
|
|
@@ -592,8 +591,19 @@ import { number } from 'echarts';
|
|
// scopedSlots: {
|
|
// scopedSlots: {
|
|
// customRender: 'clf',
|
|
// customRender: 'clf',
|
|
// },
|
|
// },
|
|
- customRender: (text) => {
|
|
|
|
- return (Number(text)/10000).toFixed(2)
|
|
|
|
|
|
+ // customRender: (text) => {
|
|
|
|
+ // return (Number(text)/10000).toFixed(2)
|
|
|
|
+ // },
|
|
|
|
+ customRender:function (text,record,index) {
|
|
|
|
+ var wanyuan = (Number(text)/10000).toFixed(2)
|
|
|
|
+ let classTag = {
|
|
|
|
+ class: `${ record.id !== 'amount' && record.clys != 0 && wanyuan > record.clys ? 'exceed-budget-status':''}`
|
|
|
|
+ }
|
|
|
|
+ return {
|
|
|
|
+ children: (
|
|
|
|
+ <span {...classTag}>{wanyuan}</span>
|
|
|
|
+ )
|
|
|
|
+ };
|
|
},
|
|
},
|
|
customCell: (record, index)=>{ return this.customCellDetail(record, index, 'clf', '材料费')}
|
|
customCell: (record, index)=>{ return this.customCellDetail(record, index, 'clf', '材料费')}
|
|
},
|
|
},
|
|
@@ -614,8 +624,16 @@ import { number } from 'echarts';
|
|
// scopedSlots: {
|
|
// scopedSlots: {
|
|
// customRender: 'zyf',
|
|
// customRender: 'zyf',
|
|
// },
|
|
// },
|
|
- customRender: (text) => {
|
|
|
|
- return (Number(text)/10000).toFixed(2)
|
|
|
|
|
|
+ customRender:function (text,record,index) {
|
|
|
|
+ var wanyuan = (Number(text)/10000).toFixed(2)
|
|
|
|
+ let classTag = {
|
|
|
|
+ class: `${ record.id !== 'amount' && record.zyys != 0 && wanyuan > record.zyys ? 'exceed-budget-status':''}`
|
|
|
|
+ }
|
|
|
|
+ return {
|
|
|
|
+ children: (
|
|
|
|
+ <span {...classTag}>{wanyuan}</span>
|
|
|
|
+ )
|
|
|
|
+ };
|
|
},
|
|
},
|
|
customCell: (record, index)=>{ return this.customCellDetail(record, index, 'zyf', '专用费')}
|
|
customCell: (record, index)=>{ return this.customCellDetail(record, index, 'zyf', '专用费')}
|
|
},
|
|
},
|
|
@@ -636,8 +654,16 @@ import { number } from 'echarts';
|
|
// scopedSlots: {
|
|
// scopedSlots: {
|
|
// customRender: 'swf',
|
|
// customRender: 'swf',
|
|
// },
|
|
// },
|
|
- customRender: (text) => {
|
|
|
|
- return (Number(text)/10000).toFixed(2)
|
|
|
|
|
|
+ customRender:function (text,record,index) {
|
|
|
|
+ var wanyuan = (Number(text)/10000).toFixed(2)
|
|
|
|
+ let classTag = {
|
|
|
|
+ class: `${ record.id !== 'amount' && record.swys != 0 && wanyuan > record.swys ? 'exceed-budget-status':''}`
|
|
|
|
+ }
|
|
|
|
+ return {
|
|
|
|
+ children: (
|
|
|
|
+ <span {...classTag}>{wanyuan}</span>
|
|
|
|
+ )
|
|
|
|
+ };
|
|
},
|
|
},
|
|
customCell: (record, index)=>{ return this.customCellDetail(record, index, 'swf', '事务费')}
|
|
customCell: (record, index)=>{ return this.customCellDetail(record, index, 'swf', '事务费')}
|
|
},
|
|
},
|
|
@@ -658,8 +684,16 @@ import { number } from 'echarts';
|
|
// scopedSlots: {
|
|
// scopedSlots: {
|
|
// customRender: 'wxf',
|
|
// customRender: 'wxf',
|
|
// },
|
|
// },
|
|
- customRender: (text) => {
|
|
|
|
- return (Number(text)/10000).toFixed(2)
|
|
|
|
|
|
+ customRender:function (text,record,index) {
|
|
|
|
+ var wanyuan = (Number(text)/10000).toFixed(2)
|
|
|
|
+ let classTag = {
|
|
|
|
+ class: `${ record.id !== 'amount' && record.wxys != 0 && wanyuan > record.wxys ? 'exceed-budget-status':''}`
|
|
|
|
+ }
|
|
|
|
+ return {
|
|
|
|
+ children: (
|
|
|
|
+ <span {...classTag}>{wanyuan}</span>
|
|
|
|
+ )
|
|
|
|
+ };
|
|
},
|
|
},
|
|
customCell: (record, index)=>{ return this.customCellDetail(record, index, 'wxf', '外协费')}
|
|
customCell: (record, index)=>{ return this.customCellDetail(record, index, 'wxf', '外协费')}
|
|
},
|
|
},
|
|
@@ -677,8 +711,19 @@ import { number } from 'echarts';
|
|
align:"center",
|
|
align:"center",
|
|
width: 80,
|
|
width: 80,
|
|
dataIndex: 'jjfhz',
|
|
dataIndex: 'jjfhz',
|
|
- customRender: (text) => {
|
|
|
|
- return Number(text).toFixed(2)
|
|
|
|
|
|
+ // customRender: (text) => {
|
|
|
|
+ // return Number(text).toFixed(2)
|
|
|
|
+ // },
|
|
|
|
+ customRender:function (text,record,index) {
|
|
|
|
+ var wanyuan = (Number(text)/10000).toFixed(2)
|
|
|
|
+ let classTag = {
|
|
|
|
+ class: `${ record.id !== 'amount' && record.jjys != 0 && wanyuan > record.jjys ? 'exceed-budget-status':''}`
|
|
|
|
+ }
|
|
|
|
+ return {
|
|
|
|
+ children: (
|
|
|
|
+ <span {...classTag}>{wanyuan}</span>
|
|
|
|
+ )
|
|
|
|
+ };
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -920,7 +965,7 @@ import { number } from 'echarts';
|
|
this.getSuperFieldList();
|
|
this.getSuperFieldList();
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- console.log(window.innerHeight, this.$refs.table)
|
|
|
|
|
|
+ // console.log(window.innerHeight, this.$refs.table)
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.scrollHeight = window.innerHeight - 60 - 25 - 55 - 25
|
|
this.scrollHeight = window.innerHeight - 60 - 25 - 55 - 25
|
|
// this.scrollHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 60 - 52 - 50 - 56 - 60 - 34
|
|
// this.scrollHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 60 - 52 - 50 - 56 - 60 - 34
|
|
@@ -938,7 +983,7 @@ import { number } from 'echarts';
|
|
this.mouseOffset = e.clientX;
|
|
this.mouseOffset = e.clientX;
|
|
this.handlerFirstTime = new Date().getTime()
|
|
this.handlerFirstTime = new Date().getTime()
|
|
this.mouseFlag = true;
|
|
this.mouseFlag = true;
|
|
- console.log(this.mouseOffset)
|
|
|
|
|
|
+ // console.log(this.mouseOffset)
|
|
},
|
|
},
|
|
mouseUpHandler(e) {
|
|
mouseUpHandler(e) {
|
|
var lastTime = new Date().getTime();
|
|
var lastTime = new Date().getTime();
|
|
@@ -960,7 +1005,6 @@ import { number } from 'echarts';
|
|
}
|
|
}
|
|
},
|
|
},
|
|
loadData(arg) {
|
|
loadData(arg) {
|
|
- console.log(111)
|
|
|
|
if(!this.url.list){
|
|
if(!this.url.list){
|
|
this.$message.error("请设置url.list属性!")
|
|
this.$message.error("请设置url.list属性!")
|
|
return
|
|
return
|
|
@@ -970,12 +1014,10 @@ import { number } from 'echarts';
|
|
this.ipagination.current = 1;
|
|
this.ipagination.current = 1;
|
|
}
|
|
}
|
|
var params = this.getQueryParams();//查询条件
|
|
var params = this.getQueryParams();//查询条件
|
|
- console.log(params)
|
|
|
|
// 查询时减去筛选行
|
|
// 查询时减去筛选行
|
|
params.pageSize = (Number(params.pageSize) - 1).toString()
|
|
params.pageSize = (Number(params.pageSize) - 1).toString()
|
|
this.loading = true;
|
|
this.loading = true;
|
|
getAction(this.url.list, params).then((res) => {
|
|
getAction(this.url.list, params).then((res) => {
|
|
- console.log(res)
|
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
//update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
//update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
this.dataSource = res.result.pageList.records||res.result.pageList;
|
|
this.dataSource = res.result.pageList.records||res.result.pageList;
|
|
@@ -994,7 +1036,6 @@ import { number } from 'echarts';
|
|
}else{
|
|
}else{
|
|
this.ipagination.total = 0;
|
|
this.ipagination.total = 0;
|
|
}
|
|
}
|
|
- console.log(this.dataSource)
|
|
|
|
//update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
//update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
}else{
|
|
}else{
|
|
this.$message.warning(res.message)
|
|
this.$message.warning(res.message)
|
|
@@ -1037,7 +1078,6 @@ import { number } from 'echarts';
|
|
},
|
|
},
|
|
// 行颜色设置
|
|
// 行颜色设置
|
|
setRowClassName(record, index){
|
|
setRowClassName(record, index){
|
|
- // console.log(record)
|
|
|
|
if(record.lrl < 0){
|
|
if(record.lrl < 0){
|
|
// 亏损标红
|
|
// 亏损标红
|
|
return 'table-kuisun-color'
|
|
return 'table-kuisun-color'
|
|
@@ -1053,7 +1093,6 @@ import { number } from 'echarts';
|
|
},
|
|
},
|
|
//列设置更改事件
|
|
//列设置更改事件
|
|
onColSettingsChange (checkedValues) {
|
|
onColSettingsChange (checkedValues) {
|
|
- console.log(checkedValues)
|
|
|
|
// 获取浏览器方式
|
|
// 获取浏览器方式
|
|
// var key = this.$route.name+":colsettings";
|
|
// var key = this.$route.name+":colsettings";
|
|
// Vue.ls.set(key, checkedValues, 7 * 24 * 60 * 60 * 1000)
|
|
// Vue.ls.set(key, checkedValues, 7 * 24 * 60 * 60 * 1000)
|
|
@@ -1080,6 +1119,7 @@ import { number } from 'echarts';
|
|
}
|
|
}
|
|
return {
|
|
return {
|
|
style: {
|
|
style: {
|
|
|
|
+ // 'color': "#1890ff",
|
|
'color': "#1890ff !important",
|
|
'color': "#1890ff !important",
|
|
'cursor': "pointer",
|
|
'cursor': "pointer",
|
|
},
|
|
},
|
|
@@ -1089,7 +1129,7 @@ import { number } from 'echarts';
|
|
|
|
|
|
},
|
|
},
|
|
dblclick: (event) => {
|
|
dblclick: (event) => {
|
|
- console.log(record, index, columnValue, columnTitle)
|
|
|
|
|
|
+ // console.log(record, index, columnValue, columnTitle)
|
|
// 没有值不弹窗--也弹窗
|
|
// 没有值不弹窗--也弹窗
|
|
// if(!event.target.textContent){
|
|
// if(!event.target.textContent){
|
|
// return
|
|
// return
|
|
@@ -1111,7 +1151,7 @@ import { number } from 'echarts';
|
|
proportion: record.proportion,
|
|
proportion: record.proportion,
|
|
columnValue: columnValue,
|
|
columnValue: columnValue,
|
|
}
|
|
}
|
|
- console.log(columnValue)
|
|
|
|
|
|
+ // console.log(columnValue)
|
|
this.$refs.proCostDetail.columnValue = 'pichanTask'
|
|
this.$refs.proCostDetail.columnValue = 'pichanTask'
|
|
this.$refs.proCostDetail.title = columnTitle + '批产明细'
|
|
this.$refs.proCostDetail.title = columnTitle + '批产明细'
|
|
} else {
|
|
} else {
|
|
@@ -1143,7 +1183,7 @@ import { number } from 'echarts';
|
|
},
|
|
},
|
|
// 双击事件
|
|
// 双击事件
|
|
dblclick: (event) => {
|
|
dblclick: (event) => {
|
|
- console.log(record, index, columnValue, columnTitle)
|
|
|
|
|
|
+ // console.log(record, index, columnValue, columnTitle)
|
|
var tasknos = record.children.map(item=>item.taskno)
|
|
var tasknos = record.children.map(item=>item.taskno)
|
|
this.$refs.proCostZcbDetail.taskno = tasknos.join(',')
|
|
this.$refs.proCostZcbDetail.taskno = tasknos.join(',')
|
|
this.$refs.proCostZcbDetail.title = columnTitle + '明细'
|
|
this.$refs.proCostZcbDetail.title = columnTitle + '明细'
|
|
@@ -1169,7 +1209,6 @@ import { number } from 'echarts';
|
|
proportion: record.proportion,
|
|
proportion: record.proportion,
|
|
columnValue: columnValue,
|
|
columnValue: columnValue,
|
|
}
|
|
}
|
|
- console.log(columnValue)
|
|
|
|
this.$refs.proCostDetail.columnValue = 'pichanTask'
|
|
this.$refs.proCostDetail.columnValue = 'pichanTask'
|
|
this.$refs.proCostDetail.title = columnTitle + '批产明细'
|
|
this.$refs.proCostDetail.title = columnTitle + '批产明细'
|
|
} else {
|
|
} else {
|
|
@@ -1221,7 +1260,6 @@ import { number } from 'echarts';
|
|
handleComputed(){
|
|
handleComputed(){
|
|
this.loading = true
|
|
this.loading = true
|
|
visibleClientStart().then(response => {
|
|
visibleClientStart().then(response => {
|
|
- console.log(response)
|
|
|
|
this.loadData()
|
|
this.loadData()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -1231,11 +1269,9 @@ import { number } from 'echarts';
|
|
// console.log(JSON.stringify(this.selectedRowKeys))
|
|
// console.log(JSON.stringify(this.selectedRowKeys))
|
|
|
|
|
|
var selectTasknos = this.selectionRows.map( res => {
|
|
var selectTasknos = this.selectionRows.map( res => {
|
|
- console.log(res.status)
|
|
|
|
var value = res.status === '1' ? res.taskno+'_-_pc' : res.taskno
|
|
var value = res.status === '1' ? res.taskno+'_-_pc' : res.taskno
|
|
return value
|
|
return value
|
|
})
|
|
})
|
|
- console.log(selectTasknos)
|
|
|
|
this.duibiTasknos = selectTasknos.toString()
|
|
this.duibiTasknos = selectTasknos.toString()
|
|
this.duibiIds = this.selectedRowKeys.toString()
|
|
this.duibiIds = this.selectedRowKeys.toString()
|
|
this.duiBi = true
|
|
this.duiBi = true
|
|
@@ -1244,7 +1280,6 @@ import { number } from 'echarts';
|
|
// var a = this.selectedRowKeys
|
|
// var a = this.selectedRowKeys
|
|
// var ids = a.toString()
|
|
// var ids = a.toString()
|
|
// getHjList({ids: ids}).then((res) => {
|
|
// getHjList({ids: ids}).then((res) => {
|
|
- // console.log(res)
|
|
|
|
// this.duibiList = res
|
|
// this.duibiList = res
|
|
// this.duibiclList = []
|
|
// this.duibiclList = []
|
|
// })
|
|
// })
|
|
@@ -1252,9 +1287,7 @@ import { number } from 'echarts';
|
|
// return res.taskno
|
|
// return res.taskno
|
|
// })
|
|
// })
|
|
// var tasknos = selectTasknos.toString()
|
|
// var tasknos = selectTasknos.toString()
|
|
- // console.log(tasknos)
|
|
|
|
// getDbClList({tasknos: tasknos}).then((res) => {
|
|
// getDbClList({tasknos: tasknos}).then((res) => {
|
|
- // console.log(res)
|
|
|
|
// this.duibiclList = res.result.resultVOList
|
|
// this.duibiclList = res.result.resultVOList
|
|
// this.duiBi = true
|
|
// this.duiBi = true
|
|
// })
|
|
// })
|
|
@@ -1262,16 +1295,13 @@ import { number } from 'echarts';
|
|
// var a = this.selectedRowKeys
|
|
// var a = this.selectedRowKeys
|
|
// var ids = a.toString()
|
|
// var ids = a.toString()
|
|
// getDbList({ids: ids}).then((res) => {
|
|
// getDbList({ids: ids}).then((res) => {
|
|
- // console.log(res)
|
|
|
|
// this.duibiList = res
|
|
// this.duibiList = res
|
|
// })
|
|
// })
|
|
// var selectTasknos = this.selectionRows.map( res => {
|
|
// var selectTasknos = this.selectionRows.map( res => {
|
|
// return res.taskno
|
|
// return res.taskno
|
|
// })
|
|
// })
|
|
// var tasknos = selectTasknos.toString()
|
|
// var tasknos = selectTasknos.toString()
|
|
- // console.log(tasknos)
|
|
|
|
// getDbClList({tasknos: tasknos}).then((res) => {
|
|
// getDbClList({tasknos: tasknos}).then((res) => {
|
|
- // console.log(res)
|
|
|
|
// this.duibiclList = res.result.resultVOList
|
|
// this.duibiclList = res.result.resultVOList
|
|
// this.duiBi = true
|
|
// this.duiBi = true
|
|
// })
|
|
// })
|
|
@@ -1279,16 +1309,13 @@ import { number } from 'echarts';
|
|
// var a = this.selectedRowKeys
|
|
// var a = this.selectedRowKeys
|
|
// var ids = a.toString()
|
|
// var ids = a.toString()
|
|
// getDbList({ids: ids}).then((res) => {
|
|
// getDbList({ids: ids}).then((res) => {
|
|
- // console.log(res)
|
|
|
|
// this.duibiList = res
|
|
// this.duibiList = res
|
|
// })
|
|
// })
|
|
// var selectTasknos = this.selectionRows.map( res => {
|
|
// var selectTasknos = this.selectionRows.map( res => {
|
|
// return res.taskno
|
|
// return res.taskno
|
|
// })
|
|
// })
|
|
// var tasknos = selectTasknos.toString()
|
|
// var tasknos = selectTasknos.toString()
|
|
- // console.log(tasknos)
|
|
|
|
// getDbClList({tasknos: tasknos}).then((res) => {
|
|
// getDbClList({tasknos: tasknos}).then((res) => {
|
|
- // console.log(res)
|
|
|
|
// this.duibiclList = res
|
|
// this.duibiclList = res
|
|
// this.duiBi = true
|
|
// this.duiBi = true
|
|
// })
|
|
// })
|
|
@@ -1301,7 +1328,7 @@ import { number } from 'echarts';
|
|
},
|
|
},
|
|
// 一键折叠展开
|
|
// 一键折叠展开
|
|
handleExpand(){
|
|
handleExpand(){
|
|
- console.log(this.isExpanded)
|
|
|
|
|
|
+ // console.log(this.isExpanded)
|
|
if(this.isExpanded){
|
|
if(this.isExpanded){
|
|
// 当前为展开,全部折叠
|
|
// 当前为展开,全部折叠
|
|
this.expandedRowKeys = []
|
|
this.expandedRowKeys = []
|
|
@@ -1313,7 +1340,6 @@ import { number } from 'echarts';
|
|
},
|
|
},
|
|
onExpand (expanded, record) {
|
|
onExpand (expanded, record) {
|
|
if (expanded) {
|
|
if (expanded) {
|
|
- console.log(record.id)
|
|
|
|
// 设置展开窗Key,代表展开操作
|
|
// 设置展开窗Key,代表展开操作
|
|
this.expandedRowKeys.push(record.id)
|
|
this.expandedRowKeys.push(record.id)
|
|
} else {
|
|
} else {
|
|
@@ -1327,22 +1353,18 @@ import { number } from 'echarts';
|
|
},
|
|
},
|
|
// 虚实比对(堆叠图)
|
|
// 虚实比对(堆叠图)
|
|
handleXushi(record){
|
|
handleXushi(record){
|
|
- console.log(record)
|
|
|
|
this.$refs.xushi.open(record)
|
|
this.$refs.xushi.open(record)
|
|
},
|
|
},
|
|
// 加入产品模型
|
|
// 加入产品模型
|
|
handleAddProjectModel(record){
|
|
handleAddProjectModel(record){
|
|
- console.log(record)
|
|
|
|
var arr = []
|
|
var arr = []
|
|
arr.push(record)
|
|
arr.push(record)
|
|
insertIntoProject(arr).then(response => {
|
|
insertIntoProject(arr).then(response => {
|
|
- console.log(response)
|
|
|
|
this.loadData()
|
|
this.loadData()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 比对禁选判断
|
|
// 比对禁选判断
|
|
onSelectChange(selectedRowKeys, selectionRows) {
|
|
onSelectChange(selectedRowKeys, selectionRows) {
|
|
- console.log(selectedRowKeys, selectionRows)
|
|
|
|
// this.selectedRowKeys = selectedRowKeys;
|
|
// this.selectedRowKeys = selectedRowKeys;
|
|
// this.selectionRows = selectionRows;
|
|
// this.selectionRows = selectionRows;
|
|
// 解决分页后selectionRows只获取本页面勾选的问题
|
|
// 解决分页后selectionRows只获取本页面勾选的问题
|
|
@@ -1358,14 +1380,14 @@ import { number } from 'echarts';
|
|
|
|
|
|
},
|
|
},
|
|
onSelect(record, selected, selectedRows, nativeEvent){
|
|
onSelect(record, selected, selectedRows, nativeEvent){
|
|
- console.log(record, selected, selectedRows, nativeEvent)
|
|
|
|
- console.log(this.selectionRows)
|
|
|
|
|
|
+ // console.log(record, selected, selectedRows, nativeEvent)
|
|
|
|
+ // console.log(this.selectionRows)
|
|
if(selected) {
|
|
if(selected) {
|
|
if (this.selectionRows.length == 1) {
|
|
if (this.selectionRows.length == 1) {
|
|
this.chooseRowType = record.ji
|
|
this.chooseRowType = record.ji
|
|
this.chooseStatus = true
|
|
this.chooseStatus = true
|
|
} else {
|
|
} else {
|
|
- console.log(this.chooseRowType,record.ji)
|
|
|
|
|
|
+ // console.log(this.chooseRowType,record.ji)
|
|
if (this.chooseRowType != record.ji) {
|
|
if (this.chooseRowType != record.ji) {
|
|
this.chooseRowType = this.chooseRowType
|
|
this.chooseRowType = this.chooseRowType
|
|
this.chooseStatus = true
|
|
this.chooseStatus = true
|
|
@@ -1374,7 +1396,6 @@ import { number } from 'echarts';
|
|
// this.chooseStatus = false
|
|
// this.chooseStatus = false
|
|
for (let i = 0; i < this.selectionRows.length; i++) {
|
|
for (let i = 0; i < this.selectionRows.length; i++) {
|
|
const element = this.selectionRows[i].ji;
|
|
const element = this.selectionRows[i].ji;
|
|
- console.log(888,this.chooseRowType,element)
|
|
|
|
if (this.chooseRowType != element) {
|
|
if (this.chooseRowType != element) {
|
|
this.chooseStatus = true
|
|
this.chooseStatus = true
|
|
} else {
|
|
} else {
|
|
@@ -1385,13 +1406,11 @@ import { number } from 'echarts';
|
|
}
|
|
}
|
|
} else{
|
|
} else{
|
|
if (this.selectionRows.length == 1) {
|
|
if (this.selectionRows.length == 1) {
|
|
- console.log(777,this.selectionRows[0].ji)
|
|
|
|
this.chooseRowType = this.selectionRows[0].ji
|
|
this.chooseRowType = this.selectionRows[0].ji
|
|
this.chooseStatus = true
|
|
this.chooseStatus = true
|
|
} else {
|
|
} else {
|
|
for (let i = 0; i < this.selectionRows.length; i++) {
|
|
for (let i = 0; i < this.selectionRows.length; i++) {
|
|
const element = this.selectionRows[i].ji;
|
|
const element = this.selectionRows[i].ji;
|
|
- console.log(888,this.chooseRowType,element)
|
|
|
|
if (this.chooseRowType != element) {
|
|
if (this.chooseRowType != element) {
|
|
this.chooseStatus = true
|
|
this.chooseStatus = true
|
|
this.$message.error("请选择同级项进行比对");
|
|
this.$message.error("请选择同级项进行比对");
|
|
@@ -1408,7 +1427,6 @@ import { number } from 'echarts';
|
|
// // this.chooseStatus = false
|
|
// // this.chooseStatus = false
|
|
// for (let i = 0; i < selectedRows.length; i++) {
|
|
// for (let i = 0; i < selectedRows.length; i++) {
|
|
// const element = selectedRows[i].ji;
|
|
// const element = selectedRows[i].ji;
|
|
- // console.log(888,this.chooseRowType,element)
|
|
|
|
// if (this.chooseRowType != element) {
|
|
// if (this.chooseRowType != element) {
|
|
// this.chooseStatus = true
|
|
// this.chooseStatus = true
|
|
// } else {
|
|
// } else {
|
|
@@ -1418,7 +1436,6 @@ import { number } from 'echarts';
|
|
// }
|
|
// }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- // console.log(record.ji)
|
|
|
|
// if (record.ji == '2') {
|
|
// if (record.ji == '2') {
|
|
// // 选中二级,一级禁选
|
|
// // 选中二级,一级禁选
|
|
// this.chooseRowType == 'chengben'
|
|
// this.chooseRowType == 'chengben'
|
|
@@ -1435,10 +1452,9 @@ import { number } from 'echarts';
|
|
// if(this.selectedRowKeys && this.selectedRowKeys.length>0){
|
|
// if(this.selectedRowKeys && this.selectedRowKeys.length>0){
|
|
// param['selections'] = this.selectedRowKeys.join(",")
|
|
// param['selections'] = this.selectedRowKeys.join(",")
|
|
// }
|
|
// }
|
|
- // console.log("导出参数",param)
|
|
|
|
var param = {isFolding: value}
|
|
var param = {isFolding: value}
|
|
downFile(this.url.exportXlsUrl,param).then((data)=>{
|
|
downFile(this.url.exportXlsUrl,param).then((data)=>{
|
|
- console.log(data)
|
|
|
|
|
|
+ // console.log(data)
|
|
if (!data) {
|
|
if (!data) {
|
|
this.$message.warning("文件下载失败")
|
|
this.$message.warning("文件下载失败")
|
|
return
|
|
return
|
|
@@ -1552,6 +1568,10 @@ import { number } from 'echarts';
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
<style>
|
|
<style>
|
|
|
|
+ /* 超出预算 */
|
|
|
|
+ .exceed-budget-status{
|
|
|
|
+ color: #ffa300 !important;
|
|
|
|
+ }
|
|
.table-kuisun-color{
|
|
.table-kuisun-color{
|
|
color: red !important;
|
|
color: red !important;
|
|
/* user-select: 'none'; */
|
|
/* user-select: 'none'; */
|