1.增加月度计划原样导入记录

main
董哲奇 6 months ago
parent 7de6df5efd
commit 246b24e3a7

@ -22,7 +22,8 @@
"vue-pdf": "^4.3.0", "vue-pdf": "^4.3.0",
"vue-router": "^3.5.1", "vue-router": "^3.5.1",
"vue-seamless-scroll": "^1.1.23", "vue-seamless-scroll": "^1.1.23",
"vuex": "^3.6.2" "vuex": "^3.6.2",
"xe-utils": "^3.5.14"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.16", "@babel/core": "^7.12.16",

@ -24,7 +24,7 @@ export function msg(params) {
// 4.月度计划 // 4.月度计划
export function ydjh(params) { export function ydjh(params) {
return request({ return request({
url: "/kban/ydjh", url: "/dmSygdMx/list",
method: "get", method: "get",
params, params,
}); });
@ -66,3 +66,11 @@ export function zxqwcqk(params) {
params, params,
}); });
} }
export function getPerson(data={}) {
return request({
url: "/dmBzry/getList",
method: "post",
data,
});
}

@ -157,10 +157,10 @@
<el-table-column prop="dcCh" label="船号" width="80" /> <el-table-column prop="dcCh" label="船号" width="80" />
<el-table-column prop="dcPl" label="批量" width="70" /> <el-table-column prop="dcPl" label="批量" width="70" />
<el-table-column prop="dcFd" label="分段号" width="80" /> <el-table-column prop="dcFd" label="分段号" width="80" />
<el-table-column prop="bs" label="板数" width="50" /> <el-table-column prop="bs1" label="板数" width="50" />
<el-table-column prop="sl" label="上料" width="95" /> <el-table-column prop="sl" label="上料" width="95" />
<el-table-column prop="xcpw" label="型材抛丸" width="80" /> <el-table-column prop="xcpw" label="型材抛丸" width="80" />
<el-table-column prop="date" label="抛丸" width="70" /> <el-table-column prop="pw" label="抛丸" width="70" />
<el-table-column prop="yklm" label="一垮龙门板数" width="95" /> <el-table-column prop="yklm" label="一垮龙门板数" width="95" />
<el-table-column prop="yksk" label="一垮数控板数" width="95" /> <el-table-column prop="yksk" label="一垮数控板数" width="95" />
<el-table-column <el-table-column
@ -357,9 +357,10 @@ import {
zyjh, zyjh,
getEveryKw, getEveryKw,
zxqZxDetail, zxqZxDetail,
zxqwcqk, zxqwcqk, getPerson,
} from "@/api/realTimeMonitor"; } from "@/api/realTimeMonitor";
import VueSeamlessScroll from "vue-seamless-scroll"; import VueSeamlessScroll from "vue-seamless-scroll";
import XEUtils from 'xe-utils'
export default { export default {
name: "RealTimeMonitor", name: "RealTimeMonitor",
components: { components: {
@ -367,6 +368,7 @@ export default {
}, },
data() { data() {
return { return {
personList:[],
//1. //1.
AttendanceObj: {}, AttendanceObj: {},
//2. //2.
@ -458,16 +460,32 @@ export default {
}, },
created() {}, created() {},
mounted() { mounted() {
this.initPerson();
this.kq(); //1. this.kq(); //1.
this.msg(); //3. this.msg(); //3.
this.ydjh(); //4. this.ydjh(); //4.
this.zyjh(); //5. this.zyjh(); //5.
this.getEveryKw(); //6. this.getEveryKw(); //6.
this.zxqZxDetail(); //7.
this.zxqwcqk(); //8. this.zxqwcqk(); //8.
this.leftBottomBoxHeight = this.$refs.leftBottomBoxHeight.offsetHeight; this.leftBottomBoxHeight = this.$refs.leftBottomBoxHeight.offsetHeight;
}, },
methods: { methods: {
formatName(code){
console.log(code)
console.log(this.personList)
for (const item of this.personList) {
if (item.userCode===code){
return item.userName
}
}
},
initPerson(){
getPerson().then(res=>{
this.personList=res.data
console.log(res.data)
this.zxqZxDetail(); //7.
})
},
headerRowClass() { headerRowClass() {
return "background:#072e7d;color:#fff;fontSize:12px; fontWeight: 400; textAlign: center;"; return "background:#072e7d;color:#fff;fontSize:12px; fontWeight: 400; textAlign: center;";
}, },
@ -495,7 +513,12 @@ export default {
}, },
// 4. // 4.
ydjh() { ydjh() {
ydjh().then((res) => { const date=new Date()
const data={
begin:'2024/12/01',
end:'2024/12/31'
}
ydjh(data).then((res) => {
this.monthlyTableData = res.data; this.monthlyTableData = res.data;
}); });
}, },
@ -548,7 +571,7 @@ export default {
tzbh: item.tzbh, tzbh: item.tzbh,
gx: item.gx, gx: item.gx,
compAt: item.compAt, compAt: item.compAt,
name: item.name, name: this.formatName(item.name),
}); });
}); });
let valueArray = data.map((obj) => Object.values(obj)); let valueArray = data.map((obj) => Object.values(obj));

Loading…
Cancel
Save