first commit

This commit is contained in:
2025-12-29 14:59:44 +08:00
commit 10c3fbb0d7
5315 changed files with 795443 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
const _sfc_main = {
__name: "plandetail",
setup(__props) {
const loading = common_vendor.ref(true);
const planData = common_vendor.ref(null);
const progressPercent = common_vendor.computed(() => {
if (!planData.value || !planData.value.totalCount)
return 0;
return Math.round(planData.value.currentIndex / planData.value.totalCount * 100);
});
const fetchTaskDetail = async (oneTableId) => {
try {
const startRes = await request_api.enterCheckPlan(oneTableId);
if (startRes.code === 0 && startRes.data) {
const taskId = startRes.data.taskId;
const detailRes = await request_api.getCheckTaskDetail(taskId);
if (detailRes.code === 0 && detailRes.data) {
planData.value = detailRes.data;
loading.value = false;
}
}
} catch (error) {
console.error("获取任务详情失败:", error);
} finally {
loading.value = false;
}
};
common_vendor.onLoad((options) => {
if (options.id) {
fetchTaskDetail(options.id);
}
});
return (_ctx, _cache) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
return common_vendor.e({
a: common_vendor.t(((_a = planData.value) == null ? void 0 : _a.name) || "加载中..."),
b: common_vendor.t((_b = planData.value) == null ? void 0 : _b.taskId),
c: common_vendor.t((_c = planData.value) == null ? void 0 : _c.checkPointId),
d: common_vendor.t(((_d = planData.value) == null ? void 0 : _d.status) === 1 ? "进行中" : "已完成"),
e: progressPercent.value + "%",
f: common_vendor.t(((_e = planData.value) == null ? void 0 : _e.currentIndex) || 0),
g: common_vendor.t(((_f = planData.value) == null ? void 0 : _f.totalCount) || 0),
h: ((_g = planData.value) == null ? void 0 : _g.point) || "",
i: common_vendor.t(((_h = planData.value) == null ? void 0 : _h.result) || "暂无结果"),
j: common_vendor.t(((_i = planData.value) == null ? void 0 : _i.remark) || "暂无备注"),
k: ((_j = planData.value) == null ? void 0 : _j.isLast) === false
}, ((_k = planData.value) == null ? void 0 : _k.isLast) === false ? {} : {});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-432c3f4c"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "计划详情",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-432c3f4c', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius data-v-432c3f4c"><view class="text-bold data-v-432c3f4c">{{a}}</view><view class="flex margin-top data-v-432c3f4c"><view class="border-border margin-right-xs data-v-432c3f4c">任务ID: {{b}}</view><view class="border-border data-v-432c3f4c">检查点: {{c}}</view></view><view class="flex text-gray margin-top data-v-432c3f4c"><view class="data-v-432c3f4c">状态:</view><view class="data-v-432c3f4c">{{d}}</view></view><view class="flex margin-top align-center data-v-432c3f4c"><view class="data-v-432c3f4c">完成进度:</view><view class="flex align-center margin-left-sm data-v-432c3f4c"><view class="cu-progress round data-v-432c3f4c"><view class="bg-green data-v-432c3f4c" style="{{'width:' + e}}"></view></view><text class="margin-left-sm data-v-432c3f4c">{{f}}/{{g}}</text></view></view></view><view class="padding bg-white radius margin-top data-v-432c3f4c"><view class="text-bold data-v-432c3f4c">检查内容</view><view class="bg-gray padding radius data-v-432c3f4c"><rich-text class="data-v-432c3f4c" nodes="{{h}}"></rich-text></view></view><view class="padding bg-white radius margin-top data-v-432c3f4c"><view class="text-bold data-v-432c3f4c">检查结果</view><view class="bg-gray padding radius data-v-432c3f4c">{{i}}</view></view><view class="padding bg-white radius margin-top data-v-432c3f4c"><view class="text-bold data-v-432c3f4c">备注</view><view class="bg-gray padding radius data-v-432c3f4c">{{j}}</view></view><view wx:if="{{k}}" class="padding bg-white radius margin-top data-v-432c3f4c"><view class="text-gray text-sm text-center data-v-432c3f4c">还有更多检查项</view></view></view>

View File

@@ -0,0 +1,57 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-432c3f4c {
min-height: 100vh;
background: #EBF2FC;
}
.cu-progress.data-v-432c3f4c {
width: 300rpx;
height: 20rpx;
background: #ebeef5;
border-radius: 100rpx;
overflow: hidden;
}
.cu-progress view.data-v-432c3f4c {
height: 100%;
border-radius: 100rpx;
transition: width 0.3s ease;
}
.bg-green.data-v-432c3f4c {
background: #2667E9;
}
.border-border.data-v-432c3f4c {
padding: 10rpx;
background: #EEF3FF;
border-radius: 4rpx 4rpx 4rpx 4rpx;
border: 2rpx solid #AAC5FC;
text-align: center;
justify-content: center;
align-items: center;
display: flex;
font-size: 28rpx;
color: #2667E9;
}