update docs_0822
This commit is contained in:
parent
a28544b671
commit
d4a427ec5e
@ -538,7 +538,7 @@ img {
|
|||||||
.aui-content {
|
.aui-content {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: $content--padding;
|
padding: $content--padding;
|
||||||
min-height: calc(100vh - #{$navbar--height});
|
min-height: calc(100vh - 30px - #{$navbar--height});
|
||||||
&__wrapper {
|
&__wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-left: $sidebar--width;
|
margin-left: $sidebar--width;
|
||||||
@ -673,7 +673,8 @@ img {
|
|||||||
z-index: 830;
|
z-index: 830;
|
||||||
}
|
}
|
||||||
> .el-tab-pane {
|
> .el-tab-pane {
|
||||||
min-height: calc(#{$content--fill-height-tabs});
|
// min-height: calc(#{$content--fill-height-tabs});
|
||||||
|
min-height: calc(100vh - 144px);
|
||||||
> .aui-card--fill > .el-card__body {
|
> .aui-card--fill > .el-card__body {
|
||||||
min-height: calc(#{$content--fill-height-tabs} - 2px);
|
min-height: calc(#{$content--fill-height-tabs} - 2px);
|
||||||
}
|
}
|
||||||
|
@ -792,7 +792,7 @@ export default {
|
|||||||
|
|
||||||
.dialog-just-form >>> .el-form {
|
.dialog-just-form >>> .el-form {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
max-height: 55vh;
|
max-height: 56vh;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -238,7 +238,9 @@ export default {
|
|||||||
page: this.page,
|
page: this.page,
|
||||||
limit: this.size,
|
limit: this.size,
|
||||||
};
|
};
|
||||||
|
// this.dataList = [{}];
|
||||||
|
// this.tableLoading = false;
|
||||||
|
// return;
|
||||||
this.$http[this.urls.pageIsPostApi ? "post" : "get"](
|
this.$http[this.urls.pageIsPostApi ? "post" : "get"](
|
||||||
this.urls.page,
|
this.urls.page,
|
||||||
this.urls.pageIsPostApi
|
this.urls.pageIsPostApi
|
||||||
@ -666,6 +668,38 @@ export default {
|
|||||||
case "导入":
|
case "导入":
|
||||||
this.openUploadDialog();
|
this.openUploadDialog();
|
||||||
break;
|
break;
|
||||||
|
case "导出":
|
||||||
|
this.$http({
|
||||||
|
method: "post",
|
||||||
|
url: this.urls.export,
|
||||||
|
data: { page: this.page },
|
||||||
|
responseType: "blob",
|
||||||
|
}).then((res) => {
|
||||||
|
// console.log("导出", res);
|
||||||
|
const filename = res.headers['content-disposition'].split('filename=')[1];
|
||||||
|
const blob = new Blob([res.data]);
|
||||||
|
/** 通知 */
|
||||||
|
this.$notify({
|
||||||
|
title: "成功",
|
||||||
|
message: "开始下载",
|
||||||
|
type: "success",
|
||||||
|
duration: 1200,
|
||||||
|
});
|
||||||
|
if ("download" in document.createElement("a")) {
|
||||||
|
const alink = document.createElement("a");
|
||||||
|
alink.download = filename;
|
||||||
|
alink.style.display = "none";
|
||||||
|
alink.target = "_blank";
|
||||||
|
alink.href = URL.createObjectURL(blob);
|
||||||
|
document.body.appendChild(alink);
|
||||||
|
alink.click();
|
||||||
|
URL.revokeObjectURL(alink.href);
|
||||||
|
document.body.removeChild(alink);
|
||||||
|
} else {
|
||||||
|
navigator.msSaveBlob(blob, filename);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
break;
|
||||||
case "手动添加": {
|
case "手动添加": {
|
||||||
this.openDialog();
|
this.openDialog();
|
||||||
return;
|
return;
|
||||||
@ -762,14 +796,14 @@ export default {
|
|||||||
duration: 1500,
|
duration: 1500,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 尾托检测
|
// // 尾托检测 - 由后端限制
|
||||||
if (this.tableSelectedIds.length == 1 && this.tableSelectedIds[0].typeDictValue != "2") {
|
// if (this.tableSelectedIds.length == 1 && this.tableSelectedIds[0].typeDictValue != "2") {
|
||||||
return this.$message({
|
// return this.$message({
|
||||||
message: "只能选择尾托",
|
// message: "只能选择尾托",
|
||||||
type: "warning",
|
// type: "warning",
|
||||||
duration: 1500,
|
// duration: 1500,
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
this.palletDialogVisible = true;
|
this.palletDialogVisible = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs["pallet-dialog"].init();
|
this.$refs["pallet-dialog"].init();
|
||||||
|
@ -8,12 +8,15 @@ export default function () {
|
|||||||
const tableProps = [
|
const tableProps = [
|
||||||
{ width: 120, prop: "orderCode", label: "订单号", fixed: "left" },
|
{ width: 120, prop: "orderCode", label: "订单号", fixed: "left" },
|
||||||
{ width: 60, prop: "orderCate", label: "子号" },
|
{ width: 60, prop: "orderCate", label: "子号" },
|
||||||
|
{ width: 60, prop: "qty", label: "生产数量" },
|
||||||
|
{ width: 128, prop: "goodqty", label: "合格数量" },
|
||||||
|
{ width: 128, prop: "badqty", label: "报废数量" },
|
||||||
|
{ width: 128, prop: "badratio", label: "报废率" },
|
||||||
{ width: 100, prop: "productCode", label: "物料" },
|
{ width: 100, prop: "productCode", label: "物料" },
|
||||||
{ width: 100, prop: "shapeCode", label: "砖型" },
|
{ width: 100, prop: "shapeCode", label: "砖型" },
|
||||||
{ width: 160, prop: "brand", label: "牌号" },
|
{ width: 160, prop: "brand", label: "牌号" },
|
||||||
{ width: 100, prop: "bomCode", label: "配方编码" },
|
{ width: 100, prop: "bomCode", label: "配方编码" },
|
||||||
// { width: 60, prop: "ai", label: "版本" },
|
// { width: 60, prop: "ai", label: "版本" },
|
||||||
{ width: 60, prop: "prodqty", label: "数量" },
|
|
||||||
{ width: 80, prop: "blenderCode", label: "混料机号" },
|
{ width: 80, prop: "blenderCode", label: "混料机号" },
|
||||||
{ width: 80, prop: "pressCode", label: "压机号" },
|
{ width: 80, prop: "pressCode", label: "压机号" },
|
||||||
{ width: 80, prop: "kilnCode", label: "隧道窑号" },
|
{ width: 80, prop: "kilnCode", label: "隧道窑号" },
|
||||||
@ -34,16 +37,21 @@ export default function () {
|
|||||||
{ width: 120, prop: "prodqty", label: "要求生产数量" },
|
{ width: 120, prop: "prodqty", label: "要求生产数量" },
|
||||||
{ width: 128, prop: "paperboard", label: "是否贴纸板", filter: (val) => ["否", "是"][val] },
|
{ width: 128, prop: "paperboard", label: "是否贴纸板", filter: (val) => ["否", "是"][val] },
|
||||||
{ width: 128, prop: "palletType", label: "托盘类型", filter: dictFilter("pallet_type") },
|
{ width: 128, prop: "palletType", label: "托盘类型", filter: dictFilter("pallet_type") },
|
||||||
{ width: 128, prop: "goodqty", label: "合格数量" },
|
|
||||||
{ width: 128, prop: "badqty", label: "报废数量" },
|
|
||||||
{ width: 120, prop: "remark", label: "备注" },
|
{ width: 120, prop: "remark", label: "备注" },
|
||||||
{ width: 120, prop: "createTime", label: "添加时间", filter: timeFilter },
|
{ width: 120, prop: "createTime", label: "报工时间", filter: timeFilter },
|
||||||
|
{ width: 120, prop: "creatorName", label: "报工人" },
|
||||||
{
|
{
|
||||||
width: 128,
|
width: 128,
|
||||||
prop: "team",
|
prop: "team",
|
||||||
label: "班次",
|
label: "班次",
|
||||||
filter: (val) => (val != null ? ["早班", "中班", "晚班"][val] : "-"),
|
filter: (val) => (val != null ? ["早班", "中班", "晚班"][val] : "-"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
width: 120,
|
||||||
|
prop: "externalCode",
|
||||||
|
label: "工序",
|
||||||
|
filter: (val) => (val != null ? ["压机", "检测线", "包装"][val] : "-"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: "operations",
|
prop: "operations",
|
||||||
name: "操作",
|
name: "操作",
|
||||||
@ -130,6 +138,16 @@ export default function () {
|
|||||||
plain: true,
|
plain: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
button: {
|
||||||
|
type: "warning",
|
||||||
|
name: "导出",
|
||||||
|
permission: "pms:workReport:export",
|
||||||
|
},
|
||||||
|
bind: {
|
||||||
|
plain: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -158,9 +176,9 @@ export default function () {
|
|||||||
label: "工序",
|
label: "工序",
|
||||||
prop: "externalCode",
|
prop: "externalCode",
|
||||||
options: [
|
options: [
|
||||||
{ label: "压机", value: '0' },
|
{ label: "压机", value: "0" },
|
||||||
{ label: "检测线", value: '1' },
|
{ label: "检测线", value: "1" },
|
||||||
{ label: "包装", value: '2' },
|
{ label: "包装", value: "2" },
|
||||||
],
|
],
|
||||||
elparams: { placeholder: "请选择工序" },
|
elparams: { placeholder: "请选择工序" },
|
||||||
},
|
},
|
||||||
@ -171,9 +189,9 @@ export default function () {
|
|||||||
label: "班次",
|
label: "班次",
|
||||||
prop: "team",
|
prop: "team",
|
||||||
options: [
|
options: [
|
||||||
{ label: "早班", value: '0' },
|
{ label: "早班", value: "0" },
|
||||||
{ label: "中班", value: '1' },
|
{ label: "中班", value: "1" },
|
||||||
{ label: "晚班", value: '2' },
|
{ label: "晚班", value: "2" },
|
||||||
],
|
],
|
||||||
elparams: { placeholder: "请选择班次" },
|
elparams: { placeholder: "请选择班次" },
|
||||||
},
|
},
|
||||||
@ -268,6 +286,7 @@ export default function () {
|
|||||||
base: "/pms/workReport",
|
base: "/pms/workReport",
|
||||||
page: "/pms/workReport/pageView",
|
page: "/pms/workReport/pageView",
|
||||||
pageIsPostApi: true,
|
pageIsPostApi: true,
|
||||||
|
export: '/pms/workReport/export',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user