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

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

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

@ -24,7 +24,7 @@ export function msg(params) {
// 4.月度计划
export function ydjh(params) {
return request({
url: "/kban/ydjh",
url: "/dmSygdMx/list",
method: "get",
params,
});
@ -66,3 +66,11 @@ export function zxqwcqk(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="dcPl" label="批量" width="70" />
<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="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="yksk" label="一垮数控板数" width="95" />
<el-table-column
@ -357,9 +357,10 @@ import {
zyjh,
getEveryKw,
zxqZxDetail,
zxqwcqk,
zxqwcqk, getPerson,
} from "@/api/realTimeMonitor";
import VueSeamlessScroll from "vue-seamless-scroll";
import XEUtils from 'xe-utils'
export default {
name: "RealTimeMonitor",
components: {
@ -367,6 +368,7 @@ export default {
},
data() {
return {
personList:[],
//1.
AttendanceObj: {},
//2.
@ -458,16 +460,32 @@ export default {
},
created() {},
mounted() {
this.initPerson();
this.kq(); //1.
this.msg(); //3.
this.ydjh(); //4.
this.zyjh(); //5.
this.getEveryKw(); //6.
this.zxqZxDetail(); //7.
this.zxqwcqk(); //8.
this.leftBottomBoxHeight = this.$refs.leftBottomBoxHeight.offsetHeight;
},
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() {
return "background:#072e7d;color:#fff;fontSize:12px; fontWeight: 400; textAlign: center;";
},
@ -495,7 +513,12 @@ export default {
},
// 4.
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;
});
},
@ -548,7 +571,7 @@ export default {
tzbh: item.tzbh,
gx: item.gx,
compAt: item.compAt,
name: item.name,
name: this.formatName(item.name),
});
});
let valueArray = data.map((obj) => Object.values(obj));

Loading…
Cancel
Save