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,136 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
const _easycom_u_datetime_picker2 = common_vendor.resolveComponent("u-datetime-picker");
(_easycom_u_popup2 + _easycom_u_datetime_picker2)();
}
const _easycom_u_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
const _easycom_u_datetime_picker = () => "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker.js";
if (!Math) {
(_easycom_u_popup + _easycom_u_datetime_picker)();
}
const _sfc_main = {
__name: "Idphotomanagement",
setup(__props) {
const hasData = common_vendor.ref(false);
const showAddPopup = common_vendor.ref(false);
const showDatePicker = common_vendor.ref(false);
const showDeptPopup = common_vendor.ref(false);
const deptList = common_vendor.ref([
"湘西自治州和谐网络科技有限公司",
"湘西自治州和谐云大数据科技有限公司",
"湘西网络有限公司"
]);
const selectedDept = common_vendor.ref("");
const formData = common_vendor.reactive({
dept: "",
type: "",
idType: "",
number: "",
startDate: "",
expireDate: "",
image: ""
});
const confirmDept = () => {
if (selectedDept.value) {
formData.dept = selectedDept.value;
}
showDeptPopup.value = false;
};
const chooseImage = () => {
common_vendor.index.chooseImage({
count: 1,
sizeType: ["compressed"],
sourceType: ["album", "camera"],
success: (res) => {
formData.image = res.tempFilePaths[0];
}
});
};
const onDateConfirm = (e) => {
const date = new Date(e.value);
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, "0");
const day = String(date.getDate()).padStart(2, "0");
formData.expireDate = `${year}-${month}-${day}`;
showDatePicker.value = false;
};
const handleSubmit = () => {
if (!formData.dept) {
common_vendor.index.showToast({ title: "请选择部门", icon: "none" });
return;
}
console.log("提交数据:", formData);
common_vendor.index.showToast({ title: "新增成功", icon: "success" });
showAddPopup.value = false;
formData.dept = "";
formData.type = "";
formData.number = "";
formData.startDate = "";
formData.expireDate = "";
formData.image = "";
selectedDept.value = "";
};
return (_ctx, _cache) => {
return common_vendor.e({
a: !hasData.value
}, !hasData.value ? {} : {}, {
b: common_vendor.o(($event) => showAddPopup.value = true),
c: common_vendor.o(($event) => showAddPopup.value = false),
d: common_vendor.t(formData.dept || "请选择部门"),
e: common_vendor.n(formData.dept ? "" : "text-gray"),
f: common_vendor.o(($event) => showDeptPopup.value = true),
g: formData.idType,
h: common_vendor.o(($event) => formData.idType = $event.detail.value),
i: formData.number,
j: common_vendor.o(($event) => formData.number = $event.detail.value),
k: common_vendor.t(formData.expireDate || "请选择开始时间"),
l: common_vendor.n(formData.expireDate ? "" : "text-gray"),
m: common_vendor.o(($event) => showDatePicker.value = true),
n: common_vendor.t(formData.expireDate || "请选择结束时间"),
o: common_vendor.n(formData.expireDate ? "" : "text-gray"),
p: common_vendor.o(($event) => showDatePicker.value = true),
q: !formData.image
}, !formData.image ? {} : {
r: formData.image
}, {
s: common_vendor.o(chooseImage),
t: common_vendor.o(($event) => showAddPopup.value = false),
v: common_vendor.o(handleSubmit),
w: common_vendor.o(($event) => showAddPopup.value = false),
x: common_vendor.p({
show: showAddPopup.value,
mode: "center",
round: "20"
}),
y: common_vendor.o(onDateConfirm),
z: common_vendor.o(($event) => showDatePicker.value = false),
A: common_vendor.p({
show: showDatePicker.value,
mode: "date"
}),
B: common_vendor.o(($event) => showDeptPopup.value = false),
C: common_vendor.f(deptList.value, (item, index, i0) => {
return common_vendor.e({
a: selectedDept.value === item
}, selectedDept.value === item ? {} : {}, {
b: selectedDept.value === item ? 1 : "",
c: common_vendor.t(item),
d: index,
e: common_vendor.o(($event) => selectedDept.value = item, index)
});
}),
D: common_vendor.o(confirmDept),
E: common_vendor.o(($event) => showDeptPopup.value = false),
F: common_vendor.p({
show: showDeptPopup.value,
mode: "center",
round: "20"
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1ad9c724"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "证件照管理",
"usingComponents": {
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup",
"u-datetime-picker": "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-1ad9c724', virtualHostClass]}}" style="{{virtualHostStyle}}"><view wx:if="{{a}}" class="text-gray text-center data-v-1ad9c724">暂无证件照记录</view><button class="cuIcon-add bg-blue round margin-top-xl data-v-1ad9c724" bindtap="{{b}}">新增</button><u-popup wx:if="{{x}}" class="data-v-1ad9c724" virtualHostClass="data-v-1ad9c724" u-s="{{['d']}}" bindclose="{{w}}" u-i="1ad9c724-0" bind:__l="__l" u-p="{{x}}"><view class="popup-content data-v-1ad9c724"><view class="popup-header data-v-1ad9c724"><view class="popup-title text-bold data-v-1ad9c724">新增证照</view><view class="popup-close data-v-1ad9c724" bindtap="{{c}}">×</view></view><view class="popup-body data-v-1ad9c724"><view class="form-item data-v-1ad9c724"><view class="form-label data-v-1ad9c724">部门<text class="text-red data-v-1ad9c724">*</text></view><view class="form-input form-select data-v-1ad9c724" bindtap="{{f}}"><text class="{{['data-v-1ad9c724', e]}}">{{d}}</text></view></view><view class="form-item data-v-1ad9c724"><view class="form-label data-v-1ad9c724">证件类型</view><input class="form-input data-v-1ad9c724" placeholder="请输入证件类型" value="{{g}}" bindinput="{{h}}"/></view><view class="form-item data-v-1ad9c724"><view class="form-label data-v-1ad9c724">证件编号</view><input class="form-input data-v-1ad9c724" placeholder="请输入证件编号" value="{{i}}" bindinput="{{j}}"/></view><view class="form-item data-v-1ad9c724"><view class="form-label data-v-1ad9c724">开始日期</view><view class="form-input form-select data-v-1ad9c724" bindtap="{{m}}"><text class="{{['data-v-1ad9c724', l]}}">{{k}}</text></view></view><view class="form-item data-v-1ad9c724"><view class="form-label data-v-1ad9c724">结束日期</view><view class="form-input form-select data-v-1ad9c724" bindtap="{{p}}"><text class="{{['data-v-1ad9c724', o]}}">{{n}}</text></view></view><view class="form-item data-v-1ad9c724"><view class="form-label data-v-1ad9c724">封面图片</view><view class="upload-box data-v-1ad9c724" bindtap="{{s}}"><view wx:if="{{q}}" class="upload-add data-v-1ad9c724"><text class="upload-icon data-v-1ad9c724">+</text><text class="upload-text data-v-1ad9c724">上传照片</text></view><image wx:else src="{{r}}" mode="aspectFill" class="upload-img data-v-1ad9c724"></image></view></view></view><view class="popup-footer data-v-1ad9c724"><button class="btn-cancel data-v-1ad9c724" bindtap="{{t}}">取消</button><button class="btn-confirm bg-blue data-v-1ad9c724" bindtap="{{v}}">确定</button></view></view></u-popup><u-datetime-picker wx:if="{{A}}" class="data-v-1ad9c724" virtualHostClass="data-v-1ad9c724" bindconfirm="{{y}}" bindcancel="{{z}}" u-i="1ad9c724-1" bind:__l="__l" u-p="{{A}}"></u-datetime-picker><u-popup wx:if="{{F}}" class="data-v-1ad9c724" virtualHostClass="data-v-1ad9c724" u-s="{{['d']}}" bindclose="{{E}}" u-i="1ad9c724-2" bind:__l="__l" u-p="{{F}}"><view class="dept-popup data-v-1ad9c724"><view class="popup-header data-v-1ad9c724"><view class="popup-title text-bold data-v-1ad9c724">选择部门</view><view class="popup-close data-v-1ad9c724" bindtap="{{B}}">×</view></view><view class="dept-list data-v-1ad9c724"><view wx:for="{{C}}" wx:for-item="item" wx:key="d" class="dept-item data-v-1ad9c724" bindtap="{{item.e}}"><view class="{{['dept-checkbox', 'data-v-1ad9c724', item.b && 'dept-checkbox-active']}}"><text wx:if="{{item.a}}" class="data-v-1ad9c724">✓</text></view><text class="dept-name data-v-1ad9c724">{{item.c}}</text></view></view><button class="btn-dept-confirm bg-blue data-v-1ad9c724" bindtap="{{D}}">确定</button></view></u-popup></view>

View File

@@ -0,0 +1,176 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-1ad9c724 {
min-height: 100vh;
background: #EBF2FC;
}
.popup-content.data-v-1ad9c724 {
width: 600rpx;
background: #fff;
border-radius: 20rpx;
padding: 30rpx;
}
.popup-header.data-v-1ad9c724 {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30rpx;
}
.popup-title.data-v-1ad9c724 {
font-size: 34rpx;
color: #333;
}
.popup-close.data-v-1ad9c724 {
font-size: 48rpx;
color: #999;
line-height: 1;
}
.popup-body.data-v-1ad9c724 {
max-height: 700rpx;
overflow-y: auto;
}
.form-item.data-v-1ad9c724 {
margin-bottom: 24rpx;
}
.form-label.data-v-1ad9c724 {
font-size: 28rpx;
color: #333;
margin-bottom: 12rpx;
}
.form-input.data-v-1ad9c724 {
width: 100%;
height: 80rpx;
border: 2rpx solid #E5E5E5;
border-radius: 12rpx;
padding: 0 24rpx;
font-size: 28rpx;
box-sizing: border-box;
}
.form-select.data-v-1ad9c724 {
display: flex;
align-items: center;
line-height: 80rpx;
}
.upload-box.data-v-1ad9c724 {
width: 200rpx;
height: 200rpx;
border: 2rpx dashed #ccc;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
}
.upload-add.data-v-1ad9c724 {
display: flex;
flex-direction: column;
align-items: center;
}
.upload-icon.data-v-1ad9c724 {
font-size: 60rpx;
color: #999;
}
.upload-text.data-v-1ad9c724 {
font-size: 24rpx;
color: #999;
margin-top: 8rpx;
}
.upload-img.data-v-1ad9c724 {
width: 100%;
height: 100%;
border-radius: 12rpx;
}
.popup-footer.data-v-1ad9c724 {
display: flex;
justify-content: center;
gap: 30rpx;
margin-top: 40rpx;
}
.btn-cancel.data-v-1ad9c724 {
flex: 1;
height: 80rpx;
line-height: 80rpx;
border: 2rpx solid #E5E5E5;
border-radius: 40rpx;
background: #fff;
color: #333;
font-size: 30rpx;
}
.btn-confirm.data-v-1ad9c724 {
flex: 1;
height: 80rpx;
line-height: 80rpx;
border-radius: 40rpx;
color: #fff;
font-size: 30rpx;
}
.dept-popup.data-v-1ad9c724 {
width: 600rpx;
background: #fff;
border-radius: 20rpx;
padding: 30rpx;
}
.dept-list.data-v-1ad9c724 {
max-height: 400rpx;
overflow-y: auto;
margin-bottom: 30rpx;
}
.dept-item.data-v-1ad9c724 {
display: flex;
align-items: center;
padding: 24rpx;
border: 2rpx solid #E5E5E5;
border-radius: 12rpx;
margin-bottom: 16rpx;
}
.dept-checkbox.data-v-1ad9c724 {
width: 36rpx;
height: 36rpx;
border: 2rpx solid #ccc;
border-radius: 6rpx;
margin-right: 20rpx;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.dept-checkbox-active.data-v-1ad9c724 {
background: #2667E9;
border-color: #2667E9;
color: #fff;
}
.dept-name.data-v-1ad9c724 {
font-size: 28rpx;
color: #333;
}
.btn-dept-confirm.data-v-1ad9c724 {
width: 100%;
height: 80rpx;
line-height: 80rpx;
border-radius: 40rpx;
color: #fff;
font-size: 30rpx;
}

View File

@@ -0,0 +1,8 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {};
function _sfc_render(_ctx, _cache) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "检查清单",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['padding', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="text-bold text-black">检查清单预览</view><view class="flex margin-bottom"><view class="text-gray">计划名称:</view><view>和谐矿业每日巡检</view></view><view class="flex margin-bottom"><view class="text-gray">检查时间:</view><view>2025-11-19 10:18:40</view></view><view class="flex margin-bottom"><view class="text-gray">检查人员:</view><view>18174379303</view></view><image></image><view class="flex margin-bottom"><view>被检查单位:</view><view></view></view><view class="flex margin-bottom"><view>检查人员:</view><view></view></view><view class="flex margin-bottom"><view>上次检查情况:</view><view></view></view><view class="flex margin-bottom"><view>本次检查情况:</view><view></view></view><view class="flex margin-bottom"><view>检查日期:</view><view>2025-11-19 10:18:40</view></view><view class="flex justify-between"><view class="flex text-center align-center"><button class="bg-blue">缩小</button><view>50%</view><button class="bg-blue">放大</button></view><button class="lg cu-btn">重置</button></view></view>

View File

@@ -0,0 +1,19 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
__name: "Inspectionlog",
setup(__props) {
const Checklist = () => {
common_vendor.index.navigateTo({
url: "/pages/Inspectionchecklist/Inspectionchecklist"
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => Checklist())
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2f72507f"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "检查记录",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-2f72507f', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius list data-v-2f72507f"><view class="text-bold margin-bottom text-black data-v-2f72507f">和谐矿业每日巡检</view><view class="flex margin-bottom data-v-2f72507f"><view class="text-gray data-v-2f72507f">检查时间:</view><view class="data-v-2f72507f">2025-11-19 10:18:40</view></view><view class="flex margin-bottom data-v-2f72507f"><view class="text-gray data-v-2f72507f">检查人员:</view><view class="data-v-2f72507f">18174379303</view></view><view class="flex margin-bottom data-v-2f72507f"><view class="text-gray data-v-2f72507f">隐患数量:</view><view class="data-v-2f72507f">1</view></view><view class="flex margin-bottom data-v-2f72507f"><view class="text-gray data-v-2f72507f">备注:</view><view class="data-v-2f72507f">可以</view></view><view class="flex justify-between data-v-2f72507f"><view class="data-v-2f72507f"></view><button class="bg-blue round cu-btn lg data-v-2f72507f" bindtap="{{a}}">预览清单</button></view></view></view>

View File

@@ -0,0 +1,37 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-2f72507f {
min-height: 100vh;
background: #EBF2FC;
}
.list.data-v-2f72507f {
background: #FFFFFF;
box-shadow: 0rpx 2rpx 6rpx 2rpx rgba(0, 0, 0, 0.08);
border-left: 5px solid #2667E9;
border-radius: 20rpx;
padding: 20rpx;
}

View File

@@ -0,0 +1,134 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
if (!Array) {
const _easycom_u_radio2 = common_vendor.resolveComponent("u-radio");
const _easycom_u_radio_group2 = common_vendor.resolveComponent("u-radio-group");
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
(_easycom_u_radio2 + _easycom_u_radio_group2 + _easycom_up_textarea2)();
}
const _easycom_u_radio = () => "../../uni_modules/uview-plus/components/u-radio/u-radio.js";
const _easycom_u_radio_group = () => "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js";
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
if (!Math) {
(_easycom_u_radio + _easycom_u_radio_group + _easycom_up_textarea)();
}
const _sfc_main = {
__name: "Inspectionresult",
setup(__props) {
const oneTableId = common_vendor.ref("");
const checkData = common_vendor.ref(null);
const radiolist1 = common_vendor.reactive([
{
name: "正常",
value: 1,
disabled: false
},
{
name: "异常",
value: 2,
disabled: false
},
{
name: "不涉及",
value: 3,
disabled: false
}
]);
const radiovalue1 = common_vendor.ref("");
const groupChange = (n) => {
console.log("groupChange", n);
};
const radioChange = (n) => {
console.log("radioChange", n);
};
const value1 = common_vendor.ref("");
const handleSubmit = async () => {
var _a;
if (!radiovalue1.value) {
common_vendor.index.showToast({ title: "请选择检查结果", icon: "none" });
return;
}
const selectedItem = radiolist1.find((item) => item.name === radiovalue1.value);
const resultValue = selectedItem ? selectedItem.value : null;
if (!resultValue) {
common_vendor.index.showToast({ title: "请选择检查结果", icon: "none" });
return;
}
try {
const params = {
taskId: (_a = checkData.value) == null ? void 0 : _a.taskId,
result: resultValue,
remark: value1.value
};
console.log("提交参数:", params);
const res = await request_api.submitCheckResult(params);
console.log("提交结果:", res);
if (res.code === 0) {
common_vendor.index.showToast({ title: "提交成功", icon: "success" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1500);
} else {
common_vendor.index.showToast({ title: res.msg || "提交失败", icon: "none" });
}
} catch (error) {
console.error("提交失败:", error);
common_vendor.index.showToast({ title: "提交失败", icon: "none" });
}
};
const getCheckData = async () => {
try {
const res = await request_api.enterCheckPlan(oneTableId.value);
console.log("检查项数据:", res);
if (res.code === 0) {
checkData.value = res.data;
}
} catch (error) {
console.error(error);
}
};
common_vendor.onLoad((options) => {
console.log("接收到的参数:", options);
if (options.id) {
oneTableId.value = options.id;
getCheckData();
}
});
return (_ctx, _cache) => {
var _a, _b;
return {
a: common_vendor.t(((_a = checkData.value) == null ? void 0 : _a.name) || "加载中..."),
b: ((_b = checkData.value) == null ? void 0 : _b.point) || "",
c: common_vendor.f(radiolist1, (item, index, i0) => {
return {
a: index,
b: common_vendor.o(radioChange, index),
c: "643afff0-1-" + i0 + ",643afff0-0",
d: common_vendor.p({
customStyle: {
marginBottom: "8px"
},
label: item.name,
name: item.name
})
};
}),
d: common_vendor.o(groupChange),
e: common_vendor.o(($event) => radiovalue1.value = $event),
f: common_vendor.p({
placement: "row",
modelValue: radiovalue1.value
}),
g: common_vendor.o(($event) => value1.value = $event),
h: common_vendor.p({
placeholder: "请输入备注信息",
modelValue: value1.value
}),
i: common_vendor.o(handleSubmit)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-643afff0"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "检查结果",
"usingComponents": {
"u-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio",
"u-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-643afff0', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius data-v-643afff0"><view class="text-bold data-v-643afff0">{{a}}</view><view class="margin-top data-v-643afff0"><rich-text class="data-v-643afff0" nodes="{{b}}"></rich-text></view><view class="margin-top data-v-643afff0"><u-radio-group wx:if="{{f}}" class="data-v-643afff0" virtualHostClass="data-v-643afff0" u-s="{{['d']}}" bindchange="{{d}}" u-i="643afff0-0" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"><u-radio wx:for="{{c}}" wx:for-item="item" wx:key="a" class="data-v-643afff0" virtualHostClass="data-v-643afff0" bindchange="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></u-radio></u-radio-group></view><view class="data-v-643afff0"><up-textarea wx:if="{{h}}" class="data-v-643afff0" virtualHostClass="data-v-643afff0" u-i="643afff0-2" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></up-textarea></view></view><button class="bg-blue round margin-top-xl data-v-643afff0" bindtap="{{i}}">提交</button></view>

View File

@@ -0,0 +1,30 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-643afff0 {
min-height: 100vh;
background: #EBF2FC;
}

View File

@@ -0,0 +1,79 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_datetime_picker2 = common_vendor.resolveComponent("up-datetime-picker");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
(_easycom_up_datetime_picker2 + _easycom_up_input2)();
}
const _easycom_up_datetime_picker = () => "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker.js";
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
if (!Math) {
(_easycom_up_datetime_picker + _easycom_up_input)();
}
const _sfc_main = {
__name: "Inspectionwarning",
setup(__props) {
const activeIndex = common_vendor.ref(0);
const warningList = common_vendor.ref([
{
id: 1,
name: "全部状态80"
},
{
id: 2,
name: "逾期未检16"
},
{
id: 3,
name: "严重逾期50"
},
{
id: 4,
name: "期限内待检4"
},
{
id: 5,
name: "逾期已完成8"
},
{
id: 6,
name: "按期已完成2"
}
]);
const switchTab = (index) => {
activeIndex.value = index;
};
const value1 = common_vendor.ref(Date.now());
return (_ctx, _cache) => {
return {
a: common_vendor.f(warningList.value, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: activeIndex.value === index ? 1 : "",
c: index,
d: common_vendor.o(($event) => switchTab(index), index)
};
}),
b: common_vendor.o(($event) => value1.value = $event),
c: common_vendor.p({
hasInput: true,
show: _ctx.show,
mode: "date",
modelValue: value1.value
}),
d: common_vendor.o(($event) => value1.value = $event),
e: common_vendor.p({
hasInput: true,
show: _ctx.show,
mode: "date",
modelValue: value1.value
}),
f: common_vendor.p({
placeholder: "请输入公司名称"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-00b99536"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "日常安全检查预警",
"usingComponents": {
"up-datetime-picker": "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['padding', 'page', 'data-v-00b99536', virtualHostClass]}}" style="{{virtualHostStyle}}"><scroll-view scroll-x class="tab-scroll data-v-00b99536"><view class="tab-list data-v-00b99536"><view wx:for="{{a}}" wx:for-item="item" wx:key="c" class="{{['tab-item', 'data-v-00b99536', item.b && 'tab-active']}}" bindtap="{{item.d}}">{{item.a}}</view></view></scroll-view><view class="bg-white radius padding margin-top data-v-00b99536"><view class="flex data-v-00b99536"><view class="text-black text-bold data-v-00b99536">查询条件</view></view><view class="margin-top margin-bottom data-v-00b99536">开始日期</view><up-datetime-picker wx:if="{{c}}" class="data-v-00b99536" virtualHostClass="data-v-00b99536" u-i="00b99536-0" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"></up-datetime-picker><view class="margin-top margin-bottom data-v-00b99536">结束日期</view><up-datetime-picker wx:if="{{e}}" class="data-v-00b99536" virtualHostClass="data-v-00b99536" u-i="00b99536-1" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-datetime-picker><view class="margin-top margin-bottom data-v-00b99536">公司名称</view><up-input wx:if="{{f}}" class="data-v-00b99536" virtualHostClass="data-v-00b99536" u-i="00b99536-2" bind:__l="__l" u-p="{{f}}"></up-input><button class="bg-blue round margin-top data-v-00b99536">查询</button></view><view class="padding bg-white radius margin-top data-v-00b99536"><view class="flex data-v-00b99536"><view class="data-v-00b99536"></view><view class="text-bold text-black data-v-00b99536">统计概览</view></view><view class="flex col-4 grid margin-top data-v-00b99536" style="gap:20rpx"><view class="text-center padding-top-sm data-v-00b99536" style="width:142rpx;height:124rpx;background:#628EFB;border-radius:8rpx;color:#fff"><view class="data-v-00b99536">80</view><view class="data-v-00b99536">总计</view></view><view class="text-center padding-top-sm data-v-00b99536" style="width:142rpx;height:124rpx;background:#32DCC7;border-radius:8rpx;color:#fff"><view class="data-v-00b99536">70</view><view class="data-v-00b99536">逾期</view></view><view class="text-center padding-top-sm data-v-00b99536" style="width:142rpx;height:124rpx;background:#32D1E9;border-radius:8rpx;color:#fff"><view class="data-v-00b99536">20</view><view class="data-v-00b99536">已完成</view></view><view class="text-center padding-top-sm data-v-00b99536" style="width:142rpx;height:124rpx;background:#A190F5;border-radius:8rpx;color:#fff"><view class="data-v-00b99536">20</view><view class="data-v-00b99536">待处理</view></view></view></view><view class="bg-white radius padding margin-top margin-bottom flex data-v-00b99536"><view class="list-title data-v-00b99536"></view><view class="text-bold text-black data-v-00b99536">日常安全检查预警数据列表</view></view><view class="bg-white radius padding list-list data-v-00b99536"><view class="flex justify-between data-v-00b99536"><view class="text-bold text-black data-v-00b99536">#1</view><view class="data-v-00b99536">严重逾期</view></view><view class="flex margin-top data-v-00b99536"><view class="text-gray data-v-00b99536" style="white-space:nowrap">企业名称:</view><view class="data-v-00b99536">湘西和谐云大数据产业发展有限公司</view></view><view class="flex margin-top data-v-00b99536"><view class="text-gray data-v-00b99536">计划名称:</view><view class="data-v-00b99536">检查计划</view></view><view class="flex margin-top data-v-00b99536"><view class="text-gray data-v-00b99536">计划周期:</view><view class="data-v-00b99536">每天一次</view></view><view class="flex margin-top data-v-00b99536"><view class="text-gray data-v-00b99536">预约检查日期:</view><view class="data-v-00b99536">2025-11-20</view></view><view class="flex margin-top data-v-00b99536"><view class="text-gray data-v-00b99536">实际完成时间:</view><view class="data-v-00b99536">未完成</view></view><view class="flex margin-top data-v-00b99536"><view class="text-gray data-v-00b99536">负责人:</view><view class="data-v-00b99536">符友成</view></view><view class="flex margin-top data-v-00b99536"><view class="text-gray data-v-00b99536">逾期天数:</view><view class="data-v-00b99536">17天 </view></view></view></view>

View File

@@ -0,0 +1,69 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-00b99536 {
min-height: 100vh;
background: #EBF2FC;
}
.tab-scroll.data-v-00b99536 {
white-space: nowrap;
}
.tab-list.data-v-00b99536 {
display: inline-flex;
gap: 20rpx;
}
.tab-item.data-v-00b99536 {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 16rpx 28rpx;
border-radius: 8rpx;
font-size: 28rpx;
background: #fff;
border: 1rpx solid #ddd;
color: #333;
flex-shrink: 0;
}
.tab-item.tab-active.data-v-00b99536 {
background: #2979ff;
border-color: #2979ff;
color: #fff;
}
.list-title.data-v-00b99536 {
width: 10rpx;
height: 32rpx;
background: #2667E9;
border-radius: 10rpx;
line-height: 32rpx;
margin-right: 10rpx;
}
.list-list.data-v-00b99536 {
background: #FFFFFF;
box-shadow: 0rpx 2rpx 6rpx 2rpx rgba(0, 0, 0, 0.08);
border-left: 5px solid #2667E9;
border-radius: 20rpx;
padding: 20rpx;
}

View File

@@ -0,0 +1,105 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
(_easycom_up_input2 + _easycom_u_popup2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_u_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
(_easycom_up_input + _easycom_u_popup)();
}
const _sfc_main = {
__name: "management",
setup(__props) {
const showEditPopup = common_vendor.ref(false);
const areaData = common_vendor.reactive({
name: "区域名称",
color: "#ef4444"
});
const formData = common_vendor.reactive({
name: "",
color: "#ef4444"
});
const presetColors = [
"#2563eb",
"#ef4444",
"#10b981",
"#f59e0b",
"#6366f1",
"#ec4899",
"#06b6d4",
"#84cc16",
"#f97316",
"#4f46e5",
"#dc2626",
"#f59e0b",
"#d97706",
"#8b5cf6",
"#db2777"
];
const openEditPopup = () => {
formData.name = areaData.name;
formData.color = areaData.color;
showEditPopup.value = true;
};
const selectColor = (color) => {
formData.color = color;
};
const handleEdit = () => {
if (!formData.name) {
common_vendor.index.showToast({ title: "请输入区域名称", icon: "none" });
return;
}
if (!formData.color) {
common_vendor.index.showToast({ title: "请选择区域颜色", icon: "none" });
return;
}
areaData.name = formData.name;
areaData.color = formData.color;
showEditPopup.value = false;
common_vendor.index.showToast({
title: "编辑成功",
icon: "success"
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(areaData.name || "区域名称"),
b: areaData.color,
c: common_vendor.t(areaData.color),
d: common_vendor.o(openEditPopup),
e: common_vendor.o(($event) => showEditPopup.value = false),
f: common_vendor.o(($event) => formData.name = $event),
g: common_vendor.p({
placeholder: "请输入区域名称",
modelValue: formData.name
}),
h: common_vendor.o(($event) => formData.color = $event),
i: common_vendor.p({
placeholder: "#ef4444",
modelValue: formData.color
}),
j: formData.color,
k: common_vendor.f(presetColors, (color, index, i0) => {
return {
a: index,
b: color,
c: common_vendor.o(($event) => selectColor(color), index)
};
}),
l: common_vendor.o(($event) => showEditPopup.value = false),
m: common_vendor.o(handleEdit),
n: common_vendor.o(($event) => showEditPopup.value = false),
o: common_vendor.p({
show: showEditPopup.value,
mode: "center",
round: "20"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-847f15e8"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "区域管理",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['padding', 'page', 'data-v-847f15e8', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius data-v-847f15e8"><view class="flex justify-between data-v-847f15e8"><view class="data-v-847f15e8"><view class="text-bold text-black data-v-847f15e8">{{a}}</view><view class="margin-top flex align-center data-v-847f15e8"><text class="data-v-847f15e8">颜色:</text><view class="color-dot data-v-847f15e8" style="{{'background-color:' + b}}"></view><text class="margin-left-xs data-v-847f15e8">{{c}}</text></view></view><view class="data-v-847f15e8"><button class="bg-blue cu-btn data-v-847f15e8" bindtap="{{d}}">编辑</button><button class="bg-red cu-btn margin-left data-v-847f15e8">删除</button></view></view></view><button class="cuIcon-add bg-blue round margin-top-xl data-v-847f15e8">新增公司区域</button><u-popup wx:if="{{o}}" class="data-v-847f15e8" virtualHostClass="data-v-847f15e8" u-s="{{['d']}}" bindclose="{{n}}" u-i="847f15e8-0" bind:__l="__l" u-p="{{o}}"><view class="popup-content data-v-847f15e8"><view class="popup-header data-v-847f15e8"><view class="popup-title text-bold data-v-847f15e8">编辑区域</view><view class="popup-close data-v-847f15e8" bindtap="{{e}}">×</view></view><view class="popup-body data-v-847f15e8"><view class="flex margin-bottom-sm data-v-847f15e8"><view class="data-v-847f15e8">区域名称</view><view class="text-red data-v-847f15e8">*</view></view><up-input wx:if="{{g}}" class="data-v-847f15e8" virtualHostClass="data-v-847f15e8" u-i="847f15e8-1,847f15e8-0" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"></up-input><view class="flex margin-bottom-sm margin-top data-v-847f15e8"><view class="data-v-847f15e8">区域颜色</view><view class="text-red data-v-847f15e8">*</view></view><view class="flex align-center data-v-847f15e8"><up-input wx:if="{{i}}" class="flex-sub data-v-847f15e8" virtualHostClass="flex-sub data-v-847f15e8" u-i="847f15e8-2,847f15e8-0" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></up-input><view class="color-preview data-v-847f15e8" style="{{'background-color:' + j}}"></view></view><view class="margin-top margin-bottom-sm text-gray data-v-847f15e8">预设颜色</view><view class="color-grid data-v-847f15e8"><view wx:for="{{k}}" wx:for-item="color" wx:key="a" class="color-item data-v-847f15e8" style="{{'background-color:' + color.b}}" bindtap="{{color.c}}"></view></view></view><view class="popup-footer data-v-847f15e8"><button class="btn-cancel data-v-847f15e8" bindtap="{{l}}">取消</button><button class="btn-confirm bg-blue data-v-847f15e8" bindtap="{{m}}">确定</button></view></view></u-popup></view>

View File

@@ -0,0 +1,105 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-847f15e8 {
min-height: 100vh;
background: #EBF2FC;
}
.popup-content.data-v-847f15e8 {
width: 600rpx;
background: #fff;
border-radius: 20rpx;
overflow: hidden;
}
.popup-header.data-v-847f15e8 {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30rpx;
border-bottom: 1rpx solid #eee;
}
.popup-title.data-v-847f15e8 {
font-size: 32rpx;
}
.popup-close.data-v-847f15e8 {
font-size: 40rpx;
color: #999;
cursor: pointer;
}
.popup-body.data-v-847f15e8 {
padding: 30rpx;
}
.popup-footer.data-v-847f15e8 {
display: flex;
padding: 20rpx 30rpx 30rpx;
}
.popup-footer button.data-v-847f15e8 {
flex: 1;
height: 80rpx;
line-height: 80rpx;
border-radius: 40rpx;
font-size: 30rpx;
margin: 0 10rpx;
}
.popup-footer button.data-v-847f15e8::after {
border: none;
}
.popup-footer .btn-cancel.data-v-847f15e8 {
background: #f5f5f5;
color: #666;
}
.popup-footer .btn-confirm.data-v-847f15e8 {
color: #fff;
}
.color-preview.data-v-847f15e8 {
width: 80rpx;
height: 80rpx;
border-radius: 8rpx;
margin-left: 20rpx;
flex-shrink: 0;
}
.color-grid.data-v-847f15e8 {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
}
.color-item.data-v-847f15e8 {
width: 70rpx;
height: 70rpx;
border-radius: 12rpx;
cursor: pointer;
transition: transform 0.2s;
}
.color-item.data-v-847f15e8:active {
transform: scale(0.9);
}
.color-dot.data-v-847f15e8 {
width: 30rpx;
height: 30rpx;
border-radius: 6rpx;
flex-shrink: 0;
margin-left: 10rpx;
}

View File

@@ -0,0 +1,20 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
__name: "checklist",
setup(__props) {
common_vendor.useRouter();
const edit = () => {
common_vendor.index.navigateTo({
url: "/pages/editchecklist/editchecklist"
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => edit())
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4d00090a"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "检查表",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-4d00090a', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius flex justify-between data-v-4d00090a"><view class="data-v-4d00090a">危化品使用安全专题检查</view><view class="data-v-4d00090a"><button class="bg-blue cu-btn margin-right-xs data-v-4d00090a" bindtap="{{a}}">编辑</button><button class="bg-red cu-btn data-v-4d00090a">删除</button></view></view><button class="lg cuIcon-add bg-blue round margin-top-xl data-v-4d00090a">新增检查表</button></view>

View File

@@ -0,0 +1,30 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-4d00090a {
min-height: 100vh;
background: #EBF2FC;
}

View File

@@ -0,0 +1,83 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_datetime_picker2 = common_vendor.resolveComponent("up-datetime-picker");
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
(_easycom_up_input2 + _easycom_up_datetime_picker2 + _easycom_up_textarea2 + _easycom_u_popup2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_datetime_picker = () => "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker.js";
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
const _easycom_u_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
(_easycom_up_input + _easycom_up_datetime_picker + _easycom_up_textarea + _easycom_u_popup)();
}
const _sfc_main = {
__name: "application",
setup(__props) {
const showAddPopup = common_vendor.ref(false);
const handleAdd = () => {
showAddPopup.value = false;
common_vendor.index.showToast({
title: "新增成功",
icon: "success"
});
};
const value1 = common_vendor.ref(Date.now());
const editor = () => {
common_vendor.index.navigateTo({
url: "/pages/closeout/editor"
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => editor()),
b: common_vendor.o(($event) => showAddPopup.value = true),
c: common_vendor.o(($event) => showAddPopup.value = false),
d: common_vendor.p({
placeholder: "请选择隐患"
}),
e: common_vendor.o(($event) => value1.value = $event),
f: common_vendor.p({
hasInput: true,
show: _ctx.show,
mode: "date",
modelValue: value1.value
}),
g: common_vendor.p({
placeholder: "请输入隐患治理责任单位"
}),
h: common_vendor.p({
placeholder: "请输入主要负责人"
}),
i: common_vendor.o(($event) => _ctx.value = $event),
j: common_vendor.p({
placeholder: "请输入主要治理内容",
modelValue: _ctx.value
}),
k: common_vendor.o(($event) => _ctx.value = $event),
l: common_vendor.p({
placeholder: "请输入隐患治理完成情况",
modelValue: _ctx.value
}),
m: common_vendor.o(($event) => _ctx.value = $event),
n: common_vendor.p({
placeholder: "请输入隐患治理责任单位自行验收的情况",
modelValue: _ctx.value
}),
o: common_vendor.o(($event) => showAddPopup.value = false),
p: common_vendor.o(handleAdd),
q: common_vendor.o(($event) => showAddPopup.value = false),
r: common_vendor.p({
show: showAddPopup.value,
mode: "center",
round: "20"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4b6250eb"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "销号申请",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-datetime-picker": "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['padding', 'page', 'data-v-4b6250eb', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius data-v-4b6250eb"><view class="flex justify-between margin-bottom data-v-4b6250eb"><view class="text-bold text-black data-v-4b6250eb">发现火苗</view><view class="data-v-4b6250eb">已审核</view></view><view class="flex margin-bottom data-v-4b6250eb"><view class="text-gray data-v-4b6250eb">隐患日期:</view><view class="text-black data-v-4b6250eb">2025-11-11</view></view><view class="flex margin-bottom data-v-4b6250eb"><view class="text-gray data-v-4b6250eb">责任单位:</view><view class="text-black data-v-4b6250eb">吉首网络有限公司</view></view><view class="flex margin-bottom data-v-4b6250eb"><view class="text-gray data-v-4b6250eb">判定人员:</view><view class="text-black data-v-4b6250eb">张起</view></view><view class="flex margin-bottom data-v-4b6250eb"><view class="text-gray data-v-4b6250eb">创建时间:</view><view class="text-black data-v-4b6250eb">2025-11-14 06:33:49</view></view><view class="flex justify-between data-v-4b6250eb"><view class="data-v-4b6250eb"></view><view class="data-v-4b6250eb"><button class="bg-blue round cu-btn lg data-v-4b6250eb" bindtap="{{a}}">查看详情</button></view></view></view><button class="cuIcon-add bg-blue round margin-top data-v-4b6250eb" bindtap="{{b}}">新增</button><u-popup wx:if="{{r}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-s="{{['d']}}" bindclose="{{q}}" u-i="4b6250eb-0" bind:__l="__l" u-p="{{r}}"><view class="popup-content data-v-4b6250eb"><view class="popup-header data-v-4b6250eb"><view class="popup-title text-bold data-v-4b6250eb">新增销号申请</view><view class="popup-close data-v-4b6250eb" bindtap="{{c}}">×</view></view><view class="popup-body data-v-4b6250eb"><view class="flex margin-bottom data-v-4b6250eb"><view class="data-v-4b6250eb">隐患</view><view class="text-red data-v-4b6250eb">*</view></view><up-input wx:if="{{d}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-1,4b6250eb-0" bind:__l="__l" u-p="{{d}}"></up-input><view class="flex margin-bottom margin-top data-v-4b6250eb"><view class="data-v-4b6250eb">整改时限</view><view class="text-red data-v-4b6250eb">*</view></view><view class="data-v-4b6250eb"><up-datetime-picker wx:if="{{f}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-2,4b6250eb-0" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"></up-datetime-picker></view><view class="margin-bottom margin-top data-v-4b6250eb">隐患治理责任单位</view><up-input wx:if="{{g}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-3,4b6250eb-0" bind:__l="__l" u-p="{{g}}"></up-input><view class="margin-bottom margin-top data-v-4b6250eb">主要负责人</view><up-input wx:if="{{h}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-4,4b6250eb-0" bind:__l="__l" u-p="{{h}}"></up-input><view class="margin-bottom margin-top data-v-4b6250eb">主要治理内容</view><up-textarea wx:if="{{j}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-5,4b6250eb-0" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></up-textarea><view class="margin-bottom margin-top data-v-4b6250eb">隐患治理完成内容</view><up-textarea wx:if="{{l}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-6,4b6250eb-0" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"></up-textarea><view class="margin-bottom margin-top data-v-4b6250eb">隐患治理责任单位自行验收的情况</view><up-textarea wx:if="{{n}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-7,4b6250eb-0" bind:__l="__l" bindupdateModelValue="{{m}}" u-p="{{n}}"></up-textarea></view><view class="popup-footer data-v-4b6250eb"><button class="btn-cancel data-v-4b6250eb" bindtap="{{o}}">取消</button><button class="btn-confirm bg-blue data-v-4b6250eb" bindtap="{{p}}">确定</button></view></view></u-popup></view>

View File

@@ -0,0 +1,78 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-4b6250eb {
min-height: 100vh;
background: #EBF2FC;
}
.popup-content.data-v-4b6250eb {
width: 600rpx;
background: #fff;
border-radius: 20rpx;
overflow: hidden;
}
.popup-header.data-v-4b6250eb {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30rpx;
border-bottom: 1rpx solid #eee;
}
.popup-header .popup-title.data-v-4b6250eb {
font-size: 32rpx;
color: #333;
}
.popup-header .popup-close.data-v-4b6250eb {
font-size: 40rpx;
color: #999;
line-height: 1;
}
.popup-body.data-v-4b6250eb {
padding: 30rpx;
max-height: 800rpx;
overflow-y: auto;
}
.popup-footer.data-v-4b6250eb {
display: flex;
border-top: 1rpx solid #eee;
}
.popup-footer button.data-v-4b6250eb {
flex: 1;
height: 90rpx;
line-height: 90rpx;
border-radius: 0;
font-size: 30rpx;
}
.popup-footer button.data-v-4b6250eb::after {
border: none;
}
.popup-footer .btn-cancel.data-v-4b6250eb {
background: #fff;
color: #666;
}
.popup-footer .btn-confirm.data-v-4b6250eb {
color: #fff;
}

View File

@@ -0,0 +1,46 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {};
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
(_easycom_up_input2 + _easycom_up_textarea2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
if (!Math) {
(_easycom_up_input + _easycom_up_textarea)();
}
function _sfc_render(_ctx, _cache) {
return {
a: common_vendor.p({
placeholder: "请输入内容"
}),
b: common_vendor.p({
placeholder: "请输入内容"
}),
c: common_vendor.p({
placeholder: "请输入内容"
}),
d: common_vendor.p({
placeholder: "请输入内容"
}),
e: common_vendor.o(($event) => _ctx.value1 = $event),
f: common_vendor.p({
placeholder: "请输入内容",
modelValue: _ctx.value1
}),
g: common_vendor.o(($event) => _ctx.value1 = $event),
h: common_vendor.p({
placeholder: "请输入内容",
modelValue: _ctx.value1
}),
i: common_vendor.o(($event) => _ctx.value1 = $event),
j: common_vendor.p({
placeholder: "请输入内容",
modelValue: _ctx.value1
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "编辑销号申请",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['padding', 'page', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius"><view class="flex margin-bottom"><view class="text-gray">隐患</view><view class="text-red">*</view></view><up-input wx:if="{{a}}" u-i="df29223c-0" bind:__l="__l" u-p="{{a}}"></up-input><view class="flex margin-bottom margin-top"><view class="text-gray">整改时限</view><view class="text-red">*</view></view><up-input wx:if="{{b}}" u-i="df29223c-1" bind:__l="__l" u-p="{{b}}"></up-input><view class="text-gray margin-bottom margin-top">隐患治理责任单位</view><up-input wx:if="{{c}}" u-i="df29223c-2" bind:__l="__l" u-p="{{c}}"></up-input><view class="text-gray margin-bottom margin-top">主要负责人</view><up-input wx:if="{{d}}" u-i="df29223c-3" bind:__l="__l" u-p="{{d}}"></up-input><view class="margin-bottom text-gray margin-top">主要治理内容</view><up-textarea wx:if="{{f}}" u-i="df29223c-4" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"></up-textarea><view class="margin-bottom text-gray margin-top">隐患治理完成情况</view><up-textarea wx:if="{{h}}" u-i="df29223c-5" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></up-textarea><view class="margin-bottom text-gray margin-top">隐患治理责任单位自行验收的情况</view><up-textarea wx:if="{{j}}" u-i="df29223c-6" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></up-textarea><view class="flex justify-center margin-top-xl"><button class="lg round cu-btn lg margin-right">取消</button><button class="bg-blue round cu-btn lg">确定</button></view></view></view>

View File

@@ -0,0 +1,6 @@
.page {
min-height: 100vh;
background: #EBF2FC;
}

View File

@@ -0,0 +1,19 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
__name: "corporateInformation",
setup(__props) {
const edit = () => {
common_vendor.index.navigateTo({
url: "/pages/editcompanInformation/editcompanInformation"
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => edit())
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0d880083"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "企业信息",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-0d880083', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius list data-v-0d880083"><view class="flex justify-between data-v-0d880083"><view class="text-bold data-v-0d880083">湘西自治州和谐网络科技有限公司</view><view class="lg text-blue cuIcon-edit over data-v-0d880083" bindtap="{{a}}">编辑</view></view><view class="flex margin-top data-v-0d880083"><view class="text-gray data-v-0d880083">所属部门:</view><view class="data-v-0d880083">湘西自治州和谐网络科技有限公司</view></view><view class="flex margin-top data-v-0d880083"><view class="text-gray data-v-0d880083">企业代码:</view><view class="data-v-0d880083">91433126MA4P8WWG20</view></view><view class="flex margin-top data-v-0d880083"><view class="text-gray data-v-0d880083">联系电话:</view><view class="data-v-0d880083">13974356210</view></view><view class="flex margin-top data-v-0d880083"><view class="text-gray data-v-0d880083">企业地址:</view><view class="data-v-0d880083">湘西州文学艺术界联合会6楼</view></view></view></view>

View File

@@ -0,0 +1,37 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-0d880083 {
min-height: 100vh;
background: #EBF2FC;
}
.list.data-v-0d880083 {
background: #FFFFFF;
box-shadow: 0rpx 2rpx 6rpx 2rpx rgba(0, 0, 0, 0.08);
border-left: 5px solid #2667E9;
border-radius: 20rpx;
padding: 20rpx;
}

View File

@@ -0,0 +1,273 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_select2 = common_vendor.resolveComponent("up-select");
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
const _easycom_up_switch2 = common_vendor.resolveComponent("up-switch");
const _easycom_up_calendar2 = common_vendor.resolveComponent("up-calendar");
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
(_easycom_up_input2 + _easycom_up_select2 + _easycom_up_textarea2 + _easycom_up_switch2 + _easycom_up_calendar2 + _easycom_u_popup2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_select = () => "../../uni_modules/uview-plus/components/u-select/u-select.js";
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
const _easycom_up_switch = () => "../../uni_modules/uview-plus/components/u-switch/u-switch.js";
const _easycom_up_calendar = () => "../../uni_modules/uview-plus/components/u-calendar/u-calendar.js";
const _easycom_u_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
(_easycom_up_input + _easycom_up_select + _easycom_up_textarea + _easycom_up_switch + _easycom_up_calendar + _easycom_u_popup)();
}
const _sfc_main = {
__name: "editchecklist",
setup(__props) {
const cateId = common_vendor.ref("");
const cateList = common_vendor.ref([
{
id: "1",
name: "湘西自治州和谐网络科技有限公司"
},
{
id: "2",
name: "湘西自治州和谐云大数据科技有限公司"
},
{
id: "3",
name: "湘西网络有限公司"
}
]);
const selectItem = (item) => {
console.log(item);
};
const value = common_vendor.ref(false);
const show = common_vendor.ref(false);
const mode = common_vendor.ref("single");
const confirm = (e) => {
console.log(e);
};
const showAddPopup = common_vendor.ref(false);
const checkForm = common_vendor.reactive({
projectName: "",
checkContent: "",
law: "",
image: ""
});
const showLawPopup = common_vendor.ref(false);
const lawKeyword = common_vendor.ref("");
const selectedLaw = common_vendor.ref("");
const lawList = common_vendor.ref([
"中华人民共和国安全生产法 第三十二条",
'建设项目安全设施"三同时"监督管理办法 第二十条',
"中华人民共和国职业病防治法 第十七条",
"中华人民共和国职业病防治法 第十八条",
"中华人民共和国消防法2021版第十一条",
"建设工程消防监督管理规定 第二十条"
]);
const filteredLawList = common_vendor.computed(() => {
if (!lawKeyword.value)
return lawList.value;
return lawList.value.filter((item) => item.includes(lawKeyword.value));
});
const loadMoreLaw = () => {
common_vendor.index.showToast({ title: "加载更多...", icon: "none" });
};
const confirmLaw = () => {
if (selectedLaw.value) {
checkForm.law = selectedLaw.value;
}
showLawPopup.value = false;
};
const showLibraryPopup = common_vendor.ref(false);
const libraryKeyword = common_vendor.ref("");
const selectedLibraries = common_vendor.ref([]);
const libraryList = common_vendor.ref([
{ id: 1, name: '安全生产隐患"常见病"检查诊断表(个性部分)公路养护工程', count: 18 },
{ id: 2, name: '安全生产隐患"常见病"检查诊断表(个性部分)出租汽车企业', count: 12 },
{ id: 3, name: '安全生产隐患"常见病"检查诊断表(个性部分)城镇燃气', count: 12 }
]);
const filteredLibraryList = common_vendor.computed(() => {
if (!libraryKeyword.value)
return libraryList.value;
return libraryList.value.filter((item) => item.name.includes(libraryKeyword.value));
});
const toggleLibrarySelect = (item) => {
const index = selectedLibraries.value.indexOf(item.id);
if (index > -1) {
selectedLibraries.value.splice(index, 1);
} else {
selectedLibraries.value.push(item.id);
}
};
const addSelectedLibrary = () => {
if (selectedLibraries.value.length === 0) {
common_vendor.index.showToast({ title: "请选择检查库", icon: "none" });
return;
}
console.log("添加检查库:", selectedLibraries.value);
common_vendor.index.showToast({ title: "添加成功", icon: "success" });
showLibraryPopup.value = false;
selectedLibraries.value = [];
};
const chooseImage = () => {
common_vendor.index.chooseImage({
count: 1,
sizeType: ["compressed"],
sourceType: ["album", "camera"],
success: (res) => {
checkForm.image = res.tempFilePaths[0];
}
});
};
const handleAddCheck = () => {
if (!checkForm.projectName) {
common_vendor.index.showToast({ title: "请输入项目名称", icon: "none" });
return;
}
if (!checkForm.checkContent) {
common_vendor.index.showToast({ title: "请输入检查内容", icon: "none" });
return;
}
console.log("提交检查项:", checkForm);
common_vendor.index.showToast({ title: "添加成功", icon: "success" });
showAddPopup.value = false;
checkForm.projectName = "";
checkForm.checkContent = "";
checkForm.law = "";
checkForm.image = "";
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
placeholder: "请输入检查表名称",
border: "surround"
}),
b: common_vendor.o(selectItem),
c: common_vendor.o(($event) => cateId.value = $event),
d: common_vendor.p({
placeholder: "请选择分派单位",
label: "湘西自治州和谐网络科技有限公司",
options: cateList.value,
current: cateId.value
}),
e: common_vendor.o(($event) => _ctx.value1 = $event),
f: common_vendor.p({
placeholder: "请输入内容",
modelValue: _ctx.value1
}),
g: common_vendor.o(selectItem),
h: common_vendor.o(($event) => cateId.value = $event),
i: common_vendor.p({
placeholder: "请选择分派单位",
label: "全员",
options: cateList.value,
current: cateId.value
}),
j: common_vendor.o(selectItem),
k: common_vendor.o(($event) => cateId.value = $event),
l: common_vendor.p({
placeholder: "请选择分派单位",
label: "选择部门",
options: cateList.value,
current: cateId.value
}),
m: common_vendor.o(selectItem),
n: common_vendor.o(($event) => cateId.value = $event),
o: common_vendor.p({
placeholder: "请选择分派单位",
label: "每天一次",
options: cateList.value,
current: cateId.value
}),
p: common_vendor.o(_ctx.change),
q: common_vendor.o(($event) => value.value = $event),
r: common_vendor.p({
activeColor: "#07C160 ",
modelValue: value.value
}),
s: common_vendor.o(_ctx.change),
t: common_vendor.o(($event) => value.value = $event),
v: common_vendor.p({
activeColor: "#07C160 ",
modelValue: value.value
}),
w: common_vendor.o(($event) => show.value = true),
x: common_vendor.o(confirm),
y: common_vendor.p({
show: show.value,
mode: mode.value
}),
z: common_vendor.o(($event) => show.value = true),
A: common_vendor.o(confirm),
B: common_vendor.p({
show: show.value,
mode: mode.value
}),
C: common_vendor.o(($event) => showAddPopup.value = true),
D: common_vendor.o(($event) => showLibraryPopup.value = true),
E: common_vendor.o(($event) => showAddPopup.value = false),
F: checkForm.projectName,
G: common_vendor.o(($event) => checkForm.projectName = $event.detail.value),
H: checkForm.checkContent,
I: common_vendor.o(($event) => checkForm.checkContent = $event.detail.value),
J: common_vendor.t(checkForm.law || "选择法规"),
K: common_vendor.o(($event) => showLawPopup.value = true),
L: !checkForm.image
}, !checkForm.image ? {} : {
M: checkForm.image
}, {
N: common_vendor.o(chooseImage),
O: common_vendor.o(($event) => showAddPopup.value = false),
P: common_vendor.o(handleAddCheck),
Q: common_vendor.o(($event) => showAddPopup.value = false),
R: common_vendor.p({
show: showAddPopup.value,
mode: "center",
round: "20"
}),
S: common_vendor.o(($event) => showLawPopup.value = false),
T: lawKeyword.value,
U: common_vendor.o(($event) => lawKeyword.value = $event.detail.value),
V: common_vendor.f(filteredLawList.value, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: selectedLaw.value === item ? 1 : "",
c: index,
d: common_vendor.o(($event) => selectedLaw.value = item, index)
};
}),
W: common_vendor.o(loadMoreLaw),
X: common_vendor.o(($event) => showLawPopup.value = false),
Y: common_vendor.o(confirmLaw),
Z: common_vendor.o(($event) => showLawPopup.value = false),
aa: common_vendor.p({
show: showLawPopup.value,
mode: "center",
round: "20"
}),
ab: common_vendor.o(($event) => showLibraryPopup.value = false),
ac: libraryKeyword.value,
ad: common_vendor.o(($event) => libraryKeyword.value = $event.detail.value),
ae: common_vendor.f(filteredLibraryList.value, (item, index, i0) => {
return common_vendor.e({
a: selectedLibraries.value.includes(item.id)
}, selectedLibraries.value.includes(item.id) ? {} : {}, {
b: selectedLibraries.value.includes(item.id) ? 1 : "",
c: common_vendor.t(item.name),
d: common_vendor.t(item.count),
e: index,
f: common_vendor.o(($event) => toggleLibrarySelect(item), index)
});
}),
af: common_vendor.o(addSelectedLibrary),
ag: common_vendor.o(($event) => showLibraryPopup.value = false),
ah: common_vendor.p({
show: showLibraryPopup.value,
mode: "center",
round: "20"
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-98282eb3"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "编辑检查表",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-select": "../../uni_modules/uview-plus/components/u-select/u-select",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
"up-switch": "../../uni_modules/uview-plus/components/u-switch/u-switch",
"up-calendar": "../../uni_modules/uview-plus/components/u-calendar/u-calendar",
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,257 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-98282eb3 {
min-height: 100vh;
background: #EBF2FC;
}
.btn-right.data-v-98282eb3 {
display: flex;
justify-content: flex-end;
}
.but.data-v-98282eb3 {
width: 304rpx;
height: 72rpx;
border-radius: 6rpx 6rpx 6rpx 6rpx;
border: 2rpx solid #108FFF;
color: #108FFF;
text-align: center;
line-height: 72rpx;
}
.popup-content.data-v-98282eb3 {
width: 600rpx;
background: #fff;
border-radius: 20rpx;
padding: 30rpx;
}
.popup-header.data-v-98282eb3 {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30rpx;
}
.popup-title.data-v-98282eb3 {
font-size: 34rpx;
color: #333;
}
.popup-close.data-v-98282eb3 {
font-size: 48rpx;
color: #999;
line-height: 1;
}
.popup-body.data-v-98282eb3 {
max-height: 700rpx;
overflow-y: auto;
}
.form-item.data-v-98282eb3 {
margin-bottom: 24rpx;
}
.form-label.data-v-98282eb3 {
font-size: 28rpx;
color: #333;
margin-bottom: 12rpx;
}
.form-input.data-v-98282eb3 {
width: 100%;
height: 80rpx;
border: 2rpx solid #E5E5E5;
border-radius: 12rpx;
padding: 0 24rpx;
font-size: 28rpx;
box-sizing: border-box;
}
.form-btn.data-v-98282eb3 {
width: 100%;
height: 80rpx;
border: 2rpx solid #E5E5E5;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
}
.upload-box.data-v-98282eb3 {
width: 160rpx;
height: 160rpx;
border: 2rpx dashed #ccc;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
}
.upload-add.data-v-98282eb3 {
display: flex;
flex-direction: column;
align-items: center;
}
.upload-icon.data-v-98282eb3 {
font-size: 48rpx;
color: #999;
}
.upload-text.data-v-98282eb3 {
font-size: 24rpx;
color: #999;
margin-top: 8rpx;
}
.upload-img.data-v-98282eb3 {
width: 100%;
height: 100%;
border-radius: 12rpx;
}
.popup-footer.data-v-98282eb3 {
display: flex;
justify-content: center;
gap: 30rpx;
margin-top: 40rpx;
}
.btn-cancel.data-v-98282eb3 {
flex: 1;
height: 80rpx;
line-height: 80rpx;
border: 2rpx solid #E5E5E5;
border-radius: 40rpx;
background: #fff;
color: #333;
font-size: 30rpx;
}
.btn-confirm.data-v-98282eb3 {
flex: 1;
height: 80rpx;
line-height: 80rpx;
border-radius: 40rpx;
color: #fff;
font-size: 30rpx;
}
.law-popup.data-v-98282eb3 {
width: 600rpx;
background: #fff;
border-radius: 20rpx;
padding: 30rpx;
max-height: 80vh;
}
.search-box.data-v-98282eb3 {
display: flex;
align-items: center;
background: #F5F5F5;
border-radius: 40rpx;
padding: 16rpx 24rpx;
margin-bottom: 24rpx;
}
.search-icon.data-v-98282eb3 {
font-size: 28rpx;
margin-right: 12rpx;
}
.search-input.data-v-98282eb3 {
flex: 1;
font-size: 28rpx;
background: transparent;
}
.law-list.data-v-98282eb3 {
max-height: 500rpx;
overflow-y: auto;
}
.law-item.data-v-98282eb3 {
padding: 24rpx;
border: 2rpx solid #E5E5E5;
border-radius: 12rpx;
margin-bottom: 16rpx;
font-size: 28rpx;
color: #333;
}
.law-item-active.data-v-98282eb3 {
border-color: #2667E9;
background: #F0F6FF;
}
.load-more.data-v-98282eb3 {
text-align: center;
padding: 24rpx;
border: 2rpx solid #2667E9;
border-radius: 40rpx;
margin-top: 16rpx;
}
.law-footer.data-v-98282eb3 {
display: flex;
justify-content: center;
gap: 30rpx;
margin-top: 30rpx;
}
.library-popup.data-v-98282eb3 {
width: 600rpx;
background: #fff;
border-radius: 20rpx;
padding: 30rpx;
max-height: 80vh;
}
.library-list.data-v-98282eb3 {
max-height: 500rpx;
overflow-y: auto;
}
.library-item.data-v-98282eb3 {
display: flex;
align-items: flex-start;
padding: 24rpx;
border: 2rpx solid #E5E5E5;
border-radius: 12rpx;
margin-bottom: 16rpx;
}
.library-checkbox.data-v-98282eb3 {
width: 40rpx;
height: 40rpx;
border: 2rpx solid #ccc;
border-radius: 8rpx;
margin-right: 20rpx;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-top: 4rpx;
}
.library-checkbox-active.data-v-98282eb3 {
background: #2667E9;
border-color: #2667E9;
color: #fff;
}
.library-info.data-v-98282eb3 {
flex: 1;
}
.library-name.data-v-98282eb3 {
font-size: 28rpx;
color: #333;
line-height: 1.5;
}
.library-count.data-v-98282eb3 {
font-size: 24rpx;
margin-top: 8rpx;
}
.btn-add-library.data-v-98282eb3 {
width: 100%;
height: 80rpx;
line-height: 80rpx;
border-radius: 40rpx;
color: #fff;
font-size: 30rpx;
margin-top: 30rpx;
}

View File

@@ -0,0 +1,207 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
const _easycom_up_upload2 = common_vendor.resolveComponent("up-upload");
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
(_easycom_up_input2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_upload2 + _easycom_up_textarea2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_radio = () => "../../uni_modules/uview-plus/components/u-radio/u-radio.js";
const _easycom_up_radio_group = () => "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js";
const _easycom_up_upload = () => "../../uni_modules/uview-plus/components/u-upload/u-upload.js";
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
if (!Math) {
(_easycom_up_input + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_upload + _easycom_up_textarea)();
}
const _sfc_main = {
__name: "editcompanInformation",
setup(__props) {
const radiolist1 = common_vendor.reactive([
{
name: "矿山开采",
disabled: false
},
{
name: "化工生产",
disabled: false
},
{
name: "冶金工业",
disabled: false
},
{
name: "建筑施工",
disabled: false
}
]);
const radiovalue1 = common_vendor.ref("矿山开采");
const groupChange = (n) => {
console.log("groupChange", n);
};
const radioChange = (n) => {
console.log("radioChange", n);
};
const fileList1 = common_vendor.ref([]);
const afterRead = (event) => {
console.log(event);
};
const deletePic = (event) => {
console.log(event);
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(_ctx.change),
b: common_vendor.o(($event) => _ctx.value = $event),
c: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
d: common_vendor.o(_ctx.change),
e: common_vendor.o(($event) => _ctx.value = $event),
f: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
g: common_vendor.o(_ctx.change),
h: common_vendor.o(($event) => _ctx.value = $event),
i: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
j: common_vendor.o(_ctx.change),
k: common_vendor.o(($event) => _ctx.value = $event),
l: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
m: common_vendor.o(_ctx.change),
n: common_vendor.o(($event) => _ctx.value = $event),
o: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
p: common_vendor.o(_ctx.change),
q: common_vendor.o(($event) => _ctx.value = $event),
r: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
s: common_vendor.f(radiolist1, (item, index, i0) => {
return {
a: index,
b: common_vendor.o(radioChange, index),
c: "2e9c764f-7-" + i0 + ",2e9c764f-6",
d: common_vendor.p({
customStyle: {
marginBottom: "8px"
},
label: item.name,
name: item.name
})
};
}),
t: common_vendor.o(groupChange),
v: common_vendor.o(($event) => radiovalue1.value = $event),
w: common_vendor.p({
placement: "row",
shape: "square",
modelValue: radiovalue1.value
}),
x: common_vendor.o(_ctx.change),
y: common_vendor.o(($event) => _ctx.value = $event),
z: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
A: common_vendor.o(_ctx.change),
B: common_vendor.o(($event) => _ctx.value = $event),
C: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
D: common_vendor.o(_ctx.change),
E: common_vendor.o(($event) => _ctx.value = $event),
F: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
G: common_vendor.o(_ctx.change),
H: common_vendor.o(($event) => _ctx.value = $event),
I: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
J: common_vendor.o(_ctx.change),
K: common_vendor.o(($event) => _ctx.value = $event),
L: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
M: common_vendor.o(_ctx.change),
N: common_vendor.o(($event) => _ctx.value = $event),
O: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
P: common_vendor.o(_ctx.change),
Q: common_vendor.o(($event) => _ctx.value = $event),
R: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
S: common_vendor.o(_ctx.change),
T: common_vendor.o(($event) => _ctx.value = $event),
U: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
V: common_vendor.o(_ctx.change),
W: common_vendor.o(($event) => _ctx.value = $event),
X: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
Y: common_vendor.o(_ctx.change),
Z: common_vendor.o(($event) => _ctx.value = $event),
aa: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: _ctx.value
}),
ab: common_vendor.o(afterRead),
ac: common_vendor.o(deletePic),
ad: common_vendor.p({
fileList: fileList1.value,
name: "1",
multiple: true,
maxCount: 10
}),
ae: common_vendor.o(($event) => _ctx.value1 = $event),
af: common_vendor.p({
placeholder: "请输入内容",
modelValue: _ctx.value1
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2e9c764f"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "编辑企业信息",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio",
"up-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group",
"up-upload": "../../uni_modules/uview-plus/components/u-upload/u-upload",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,30 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-2e9c764f {
min-height: 100vh;
background: #EBF2FC;
}

View File

@@ -0,0 +1,126 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_datetime_picker2 = common_vendor.resolveComponent("up-datetime-picker");
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
(_easycom_up_input2 + _easycom_up_datetime_picker2 + _easycom_up_textarea2 + _easycom_u_popup2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_datetime_picker = () => "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker.js";
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
const _easycom_u_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
(_easycom_up_input + _easycom_up_datetime_picker + _easycom_up_textarea + _easycom_u_popup)();
}
const _sfc_main = {
__name: "equipmentregistration",
setup(__props) {
const showAddPopup = common_vendor.ref(false);
const fileList = common_vendor.ref([]);
const toAdd = () => {
showAddPopup.value = true;
};
const chooseFile = () => {
common_vendor.index.chooseMessageFile({
count: 10,
type: "all",
success: (res) => {
const files = res.tempFiles.map((file) => ({
name: file.name,
path: file.path,
size: file.size
}));
fileList.value = [...fileList.value, ...files];
},
fail: () => {
common_vendor.index.chooseImage({
count: 9,
success: (res) => {
const files = res.tempFilePaths.map((path, index) => ({
name: `文件${fileList.value.length + index + 1}`,
path,
size: 0
}));
fileList.value = [...fileList.value, ...files];
}
});
}
});
};
const removeFile = (index) => {
fileList.value.splice(index, 1);
};
const handleAdd = () => {
showAddPopup.value = false;
common_vendor.index.showToast({
title: "新增成功",
icon: "success"
});
};
const show = common_vendor.ref(false);
const value1 = common_vendor.ref(Date.now());
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(toAdd),
b: common_vendor.o(($event) => showAddPopup.value = false),
c: common_vendor.p({
placeholder: "请输入型号"
}),
d: common_vendor.p({
placeholder: "请输入名称"
}),
e: common_vendor.p({
placeholder: "请输入参数"
}),
f: common_vendor.p({
placeholder: "请输入数量"
}),
g: common_vendor.o(($event) => value1.value = $event),
h: common_vendor.p({
hasInput: true,
show: show.value,
mode: "date",
modelValue: value1.value
}),
i: common_vendor.o(($event) => value1.value = $event),
j: common_vendor.p({
hasInput: true,
show: show.value,
mode: "date",
modelValue: value1.value
}),
k: common_vendor.p({
placeholder: "请输入区域"
}),
l: common_vendor.o(chooseFile),
m: fileList.value.length > 0
}, fileList.value.length > 0 ? {
n: common_vendor.f(fileList.value, (file, index, i0) => {
return {
a: common_vendor.t(file.name),
b: common_vendor.o(($event) => removeFile(index), index),
c: index
};
})
} : {}, {
o: common_vendor.o(($event) => value1.value = $event),
p: common_vendor.p({
placeholder: "请输入备注",
modelValue: value1.value
}),
q: common_vendor.o(($event) => showAddPopup.value = false),
r: common_vendor.o(handleAdd),
s: common_vendor.o(($event) => showAddPopup.value = false),
t: common_vendor.p({
show: showAddPopup.value,
mode: "center",
round: "20"
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1714bad4"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "设备登记",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-datetime-picker": "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['padding', 'data-v-1714bad4', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding data-v-1714bad4"><view class="text-gray text-center margin-top-xl margin-bottom-xl data-v-1714bad4">暂无设备</view><button class="cuIcon-add round bg-blue data-v-1714bad4" bindtap="{{a}}">新增</button></view><u-popup wx:if="{{t}}" class="data-v-1714bad4" virtualHostClass="data-v-1714bad4" u-s="{{['d']}}" bindclose="{{s}}" u-i="1714bad4-0" bind:__l="__l" u-p="{{t}}"><view class="popup-content data-v-1714bad4"><view class="popup-header data-v-1714bad4"><view class="popup-title text-bold data-v-1714bad4">新增设备</view><view class="popup-close data-v-1714bad4" bindtap="{{b}}">×</view></view><view class="popup-body data-v-1714bad4"><view class="flex data-v-1714bad4"><view class="margin-bottom data-v-1714bad4">型号</view><view class="text-red data-v-1714bad4">*</view></view><up-input wx:if="{{c}}" class="data-v-1714bad4" virtualHostClass="data-v-1714bad4" u-i="1714bad4-1,1714bad4-0" bind:__l="__l" u-p="{{c}}"></up-input><view class="flex margin-bottom margin-top data-v-1714bad4"><view class="data-v-1714bad4">名称</view><view class="text-red data-v-1714bad4">*</view></view><up-input wx:if="{{d}}" class="data-v-1714bad4" virtualHostClass="data-v-1714bad4" u-i="1714bad4-2,1714bad4-0" bind:__l="__l" u-p="{{d}}"></up-input><view class="margin-bottom margin-top data-v-1714bad4">参数</view><up-input wx:if="{{e}}" class="data-v-1714bad4" virtualHostClass="data-v-1714bad4" u-i="1714bad4-3,1714bad4-0" bind:__l="__l" u-p="{{e}}"></up-input><view class="flex margin-bottom margin-top data-v-1714bad4"><view class="data-v-1714bad4">数量(单位:台)</view><view class="text-red data-v-1714bad4">*</view></view><up-input wx:if="{{f}}" class="data-v-1714bad4" virtualHostClass="data-v-1714bad4" u-i="1714bad4-4,1714bad4-0" bind:__l="__l" u-p="{{f}}"></up-input><view class="flex margin-bottom margin-top data-v-1714bad4"><view class="data-v-1714bad4">购买时间</view><view class="text-red data-v-1714bad4">*</view></view><up-datetime-picker wx:if="{{h}}" class="data-v-1714bad4" virtualHostClass="data-v-1714bad4" u-i="1714bad4-5,1714bad4-0" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></up-datetime-picker><view class="flex margin-bottom margin-top data-v-1714bad4"><view class="data-v-1714bad4">设备预警时间</view><view class="text-red data-v-1714bad4">*</view></view><up-datetime-picker wx:if="{{j}}" class="data-v-1714bad4" virtualHostClass="data-v-1714bad4" u-i="1714bad4-6,1714bad4-0" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></up-datetime-picker><view class="flex margin-bottom margin-top data-v-1714bad4"><view class="data-v-1714bad4">区域</view><view class="text-red data-v-1714bad4">*</view></view><up-input wx:if="{{k}}" class="data-v-1714bad4" virtualHostClass="data-v-1714bad4" u-i="1714bad4-7,1714bad4-0" bind:__l="__l" u-p="{{k}}"></up-input><view class="margin-top-sm margin-bottom-sm margin-bottom margin-top data-v-1714bad4">上传资料</view><view class="upload-area data-v-1714bad4" bindtap="{{l}}"><view class="upload-icon data-v-1714bad4"><text class="cuIcon-upload data-v-1714bad4" style="font-size:60rpx;color:#999"></text></view><view class="upload-text data-v-1714bad4">点击选择文件</view><view class="upload-tip data-v-1714bad4">支持Word、Excel、PDF、图片等格式</view><button class="cu-but bg-blue data-v-1714bad4">选择文件</button></view><view wx:if="{{m}}" class="file-list data-v-1714bad4"><view wx:for="{{n}}" wx:for-item="file" wx:key="c" class="file-item data-v-1714bad4"><text class="file-name data-v-1714bad4">{{file.a}}</text><text class="file-delete text-red data-v-1714bad4" catchtap="{{file.b}}">×</text></view></view><view class="margin-top-sm margin-bottom margin-top data-v-1714bad4">备注</view><up-textarea wx:if="{{p}}" class="data-v-1714bad4" virtualHostClass="data-v-1714bad4" u-i="1714bad4-8,1714bad4-0" bind:__l="__l" bindupdateModelValue="{{o}}" u-p="{{p}}"></up-textarea></view><view class="popup-footer data-v-1714bad4"><button class="btn-cancel data-v-1714bad4" bindtap="{{q}}">取消</button><button class="btn-confirm bg-blue data-v-1714bad4" bindtap="{{r}}">确定</button></view></view></u-popup></view>

View File

@@ -0,0 +1,132 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.popup-content.data-v-1714bad4 {
width: 600rpx;
background: #fff;
border-radius: 20rpx;
overflow: hidden;
}
.popup-header.data-v-1714bad4 {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30rpx;
border-bottom: 1rpx solid #eee;
}
.popup-title.data-v-1714bad4 {
font-size: 32rpx;
}
.popup-close.data-v-1714bad4 {
font-size: 40rpx;
color: #999;
cursor: pointer;
}
.popup-body.data-v-1714bad4 {
padding: 30rpx;
max-height: 60vh;
overflow-y: auto;
}
.popup-footer.data-v-1714bad4 {
display: flex;
border-top: 1rpx solid #eee;
}
.popup-footer button.data-v-1714bad4 {
flex: 1;
height: 90rpx;
line-height: 90rpx;
border-radius: 0;
font-size: 30rpx;
}
.popup-footer button.data-v-1714bad4::after {
border: none;
}
.popup-footer .btn-cancel.data-v-1714bad4 {
background: #f5f5f5;
color: #666;
}
.popup-footer .btn-confirm.data-v-1714bad4 {
color: #fff;
}
.upload-area.data-v-1714bad4 {
background: #F8F8F;
border: 2rpx dashed #C5D4F5;
border-radius: 16rpx;
padding: 40rpx 30rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-top: 16rpx;
}
.upload-icon.data-v-1714bad4 {
width: 80rpx;
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 16rpx;
}
.upload-text.data-v-1714bad4 {
font-size: 28rpx;
color: #333;
margin-bottom: 8rpx;
}
.upload-tip.data-v-1714bad4 {
font-size: 24rpx;
color: #999;
margin-bottom: 24rpx;
}
.upload-btn.data-v-1714bad4 {
padding: 16rpx 48rpx;
font-size: 28rpx;
color: #fff;
border-radius: 40rpx;
}
.file-list.data-v-1714bad4 {
margin-top: 20rpx;
}
.file-item.data-v-1714bad4 {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16rpx 20rpx;
background: #f5f5f5;
border-radius: 8rpx;
margin-bottom: 12rpx;
}
.file-name.data-v-1714bad4 {
font-size: 26rpx;
color: #333;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-delete.data-v-1714bad4 {
font-size: 36rpx;
padding-left: 20rpx;
}

View File

@@ -0,0 +1,338 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
const request_request = require("../../request/request.js");
if (!Array) {
const _easycom_up_upload2 = common_vendor.resolveComponent("up-upload");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_choose2 = common_vendor.resolveComponent("up-choose");
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
(_easycom_up_upload2 + _easycom_up_input2 + _easycom_up_choose2 + _easycom_u_popup2 + _easycom_up_textarea2)();
}
const _easycom_up_upload = () => "../../uni_modules/uview-plus/components/u-upload/u-upload.js";
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_choose = () => "../../uni_modules/uview-plus/components/u-choose/u-choose.js";
const _easycom_u_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
if (!Math) {
(_easycom_up_upload + _easycom_up_input + _easycom_up_choose + _easycom_u_popup + _easycom_up_textarea)();
}
const _sfc_main = {
__name: "Inspection",
setup(__props) {
const showAddPopup = common_vendor.ref(false);
const taskId = common_vendor.ref("");
const checkPointId = common_vendor.ref("");
const fetchTaskInfo = async (oneTableId) => {
try {
const startRes = await request_api.enterCheckPlan(oneTableId);
if (startRes.code === 0 && startRes.data) {
const tid = startRes.data.taskId;
const detailRes = await request_api.getCheckTaskDetail(tid);
if (detailRes.code === 0 && detailRes.data) {
taskId.value = detailRes.data.taskId;
checkPointId.value = detailRes.data.checkPointId;
}
}
} catch (error) {
console.error("获取任务信息失败:", error);
}
};
common_vendor.onLoad((options) => {
if (options.id) {
fetchTaskInfo(options.id);
}
});
const formData = common_vendor.reactive({
title: "",
// 隐患标题
level: 0,
// 隐患等级索引
description: "",
// 隐患描述
tagIndex: 0
// 隐患标签索引
});
const lng = common_vendor.ref(0);
const lat = common_vendor.ref(0);
const showAddressPopup = common_vendor.ref(false);
const addressKeyword = common_vendor.ref("");
const selectedAddress = common_vendor.ref("");
const tempSelectedAddress = common_vendor.ref("");
const addressList = common_vendor.ref([
"湖南省湘西土家族苗族自治州吉首市人民北路105号",
"湖南省湘西土家族苗族自治州吉首市人民南路100号",
"湖南省湘西土家族苗族自治州吉首市团结广场",
"湖南省湘西土家族苗族自治州吉首市火车站"
]);
const filteredAddressList = common_vendor.computed(() => {
if (!addressKeyword.value)
return addressList.value;
return addressList.value.filter((item) => item.includes(addressKeyword.value));
});
const confirmAddress = () => {
if (tempSelectedAddress.value) {
selectedAddress.value = tempSelectedAddress.value;
}
showAddressPopup.value = false;
};
const handleAdd = async () => {
if (!formData.title) {
common_vendor.index.showToast({ title: "请输入隐患标题", icon: "none" });
return;
}
if (fileList1.value.length === 0) {
common_vendor.index.showToast({ title: "请上传隐患图片/视频", icon: "none" });
return;
}
fileList1.value.map((file) => {
let url = "";
if (typeof file.url === "string") {
url = file.url;
} else if (file.url && typeof file.url === "object") {
url = file.url.url || file.url.path || "";
}
const fileName = typeof url === "string" && url ? url.split("/").pop() : file.name || "";
return {
fileName: fileName || "",
filePath: url || "",
fileType: file.type || "image/png",
fileSize: file.size || 0
};
});
const selectedTag = tagOptions.value[formData.tagIndex];
const tagId = selectedTag ? selectedTag.id : null;
const params = {
title: formData.title,
//标题
level: formData.level + 1,
// 1.轻微隐患 2.一般隐患 3.重大隐患
lng: lng.value || 0,
//经度
lat: lat.value || 0,
//纬度
address: selectedAddress.value || "",
//详细地址
description: formData.description || "",
//隐患描述
tagId,
//隐患标签ID
taskId: taskId.value,
//关联任务ID
checkPointId: checkPointId.value,
//关联检查点ID
source: "cillum labore veniam"
//隐患来源
};
try {
const res = await request_api.addHiddenDanger(params);
if (res.code === 0) {
common_vendor.index.showToast({
title: "新增成功",
icon: "success"
});
showAddPopup.value = false;
formData.title = "";
formData.level = 0;
formData.description = "";
formData.tagIndex = 0;
selectedAddress.value = "";
fileList1.value = [];
} else {
common_vendor.index.showToast({ title: res.msg || "新增失败", icon: "none" });
}
} catch (error) {
console.error(error);
common_vendor.index.showToast({ title: "请求失败", icon: "none" });
}
};
const hiddenDangerList = common_vendor.ref([]);
const fetchHiddenDangerList = async () => {
try {
const res = await request_api.getMyHiddenDangerList();
if (res.code === 0) {
hiddenDangerList.value = res.data;
} else {
common_vendor.index.showToast({ title: res.msg || "获取隐患列表失败", icon: "none" });
}
} catch (error) {
console.error(error);
common_vendor.index.showToast({ title: "请求失败", icon: "none" });
}
};
fetchHiddenDangerList();
const details = (item) => {
common_vendor.index.navigateTo({
url: `/pages/hiddendanger/view?hazardId=${item.hazardId}&assignId=${item.assignId}`
});
};
const Rectification = (item) => {
common_vendor.index.navigateTo({
url: `/pages/hiddendanger/rectification?hazardId=${item.hazardId}&assignId=${item.assignId}`
});
};
const acceptance = () => {
common_vendor.index.navigateTo({
url: "/pages/hiddendanger/acceptance"
});
};
const fileList1 = common_vendor.ref([]);
const deletePic = (event) => {
fileList1.value.splice(event.index, 1);
};
const afterRead = async (event) => {
let lists = [].concat(event.file);
let fileListLen = fileList1.value.length;
lists.map((item) => {
fileList1.value.push({
...item,
status: "uploading",
message: "上传中"
});
});
for (let i = 0; i < lists.length; i++) {
const result = await uploadFilePromise(lists[i].url);
let item = fileList1.value[fileListLen];
fileList1.value.splice(fileListLen, 1, {
...item,
status: "success",
message: "",
url: result
});
fileListLen++;
}
};
const uploadFilePromise = (filePath) => {
return new Promise((resolve, reject) => {
common_vendor.index.uploadFile({
url: request_request.baseUrl + "/frontend/attachment/upload",
filePath,
name: "file",
header: {
"Authorization": request_request.AUTH_TOKEN
},
success: (res) => {
const data = JSON.parse(res.data);
if (data.code === 0) {
resolve(data.data);
} else {
reject(data.msg || "上传失败");
}
},
fail: (err) => {
console.error("上传失败:", err);
reject(err);
}
});
});
};
const tagOptions = common_vendor.ref([]);
const fetchTagOptions = async () => {
try {
const res = await request_api.getHiddenDangerLabelList();
if (res.code === 0) {
tagOptions.value = res.data.map((item) => ({
id: item.id,
title: item.name
}));
} else {
common_vendor.index.showToast({ title: res.msg || "获取标签列表失败", icon: "none" });
}
} catch (error) {
console.error(error);
common_vendor.index.showToast({ title: "请求失败", icon: "none" });
}
};
fetchTagOptions();
const levelOptions = common_vendor.ref([
{ id: 1, title: "轻微隐患" },
{ id: 2, title: "一般隐患" },
{ id: 3, title: "重大隐患" }
]);
return (_ctx, _cache) => {
return {
a: common_vendor.f(hiddenDangerList.value, (item, k0, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.t(item.statusName),
c: common_vendor.t(item.levelName),
d: common_vendor.t(item.address),
e: common_vendor.t(item.createdAt),
f: common_vendor.o(($event) => details(item), item.hazardId),
g: common_vendor.o(($event) => Rectification(item), item.hazardId),
h: common_vendor.o(($event) => acceptance(), item.hazardId),
i: item.hazardId
};
}),
b: common_vendor.o(($event) => showAddPopup.value = true),
c: common_vendor.o(($event) => showAddPopup.value = false),
d: common_vendor.o(afterRead),
e: common_vendor.o(deletePic),
f: common_vendor.p({
fileList: fileList1.value,
name: "1",
multiple: true,
maxCount: 10
}),
g: common_vendor.o(($event) => formData.title = $event),
h: common_vendor.p({
placeholder: "请输入内容",
border: "surround",
modelValue: formData.title
}),
i: common_vendor.o(($event) => formData.level = $event),
j: common_vendor.p({
options: levelOptions.value,
wrap: false,
["item-width"]: "183rpx",
["item-height"]: "72rpx",
modelValue: formData.level
}),
k: common_vendor.t(selectedAddress.value || "请选择地址"),
l: common_vendor.n(selectedAddress.value ? "" : "text-gray"),
m: common_vendor.o(($event) => showAddressPopup.value = true),
n: common_vendor.o(($event) => showAddressPopup.value = true),
o: common_vendor.o(($event) => showAddressPopup.value = false),
p: addressKeyword.value,
q: common_vendor.o(($event) => addressKeyword.value = $event.detail.value),
r: common_vendor.f(filteredAddressList.value, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index,
c: common_vendor.o(($event) => tempSelectedAddress.value = item, index),
d: tempSelectedAddress.value === item ? 1 : ""
};
}),
s: common_vendor.o(($event) => showAddressPopup.value = false),
t: common_vendor.o(confirmAddress),
v: common_vendor.o(($event) => showAddressPopup.value = false),
w: common_vendor.p({
show: showAddressPopup.value,
mode: "center",
round: "20"
}),
x: common_vendor.o(($event) => formData.description = $event),
y: common_vendor.p({
placeholder: "请输入内容",
modelValue: formData.description
}),
z: common_vendor.o(($event) => formData.tagIndex = $event),
A: common_vendor.p({
options: tagOptions.value,
modelValue: formData.tagIndex
}),
B: common_vendor.o(($event) => showAddPopup.value = false),
C: common_vendor.o(handleAdd),
D: common_vendor.o(($event) => showAddPopup.value = false),
E: common_vendor.p({
show: showAddPopup.value,
mode: "center",
round: "20"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b44c631d"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "隐患排查",
"usingComponents": {
"up-upload": "../../uni_modules/uview-plus/components/u-upload/u-upload",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-choose": "../../uni_modules/uview-plus/components/u-choose/u-choose",
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,181 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-b44c631d {
min-height: 100vh;
background: #EBF2FC;
}
.list-list.data-v-b44c631d {
background: #FFFFFF;
box-shadow: 0rpx 2rpx 6rpx 2rpx rgba(0, 0, 0, 0.08);
border-left: 5px solid #2667E9;
border-radius: 20rpx;
padding: 20rpx;
}
.popup-content.data-v-b44c631d {
width: 600rpx;
background: #fff;
border-radius: 20rpx;
overflow: hidden;
}
.popup-header.data-v-b44c631d {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30rpx;
border-bottom: 1rpx solid #eee;
}
.popup-header .popup-title.data-v-b44c631d {
font-size: 32rpx;
color: #333;
}
.popup-header .popup-close.data-v-b44c631d {
font-size: 40rpx;
color: #999;
line-height: 1;
}
.popup-body.data-v-b44c631d {
padding: 30rpx;
max-height: 900rpx;
overflow-y: auto;
}
.popup-footer.data-v-b44c631d {
display: flex;
border-top: 1rpx solid #eee;
}
.popup-footer button.data-v-b44c631d {
flex: 1;
height: 90rpx;
line-height: 90rpx;
border-radius: 0;
font-size: 30rpx;
}
.popup-footer button.data-v-b44c631d::after {
border: none;
}
.popup-footer .btn-cancel.data-v-b44c631d {
background: #fff;
color: #666;
}
.popup-footer .btn-confirm.data-v-b44c631d {
color: #fff;
}
.address-box.data-v-b44c631d {
display: flex;
align-items: center;
gap: 20rpx;
}
.address-box .address-input.data-v-b44c631d {
flex: 1;
background: #fff;
border: 1rpx solid #F6F6F6;
border-radius: 8rpx;
padding: 20rpx;
font-size: 26rpx;
color: #333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.address-box .btn-address.data-v-b44c631d {
flex-shrink: 0;
height: 70rpx;
line-height: 70rpx;
padding: 0 30rpx;
font-size: 26rpx;
border-radius: 8rpx;
color: #fff;
}
.address-box .btn-address.data-v-b44c631d::after {
border: none;
}
.address-popup.data-v-b44c631d {
width: 600rpx;
background: #fff;
border-radius: 20rpx;
overflow: hidden;
}
.address-popup-body.data-v-b44c631d {
padding: 30rpx;
max-height: 500rpx;
}
.address-popup-body .search-box.data-v-b44c631d {
margin-bottom: 20rpx;
}
.address-popup-body .search-box .search-input.data-v-b44c631d {
width: 100%;
background: #f5f5f5;
border-radius: 8rpx;
padding: 16rpx 20rpx;
font-size: 28rpx;
}
.address-popup-body .address-list.data-v-b44c631d {
max-height: 350rpx;
overflow-y: auto;
}
.address-popup-body .address-item.data-v-b44c631d {
padding: 24rpx 20rpx;
border-bottom: 1rpx solid #eee;
font-size: 26rpx;
color: #333;
}
.address-popup-body .address-item.data-v-b44c631d:last-child {
border-bottom: none;
}
.address-popup-body .address-item.address-item-active.data-v-b44c631d {
background: #EBF2FC;
color: #2667E9;
}
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/* 全局样式覆盖 up-tag 文字居中 */
.u-tag {
justify-content: center !important;
}

View File

@@ -0,0 +1,85 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
const _easycom_up_upload2 = common_vendor.resolveComponent("up-upload");
(_easycom_up_textarea2 + _easycom_up_upload2)();
}
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
const _easycom_up_upload = () => "../../uni_modules/uview-plus/components/u-upload/u-upload.js";
if (!Math) {
(_easycom_up_textarea + _easycom_up_upload)();
}
const _sfc_main = {
__name: "acceptance",
setup(__props) {
const fileList1 = common_vendor.ref([]);
const deletePic = (event) => {
fileList1.value.splice(event.index, 1);
};
const afterRead = async (event) => {
let lists = [].concat(event.file);
let fileListLen = fileList1.value.length;
lists.map((item) => {
fileList1.value.push({
...item,
status: "uploading",
message: "上传中"
});
});
for (let i = 0; i < lists.length; i++) {
const result = await uploadFilePromise(lists[i].url);
let item = fileList1.value[fileListLen];
fileList1.value.splice(fileListLen, 1, {
...item,
status: "success",
message: "",
url: result
});
fileListLen++;
}
};
const uploadFilePromise = (url) => {
return new Promise((resolve, reject) => {
common_vendor.index.uploadFile({
url: "http://192.168.2.21:7001/upload",
// 仅为示例,非真实的接口地址
filePath: url,
name: "file",
formData: {
user: "test"
},
success: (res) => {
setTimeout(() => {
resolve(res.data.data);
}, 1e3);
}
});
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => _ctx.value1 = $event),
b: common_vendor.p({
placeholder: "请输入内容",
modelValue: _ctx.value1
}),
c: common_vendor.o(($event) => _ctx.value1 = $event),
d: common_vendor.p({
placeholder: "请输入内容",
modelValue: _ctx.value1
}),
e: common_vendor.o(afterRead),
f: common_vendor.o(deletePic),
g: common_vendor.p({
fileList: fileList1.value,
name: "1",
multiple: true,
maxCount: 10
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-39f9b795"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "隐患验收",
"usingComponents": {
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
"up-upload": "../../uni_modules/uview-plus/components/u-upload/u-upload"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-39f9b795', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius data-v-39f9b795"><view class="text-gray margin-bottom data-v-39f9b795">整改记录</view><up-textarea wx:if="{{b}}" class="data-v-39f9b795" virtualHostClass="data-v-39f9b795" u-i="39f9b795-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-textarea><view class="flex margin-bottom margin-top data-v-39f9b795"><view class="text-gray data-v-39f9b795">验收内容</view><view class="text-red data-v-39f9b795">*</view></view><up-textarea wx:if="{{d}}" class="data-v-39f9b795" virtualHostClass="data-v-39f9b795" u-i="39f9b795-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></up-textarea><view class="flex margin-bottom margin-top data-v-39f9b795"><view class="text-gray data-v-39f9b795">验收图片/视频</view><view class="text-red data-v-39f9b795">*</view></view><up-upload wx:if="{{g}}" class="data-v-39f9b795" virtualHostClass="data-v-39f9b795" bindafterRead="{{e}}" binddelete="{{f}}" u-i="39f9b795-2" bind:__l="__l" u-p="{{g}}"></up-upload><button class="bg-blue round margin-top-xl data-v-39f9b795"> 提交验收</button></view></view>

View File

@@ -0,0 +1,30 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-39f9b795 {
min-height: 100vh;
background: #EBF2FC;
}

View File

@@ -0,0 +1,238 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
const request_request = require("../../request/request.js");
if (!Array) {
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_calendar2 = common_vendor.resolveComponent("up-calendar");
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
const _easycom_up_upload2 = common_vendor.resolveComponent("up-upload");
(_easycom_up_textarea2 + _easycom_up_input2 + _easycom_up_calendar2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_upload2)();
}
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_calendar = () => "../../uni_modules/uview-plus/components/u-calendar/u-calendar.js";
const _easycom_up_radio = () => "../../uni_modules/uview-plus/components/u-radio/u-radio.js";
const _easycom_up_radio_group = () => "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js";
const _easycom_up_upload = () => "../../uni_modules/uview-plus/components/u-upload/u-upload.js";
if (!Math) {
(_easycom_up_textarea + _easycom_up_input + _easycom_up_calendar + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_upload)();
}
const _sfc_main = {
__name: "rectification",
setup(__props) {
const hazardId = common_vendor.ref("");
const assignId = common_vendor.ref("");
const formData = common_vendor.reactive({
rectifyPlan: "",
// 整改方案
rectifyResult: "",
// 整改完成情况
planCost: "",
// 投资资金(计划)
actualCost: ""
// 投资资金(实际)
});
const show = common_vendor.ref(false);
const mode = common_vendor.ref("single");
const selectedDate = common_vendor.ref("");
const radiovalue1 = common_vendor.ref("");
const radiolist1 = common_vendor.reactive([
{
name: "孙致远",
disabled: false
},
{
name: "符友成",
disabled: false
},
{
name: "向彪",
disabled: false
},
{
name: "向纪荣",
disabled: false
}
]);
const fileList1 = common_vendor.ref([]);
const deletePic = (event) => {
fileList1.value.splice(event.index, 1);
};
const afterRead = async (event) => {
let lists = [].concat(event.file);
let fileListLen = fileList1.value.length;
lists.map((item) => {
fileList1.value.push({
...item,
status: "uploading",
message: "上传中"
});
});
for (let i = 0; i < lists.length; i++) {
const result = await uploadFilePromise(lists[i].url);
let item = fileList1.value[fileListLen];
fileList1.value.splice(fileListLen, 1, {
...item,
status: "success",
message: "",
url: result
});
fileListLen++;
}
};
const confirmDate = (e) => {
selectedDate.value = e[0];
show.value = false;
};
const uploadFilePromise = (filePath) => {
return new Promise((resolve, reject) => {
common_vendor.index.uploadFile({
url: request_request.baseUrl + "/frontend/attachment/upload",
filePath,
name: "file",
header: {
"Authorization": request_request.AUTH_TOKEN
},
success: (res) => {
const data = JSON.parse(res.data);
if (data.code === 0) {
resolve(data.data);
} else {
reject(data.msg || "上传失败");
}
},
fail: (err) => {
console.error("上传失败:", err);
reject(err);
}
});
});
};
const handleSubmit = async () => {
if (!formData.rectifyPlan) {
common_vendor.index.showToast({ title: "请输入整改方案", icon: "none" });
return;
}
if (!formData.rectifyResult) {
common_vendor.index.showToast({ title: "请输入整改完成情况", icon: "none" });
return;
}
const attachments = fileList1.value.map((file) => {
let url = "";
if (typeof file.url === "string") {
url = file.url;
} else if (file.url && typeof file.url === "object") {
url = file.url.url || file.url.path || "";
}
const fileName = typeof url === "string" && url ? url.split("/").pop() : file.name || "";
return {
fileName: fileName || "",
filePath: url || "",
fileType: file.type || "image/png",
fileSize: file.size || 0
};
});
const params = {
hazardId: hazardId.value,
assignId: assignId.value,
rectifyPlan: formData.rectifyPlan,
rectifyResult: formData.rectifyResult,
planCost: Number(formData.planCost) || 0,
actualCost: Number(formData.actualCost) || 0,
attachments
};
try {
const res = await request_api.submitRectification(params);
if (res.code === 0) {
common_vendor.index.showToast({ title: "提交成功", icon: "success" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1500);
} else {
common_vendor.index.showToast({ title: res.msg || "提交失败", icon: "none" });
}
} catch (error) {
console.error("提交整改失败:", error);
common_vendor.index.showToast({ title: "请求失败", icon: "none" });
}
};
common_vendor.onLoad((options) => {
if (options.hazardId) {
hazardId.value = options.hazardId;
}
if (options.assignId) {
assignId.value = options.assignId;
}
});
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => formData.rectifyPlan = $event),
b: common_vendor.p({
placeholder: "请输入内容",
modelValue: formData.rectifyPlan
}),
c: common_vendor.o(($event) => formData.rectifyResult = $event),
d: common_vendor.p({
placeholder: "请输入内容",
modelValue: formData.rectifyResult
}),
e: common_vendor.o(($event) => formData.planCost = $event),
f: common_vendor.p({
placeholder: "请输入内容",
type: "number",
modelValue: formData.planCost
}),
g: common_vendor.o(($event) => formData.actualCost = $event),
h: common_vendor.p({
placeholder: "请输入内容",
type: "number",
modelValue: formData.actualCost
}),
i: common_vendor.t(selectedDate.value || "请选择日期"),
j: common_vendor.n(selectedDate.value ? "" : "text-gray"),
k: common_vendor.o(($event) => show.value = true),
l: common_vendor.o(confirmDate),
m: common_vendor.o(($event) => show.value = false),
n: common_vendor.p({
show: show.value,
mode: mode.value
}),
o: common_vendor.f(radiolist1, (item, index, i0) => {
return {
a: index,
b: common_vendor.o(_ctx.radioChange, index),
c: "f18ba0ce-6-" + i0 + ",f18ba0ce-5",
d: common_vendor.p({
shape: "square",
customStyle: {
marginBottom: "8px"
},
label: item.name,
name: item.name
})
};
}),
p: common_vendor.o(_ctx.groupChange),
q: common_vendor.o(($event) => radiovalue1.value = $event),
r: common_vendor.p({
placement: "column",
modelValue: radiovalue1.value
}),
s: common_vendor.o(afterRead),
t: common_vendor.o(deletePic),
v: common_vendor.p({
fileList: fileList1.value,
name: "1",
multiple: true,
maxCount: 10
}),
w: common_vendor.o(handleSubmit)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f18ba0ce"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "隐患整改",
"usingComponents": {
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-calendar": "../../uni_modules/uview-plus/components/u-calendar/u-calendar",
"up-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio",
"up-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group",
"up-upload": "../../uni_modules/uview-plus/components/u-upload/u-upload"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-f18ba0ce', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius data-v-f18ba0ce"><view class="flex margin-bottom data-v-f18ba0ce"><view class="text-gray data-v-f18ba0ce">整改方案</view><view class="text-red data-v-f18ba0ce">*</view></view><up-textarea wx:if="{{b}}" class="data-v-f18ba0ce" virtualHostClass="data-v-f18ba0ce" u-i="f18ba0ce-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-textarea><view class="flex margin-bottom margin-top data-v-f18ba0ce"><view class="text-gray data-v-f18ba0ce">整改完成情况</view><view class="text-red data-v-f18ba0ce">*</view></view><up-textarea wx:if="{{d}}" class="data-v-f18ba0ce" virtualHostClass="data-v-f18ba0ce" u-i="f18ba0ce-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></up-textarea><view class="flex margin-bottom data-v-f18ba0ce"><view class="text-gray margin-top data-v-f18ba0ce">投资资金(计划)</view><view class="text-red data-v-f18ba0ce">*</view></view><up-input wx:if="{{f}}" class="data-v-f18ba0ce" virtualHostClass="data-v-f18ba0ce" u-i="f18ba0ce-2" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"></up-input><view class="flex margin-bottom data-v-f18ba0ce"><view class="text-gray margin-top data-v-f18ba0ce">投资资金(实际)</view><view class="text-red data-v-f18ba0ce">*</view></view><up-input wx:if="{{h}}" class="data-v-f18ba0ce" virtualHostClass="data-v-f18ba0ce" u-i="f18ba0ce-3" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></up-input><view class="flex margin-bottom data-v-f18ba0ce"><view class="text-gray margin-top data-v-f18ba0ce">限定整改时间</view><view class="text-red data-v-f18ba0ce">*</view></view><view class="date-input data-v-f18ba0ce" bindtap="{{k}}"><text class="{{['data-v-f18ba0ce', j]}}">{{i}}</text></view><up-calendar wx:if="{{n}}" class="data-v-f18ba0ce" virtualHostClass="data-v-f18ba0ce" bindconfirm="{{l}}" bindclose="{{m}}" u-i="f18ba0ce-4" bind:__l="__l" u-p="{{n}}"></up-calendar><view class="flex margin-bottom data-v-f18ba0ce"><view class="text-gray data-v-f18ba0ce">整改人员</view><view class="text-red data-v-f18ba0ce">*</view></view><up-radio-group wx:if="{{r}}" class="data-v-f18ba0ce" virtualHostClass="data-v-f18ba0ce" u-s="{{['d']}}" bindchange="{{p}}" u-i="f18ba0ce-5" bind:__l="__l" bindupdateModelValue="{{q}}" u-p="{{r}}"><up-radio wx:for="{{o}}" wx:for-item="item" wx:key="a" class="data-v-f18ba0ce" virtualHostClass="data-v-f18ba0ce" bindchange="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up-radio></up-radio-group><view class="flex margin-bottom data-v-f18ba0ce"><view class="text-gray data-v-f18ba0ce">整改图片/视频</view><view class="text-red data-v-f18ba0ce">*</view></view><up-upload wx:if="{{v}}" class="data-v-f18ba0ce" virtualHostClass="data-v-f18ba0ce" bindafterRead="{{s}}" binddelete="{{t}}" u-i="f18ba0ce-7" bind:__l="__l" u-p="{{v}}"></up-upload><button class="bg-blue round margin-top-xl data-v-f18ba0ce" bindtap="{{w}}">提交整改</button></view></view>

View File

@@ -0,0 +1,41 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-f18ba0ce {
min-height: 100vh;
background: #EBF2FC;
}
.date-input.data-v-f18ba0ce {
background: #fff;
border-radius: 8rpx;
padding: 24rpx 20rpx;
margin-bottom: 20rpx;
border: 1rpx solid #F6F6F6;
}
.date-input text.data-v-f18ba0ce {
font-size: 28rpx;
color: #333;
}

View File

@@ -0,0 +1,83 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
(_easycom_up_input2 + _easycom_up_textarea2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
if (!Math) {
(_easycom_up_input + _easycom_up_textarea)();
}
const _sfc_main = {
__name: "view",
setup(__props) {
const detailData = common_vendor.reactive({
hazardId: "",
assignId: "",
title: "",
level: 0,
levelName: "",
source: "",
description: "",
address: "",
createdAt: "",
attachments: []
});
const fetchDetail = async (hazardId, assignId) => {
try {
const res = await request_api.getHiddenDangerDetail({ hazardId, assignId });
if (res.code === 0 && res.data) {
Object.assign(detailData, res.data);
} else {
common_vendor.index.showToast({ title: res.msg || "获取详情失败", icon: "none" });
}
} catch (error) {
console.error("获取隐患详情失败:", error);
common_vendor.index.showToast({ title: "请求失败", icon: "none" });
}
};
common_vendor.onLoad((options) => {
if (options.hazardId && options.assignId) {
fetchDetail(options.hazardId, options.assignId);
}
});
return (_ctx, _cache) => {
return common_vendor.e({
a: (detailData == null ? void 0 : detailData.attachments) && detailData.attachments.length > 0
}, (detailData == null ? void 0 : detailData.attachments) && detailData.attachments.length > 0 ? {
b: common_vendor.f(detailData.attachments, (img, idx, i0) => {
return {
a: idx,
b: img.filePath
};
})
} : {}, {
c: common_vendor.o(($event) => detailData.title = $event),
d: common_vendor.p({
disabled: "true",
disabledColor: "#F6F6F6",
border: "surround",
modelValue: detailData.title
}),
e: common_vendor.n(detailData.level === 1 ? "bg-blue light" : "bg-gray"),
f: common_vendor.n(detailData.level === 2 ? "bg-blue light" : "bg-gray"),
g: common_vendor.n(detailData.level === 3 ? "bg-blue light" : "bg-gray"),
h: detailData.address,
i: common_vendor.o(($event) => detailData.address = $event.detail.value),
j: common_vendor.o(($event) => detailData.description = $event),
k: common_vendor.p({
placeholder: "暂无描述",
disabled: true,
modelValue: detailData.description
}),
l: common_vendor.t(detailData.source || "暂无"),
m: common_vendor.t(detailData.createdAt || "暂无")
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4d631e68"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "查看隐患",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['padding', 'page', 'data-v-4d631e68', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius data-v-4d631e68"><view class="flex data-v-4d631e68"><view class="text-gray data-v-4d631e68">隐患图片/视频</view><view class="text-red data-v-4d631e68">*</view></view><view class="margin-bottom data-v-4d631e68"><view wx:if="{{a}}" class="flex data-v-4d631e68" style="flex-wrap:wrap;gap:10rpx"><image wx:for="{{b}}" wx:for-item="img" wx:key="a" class="data-v-4d631e68" src="{{img.b}}" style="width:136rpx;height:136rpx;border-radius:16rpx" mode="aspectFill"></image></view><view wx:else class="text-gray text-sm data-v-4d631e68">暂无图片</view><view class="text-gray text-sm margin-top-xs data-v-4d631e68">必填:请上传现场照片或者视频作为隐患证据</view></view><view class="flex margin-bottom data-v-4d631e68"><view class="text-gray data-v-4d631e68">隐患标题</view><view class="text-red data-v-4d631e68">*</view></view><up-input wx:if="{{d}}" class="data-v-4d631e68" virtualHostClass="data-v-4d631e68" u-i="4d631e68-0" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"/><view class="margin-bottom text-gray text-sm margin-top-xs data-v-4d631e68">请用简洁的语言概括隐患要点</view><view class="flex margin-bottom data-v-4d631e68"><view class="text-gray data-v-4d631e68">隐患等级</view><view class="text-red data-v-4d631e68">*</view></view><view class="flex col-3 data-v-4d631e68" style="gap:10rpx"><view class="{{['data-v-4d631e68', e]}}" style="padding:16rpx 40rpx">轻微隐患</view><view class="{{['data-v-4d631e68', f]}}" style="padding:16rpx 40rpx">一般隐患</view><view class="{{['data-v-4d631e68', g]}}" style="padding:16rpx 40rpx">重大隐患</view></view><view class="text-gray text-sm margin-top-xs margin-bottom data-v-4d631e68">请用隐患可能造成的危害程度选择等级</view><view class="flex data-v-4d631e68"><view class="text-gray data-v-4d631e68">隐患位置</view><view class="text-red data-v-4d631e68">*</view></view><view class="address-box margin-top-sm margin-bottom-sm data-v-4d631e68"><input class="address-input data-v-4d631e68" placeholder="暂无地址" disabled value="{{h}}" bindinput="{{i}}"/><button class="address-btn bg-blue data-v-4d631e68">选择地址</button></view><view class="text-gray text-sm data-v-4d631e68">如办公楼3层东侧消防通道生产车间A区设备旁等或点击"选择地址"按钮在地图上选择</view><view class="flex margin-bottom data-v-4d631e68"><view class="text-gray data-v-4d631e68">隐患描述</view><view class="text-red data-v-4d631e68">*</view></view><up-textarea wx:if="{{k}}" class="data-v-4d631e68" virtualHostClass="data-v-4d631e68" u-i="4d631e68-1" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"></up-textarea><view class="text-gray text-sm margin-top-xs margin-bottom data-v-4d631e68">请详细说明隐患现状、潜在风险及影响范围</view><view class="text-gray margin-bottom data-v-4d631e68">隐患来源</view><view class="bg-gray padding radius data-v-4d631e68">{{l}}</view><view class="text-gray margin-top margin-bottom data-v-4d631e68">创建时间</view><view class="bg-gray padding radius data-v-4d631e68">{{m}}</view></view></view>

View File

@@ -0,0 +1,53 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-4d631e68 {
min-height: 100vh;
background: #EBF2FC;
}
.address-box.data-v-4d631e68 {
display: flex;
align-items: center;
gap: 20rpx;
}
.address-input.data-v-4d631e68 {
flex: 1;
height: 80rpx;
background: #F6F6F6;
border-radius: 12rpx;
padding: 0 24rpx;
font-size: 28rpx;
color: #333;
}
.address-btn.data-v-4d631e68 {
flex-shrink: 0;
height: 80rpx;
line-height: 80rpx;
padding: 0 32rpx;
border-radius: 12rpx;
font-size: 28rpx;
color: #fff;
}

View File

@@ -0,0 +1,155 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const request_api = require("../../request/api.js");
const _sfc_main = {
__name: "index",
setup(__props) {
const loading = common_vendor.ref(true);
const infoList = common_vendor.ref([
{
name: "成员管理",
src: "../../static/组 19378.png"
},
{
name: "企业信息填报",
src: "../../static/组 19387.png"
},
{
name: "区域设置",
src: "../../static/组 20253.png"
},
{
name: "检查表",
src: "../../static/组 20254.png"
},
{
name: "检查记录",
src: "../../static/组 20255.png"
},
{
name: "证照管理",
src: "../../static/组 20256.png"
},
{
name: "隐患排查",
src: "../../static/组 20257.png"
},
{
name: "隐患销号申请",
src: "../../static/组 20258.png"
},
{
name: "设备登记",
src: "../../static/组 20259.png"
}
]);
const ViewDetails = (item) => {
common_vendor.index.navigateTo({
url: `/pages/plandetail/plandetail?id=${item.id}`
});
};
const goDetails = (item) => {
common_vendor.index.navigateTo({
url: `/pages/Inspectionresult/Inspectionresult?id=${item.id}`
});
};
const Inspectionwarning = () => {
common_vendor.index.navigateTo({
url: "/pages/Inspectionwarning/Inspectionwarning"
});
};
const my = () => {
common_vendor.index.navigateTo({
url: "/pages/personalcenter/my"
});
};
const handleMenuClick = (item) => {
const menuRoutes = {
"成员管理": "/pages/membermanagemen/membermanagemen",
"企业信息填报": "/pages/corporateInformation/corporateInformation",
"区域设置": "/pages/area/management",
"检查表": "/pages/checklist/checklist",
"检查记录": "/pages/Inspectionlog/Inspectionlog",
"证照管理": "/pages/Idphotomanagement/Idphotomanagement",
"隐患排查": "/pages/hiddendanger/Inspection",
"隐患销号申请": "/pages/closeout/application",
"设备登记": "/pages/equipmentregistration/equipmentregistration"
// 可以在这里添加其他菜单的跳转路径
};
const url = menuRoutes[item.name];
if (url) {
common_vendor.index.navigateTo({ url });
} else {
common_vendor.index.showToast({ title: "功能开发中", icon: "none" });
}
};
const checkPlanParams = common_vendor.ref({
pageNum: 1,
pageSize: 10,
name: ""
});
const checkPlanData = common_vendor.ref([]);
const getCheckPlanLists = async () => {
try {
const res = await request_api.getCheckPlanList(checkPlanParams.value);
console.log(res);
if (res.code === 0) {
checkPlanData.value = res.data.records;
}
} catch (error) {
console.error(error);
} finally {
loading.value = false;
}
};
const formatDate = (dateStr) => {
if (!dateStr)
return "";
return dateStr.split(" ")[0];
};
common_vendor.onLoad(() => {
getCheckPlanLists();
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.f(infoList.value, (item, index, i0) => {
return {
a: item.src,
b: common_vendor.t(item.name),
c: index,
d: common_vendor.o(($event) => handleMenuClick(item), index)
};
}),
b: checkPlanData.value.length === 0
}, checkPlanData.value.length === 0 ? {} : {}, {
c: common_vendor.f(checkPlanData.value, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.t(item.runModeName),
c: common_vendor.t(item.cycle),
d: common_vendor.t(formatDate(item.planStartTime)),
e: common_vendor.t(formatDate(item.planEndTime)),
f: item.progress + "%",
g: common_vendor.t(item.progress),
h: common_vendor.t(item.totalCount),
i: common_vendor.t(item.totalCount - item.finishedCount),
j: common_vendor.t(item.finishedCount),
k: common_vendor.o(($event) => ViewDetails(item), item.id),
l: common_vendor.o(($event) => goDetails(item), item.id),
m: item.id
};
}),
d: common_assets._imports_0,
e: common_assets._imports_1,
f: common_assets._imports_2,
g: common_assets._imports_3,
h: common_vendor.o(($event) => Inspectionwarning()),
i: common_assets._imports_4,
j: common_vendor.o(($event) => my())
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "三查一曝光",
"usingComponents": {}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,73 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.list.data-v-1cf27b2a {
background: #F2F6FF;
box-shadow: 0rpx 4rpx 8rpx 2rpx #CADDFC;
border-radius: 10rpx;
text-align: center;
padding: 20rpx 0;
}
.list-list.data-v-1cf27b2a {
background: #FFFFFF;
box-shadow: 0rpx 2rpx 6rpx 2rpx rgba(0, 0, 0, 0.08);
border-left: 5px solid #2667E9;
border-radius: 20rpx;
padding: 20rpx;
}
.border-tite.data-v-1cf27b2a {
width: 10rpx;
height: 32rpx;
background: #2667E9;
border-radius: 10rpx 10rpx 10rpx 10rpx;
}
.cu-progress.data-v-1cf27b2a {
width: 300rpx;
height: 20rpx;
background: #ebeef5;
border-radius: 100rpx;
overflow: hidden;
}
.cu-progress view.data-v-1cf27b2a {
height: 100%;
border-radius: 100rpx;
transition: width 0.3s ease;
}
.bg-green.data-v-1cf27b2a {
background: #2667E9;
}
.border-border.data-v-1cf27b2a {
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;
}

View File

@@ -0,0 +1,95 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
(_easycom_up_picker2 + _easycom_u_popup2)();
}
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
const _easycom_u_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
(_easycom_up_picker + _easycom_u_popup)();
}
const _sfc_main = {
__name: "membermanagemen",
setup(__props) {
const showPopup = common_vendor.ref(false);
const showDeptPicker = common_vendor.ref(false);
const formData = common_vendor.reactive({
username: "",
nickname: "",
phone: "",
password: "",
department: ""
});
const handleSubmit = () => {
if (!formData.username) {
common_vendor.index.showToast({ title: "请输入用户名", icon: "none" });
return;
}
if (!formData.password || formData.password.length < 6 || formData.password.length > 16) {
common_vendor.index.showToast({ title: "请输入6-16位密码", icon: "none" });
return;
}
if (!formData.department) {
common_vendor.index.showToast({ title: "请选择主部门", icon: "none" });
return;
}
console.log("提交数据:", formData);
common_vendor.index.showToast({ title: "添加成功", icon: "success" });
showPopup.value = false;
};
const Lock = () => {
common_vendor.index.showModal({
title: "提示",
content: "确定要锁定该成员吗?",
confirmColor: "#2667E9",
success: (res) => {
if (res.confirm) {
console.log("用户点击确定");
common_vendor.index.showToast({ title: "锁定成功", icon: "success" });
} else if (res.cancel) {
console.log("用户点击取消");
}
}
});
};
const show = common_vendor.ref(false);
const columns = common_vendor.reactive([
["湘西自治州和谐网络科技有限公司", "湘西自治州和谐云科技有限公司"]
]);
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => show.value = true),
b: common_vendor.p({
show: show.value,
columns
}),
c: common_vendor.o(($event) => Lock()),
d: common_vendor.o(($event) => showPopup.value = true),
e: common_vendor.o(($event) => showPopup.value = false),
f: formData.username,
g: common_vendor.o(($event) => formData.username = $event.detail.value),
h: formData.nickname,
i: common_vendor.o(($event) => formData.nickname = $event.detail.value),
j: formData.phone,
k: common_vendor.o(($event) => formData.phone = $event.detail.value),
l: formData.password,
m: common_vendor.o(($event) => formData.password = $event.detail.value),
n: common_vendor.t(formData.department || "请选择主部门"),
o: common_vendor.n(formData.department ? "" : "text-gray"),
p: common_vendor.o(($event) => showDeptPicker.value = true),
q: common_vendor.o(($event) => showPopup.value = false),
r: common_vendor.o(handleSubmit),
s: common_vendor.o(($event) => showPopup.value = false),
t: common_vendor.p({
show: showPopup.value,
mode: "center",
round: "20"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-06d9f81b"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "成员管理",
"usingComponents": {
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker",
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-06d9f81b', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius data-v-06d9f81b"><view class="flex justify-between align-center data-v-06d9f81b"><view class="flex align-center data-v-06d9f81b"><view class="border-tite data-v-06d9f81b"></view><view class="text-bold margin-left-xs data-v-06d9f81b" bindtap="{{a}}">湘西自治州和谐网络科技有限公司</view><up-picker wx:if="{{b}}" class="data-v-06d9f81b" virtualHostClass="data-v-06d9f81b" u-i="06d9f81b-0" bind:__l="__l" u-p="{{b}}"></up-picker></view><view class="tag-outline data-v-06d9f81b">负责人</view></view><view class="flex margin-top data-v-06d9f81b"><view class="cu-avatar radius lg data-v-06d9f81b" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg)"></view><view class="margin-left data-v-06d9f81b"><view class="flex data-v-06d9f81b"><view class="data-v-06d9f81b">罗燚</view><view class="margin-left-xs light bg-olive padding-left-xs padding-right-xs data-v-06d9f81b">正常</view></view><view class="flex text-gray data-v-06d9f81b"><view class="data-v-06d9f81b">手机设置:</view><view class="data-v-06d9f81b">未设置</view></view><view class="flex text-gray data-v-06d9f81b"><view class="data-v-06d9f81b">登录IP</view><view class="data-v-06d9f81b">45.135.228.172</view></view></view><button class="bg-blue btn-lock data-v-06d9f81b" bindtap="{{c}}">锁定</button></view></view><button class="lg cuIcon-add bg-blue round margin-top-xl data-v-06d9f81b" bindtap="{{d}}">添加成员</button><u-popup wx:if="{{t}}" class="data-v-06d9f81b" virtualHostClass="data-v-06d9f81b" u-s="{{['d']}}" bindclose="{{s}}" u-i="06d9f81b-1" bind:__l="__l" u-p="{{t}}"><view class="popup-content data-v-06d9f81b"><view class="popup-header data-v-06d9f81b"><view class="popup-title text-bold data-v-06d9f81b">添加成员</view><view class="popup-close data-v-06d9f81b" bindtap="{{e}}">×</view></view><view class="popup-body data-v-06d9f81b"><view class="form-item data-v-06d9f81b"><view class="form-label data-v-06d9f81b">用户名<text class="text-red data-v-06d9f81b">*</text></view><input class="form-input data-v-06d9f81b" placeholder="请输入用户名" value="{{f}}" bindinput="{{g}}"/></view><view class="form-item data-v-06d9f81b"><view class="form-label data-v-06d9f81b">昵称</view><input class="form-input data-v-06d9f81b" placeholder="请输入昵称" value="{{h}}" bindinput="{{i}}"/></view><view class="form-item data-v-06d9f81b"><view class="form-label data-v-06d9f81b">手机号</view><input class="form-input data-v-06d9f81b" placeholder="请输入手机号" type="number" value="{{j}}" bindinput="{{k}}"/></view><view class="form-item data-v-06d9f81b"><view class="form-label data-v-06d9f81b">密码<text class="text-red data-v-06d9f81b">*</text></view><input class="form-input data-v-06d9f81b" placeholder="请输入密码6-16位" password value="{{l}}" bindinput="{{m}}"/></view><view class="form-item data-v-06d9f81b"><view class="form-label data-v-06d9f81b">主部门<text class="text-red data-v-06d9f81b">*</text></view><view class="form-input form-select data-v-06d9f81b" bindtap="{{p}}"><text class="{{['data-v-06d9f81b', o]}}">{{n}}</text></view></view></view><view class="popup-footer data-v-06d9f81b"><button class="btn-cancel data-v-06d9f81b" bindtap="{{q}}">取消</button><button class="btn-confirm bg-blue data-v-06d9f81b" bindtap="{{r}}">确定</button></view></view></u-popup></view>

View File

@@ -0,0 +1,127 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-06d9f81b {
min-height: 100vh;
background: #EBF2FC;
}
.border-tite.data-v-06d9f81b {
width: 8rpx;
height: 32rpx;
background: #2667E9;
border-radius: 8rpx;
}
.tag-outline.data-v-06d9f81b {
padding: 4rpx 16rpx;
border-radius: 8rpx;
background: #EEF3FF;
color: #2E7CF3;
font-size: 24rpx;
flex-shrink: 0;
margin-right: -30rpx;
border-radius: 24rpx 0rpx 0rpx 24rpx;
}
.btn-lock.data-v-06d9f81b {
width: 112rpx;
height: 52rpx;
line-height: 52rpx;
padding: 0;
font-size: 26rpx;
display: flex;
align-items: center;
justify-content: center;
}
.popup-content.data-v-06d9f81b {
width: 600rpx;
background: #fff;
border-radius: 20rpx;
padding: 30rpx;
}
.popup-header.data-v-06d9f81b {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30rpx;
}
.popup-title.data-v-06d9f81b {
font-size: 34rpx;
color: #333;
}
.popup-close.data-v-06d9f81b {
font-size: 48rpx;
color: #999;
line-height: 1;
}
.popup-body.data-v-06d9f81b {
max-height: 700rpx;
overflow-y: auto;
}
.form-item.data-v-06d9f81b {
margin-bottom: 24rpx;
}
.form-label.data-v-06d9f81b {
font-size: 28rpx;
color: #333;
margin-bottom: 12rpx;
}
.form-input.data-v-06d9f81b {
width: 100%;
height: 80rpx;
border: 2rpx solid #E5E5E5;
border-radius: 12rpx;
padding: 0 24rpx;
font-size: 28rpx;
box-sizing: border-box;
}
.form-select.data-v-06d9f81b {
display: flex;
align-items: center;
line-height: 80rpx;
}
.popup-footer.data-v-06d9f81b {
display: flex;
justify-content: center;
gap: 30rpx;
margin-top: 40rpx;
}
.btn-cancel.data-v-06d9f81b {
flex: 1;
height: 80rpx;
line-height: 80rpx;
border: 2rpx solid #2667E9;
border-radius: 40rpx;
background: #fff;
color: #2667E9;
font-size: 30rpx;
}
.btn-confirm.data-v-06d9f81b {
flex: 1;
height: 80rpx;
line-height: 80rpx;
border-radius: 40rpx;
color: #fff;
font-size: 30rpx;
}

View File

@@ -0,0 +1,8 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {};
function _sfc_render(_ctx, _cache) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5e16536a"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "账号安全",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['padding', 'page', 'data-v-5e16536a', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white data-v-5e16536a"><view class="flex justify-between padding-bottom solid-bottom data-v-5e16536a"><view class="data-v-5e16536a">修改登录密码</view><view class="lg text-gray cuIcon-right data-v-5e16536a"></view></view><view class="flex justify-between padding-top padding-bottom solid-bottom data-v-5e16536a"><view class="data-v-5e16536a">注销账户</view><view class="lg text-gray cuIcon-right data-v-5e16536a"></view></view></view></view>

View File

@@ -0,0 +1,30 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-5e16536a {
min-height: 100vh;
background: #EBF2FC;
}

View File

@@ -0,0 +1,82 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_calendar2 = common_vendor.resolveComponent("up-calendar");
_easycom_up_calendar2();
}
const _easycom_up_calendar = () => "../../uni_modules/uview-plus/components/u-calendar/u-calendar.js";
if (!Math) {
_easycom_up_calendar();
}
const _sfc_main = {
__name: "edit",
setup(__props) {
const showDatePicker = common_vendor.ref(false);
const userInfo = common_vendor.reactive({
avatar: "https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg",
nickname: "希缝弗斯",
username: "17374339800",
signature: "",
gender: 1,
// 1-男 2-女
birthday: "2025-10-09"
});
const chooseAvatar = () => {
common_vendor.index.chooseImage({
count: 1,
sizeType: ["compressed"],
sourceType: ["album", "camera"],
success: (res) => {
userInfo.avatar = res.tempFilePaths[0];
}
});
};
const confirmDate = (e) => {
userInfo.birthday = e[0];
showDatePicker.value = false;
};
const handleSave = () => {
common_vendor.index.showToast({ title: "保存成功", icon: "success" });
};
const handleLogout = () => {
common_vendor.index.showModal({
title: "提示",
content: "确定要退出登录吗?",
success: (res) => {
if (res.confirm) {
common_vendor.index.reLaunch({ url: "/pages/login/login" });
}
}
});
};
return (_ctx, _cache) => {
return {
a: userInfo.avatar,
b: common_vendor.o(chooseAvatar),
c: userInfo.nickname,
d: common_vendor.o(($event) => userInfo.nickname = $event.detail.value),
e: common_vendor.t(userInfo.username),
f: userInfo.signature,
g: common_vendor.o(($event) => userInfo.signature = $event.detail.value),
h: userInfo.gender === 1 ? 1 : "",
i: userInfo.gender === 1 ? 1 : "",
j: common_vendor.o(($event) => userInfo.gender = 1),
k: userInfo.gender === 2 ? 1 : "",
l: userInfo.gender === 2 ? 1 : "",
m: common_vendor.o(($event) => userInfo.gender = 2),
n: common_vendor.t(userInfo.birthday || "请选择日期"),
o: common_vendor.o(($event) => showDatePicker.value = true),
p: common_vendor.o(confirmDate),
q: common_vendor.o(($event) => showDatePicker.value = false),
r: common_vendor.p({
show: showDatePicker.value,
mode: "single"
}),
s: common_vendor.o(handleSave),
t: common_vendor.o(handleLogout)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-249675c2"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "编辑资料",
"usingComponents": {
"up-calendar": "../../uni_modules/uview-plus/components/u-calendar/u-calendar"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'data-v-249675c2', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white data-v-249675c2"><view class="flex justify-between align-center padding-tb solid-bottom data-v-249675c2" bindtap="{{b}}"><view class="text-black data-v-249675c2">头像</view><view class="flex align-center data-v-249675c2"><image class="avatar data-v-249675c2" src="{{a}}" mode="aspectFill"></image><view class="lg text-gray cuIcon-right margin-left-xs data-v-249675c2"></view></view></view><view class="flex justify-between align-center padding-tb solid-bottom data-v-249675c2"><view class="text-black label-text data-v-249675c2">昵称</view><view class="flex align-center flex-sub justify-end data-v-249675c2"><input class="input-right data-v-249675c2" placeholder="请输入昵称" value="{{c}}" bindinput="{{d}}"/><view class="lg text-gray cuIcon-right margin-left-xs data-v-249675c2"></view></view></view><view class="flex justify-between align-center padding-tb solid-bottom data-v-249675c2"><view class="text-black label-text data-v-249675c2">用户名</view><view class="flex align-center data-v-249675c2"><text class="text-black data-v-249675c2">{{e}}</text><view class="lg text-gray cuIcon-right margin-left-xs data-v-249675c2"></view></view></view><view class="flex justify-between align-center padding-tb solid-bottom data-v-249675c2"><view class="text-black label-text data-v-249675c2">个性签名</view><view class="flex align-center flex-sub justify-end data-v-249675c2"><input class="input-right data-v-249675c2" placeholder="请输入个性签名" value="{{f}}" bindinput="{{g}}"/><view class="lg text-gray cuIcon-right margin-left-xs data-v-249675c2"></view></view></view><view class="flex justify-between align-center padding-tb solid-bottom data-v-249675c2"><view class="text-black data-v-249675c2">性别</view><view class="flex align-center data-v-249675c2"><view class="gender-switch data-v-249675c2"><view class="{{['gender-item', 'data-v-249675c2', h && 'gender-active', i && 'gender-male']}}" bindtap="{{j}}"><text class="cuIcon-male data-v-249675c2"></text></view><view class="{{['gender-item', 'data-v-249675c2', k && 'gender-active', l && 'gender-female']}}" bindtap="{{m}}"><text class="cuIcon-female data-v-249675c2"></text></view></view></view></view><view class="flex justify-between align-center padding-tb solid-bottom data-v-249675c2" bindtap="{{o}}"><view class="text-black data-v-249675c2">日期选择</view><view class="flex align-center data-v-249675c2"><text class="text-black data-v-249675c2">{{n}}</text><view class="lg text-gray cuIcon-right margin-left-xs data-v-249675c2"></view></view></view><up-calendar wx:if="{{r}}" class="data-v-249675c2" virtualHostClass="data-v-249675c2" bindconfirm="{{p}}" bindclose="{{q}}" u-i="249675c2-0" bind:__l="__l" u-p="{{r}}"></up-calendar><button class="bg-blue round margin-top-xl data-v-249675c2" bindtap="{{s}}">保存</button><button class="round line-blue margin-top data-v-249675c2" bindtap="{{t}}">退出登录</button></view></view>

View File

@@ -0,0 +1,79 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-249675c2 {
min-height: 100vh;
background: #f5f5f5;
}
.avatar.data-v-249675c2 {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.label-text.data-v-249675c2 {
flex-shrink: 0;
margin-right: 20rpx;
}
.input-right.data-v-249675c2 {
text-align: right;
font-size: 28rpx;
color: #333;
}
.padding-tb.data-v-249675c2 {
padding: 30rpx 0;
}
.gender-switch.data-v-249675c2 {
display: flex;
align-items: center;
background: #f0f0f0;
border-radius: 40rpx;
padding: 4rpx;
}
.gender-item.data-v-249675c2 {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 32rpx;
color: #999;
transition: all 0.3s;
}
.gender-active.data-v-249675c2 {
color: #fff;
}
.gender-male.data-v-249675c2 {
background: #2667E9;
}
.gender-female.data-v-249675c2 {
background: #ff6b81;
}
.line-blue.data-v-249675c2 {
border: 1rpx solid #2667E9;
color: #2667E9;
background: #fff;
}

View File

@@ -0,0 +1,12 @@
"use strict";
const common_assets = require("../../common/assets.js");
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {};
function _sfc_render(_ctx, _cache) {
return {
a: common_assets._imports_0$2,
b: common_assets._imports_1$2
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "帮助中心",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{[virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="justify-around flex margin-top-xl"><view><image src="{{a}}" style="width:100rpx;height:100rpx"></image></view><view><image src="{{b}}" style="width:100rpx;height:100rpx"></image></view></view><view class="margin-top-xl flex text-gray text-center justify-center"><view>工作时间:</view><view>09:00-22:00</view></view></view>

View File

@@ -0,0 +1,45 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
__name: "my",
setup(__props) {
const Helpcenter = () => {
common_vendor.index.navigateTo({
url: "/pages/personalcenter/helpcenter"
});
};
const notification = () => {
common_vendor.index.navigateTo({
url: "/pages/personalcenter/notification"
});
};
const Settings = () => {
common_vendor.index.navigateTo({
url: "/pages/personalcenter/settings"
});
};
const Account = () => {
common_vendor.index.navigateTo({
url: "/pages/personalcenter/account"
});
};
return (_ctx, _cache) => {
return {
a: common_assets._imports_0$1,
b: common_vendor.o(($event) => Helpcenter()),
c: common_assets._imports_1$1,
d: common_assets._imports_2$1,
e: common_vendor.o(($event) => Account()),
f: common_assets._imports_3$1,
g: common_vendor.o(($event) => notification()),
h: common_assets._imports_4$1,
i: common_assets._imports_5,
j: common_vendor.o(($event) => Settings()),
k: common_assets._imports_0$1
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-02345808"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "我的",
"navigationStyle": "custom",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="title data-v-02345808"><view class="padding data-v-02345808"><view class="text-center data-v-02345808">我的</view><view class="flex justify-around data-v-02345808" style="padding-top:60rpx"><view class="flex data-v-02345808"><view class="cu-avatar xl round margin-left data-v-02345808" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big99008.jpg)"></view><view class="data-v-02345808"><view class="data-v-02345808">测试</view><view class="data-v-02345808">17374339800</view></view></view><button class="bg-blue round cu-btn data-v-02345808">编辑资料</button></view></view></view><view class="padding page data-v-02345808"><view class="padding bg-white radius data-v-02345808"><view class="flex justify-between padding-bottom solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{b}}"><image class="data-v-02345808" src="{{a}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">帮助中心</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808"><image class="data-v-02345808" src="{{c}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">智能客服</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{e}}"><image class="data-v-02345808" src="{{d}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">账号安全</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{g}}"><image class="data-v-02345808" src="{{f}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">新消息通知</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808"><image class="data-v-02345808" src="{{h}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">清除缓存</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{j}}"><image class="data-v-02345808" src="{{i}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">通用设置</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808"><image class="data-v-02345808" src="{{k}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">关于</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view></view><button class="bg-blue round margin-top-xl data-v-02345808">退出登录</button></view>

View File

@@ -0,0 +1,33 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-02345808 {
background: #EBF2FC;
}
.title.data-v-02345808 {
height: 516rpx;
background: radial-gradient(0% 0% at 78% 8%, #2667E9 0%, #FDFDFD 100%, #719BF0 100%);
}

View File

@@ -0,0 +1,43 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_switch2 = common_vendor.resolveComponent("up-switch");
_easycom_up_switch2();
}
const _easycom_up_switch = () => "../../uni_modules/uview-plus/components/u-switch/u-switch.js";
if (!Math) {
_easycom_up_switch();
}
const _sfc_main = {
__name: "notification",
setup(__props) {
const value = common_vendor.ref(false);
const change = (e) => {
console.log("change", e);
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(change),
b: common_vendor.o(($event) => value.value = $event),
c: common_vendor.p({
activeColor: "#07C160",
modelValue: value.value
}),
d: common_vendor.o(change),
e: common_vendor.o(($event) => value.value = $event),
f: common_vendor.p({
activeColor: "#07C160",
modelValue: value.value
}),
g: common_vendor.o(change),
h: common_vendor.o(($event) => value.value = $event),
i: common_vendor.p({
activeColor: "#07C160",
modelValue: value.value
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7f3eb145"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "新消息通知",
"usingComponents": {
"up-switch": "../../uni_modules/uview-plus/components/u-switch/u-switch"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-7f3eb145', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius data-v-7f3eb145"><view class="flex justify-between padding-bottom solid-bottom data-v-7f3eb145"><view class="data-v-7f3eb145">横幅消息通知</view><up-switch wx:if="{{c}}" class="data-v-7f3eb145" virtualHostClass="data-v-7f3eb145" bindchange="{{a}}" u-i="7f3eb145-0" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"></up-switch></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-7f3eb145"><view class="data-v-7f3eb145">系统声音</view><up-switch wx:if="{{f}}" class="data-v-7f3eb145" virtualHostClass="data-v-7f3eb145" bindchange="{{d}}" u-i="7f3eb145-1" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"></up-switch></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-7f3eb145"><view class="data-v-7f3eb145">系统震动</view><up-switch wx:if="{{i}}" class="data-v-7f3eb145" virtualHostClass="data-v-7f3eb145" bindchange="{{g}}" u-i="7f3eb145-2" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></up-switch></view></view></view>

View File

@@ -0,0 +1,30 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-7f3eb145 {
min-height: 100vh;
background: #EBF2FC;
}

View File

@@ -0,0 +1,43 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_switch2 = common_vendor.resolveComponent("up-switch");
_easycom_up_switch2();
}
const _easycom_up_switch = () => "../../uni_modules/uview-plus/components/u-switch/u-switch.js";
if (!Math) {
_easycom_up_switch();
}
const _sfc_main = {
__name: "settings",
setup(__props) {
const value = common_vendor.ref(false);
const change = (e) => {
console.log("change", e);
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(change),
b: common_vendor.o(($event) => value.value = $event),
c: common_vendor.p({
activeColor: "#07C160",
modelValue: value.value
}),
d: common_vendor.o(change),
e: common_vendor.o(($event) => value.value = $event),
f: common_vendor.p({
activeColor: "#07C160",
modelValue: value.value
}),
g: common_vendor.o(change),
h: common_vendor.o(($event) => value.value = $event),
i: common_vendor.p({
activeColor: "#07C160",
modelValue: value.value
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-8a628c0f"]]);
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "通用设置",
"usingComponents": {
"up-switch": "../../uni_modules/uview-plus/components/u-switch/u-switch"
}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-8a628c0f', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius data-v-8a628c0f"><view class="flex justify-between padding-bottom solid-bottom data-v-8a628c0f"><view class="data-v-8a628c0f">截屏后提示</view><up-switch wx:if="{{c}}" class="data-v-8a628c0f" virtualHostClass="data-v-8a628c0f" bindchange="{{a}}" u-i="8a628c0f-0" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"></up-switch></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-8a628c0f"><view class="data-v-8a628c0f">开启屏幕旋转</view><up-switch wx:if="{{f}}" class="data-v-8a628c0f" virtualHostClass="data-v-8a628c0f" bindchange="{{d}}" u-i="8a628c0f-1" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"></up-switch></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-8a628c0f"><view class="data-v-8a628c0f">获取地理位置</view><up-switch wx:if="{{i}}" class="data-v-8a628c0f" virtualHostClass="data-v-8a628c0f" bindchange="{{g}}" u-i="8a628c0f-2" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></up-switch></view></view></view>

View File

@@ -0,0 +1,30 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-8a628c0f {
min-height: 100vh;
background: #EBF2FC;
}

Some files were not shown because too many files have changed in this diff Show More