diff --git a/package.json b/package.json
index d6c2da8..9dbd7e7 100644
--- a/package.json
+++ b/package.json
@@ -30,6 +30,7 @@
"pinia": "3.0.1",
"screenfull": "6.0.2",
"vue": "3.5.13",
+ "vue-baidu-map-3x": "1.0.40",
"vue-router": "4.5.0",
"vxe-table": "4.6.25"
},
diff --git a/src/common/apis/tables/diceke/ExcavationQuantityReport.ts b/src/common/apis/tables/diceke/ExcavationQuantityReport.ts
index b49ee5f..83d6355 100644
--- a/src/common/apis/tables/diceke/ExcavationQuantityReport.ts
+++ b/src/common/apis/tables/diceke/ExcavationQuantityReport.ts
@@ -1,13 +1,12 @@
import { request } from "@/http/axios";
-// /** 查 */
-// export function findAllMiningglossApi() {
-// return request({
-// url: "/dicekeMiningloss/findAllMininggloss",
-// method: "get",
-// });
-// }
-
+/** 查 */
+export function findAllMiningglossApi() {
+ return request({
+ url: "/dicekeMiningloss/findAllMininggloss",
+ method: "get",
+ });
+}
// /** 删 */
// export function deletedicekeMininglossApi(lossID: any) {
// return request({
diff --git a/src/main.ts b/src/main.ts
index f082c47..83d3e38 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -14,6 +14,7 @@ import "@@/assets/styles/index.scss";
import "@@/assets/iconfont/iconfont.css";
import "virtual:uno.css";
import md5 from 'js-md5';
+// import BaiduMap from 'vue-baidu-map-3x'
// 创建应用实例
const app = createApp(App);
@@ -24,7 +25,12 @@ installPlugins(app);
// 安装 pinia 和 router
app.use(pinia).use(router);
-
+// //百度地图
+// app.use(BaiduMap, {
+// ak: '7yzvYFhbIVXAhpllFyLKAKu6xZDYYlFl',
+// v: '3.0',
+// type: 'WebGL'
+// });
// router 准备就绪后挂载应用
router.isReady().then(() => {
app.mount("#app");
diff --git a/src/pages/demo/diceke/DicekeMiningrecord.vue b/src/pages/demo/diceke/DicekeMiningrecord.vue
index 8dbf074..2012a6f 100644
--- a/src/pages/demo/diceke/DicekeMiningrecord.vue
+++ b/src/pages/demo/diceke/DicekeMiningrecord.vue
@@ -131,14 +131,7 @@ export default {
-
+
- 新增
+ >新增
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/pages/demo/electricLocomotiveWorkshop/dataImport.vue b/src/pages/demo/electricLocomotiveWorkshop/dataImport.vue
index 1edff8a..a0cfac9 100644
--- a/src/pages/demo/electricLocomotiveWorkshop/dataImport.vue
+++ b/src/pages/demo/electricLocomotiveWorkshop/dataImport.vue
@@ -1,115 +1,51 @@
-
-
- 上传
-
+
diff --git a/src/pages/demo/electricLocomotiveWorkshop/homeworkTimeLedger.vue b/src/pages/demo/electricLocomotiveWorkshop/homeworkTimeLedger.vue
index 8933327..2fd327c 100644
--- a/src/pages/demo/electricLocomotiveWorkshop/homeworkTimeLedger.vue
+++ b/src/pages/demo/electricLocomotiveWorkshop/homeworkTimeLedger.vue
@@ -11,7 +11,149 @@ export default {
data() {
return {
date: "",
- tableList: [],
+ tableList: [
+ {
+ index: "1",
+ unitsNum: "8", //台数
+ totalTime: "5760", //总时间
+ productionTime: "4560", //生产时间
+ noproductionTimeCount: "1200", //计
+ operatingRate: "", //作业率
+ classAUnitsNum: "4", //台 数
+ classAtotalTime: "2880", //总时间
+ classAproductionTime: "1920", //生产时间
+ classAcount: "960", //计
+ classAoperatingRate: "", //作业率
+ classBunitsNum: "4", //台 数
+ classBtotalTime: "2880", //总时间
+ classBproductionTime: "2640", //生产时间
+ classBcount: "240", //计
+ classBoperatingRate: "", //作业率
+ classCunitsNum: "0", //台 数
+ classCtotalTime: "0", //总时间
+ classCproductionTime: "0", //生产时间
+ classCcount: "0", //计
+ classCoperatingRate: "", //作业率
+ },
+ {
+ index: "2",
+ unitsNum: "8", //台数
+ totalTime: "5760", //总时间
+ productionTime: "4560", //生产时间
+ noproductionTimeCount: "1200", //计
+ operatingRate: "", //作业率
+ classAUnitsNum: "4", //台 数
+ classAtotalTime: "2880", //总时间
+ classAproductionTime: "2640", //生产时间
+ classAcount: "240", //计
+ classAoperatingRate: "", //作业率
+ classBunitsNum: "0", //台 数
+ classBtotalTime: "0", //总时间
+ classBproductionTime: "0", //生产时间
+ classBcount: "0", //计
+ classBoperatingRate: "", //作业率
+ classCunitsNum: "4", //台 数
+ classCtotalTime: "2880", //总时间
+ classCproductionTime: "1920", //生产时间
+ classCcount: "960", //计
+ classCoperatingRate: "", //作业率
+ },
+ {
+ index: "3",
+ unitsNum: "8", //台数
+ totalTime: "5760", //总时间
+ productionTime: "4560", //生产时间
+ noproductionTimeCount: "1200", //计
+ operatingRate: "", //作业率
+ classAUnitsNum: "0", //台 数
+ classAtotalTime: "0", //总时间
+ classAproductionTime: "0", //生产时间
+ classAcount: "0", //计
+ classAoperatingRate: "", //作业率
+ classBunitsNum: "4", //台 数
+ classBtotalTime: "2880", //总时间
+ classBproductionTime: "1920", //生产时间
+ classBcount: "960", //计
+ classBoperatingRate: "", //作业率
+ classCunitsNum: "4", //台 数
+ classCtotalTime: "2880", //总时间
+ classCproductionTime: "1920", //生产时间
+ classCcount: "960", //计
+ classCoperatingRate: "", //作业率
+ },
+ {
+ index: "4",
+ unitsNum: "8", //台数
+ totalTime: "5760", //总时间
+ productionTime: "4560", //生产时间
+ noproductionTimeCount: "1200", //计
+ operatingRate: "", //作业率
+ classAUnitsNum: "4", //台 数
+ classAtotalTime: "2880", //总时间
+ classAproductionTime: "1920", //生产时间
+ classAcount: "960", //计
+ classAoperatingRate: "", //作业率
+ classBunitsNum: "4", //台 数
+ classBtotalTime: "2880", //总时间
+ classBproductionTime: "2640", //生产时间
+ classBcount: "240", //计
+ classBoperatingRate: "", //作业率
+ classCunitsNum: "4", //台 数
+ classCtotalTime: "2880", //总时间
+ classCproductionTime: "1920", //生产时间
+ classCcount: "960", //计
+ classCoperatingRate: "", //作业率
+ },
+ {
+ index: "5",
+ unitsNum: "8", //台数
+ totalTime: "5760", //总时间
+ productionTime: "4620", //生产时间
+ noproductionTimeCount: "1140", //计
+ operatingRate: "", //作业率
+ classAUnitsNum: "0", //台 数
+ classAtotalTime: "0", //总时间
+ classAproductionTime: "0", //生产时间
+ classAcount: "0", //计
+ classAoperatingRate: "", //作业率
+ classBunitsNum: "4", //台 数
+ classBtotalTime: "2880", //总时间
+ classBproductionTime: "2160", //生产时间
+ classBcount: "720", //计
+ classBoperatingRate: "", //作业率
+ classCunitsNum: "4", //台 数
+ classCtotalTime: "2880", //总时间
+ classCproductionTime: "2460", //生产时间
+ classCcount: "420", //计
+ classCoperatingRate: "", //作业率
+ },
+ ],
+ classList: [
+ {
+ name: "甲班",
+ unitsNum: "classAUnitsNum",
+ totalTime: "classAtotalTime",
+ productionTime: "classAproductionTime",
+ count: "classAcount",
+ operatingRate: "classAoperatingRate",
+ },
+ {
+ name: "乙班",
+ unitsNum: "classBUnitsNum",
+ totalTime: "classBtotalTime",
+ productionTime: "classBproductionTime",
+ count: "classBcount",
+ operatingRate: "classBoperatingRate",
+ },
+ {
+ name: "丙班",
+ unitsNum: "classCunitsNum",
+ totalTime: "classCtotalTime",
+ productionTime: "classCproductionTime",
+ count: "classCcount",
+ operatingRate: "classCoperatingRate",
+ },
+ ],
};
},
created() {
@@ -24,88 +166,6 @@ export default {
const res = await findAllMiningglossApi();
console.log(res);
},
- //按月查询
- async getMouthLoss() {
- let data = getSpecificDate(this.date);
- const res = await findTotalMiningByMonthApi(data);
- console.log(res);
- },
- removeDataById(id) {
- ElMessageBox.confirm("此操作将永久删除降水量记录,是否继续?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- deletePrecipitation(id).then(() => {
- // 删除成功
- ElMessage({
- type: "success",
- message: "删除成功!",
- });
- // 重新加载列表
- this.getList();
- });
- })
- .catch(() => {
- ElMessage({
- type: "info",
- message: "已取消删除",
- });
- });
- },
- handleAdd() {
- this.isEdit = false; // 设置为新增操作
- this.precipitationform = { plateRange: "" }; // 初始化为空数据
- this.updateprecipitationform = true; // 显示弹窗
- },
- handleEdit(id) {
- this.isEdit = true;
- findPrecipitationById(id)
- .then((Response) => {
- this.precipitationform = Response.data.precipitationById;
- console.log(this.precipitationform);
- this.updateprecipitationform = true;
- })
- .catch(() => {
- ElMessage.error("查询失败,请稍后重试");
- });
- },
- formatMonth(dateTime) {
- if (!dateTime) return "-";
- return dateTime.slice(0, 7); // 直接截取 "yyyy-MM"
- // 或用 dayjs(需安装):
- // return dayjs(dateTime).format('YYYY-MM');
- },
- updatePrecipitation() {
- if (this.isEdit) {
- updatePrecipitationApi(this.precipitationform)
- .then(() => {
- ElMessage({
- type: "success",
- message: "修改成功!",
- });
- this.updateprecipitationform = false;
- this.getList();
- })
- .catch(() => {
- ElMessage.error("修改失败,请稍后重试");
- });
- } else {
- addPrecipitationApi(this.precipitationform)
- .then(() => {
- ElMessage({
- type: "success",
- message: "新增成功!",
- });
- this.updateprecipitationform = false;
- this.getList();
- })
- .catch(() => {
- ElMessage.error("新增失败,请稍后重试");
- });
- }
- },
},
};
@@ -127,67 +187,52 @@ export default {
:data="tableList"
border
style="width: 100%"
- :span-method="spanMethod"
:header-align="center"
:cell-style="rowStyle"
>
-
-
-
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/demo/electricLocomotiveWorkshop/mineralTransportationStatistics.vue b/src/pages/demo/electricLocomotiveWorkshop/mineralTransportationStatistics.vue
index 8933327..f61d134 100644
--- a/src/pages/demo/electricLocomotiveWorkshop/mineralTransportationStatistics.vue
+++ b/src/pages/demo/electricLocomotiveWorkshop/mineralTransportationStatistics.vue
@@ -12,6 +12,7 @@ export default {
return {
date: "",
tableList: [],
+ oreQuantity: "88",
};
},
created() {
@@ -30,82 +31,6 @@ export default {
const res = await findTotalMiningByMonthApi(data);
console.log(res);
},
- removeDataById(id) {
- ElMessageBox.confirm("此操作将永久删除降水量记录,是否继续?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- deletePrecipitation(id).then(() => {
- // 删除成功
- ElMessage({
- type: "success",
- message: "删除成功!",
- });
- // 重新加载列表
- this.getList();
- });
- })
- .catch(() => {
- ElMessage({
- type: "info",
- message: "已取消删除",
- });
- });
- },
- handleAdd() {
- this.isEdit = false; // 设置为新增操作
- this.precipitationform = { plateRange: "" }; // 初始化为空数据
- this.updateprecipitationform = true; // 显示弹窗
- },
- handleEdit(id) {
- this.isEdit = true;
- findPrecipitationById(id)
- .then((Response) => {
- this.precipitationform = Response.data.precipitationById;
- console.log(this.precipitationform);
- this.updateprecipitationform = true;
- })
- .catch(() => {
- ElMessage.error("查询失败,请稍后重试");
- });
- },
- formatMonth(dateTime) {
- if (!dateTime) return "-";
- return dateTime.slice(0, 7); // 直接截取 "yyyy-MM"
- // 或用 dayjs(需安装):
- // return dayjs(dateTime).format('YYYY-MM');
- },
- updatePrecipitation() {
- if (this.isEdit) {
- updatePrecipitationApi(this.precipitationform)
- .then(() => {
- ElMessage({
- type: "success",
- message: "修改成功!",
- });
- this.updateprecipitationform = false;
- this.getList();
- })
- .catch(() => {
- ElMessage.error("修改失败,请稍后重试");
- });
- } else {
- addPrecipitationApi(this.precipitationform)
- .then(() => {
- ElMessage({
- type: "success",
- message: "新增成功!",
- });
- this.updateprecipitationform = false;
- this.getList();
- })
- .catch(() => {
- ElMessage.error("新增失败,请稍后重试");
- });
- }
- },
},
};
@@ -123,6 +48,11 @@ export default {
>查询
+
+ 计划运矿量{{ this.oreQuantity }}万吨
+
+
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/pages/demo/electricLocomotiveWorkshop/singleMachineOutput.vue b/src/pages/demo/electricLocomotiveWorkshop/singleMachineOutput.vue
index f74d459..8a7aa95 100644
--- a/src/pages/demo/electricLocomotiveWorkshop/singleMachineOutput.vue
+++ b/src/pages/demo/electricLocomotiveWorkshop/singleMachineOutput.vue
@@ -12,7 +12,182 @@ export default {
return {
date: "",
machine: "",
- tableList: [],
+ tableList: [
+ {
+ //日期
+ index: "1",
+ //东川河
+ dongchuanRiver: {
+ vehiclesNum: "36",
+ tonnage: "",
+ },
+ //西川河
+ xichuanRiver: {
+ vehiclesNum: "",
+ tonnage: "",
+ },
+ //合计
+ riverAmount: "",
+ //选矿卸
+ mineralProcessing: {
+ vehiclesNum: "36",
+ tonnage: "",
+ },
+ mineralProcessingAmount: "", //合计
+ workingWorkbench: "360", //作业台时
+ count: "360", //计
+ powerFailure: "", //停电
+ fault: "", //故障
+ standby: "", //待命
+ other: "", //其他
+ percentage: "360", //百分比
+ },
+ {
+ //日期
+ index: "2",
+ //东川河
+ dongchuanRiver: {
+ vehiclesNum: "",
+ tonnage: "",
+ },
+ //西川河
+ xichuanRiver: {
+ vehiclesNum: "72",
+ tonnage: "",
+ },
+ //合计
+ riverAmount: "",
+ //选矿卸
+ mineralProcessing: {
+ vehiclesNum: "72",
+ tonnage: "",
+ },
+ mineralProcessingAmount: "", //合计
+ workingWorkbench: "660", //作业台时
+ count: "60", //计
+ powerFailure: "", //停电
+ fault: "", //故障
+ standby: "", //待命
+ other: "", //其他
+ percentage: "60", //百分比
+ },
+ {
+ //日期
+ index: "3",
+ //东川河
+ dongchuanRiver: {
+ vehiclesNum: "12",
+ tonnage: "",
+ },
+ //西川河
+ xichuanRiver: {
+ vehiclesNum: "36",
+ tonnage: "",
+ },
+ //合计
+ riverAmount: "",
+ //选矿卸
+ mineralProcessing: {
+ vehiclesNum: "36",
+ tonnage: "",
+ },
+ mineralProcessingAmount: "", //合计
+ workingWorkbench: "360", //作业台时
+ count: "360", //计
+ powerFailure: "", //停电
+ fault: "", //故障
+ standby: "", //待命
+ other: "", //其他
+ percentage: "360", //百分比
+ },
+ {
+ //日期
+ index: "4",
+ //东川河
+ dongchuanRiver: {
+ vehiclesNum: "72",
+ tonnage: "",
+ },
+ //西川河
+ xichuanRiver: {
+ vehiclesNum: "",
+ tonnage: "",
+ },
+ //合计
+ riverAmount: "",
+ //选矿卸
+ mineralProcessing: {
+ vehiclesNum: "84",
+ tonnage: "",
+ },
+ mineralProcessingAmount: "", //合计
+ workingWorkbench: "660", //作业台时
+ count: "60", //计
+ powerFailure: "", //停电
+ fault: "", //故障
+ standby: "", //待命
+ other: "", //其他
+ percentage: "60", //百分比
+ },
+ {
+ //日期
+ index: "5",
+ //东川河
+ dongchuanRiver: {
+ vehiclesNum: "36",
+ tonnage: "",
+ },
+ //西川河
+ xichuanRiver: {
+ vehiclesNum: "",
+ tonnage: "",
+ },
+ //合计
+ riverAmount: "",
+ //选矿卸
+ mineralProcessing: {
+ vehiclesNum: "36",
+ tonnage: "",
+ },
+ mineralProcessingAmount: "", //合计
+ workingWorkbench: "360", //作业台时
+ count: "360", //计
+ powerFailure: "", //停电
+ fault: "", //故障
+ standby: "", //待命
+ other: "", //其他
+ percentage: "360", //百分比
+ },
+ {
+ //日期
+ index: "6",
+ //东川河
+ dongchuanRiver: {
+ vehiclesNum: "72",
+ tonnage: "",
+ },
+ //西川河
+ xichuanRiver: {
+ vehiclesNum: "",
+ tonnage: "",
+ },
+ //合计
+ riverAmount: "",
+ //选矿卸
+ mineralProcessing: {
+ vehiclesNum: "72",
+ tonnage: "",
+ },
+ mineralProcessingAmount: "", //合计
+ workingWorkbench: "660", //作业台时
+ count: "60", //计
+ powerFailure: "", //停电
+ fault: "", //故障
+ standby: "", //待命
+ other: "", //其他
+ percentage: "60", //百分比
+ },
+ ],
};
},
created() {
@@ -31,82 +206,6 @@ export default {
const res = await findTotalMiningByMonthApi(data);
console.log(res);
},
- removeDataById(id) {
- ElMessageBox.confirm("此操作将永久删除降水量记录,是否继续?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- deletePrecipitation(id).then(() => {
- // 删除成功
- ElMessage({
- type: "success",
- message: "删除成功!",
- });
- // 重新加载列表
- this.getList();
- });
- })
- .catch(() => {
- ElMessage({
- type: "info",
- message: "已取消删除",
- });
- });
- },
- handleAdd() {
- this.isEdit = false; // 设置为新增操作
- this.precipitationform = { plateRange: "" }; // 初始化为空数据
- this.updateprecipitationform = true; // 显示弹窗
- },
- handleEdit(id) {
- this.isEdit = true;
- findPrecipitationById(id)
- .then((Response) => {
- this.precipitationform = Response.data.precipitationById;
- console.log(this.precipitationform);
- this.updateprecipitationform = true;
- })
- .catch(() => {
- ElMessage.error("查询失败,请稍后重试");
- });
- },
- formatMonth(dateTime) {
- if (!dateTime) return "-";
- return dateTime.slice(0, 7); // 直接截取 "yyyy-MM"
- // 或用 dayjs(需安装):
- // return dayjs(dateTime).format('YYYY-MM');
- },
- updatePrecipitation() {
- if (this.isEdit) {
- updatePrecipitationApi(this.precipitationform)
- .then(() => {
- ElMessage({
- type: "success",
- message: "修改成功!",
- });
- this.updateprecipitationform = false;
- this.getList();
- })
- .catch(() => {
- ElMessage.error("修改失败,请稍后重试");
- });
- } else {
- addPrecipitationApi(this.precipitationform)
- .then(() => {
- ElMessage({
- type: "success",
- message: "新增成功!",
- });
- this.updateprecipitationform = false;
- this.getList();
- })
- .catch(() => {
- ElMessage.error("新增失败,请稍后重试");
- });
- }
- },
},
};
@@ -133,6 +232,13 @@ export default {
>查询
+
+ 1501机台
+ 2025年4月甲班
+
-
-
-
+
+
-
+
@@ -174,62 +280,46 @@ export default {
label="合计"
>
-
-
+
+
-
+
-
-
+
+
+ >
+ >
+ >
+ >
+ >
-
diff --git a/types/auto/components.d.ts b/types/auto/components.d.ts
index 4d2c955..10a94d9 100644
--- a/types/auto/components.d.ts
+++ b/types/auto/components.d.ts
@@ -48,6 +48,7 @@ declare module 'vue' {
ElTag: typeof import('element-plus/es')['ElTag']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElTree: typeof import('element-plus/es')['ElTree']
+ ElUpload: typeof import('element-plus/es')['ElUpload']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}