change - 能源页面优化、工资可选上传

main
yinq 3 weeks ago
parent 49f6e21189
commit e1f93a85e5

@ -143,6 +143,7 @@
<el-table-column label="C项电流" align="center" prop="ic" v-if="columns[8].visible"/> <el-table-column label="C项电流" align="center" prop="ic" v-if="columns[8].visible"/>
<el-table-column label="功率因数" align="center" prop="glys" v-if="columns[10].visible"/> <el-table-column label="功率因数" align="center" prop="glys" v-if="columns[10].visible"/>
<el-table-column label="正向有功" align="center" prop="zxyg" v-if="columns[11].visible"/> <el-table-column label="正向有功" align="center" prop="zxyg" v-if="columns[11].visible"/>
<el-table-column label="反向有功" align="center" prop="fxyg" v-if="columns[16].visible"/>
<el-table-column label="有功功率" align="center" prop="activePower" v-if="columns[12].visible"/> <el-table-column label="有功功率" align="center" prop="activePower" v-if="columns[12].visible"/>
<el-table-column label="无功功率" align="center" prop="reactivePower" v-if="columns[13].visible"/> <el-table-column label="无功功率" align="center" prop="reactivePower" v-if="columns[13].visible"/>
<el-table-column label="记录时间" align="center" prop="recordTime" width="180" v-if="columns[9].visible"> <el-table-column label="记录时间" align="center" prop="recordTime" width="180" v-if="columns[9].visible">
@ -328,6 +329,7 @@ export default {
recordTime: null, recordTime: null,
glys: null, glys: null,
zxyg: null, zxyg: null,
fxyg: null,
activePower: null, activePower: null,
reactivePower: null, reactivePower: null,
collectType: null collectType: null
@ -354,13 +356,14 @@ export default {
{ key: 6, label: `A项电流`, visible: true }, { key: 6, label: `A项电流`, visible: true },
{ key: 7, label: `B项电流`, visible: true }, { key: 7, label: `B项电流`, visible: true },
{ key: 8, label: `C项电流`, visible: true }, { key: 8, label: `C项电流`, visible: true },
{ key: 9, label: `记录时间`, visible: true }, { key: 9, label: `记录时间`, visible: false },
{ key: 10, label: `功率因数`, visible: true }, { key: 10, label: `功率因数`, visible: true },
{ key: 11, label: `正向有功`, visible: true }, { key: 11, label: `正向有功`, visible: true },
{ key: 12, label: `有功功率`, visible: false }, { key: 12, label: `有功功率`, visible: false },
{ key: 13, label: `无功功率`, visible: false }, { key: 13, label: `无功功率`, visible: false },
{ key: 14, label: `采集方式`, visible: true }, { key: 14, label: `采集方式`, visible: true },
{ key: 15, label: `计量设备名称`, visible: true } { key: 15, label: `计量设备名称`, visible: true },
{ key: 16, label: `反向有功`, visible: true },
] ]
} }
}, },

@ -319,7 +319,7 @@ export default {
{ key: 8, label: `压力`, visible: false }, { key: 8, label: `压力`, visible: false },
{ key: 9, label: `密度`, visible: false }, { key: 9, label: `密度`, visible: false },
{ key: 10, label: `压力差值`, visible: false }, { key: 10, label: `压力差值`, visible: false },
{ key: 11, label: `记录时间`, visible: true }, { key: 11, label: `记录时间`, visible: false },
{ key: 12, label: `计量设备名称`, visible: true } { key: 12, label: `计量设备名称`, visible: true }
] ]
} }

@ -302,7 +302,7 @@ export default {
{ key: 2, label: `采集时间`, visible: true }, { key: 2, label: `采集时间`, visible: true },
{ key: 3, label: `瞬时流量`, visible: true }, { key: 3, label: `瞬时流量`, visible: true },
{ key: 4, label: `累计流量`, visible: true }, { key: 4, label: `累计流量`, visible: true },
{ key: 5, label: `记录时间`, visible: true }, { key: 5, label: `记录时间`, visible: false },
{ key: 6, label: `采集方式`, visible: true }, { key: 6, label: `采集方式`, visible: true },
{ key: 7, label: `计量设备名称`, visible: true } { key: 7, label: `计量设备名称`, visible: true }
] ]

@ -336,7 +336,7 @@ export default {
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
symbol: "emptyCircle", // symbol: "emptyCircle", //
symbolSize: 5, // symbolSize: 1, //
// itemStyle: { // itemStyle: {
// //线 // //线
// color: "#058cff", // color: "#058cff",
@ -355,7 +355,7 @@ export default {
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
symbol: "emptyCircle", // symbol: "emptyCircle", //
symbolSize: 5, // symbolSize: 1, //
// itemStyle: { // itemStyle: {
// //线 // //线
// color: "#058cff", // color: "#058cff",
@ -374,7 +374,7 @@ export default {
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
symbol: "emptyCircle", // symbol: "emptyCircle", //
symbolSize: 5, // symbolSize: 1, //
// itemStyle: { // itemStyle: {
// color: "#058cff", // color: "#058cff",
// }, // },
@ -467,7 +467,7 @@ export default {
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
symbol: "emptyCircle", // symbol: "emptyCircle", //
symbolSize: 5, // symbolSize: 1, //
// itemStyle: { // itemStyle: {
// //线 // //线
// color: "#058cff", // color: "#058cff",
@ -486,7 +486,7 @@ export default {
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
symbol: "emptyCircle", // symbol: "emptyCircle", //
symbolSize: 5, // symbolSize: 1, //
// itemStyle: { // itemStyle: {
// //线 // //线
// color: "#058cff", // color: "#058cff",
@ -505,7 +505,7 @@ export default {
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
symbol: "emptyCircle", // symbol: "emptyCircle", //
symbolSize: 5, // symbolSize: 1, //
// itemStyle: { // itemStyle: {
// color: "#058cff", // color: "#058cff",
// }, // },

@ -72,8 +72,8 @@ export default {
return { return {
codeUrl: "", codeUrl: "",
loginForm: { loginForm: {
username: "admin", username: "",
password: "admin123", password: "",
rememberMe: false, rememberMe: false,
code: "", code: "",
uuid: "" uuid: ""

@ -307,7 +307,7 @@ export default {
{ key: 1, label: `员工ID`, visible: true }, { key: 1, label: `员工ID`, visible: true },
{ key: 2, label: `员工名称`, visible: true }, { key: 2, label: `员工名称`, visible: true },
{ key: 3, label: `员工类型`, visible: true }, { key: 3, label: `员工类型`, visible: true },
{ key: 4, label: `卡号`, visible: false }, { key: 4, label: `卡号`, visible: true },
{ key: 5, label: `班组编号`, visible: true }, { key: 5, label: `班组编号`, visible: true },
{ key: 6, label: `手机号`, visible: true }, { key: 6, label: `手机号`, visible: true },
{ key: 7, label: `用户性别`, visible: true }, { key: 7, label: `用户性别`, visible: true },

@ -255,7 +255,8 @@ export default {
{ key: 15, label: `员工名称`, visible: true }, { key: 15, label: `员工名称`, visible: true },
], ],
// //
teamMembersList: [] teamMembersList: [],
selectionData: []
} }
}, },
created() { created() {
@ -325,18 +326,19 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.selectionData = selection
this.ids = selection.map(item => item.objId) this.ids = selection.map(item => item.objId)
this.single = selection.length !== 1 this.single = selection.length !== 1
this.multiple = !selection.length this.multiple = !selection.length
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
const dataList = this.recordStaffSalaryList; const dataList = this.selectionData;
if (dataList.length === 0){ if (dataList.length === 0){
this.$modal.msgError('请生成工资后上传!') this.$modal.msgError('请勾选至少一条工资记录上传!')
return return
} }
this.$modal.confirm('是否将员工工资上传至ERP系统').then(function() { this.$modal.confirm('是否将已勾选的员工工资上传至ERP系统').then(function() {
return uploadERPStaffSalary(dataList) return uploadERPStaffSalary(dataList)
}).then(() => { }).then(() => {
this.recordStaffSalaryList = []; this.recordStaffSalaryList = [];

Loading…
Cancel
Save