基本功能都已完成

This commit is contained in:
王利强
2026-02-08 09:30:43 +08:00
parent 1ad538f351
commit 721ef0ad54
494 changed files with 6837 additions and 42302 deletions

View File

@@ -1,60 +0,0 @@
"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const common_vendor = require("./common/vendor.js");
const uni_modules_uviewPlus_index = require("./uni_modules/uview-plus/index.js");
if (!Math) {
"./pages/index/index.js";
"./pages/map/map.js";
"./pages/plandetail/plandetail.js";
"./pages/Inspectionresult/Inspectionresult.js";
"./pages/membermanagemen/membermanagemen.js";
"./pages/corporateInformation/corporateInformation.js";
"./pages/editcompanInformation/editcompanInformation.js";
"./pages/checklist/checklist.js";
"./pages/editchecklist/editchecklist.js";
"./pages/Inspectionlog/Inspectionlog.js";
"./pages/Inspectionchecklist/Inspectionchecklist.js";
"./pages/Idphotomanagement/Idphotomanagement.js";
"./pages/hiddendanger/Inspection.js";
"./pages/hiddendanger/view.js";
"./pages/hiddendanger/rectification.js";
"./pages/hiddendanger/acceptance.js";
"./pages/hiddendanger/assignment.js";
"./pages/closeout/application.js";
"./pages/closeout/editor.js";
"./pages/equipmentregistration/equipmentregistration.js";
"./pages/area/management.js";
"./pages/Inspectionwarning/Inspectionwarning.js";
"./pages/personalcenter/my.js";
"./pages/personalcenter/helpcenter.js";
"./pages/personalcenter/notification.js";
"./pages/personalcenter/settings.js";
"./pages/personalcenter/account.js";
"./pages/personalcenter/edit.js";
"./pages/login/login.js";
"./pages/login/reg.js";
"./pages/login/enterprise.js";
"./pages/login/success.js";
"./pages/login/forget.js";
"./pages/login/agreement.js";
}
const _sfc_main = {
onLaunch: function() {
console.log("App Launch");
},
onShow: function() {
console.log("App Show");
},
onHide: function() {
console.log("App Hide");
}
};
function createApp() {
const app = common_vendor.createSSRApp(_sfc_main);
app.use(uni_modules_uviewPlus_index.uviewPlus);
return {
app
};
}
createApp().app.mount("#app");
exports.createApp = createApp;

View File

@@ -1,86 +0,0 @@
{
"pages": [
"pages/index/index",
"pages/map/map",
"pages/plandetail/plandetail",
"pages/Inspectionresult/Inspectionresult",
"pages/membermanagemen/membermanagemen",
"pages/corporateInformation/corporateInformation",
"pages/editcompanInformation/editcompanInformation",
"pages/checklist/checklist",
"pages/editchecklist/editchecklist",
"pages/Inspectionlog/Inspectionlog",
"pages/Inspectionchecklist/Inspectionchecklist",
"pages/Idphotomanagement/Idphotomanagement",
"pages/hiddendanger/Inspection",
"pages/hiddendanger/view",
"pages/hiddendanger/rectification",
"pages/hiddendanger/acceptance",
"pages/hiddendanger/assignment",
"pages/closeout/application",
"pages/closeout/editor",
"pages/equipmentregistration/equipmentregistration",
"pages/area/management",
"pages/Inspectionwarning/Inspectionwarning",
"pages/personalcenter/my",
"pages/personalcenter/helpcenter",
"pages/personalcenter/notification",
"pages/personalcenter/settings",
"pages/personalcenter/account",
"pages/personalcenter/edit",
"pages/login/login",
"pages/login/reg",
"pages/login/enterprise",
"pages/login/success",
"pages/login/forget",
"pages/login/agreement"
],
"window": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#007aff",
"backgroundColor": "#F8F8F8"
},
"tabBar": {
"color": "#999999",
"selectedColor": "#007aff",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "static/tabBar/home1.png",
"selectedIconPath": "static/tabBar/home.png"
},
{
"pagePath": "pages/map/map",
"text": "一张图",
"iconPath": "static/tabBar/map.png",
"selectedIconPath": "static/tabBar/map1.png"
},
{
"pagePath": "pages/Inspectionwarning/Inspectionwarning",
"text": "预警",
"iconPath": "static/tabBar/warning.png",
"selectedIconPath": "static/tabBar/warning1.png"
},
{
"pagePath": "pages/personalcenter/my",
"text": "我的",
"iconPath": "static/tabBar/my.png",
"selectedIconPath": "static/tabBar/my1.png"
}
]
},
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于选择隐患位置"
}
},
"requiredPrivateInfos": [
"chooseLocation",
"getLocation"
],
"usingComponents": {}
}

File diff suppressed because one or more lines are too long

View File

@@ -1,29 +0,0 @@
"use strict";
const _imports_0$5 = "/static/蒙版组 273.png";
const _imports_0$4 = "/static/my/Helpcenter.png";
const _imports_1$2 = "/static/my/CustomerService.png";
const _imports_2 = "/static/my/Account.png";
const _imports_3$1 = "/static/my/Notification.png";
const _imports_4 = "/static/my/Delete.png";
const _imports_5 = "/static/my/Settings.png";
const _imports_0$3 = "/static/my/Customer service.png";
const _imports_1$1 = "/static/my/Phone.png";
const _imports_0$2 = "/static/index/index_bg.png";
const _imports_0$1 = "/static/index/phone.png";
const _imports_1 = "/static/index/lock.png";
const _imports_3 = "/static/index/photos.png";
const _imports_0 = "/static/index/蒙版组 260.png";
exports._imports_0 = _imports_0$5;
exports._imports_0$1 = _imports_0$4;
exports._imports_0$2 = _imports_0$3;
exports._imports_0$3 = _imports_0$2;
exports._imports_0$4 = _imports_0$1;
exports._imports_0$5 = _imports_0;
exports._imports_1 = _imports_1$2;
exports._imports_1$1 = _imports_1$1;
exports._imports_1$2 = _imports_1;
exports._imports_2 = _imports_2;
exports._imports_3 = _imports_3$1;
exports._imports_3$1 = _imports_3;
exports._imports_4 = _imports_4;
exports._imports_5 = _imports_5;

File diff suppressed because it is too large Load Diff

View File

@@ -1,136 +0,0 @@
"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

@@ -1,7 +0,0 @@
{
"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

@@ -1 +0,0 @@
<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

@@ -1,176 +0,0 @@
/**
* 这里是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

@@ -1,8 +0,0 @@
"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

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

View File

@@ -1 +0,0 @@
<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

@@ -1,19 +0,0 @@
"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

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

View File

@@ -1 +0,0 @@
<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

@@ -1,37 +0,0 @@
/**
* 这里是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

@@ -1,134 +0,0 @@
"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

@@ -1,8 +0,0 @@
{
"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

@@ -1 +0,0 @@
<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

@@ -1,30 +0,0 @@
/**
* 这里是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

@@ -1,79 +0,0 @@
"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

@@ -1,7 +0,0 @@
{
"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

@@ -1 +0,0 @@
<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

@@ -1,69 +0,0 @@
/**
* 这里是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

@@ -1,105 +0,0 @@
"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

@@ -1,7 +0,0 @@
{
"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

@@ -1 +0,0 @@
<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

@@ -1,105 +0,0 @@
/**
* 这里是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

@@ -1,36 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
const _sfc_main = {
__name: "checklist",
setup(__props) {
common_vendor.useRouter();
const list = common_vendor.ref([]);
const edit = () => {
common_vendor.index.navigateTo({
url: "/pages/editchecklist/editchecklist"
});
};
common_vendor.onLoad(() => {
request_api.getCheckTableList().then((res) => {
if (res.code === 0) {
list.value = res.data.records;
}
});
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(list.value, (item, k0, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.o(($event) => edit(), item.id),
c: item.id
};
}),
b: common_vendor.o(($event) => edit())
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4d00090a"]]);
wx.createPage(MiniProgramPage);

View File

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

View File

@@ -1 +0,0 @@
<view class="{{['page', 'padding', 'data-v-4d00090a', virtualHostClass]}}" style="{{virtualHostStyle}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="c" class="padding bg-white radius flex justify-between margin-bottom data-v-4d00090a"><view class="data-v-4d00090a">{{item.a}}</view><view class="data-v-4d00090a"><button class="bg-blue cu-btn margin-right-xs data-v-4d00090a" bindtap="{{item.b}}">编辑</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" bindtap="{{b}}">新增检查表</button></view>

View File

@@ -1,30 +0,0 @@
/**
* 这里是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

@@ -1,211 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
if (!Array) {
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
const _easycom_up_datetime_picker2 = common_vendor.resolveComponent("up-datetime-picker");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
(_easycom_up_picker2 + _easycom_up_datetime_picker2 + _easycom_up_input2 + _easycom_up_textarea2 + _easycom_u_popup2)();
}
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
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";
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_picker + _easycom_up_datetime_picker + _easycom_up_input + _easycom_up_textarea + _easycom_u_popup)();
}
const _sfc_main = {
__name: "application",
setup(__props) {
const showAddPopup = common_vendor.ref(false);
const showHazardPicker = common_vendor.ref(false);
const showDatePicker = common_vendor.ref(false);
const selectedHazard = common_vendor.ref("");
const selectedHazardId = common_vendor.ref("");
const hazardColumns = common_vendor.ref([["暂无数据"]]);
const hazardList = common_vendor.ref([]);
const dateValue = common_vendor.ref(Date.now());
const formData = common_vendor.reactive({
rectifyDeadline: "",
// 整改时限
responsibleDeptName: "",
// 隐患治理责任单位
responsiblePerson: "",
// 主要负责人
mainTreatmentContent: "",
// 主要治理内容
treatmentResult: "",
// 隐患治理完成内容
selfVerifyContent: ""
// 责任单位自行验收情况
});
const fetchHazardList = async () => {
try {
const res = await request_api.getMyWriteOffList();
if (res.code === 0 && res.data) {
const list = res.data;
hazardList.value = list;
if (list.length > 0) {
hazardColumns.value = [list.map((item) => item.hazardTitle || `隐患${item.hazardId}`)];
}
console.log("隐患列表:", list);
}
} catch (error) {
console.error("获取隐患列表失败:", error);
}
};
const onHazardConfirm = (e) => {
console.log("选择的隐患:", e);
if (e.value && e.value.length > 0) {
selectedHazard.value = e.value[0];
const index = e.indexs[0];
if (hazardList.value[index]) {
selectedHazardId.value = hazardList.value[index].hazardId;
}
}
showHazardPicker.value = false;
};
const onDateConfirm = (e) => {
console.log("选择的日期时间:", 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");
const hours = String(date.getHours()).padStart(2, "0");
const minutes = String(date.getMinutes()).padStart(2, "0");
const seconds = String(date.getSeconds()).padStart(2, "0");
formData.rectifyDeadline = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
showDatePicker.value = false;
};
const resetForm = () => {
selectedHazard.value = "";
selectedHazardId.value = "";
formData.rectifyDeadline = "";
formData.responsibleDeptName = "";
formData.responsiblePerson = "";
formData.mainTreatmentContent = "";
formData.treatmentResult = "";
formData.selfVerifyContent = "";
};
const handleAdd = async () => {
if (!selectedHazardId.value) {
common_vendor.index.showToast({ title: "请选择隐患", icon: "none" });
return;
}
const params = {
hazardId: Number(selectedHazardId.value),
// 隐患ID必需
rectifyDeadline: formData.rectifyDeadline || "",
// 整改时限
responsiblePerson: formData.responsiblePerson || "",
// 主要负责人
mainTreatmentContent: formData.mainTreatmentContent || "",
// 主要治理内容
treatmentResult: formData.treatmentResult || "",
// 隐患治理完成内容
selfVerifyContent: formData.selfVerifyContent || ""
// 责任单位自行验收情况
};
console.log("提交数据:", params);
try {
const res = await request_api.applyDelete(params);
if (res.code === 0) {
common_vendor.index.showToast({ title: "申请成功", icon: "success" });
showAddPopup.value = false;
resetForm();
} else {
common_vendor.index.showToast({ title: res.msg || "申请失败", icon: "none" });
}
} catch (error) {
console.error("申请失败:", error);
common_vendor.index.showToast({ title: "请求失败", icon: "none" });
}
};
const editor = () => {
common_vendor.index.navigateTo({
url: "/pages/closeout/editor"
});
};
common_vendor.onMounted(() => {
fetchHazardList();
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(hazardList.value, (item, index, i0) => {
return {
a: common_vendor.t(item.hazardTitle),
b: common_vendor.t(item.statusName),
c: common_vendor.t(item.hazardCreatedAt),
d: common_vendor.t(item.responsibleDeptName),
e: common_vendor.t(item.responsiblePerson),
f: common_vendor.t(item.createdAt),
g: common_vendor.o(($event) => editor(), index),
h: index
};
}),
b: common_vendor.o(($event) => showAddPopup.value = true),
c: common_vendor.o(($event) => showAddPopup.value = false),
d: common_vendor.t(selectedHazard.value || "请选择隐患"),
e: common_vendor.n(selectedHazard.value ? "" : "text-gray"),
f: common_vendor.o(($event) => showHazardPicker.value = true),
g: common_vendor.o(onHazardConfirm),
h: common_vendor.o(($event) => showHazardPicker.value = false),
i: common_vendor.o(($event) => showHazardPicker.value = false),
j: common_vendor.p({
show: showHazardPicker.value,
columns: hazardColumns.value
}),
k: common_vendor.t(formData.rectifyDeadline || "请选择整改时限"),
l: common_vendor.n(formData.rectifyDeadline ? "" : "text-gray"),
m: common_vendor.o(($event) => showDatePicker.value = true),
n: common_vendor.o(onDateConfirm),
o: common_vendor.o(($event) => showDatePicker.value = false),
p: common_vendor.o(($event) => showDatePicker.value = false),
q: common_vendor.o(($event) => dateValue.value = $event),
r: common_vendor.p({
show: showDatePicker.value,
mode: "datetime",
modelValue: dateValue.value
}),
s: common_vendor.o(($event) => formData.responsibleDeptName = $event),
t: common_vendor.p({
placeholder: "请输入隐患治理责任单位",
modelValue: formData.responsibleDeptName
}),
v: common_vendor.o(($event) => formData.responsiblePerson = $event),
w: common_vendor.p({
placeholder: "请输入主要负责人",
modelValue: formData.responsiblePerson
}),
x: common_vendor.o(($event) => formData.mainTreatmentContent = $event),
y: common_vendor.p({
placeholder: "请输入主要治理内容",
modelValue: formData.mainTreatmentContent
}),
z: common_vendor.o(($event) => formData.treatmentResult = $event),
A: common_vendor.p({
placeholder: "请输入隐患治理完成情况",
modelValue: formData.treatmentResult
}),
B: common_vendor.o(($event) => formData.selfVerifyContent = $event),
C: common_vendor.p({
placeholder: "请输入隐患治理责任单位自行验收的情况",
modelValue: formData.selfVerifyContent
}),
D: common_vendor.o(($event) => showAddPopup.value = false),
E: common_vendor.o(handleAdd),
F: common_vendor.o(($event) => showAddPopup.value = false),
G: 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

@@ -1,10 +0,0 @@
{
"navigationBarTitleText": "销号申请",
"usingComponents": {
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker",
"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",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
}
}

View File

@@ -1 +0,0 @@
<view class="{{['padding', 'page', 'data-v-4b6250eb', virtualHostClass]}}" style="{{virtualHostStyle}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="h" class="padding bg-white radius margin-bottom data-v-4b6250eb"><view class="flex justify-between margin-bottom data-v-4b6250eb"><view class="text-bold text-black data-v-4b6250eb">{{item.a}}</view><view class="data-v-4b6250eb">{{item.b}}</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">{{item.c}}</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">{{item.d}}</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">{{item.e}}</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">{{item.f}}</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="{{item.g}}">查看详情</button></view></view></view><button class="cuIcon-add bg-blue round margin-top data-v-4b6250eb" bindtap="{{b}}">新增</button><u-popup wx:if="{{G}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-s="{{['d']}}" bindclose="{{F}}" u-i="4b6250eb-0" bind:__l="__l" u-p="{{G}}"><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><view class="picker-input data-v-4b6250eb" bindtap="{{f}}"><text class="{{['data-v-4b6250eb', e]}}">{{d}}</text></view><up-picker wx:if="{{j}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" bindconfirm="{{g}}" bindcancel="{{h}}" bindclose="{{i}}" u-i="4b6250eb-1,4b6250eb-0" bind:__l="__l" u-p="{{j}}"></up-picker><view class="flex margin-bottom margin-top data-v-4b6250eb"><view class="data-v-4b6250eb">整改时限</view></view><view class="picker-input data-v-4b6250eb" bindtap="{{m}}"><text class="{{['data-v-4b6250eb', l]}}">{{k}}</text></view><up-datetime-picker wx:if="{{r}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" bindconfirm="{{n}}" bindcancel="{{o}}" bindclose="{{p}}" u-i="4b6250eb-2,4b6250eb-0" bind:__l="__l" bindupdateModelValue="{{q}}" u-p="{{r}}"></up-datetime-picker><view class="margin-bottom margin-top data-v-4b6250eb">隐患治理责任单位</view><up-input wx:if="{{t}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-3,4b6250eb-0" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"></up-input><view class="margin-bottom margin-top data-v-4b6250eb">主要负责人</view><up-input wx:if="{{w}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-4,4b6250eb-0" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"></up-input><view class="margin-bottom margin-top data-v-4b6250eb">主要治理内容</view><up-textarea wx:if="{{y}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-5,4b6250eb-0" bind:__l="__l" bindupdateModelValue="{{x}}" u-p="{{y}}"></up-textarea><view class="margin-bottom margin-top data-v-4b6250eb">隐患治理完成内容</view><up-textarea wx:if="{{A}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-6,4b6250eb-0" bind:__l="__l" bindupdateModelValue="{{z}}" u-p="{{A}}"></up-textarea><view class="margin-bottom margin-top data-v-4b6250eb">隐患治理责任单位自行验收的情况</view><up-textarea wx:if="{{C}}" class="data-v-4b6250eb" virtualHostClass="data-v-4b6250eb" u-i="4b6250eb-7,4b6250eb-0" bind:__l="__l" bindupdateModelValue="{{B}}" u-p="{{C}}"></up-textarea></view><view class="popup-footer data-v-4b6250eb"><button class="btn-cancel data-v-4b6250eb" bindtap="{{D}}">取消</button><button class="btn-confirm bg-blue data-v-4b6250eb" bindtap="{{E}}">确定</button></view></view></u-popup></view>

View File

@@ -1,88 +0,0 @@
/**
* 这里是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;
}
.picker-input.data-v-4b6250eb {
background: #fff;
border-radius: 8rpx;
padding: 24rpx 20rpx;
margin-bottom: 20rpx;
border: 1rpx solid #eee;
}
.picker-input text.data-v-4b6250eb {
font-size: 28rpx;
}

View File

@@ -1,145 +0,0 @@
"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");
_easycom_up_input2();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
if (!Math) {
_easycom_up_input();
}
const _sfc_main = {
__name: "editor",
setup(__props) {
const getPageOptions = () => {
const pages = getCurrentPages();
const currentPage = pages[pages.length - 1];
return (currentPage == null ? void 0 : currentPage.options) || {};
};
const pageId = common_vendor.ref("");
const canEdit = common_vendor.ref(false);
const formData = common_vendor.reactive({
id: "",
hazardId: "",
hazardTitle: "",
// 隐患标题
hazardCreatedAt: "",
// 隐患日期
responsibleDeptName: "",
// 隐患治理责任单位
responsiblePerson: "",
// 主要负责人
createdAt: "",
// 创建时间
statusName: ""
// 状态
});
const fetchDetail = async (id) => {
console.log("=== fetchDetail 被调用 ===, id:", id);
try {
const res = await request_api.getMyWriteOffList();
console.log("接口返回:", res);
if (res.code === 0 && res.data && res.data.length > 0) {
const list = res.data;
let data = null;
if (id) {
data = list.find((item) => item.id == id);
}
if (!data) {
data = list[0];
}
console.log("绑定数据:", data);
formData.id = data.id;
formData.hazardId = data.hazardId;
formData.hazardTitle = data.hazardTitle || "";
formData.hazardCreatedAt = data.hazardCreatedAt || "";
formData.responsibleDeptName = data.responsibleDeptName || "";
formData.responsiblePerson = data.responsiblePerson || "";
formData.createdAt = data.createdAt || "";
formData.statusName = data.statusName || "";
if (data.status == 1 || data.statusName === "待审核") {
canEdit.value = true;
console.log("状态为待审核,可以编辑");
} else {
canEdit.value = false;
console.log("状态为已审核,不可编辑");
}
}
} catch (error) {
console.error("获取详情失败:", error);
}
};
const handleCancel = () => {
common_vendor.index.navigateBack();
};
const handleSubmit = async () => {
console.log("保存数据:", formData);
common_vendor.index.showToast({ title: "保存成功", icon: "success" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1500);
};
common_vendor.onLoad((options) => {
console.log("=== onLoad 触发 ===");
console.log("options:", options);
pageId.value = (options == null ? void 0 : options.id) || "";
fetchDetail(pageId.value);
});
common_vendor.onMounted(() => {
console.log("=== onMounted 触发 ===");
if (!pageId.value) {
const options = getPageOptions();
console.log("备用获取参数:", options);
pageId.value = (options == null ? void 0 : options.id) || "";
fetchDetail(pageId.value);
}
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(($event) => formData.hazardTitle = $event),
b: common_vendor.p({
placeholder: "",
disabled: true,
modelValue: formData.hazardTitle
}),
c: common_vendor.o(($event) => formData.hazardCreatedAt = $event),
d: common_vendor.p({
placeholder: "",
disabled: true,
modelValue: formData.hazardCreatedAt
}),
e: common_vendor.o(($event) => formData.responsibleDeptName = $event),
f: common_vendor.p({
placeholder: "请输入",
disabled: !canEdit.value,
modelValue: formData.responsibleDeptName
}),
g: common_vendor.o(($event) => formData.responsiblePerson = $event),
h: common_vendor.p({
placeholder: "请输入",
disabled: !canEdit.value,
modelValue: formData.responsiblePerson
}),
i: common_vendor.o(($event) => formData.createdAt = $event),
j: common_vendor.p({
placeholder: "",
disabled: true,
modelValue: formData.createdAt
}),
k: common_vendor.o(($event) => formData.statusName = $event),
l: common_vendor.p({
placeholder: "",
disabled: true,
modelValue: formData.statusName
}),
m: common_vendor.o(handleCancel),
n: canEdit.value
}, canEdit.value ? {
o: common_vendor.o(handleSubmit)
} : {});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bbd4165b"]]);
wx.createPage(MiniProgramPage);

View File

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

View File

@@ -1 +0,0 @@
<view class="{{['padding', 'page', 'data-v-bbd4165b', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding bg-white radius data-v-bbd4165b"><view class="flex margin-bottom data-v-bbd4165b"><view class="text-gray data-v-bbd4165b">隐患</view></view><up-input wx:if="{{b}}" class="data-v-bbd4165b" virtualHostClass="data-v-bbd4165b" u-i="bbd4165b-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-input><view class="text-gray margin-bottom margin-top data-v-bbd4165b">隐患日期</view><up-input wx:if="{{d}}" class="data-v-bbd4165b" virtualHostClass="data-v-bbd4165b" u-i="bbd4165b-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></up-input><view class="text-gray margin-bottom margin-top data-v-bbd4165b">隐患治理责任单位</view><up-input wx:if="{{f}}" class="data-v-bbd4165b" virtualHostClass="data-v-bbd4165b" u-i="bbd4165b-2" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"></up-input><view class="text-gray margin-bottom margin-top data-v-bbd4165b">主要负责人</view><up-input wx:if="{{h}}" class="data-v-bbd4165b" virtualHostClass="data-v-bbd4165b" u-i="bbd4165b-3" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></up-input><view class="text-gray margin-bottom margin-top data-v-bbd4165b">创建时间</view><up-input wx:if="{{j}}" class="data-v-bbd4165b" virtualHostClass="data-v-bbd4165b" u-i="bbd4165b-4" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></up-input><view class="text-gray margin-bottom margin-top data-v-bbd4165b">状态</view><up-input wx:if="{{l}}" class="data-v-bbd4165b" virtualHostClass="data-v-bbd4165b" u-i="bbd4165b-5" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"></up-input><view class="flex justify-center margin-top-xl data-v-bbd4165b" style="gap:30rpx"><button class="round cu-btn lg data-v-bbd4165b" bindtap="{{m}}">返回</button><button wx:if="{{n}}" class="bg-blue round cu-btn lg data-v-bbd4165b" bindtap="{{o}}">保存</button></view></view></view>

View File

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

View File

@@ -1,19 +0,0 @@
"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

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

View File

@@ -1 +0,0 @@
<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

@@ -1,37 +0,0 @@
/**
* 这里是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

@@ -1,274 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../request/request.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

@@ -1,11 +0,0 @@
{
"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

@@ -1,257 +0,0 @@
/**
* 这里是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

@@ -1,207 +0,0 @@
"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

@@ -1,10 +0,0 @@
{
"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

@@ -1,30 +0,0 @@
/**
* 这里是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

@@ -1,126 +0,0 @@
"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

@@ -1,9 +0,0 @@
{
"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

@@ -1 +0,0 @@
<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

@@ -1,132 +0,0 @@
/**
* 这里是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

@@ -1,417 +0,0 @@
"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_up_textarea2 = common_vendor.resolveComponent("up-textarea");
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
(_easycom_up_upload2 + _easycom_up_input2 + _easycom_up_choose2 + _easycom_up_textarea2 + _easycom_u_popup2)();
}
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_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_upload + _easycom_up_input + _easycom_up_choose + _easycom_up_textarea + _easycom_u_popup)();
}
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,
// 隐患标签索引
source: ""
// 隐患来源
});
const lng = common_vendor.ref(0);
const lat = common_vendor.ref(0);
const selectedAddress = common_vendor.ref("");
const chooseLocation = () => {
console.log("chooseLocation called");
showAddPopup.value = false;
setTimeout(() => {
common_vendor.index.chooseLocation({
success: (res) => {
console.log("选择位置成功:", res);
selectedAddress.value = res.address + (res.name ? `(${res.name})` : "");
lng.value = res.longitude;
lat.value = res.latitude;
showAddPopup.value = true;
},
fail: (err) => {
console.error("选择位置失败:", err);
showAddPopup.value = true;
if (err.errMsg && err.errMsg.indexOf("cancel") === -1) {
common_vendor.index.showToast({
title: "选择位置失败",
icon: "none"
});
}
}
});
}, 300);
};
const handleAdd = async () => {
var _a;
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;
console.log("innnn", sourceOptions);
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: ((_a = sourceOptions.value[formData.source]) == null ? void 0 : _a.title) || ""
//隐患来源(随手拍、企业自查、行业互查、专家诊查)
};
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 = [];
fetchHiddenDangerList();
} 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.records;
} else {
common_vendor.index.showToast({
title: res.msg || "获取隐患列表失败",
icon: "none"
});
}
} catch (error) {
console.error(error);
common_vendor.index.showToast({
title: "请求失败",
icon: "none"
});
}
};
common_vendor.onShow(() => {
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 = (item) => {
common_vendor.index.navigateTo({
url: `/pages/hiddendanger/acceptance?hazardId=${item.hazardId}&assignId=${item.assignId}&rectifyId=${item.rectifyId}`
});
};
const assignHazard = (item) => {
common_vendor.index.navigateTo({
url: `/pages/hiddendanger/assignment?hazardId=${item.hazardId}&assignId=${item.assignId}`
});
};
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.getToken()
},
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: "重大隐患"
}
]);
const sourceOptions = common_vendor.ref([
{
id: 1,
title: "随手拍"
},
{
id: 2,
title: "企业自查"
},
{
id: 3,
title: "行业互查"
},
{
id: 4,
title: "专家诊查"
}
]);
common_vendor.watch(() => formData.source, (newVal) => {
const selected = sourceOptions.value[newVal];
console.log("隐患来源选择结果:", {
索引: newVal,
选中项: selected,
id: selected == null ? void 0 : selected.id,
title: selected == null ? void 0 : selected.title
});
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(hiddenDangerList.value, (item, k0, i0) => {
return common_vendor.e({
a: common_vendor.t(item.title),
b: common_vendor.t(item.statusName),
c: common_vendor.t(item.levelName),
d: item.levelName === "轻微隐患" ? 1 : "",
e: item.levelName === "一般隐患" ? 1 : "",
f: item.levelName === "重大隐患" ? 1 : "",
g: common_vendor.t(item.address),
h: common_vendor.t(item.createdAt),
i: common_vendor.o(($event) => details(item), item.hazardId),
j: item.statusName === "待整改" || item.statusName === "待验收"
}, item.statusName === "待整改" || item.statusName === "待验收" ? {
k: common_vendor.o(($event) => Rectification(item), item.hazardId)
} : {}, {
l: item.statusName === "待验收"
}, item.statusName === "待验收" ? {
m: common_vendor.o(($event) => acceptance(item), item.hazardId)
} : {}, {
n: item.statusName === "待交办"
}, item.statusName === "待交办" ? {
o: common_vendor.o(($event) => assignHazard(item), item.hazardId)
} : {}, {
p: 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.o(($event) => formData.source = $event),
l: common_vendor.p({
options: sourceOptions.value,
wrap: false,
["item-width"]: "183rpx",
["item-height"]: "72rpx",
modelValue: formData.source
}),
m: common_vendor.t(selectedAddress.value || "请选择地址"),
n: common_vendor.n(selectedAddress.value ? "" : "text-gray"),
o: common_vendor.o(chooseLocation),
p: common_vendor.o(chooseLocation),
q: common_vendor.o(($event) => formData.description = $event),
r: common_vendor.p({
placeholder: "请输入内容",
modelValue: formData.description
}),
s: common_vendor.o(($event) => formData.tagIndex = $event),
t: common_vendor.p({
options: tagOptions.value,
modelValue: formData.tagIndex
}),
v: common_vendor.o(($event) => showAddPopup.value = false),
w: common_vendor.o(handleAdd),
x: common_vendor.o(($event) => showAddPopup.value = false),
y: 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

@@ -1,10 +0,0 @@
{
"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",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
"u-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -1,200 +0,0 @@
/**
* 这里是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;
}
.level-tag.data-v-b44c631d {
padding: 4rpx 16rpx;
border-radius: 8rpx;
}
.level-minor.data-v-b44c631d {
background: #F6FFED;
border: 2rpx solid #B7EB8F;
color: #52C41A;
}
.level-normal.data-v-b44c631d {
background: #FFF7E6;
border: 2rpx solid #FFD591;
color: #FA8C16;
}
.level-major.data-v-b44c631d {
background: #FFF1F0;
border: 2rpx solid #FFA39E;
color: #F5222D;
}
.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

@@ -1,231 +0,0 @@
"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_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 rectifyId = common_vendor.ref("");
const hazardId = common_vendor.ref("");
const assignId = common_vendor.ref("");
const rectifyData = common_vendor.reactive({
rectifyPlan: "",
rectifyResult: ""
});
const rectifyAttachments = common_vendor.ref([]);
const formData = common_vendor.reactive({
result: 1,
// 验收结果 1.通过 2.不通过
verifyRemark: ""
// 验收备注
});
const fileList1 = common_vendor.ref([]);
const getFullPath = (filePath) => {
if (!filePath)
return "";
if (filePath.startsWith("http://") || filePath.startsWith("https://")) {
return filePath;
}
return request_request.baseUrl + filePath;
};
const previewImage = (index) => {
const urls = rectifyAttachments.value.map((item) => getFullPath(item.filePath));
common_vendor.index.previewImage({
current: index,
urls
});
};
const fetchDetail = async () => {
if (!hazardId.value || !assignId.value)
return;
try {
const res = await request_api.getHiddenDangerDetail({ hazardId: hazardId.value, assignId: assignId.value });
if (res.code === 0 && res.data) {
if (res.data.assigns && res.data.assigns.length > 0) {
const assign = res.data.assigns[0];
if (assign.rectify) {
rectifyData.rectifyPlan = assign.rectify.rectifyPlan || "";
rectifyData.rectifyResult = assign.rectify.rectifyResult || "";
if (assign.rectify.attachments) {
rectifyAttachments.value = assign.rectify.attachments;
}
console.log("整改记录:", rectifyData);
console.log("整改附件:", rectifyAttachments.value);
}
}
} 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.rectifyId) {
rectifyId.value = options.rectifyId;
}
if (options.hazardId) {
hazardId.value = options.hazardId;
}
if (options.assignId) {
assignId.value = options.assignId;
}
console.log("验收页面参数:", { rectifyId: rectifyId.value, hazardId: hazardId.value, assignId: assignId.value });
fetchDetail();
});
const handleCancel = () => {
common_vendor.index.navigateBack();
};
const handleSubmit = async () => {
if (!rectifyId.value) {
common_vendor.index.showToast({
title: "缺少整改ID",
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 = {
rectifyId: Number(rectifyId.value),
result: formData.result,
verifyRemark: formData.verifyRemark || "",
attachments
};
console.log("提交验收参数:", params);
try {
const res = await request_api.acceptanceRectification(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"
});
}
};
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.getToken()
},
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);
}
});
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.t(rectifyData.rectifyPlan || "暂无"),
b: common_vendor.t(rectifyData.rectifyResult || "暂无"),
c: rectifyAttachments.value.length > 0
}, rectifyAttachments.value.length > 0 ? {
d: common_vendor.f(rectifyAttachments.value, (img, idx, i0) => {
return {
a: idx,
b: getFullPath(img.filePath),
c: common_vendor.o(($event) => previewImage(idx), idx)
};
})
} : {}, {
e: common_vendor.n(formData.result === 1 ? "active" : ""),
f: common_vendor.o(($event) => formData.result = 1),
g: common_vendor.n(formData.result === 2 ? "active" : ""),
h: common_vendor.o(($event) => formData.result = 2),
i: common_vendor.o(($event) => formData.verifyRemark = $event),
j: common_vendor.p({
placeholder: "请输入验收备注",
modelValue: formData.verifyRemark
}),
k: common_vendor.o(afterRead),
l: common_vendor.o(deletePic),
m: common_vendor.p({
fileList: fileList1.value,
name: "1",
multiple: true,
maxCount: 10
}),
n: common_vendor.o(handleCancel),
o: common_vendor.o(handleSubmit)
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-39f9b795"]]);
wx.createPage(MiniProgramPage);

View File

@@ -1,7 +0,0 @@
{
"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

@@ -1 +0,0 @@
<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><view class="padding solid radius data-v-39f9b795"><view class="flex data-v-39f9b795"><view class="data-v-39f9b795">整改方案:</view><view class="data-v-39f9b795">{{a}}</view></view><view class="flex margin-top-sm data-v-39f9b795"><view class="data-v-39f9b795">完成情况:</view><view class="data-v-39f9b795">{{b}}</view></view><view class="margin-top-sm data-v-39f9b795"><view class="data-v-39f9b795">整改附件:</view><view wx:if="{{c}}" class="flex margin-top-xs data-v-39f9b795" style="flex-wrap:wrap;gap:10rpx"><image wx:for="{{d}}" wx:for-item="img" wx:key="a" class="data-v-39f9b795" src="{{img.b}}" style="width:136rpx;height:136rpx;border-radius:16rpx" mode="aspectFill" bindtap="{{img.c}}"></image></view><view wx:else class="text-gray text-sm margin-top-xs data-v-39f9b795">暂无附件</view></view></view><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><view class="flex data-v-39f9b795" style="gap:20rpx"><button class="{{['data-v-39f9b795', 'result-btn', e]}}" bindtap="{{f}}">通过</button><button class="{{['data-v-39f9b795', 'result-btn', g]}}" bindtap="{{h}}">不通过</button></view><view class="flex margin-bottom margin-top data-v-39f9b795"><view class="text-gray data-v-39f9b795">验收备注</view></view><up-textarea wx:if="{{j}}" class="data-v-39f9b795" virtualHostClass="data-v-39f9b795" u-i="39f9b795-0" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></up-textarea><view class="flex margin-bottom margin-top data-v-39f9b795"><view class="text-gray data-v-39f9b795">验收图片/视频</view></view><up-upload wx:if="{{m}}" class="data-v-39f9b795" virtualHostClass="data-v-39f9b795" bindafterRead="{{k}}" binddelete="{{l}}" u-i="39f9b795-1" bind:__l="__l" u-p="{{m}}"></up-upload><view class="flex margin-top-xl data-v-39f9b795" style="gap:20rpx"><button class="round flex-sub data-v-39f9b795" bindtap="{{n}}">取消</button><button class="bg-blue round flex-sub data-v-39f9b795" bindtap="{{o}}">提交验收</button></view></view></view>

View File

@@ -1,46 +0,0 @@
/**
* 这里是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;
}
.result-btn.data-v-39f9b795 {
flex: 1;
height: 80rpx;
line-height: 80rpx;
border-radius: 8rpx;
background: #f5f5f5;
color: #666;
font-size: 28rpx;
}
.result-btn.data-v-39f9b795::after {
border: none;
}
.result-btn.active.data-v-39f9b795 {
background: #2667E9;
color: #fff;
}

View File

@@ -1,149 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
if (!Array) {
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
const _easycom_up_datetime_picker2 = common_vendor.resolveComponent("up-datetime-picker");
(_easycom_up_picker2 + _easycom_up_datetime_picker2)();
}
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
const _easycom_up_datetime_picker = () => "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker.js";
if (!Math) {
(_easycom_up_picker + _easycom_up_datetime_picker)();
}
const _sfc_main = {
__name: "assignment",
setup(__props) {
const hazardId = common_vendor.ref("");
const assignId = common_vendor.ref("");
const showUserPicker = common_vendor.ref(false);
const selectedUser = common_vendor.ref("");
const selectedUserId = common_vendor.ref("");
const userColumns = common_vendor.ref([["暂无数据"]]);
const userList = common_vendor.ref([]);
const showDatePicker = common_vendor.ref(false);
const dateValue = common_vendor.ref(Date.now());
const selectedDate = common_vendor.ref("");
const fetchDeptUsers = async () => {
try {
const res = await request_api.getDepartmentPersonUsers();
if (res.code === 0 && res.data) {
const users = [];
res.data.forEach((dept) => {
if (dept.users && dept.users.length > 0) {
dept.users.forEach((user) => {
users.push({
id: String(user.userId),
name: `${user.nickName}${dept.deptName}`
});
});
}
});
userList.value = users;
userColumns.value = [users.map((u) => u.name)];
console.log("整改人员列表:", users);
}
} catch (error) {
console.error("获取部门人员失败:", error);
}
};
const onUserConfirm = (e) => {
console.log("选择的人员:", e);
if (e.value && e.value.length > 0) {
selectedUser.value = e.value[0];
const user = userList.value.find((u) => u.name === e.value[0]);
if (user) {
selectedUserId.value = user.id;
}
}
showUserPicker.value = false;
};
const onDateConfirm = (e) => {
console.log("选择的日期时间:", 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");
const hours = String(date.getHours()).padStart(2, "0");
const minutes = String(date.getMinutes()).padStart(2, "0");
const seconds = String(date.getSeconds()).padStart(2, "0");
selectedDate.value = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
showDatePicker.value = false;
};
const handleCancel = () => {
common_vendor.index.navigateBack();
};
const handleSubmit = async () => {
if (!selectedUserId.value) {
common_vendor.index.showToast({ title: "请选择整改人员", icon: "none" });
return;
}
if (!selectedDate.value) {
common_vendor.index.showToast({ title: "请选择整改期限", icon: "none" });
return;
}
const params = {
hazardId: Number(hazardId.value),
// 隐患ID
assigneeId: Number(selectedUserId.value),
// 被指派人ID
deadline: selectedDate.value,
// 处理期限
assignRemark: ""
// 交办备注(可选)
};
console.log("提交数据:", params);
try {
const res = await request_api.assignHiddenDanger(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;
fetchDeptUsers();
});
return (_ctx, _cache) => {
return {
a: common_vendor.t(selectedUser.value || "请选择整改人员"),
b: common_vendor.n(selectedUser.value ? "" : "text-gray"),
c: common_vendor.o(($event) => showUserPicker.value = true),
d: common_vendor.o(onUserConfirm),
e: common_vendor.o(($event) => showUserPicker.value = false),
f: common_vendor.o(($event) => showUserPicker.value = false),
g: common_vendor.p({
show: showUserPicker.value,
columns: userColumns.value
}),
h: common_vendor.t(selectedDate.value || "请选择整改期限"),
i: common_vendor.n(selectedDate.value ? "" : "text-gray"),
j: common_vendor.o(($event) => showDatePicker.value = true),
k: common_vendor.o(onDateConfirm),
l: common_vendor.o(($event) => showDatePicker.value = false),
m: common_vendor.o(($event) => showDatePicker.value = false),
n: common_vendor.o(($event) => dateValue.value = $event),
o: common_vendor.p({
show: showDatePicker.value,
mode: "datetime",
modelValue: dateValue.value
}),
p: common_vendor.o(handleCancel),
q: common_vendor.o(handleSubmit)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6209e844"]]);
wx.createPage(MiniProgramPage);

View File

@@ -1,7 +0,0 @@
{
"navigationBarTitleText": "隐患交办",
"usingComponents": {
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker",
"up-datetime-picker": "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker"
}
}

View File

@@ -1 +0,0 @@
<view class="{{['padding', 'page', 'data-v-6209e844', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding radius bg-white data-v-6209e844"><view class="flex margin-bottom data-v-6209e844"><view class="text-gray data-v-6209e844">整改人员</view><view class="text-red data-v-6209e844">*</view></view><view class="picker-input data-v-6209e844" bindtap="{{c}}"><text class="{{['data-v-6209e844', b]}}">{{a}}</text></view><up-picker wx:if="{{g}}" class="data-v-6209e844" virtualHostClass="data-v-6209e844" bindconfirm="{{d}}" bindcancel="{{e}}" bindclose="{{f}}" u-i="6209e844-0" bind:__l="__l" u-p="{{g}}"></up-picker><view class="flex margin-bottom margin-top data-v-6209e844"><view class="text-gray data-v-6209e844">整改期限</view><view class="text-red data-v-6209e844">*</view></view><view class="picker-input data-v-6209e844" bindtap="{{j}}"><text class="{{['data-v-6209e844', i]}}">{{h}}</text></view><up-datetime-picker wx:if="{{o}}" class="data-v-6209e844" virtualHostClass="data-v-6209e844" bindconfirm="{{k}}" bindcancel="{{l}}" bindclose="{{m}}" u-i="6209e844-1" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"></up-datetime-picker><view class="btn-group margin-top-xl data-v-6209e844"><button class="btn-cancel data-v-6209e844" bindtap="{{p}}">取消</button><button class="btn-confirm bg-blue data-v-6209e844" bindtap="{{q}}">确认</button></view></view></view>

View File

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

View File

@@ -1,246 +0,0 @@
"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_datetime_picker2 = common_vendor.resolveComponent("up-datetime-picker");
const _easycom_up_select2 = common_vendor.resolveComponent("up-select");
const _easycom_up_upload2 = common_vendor.resolveComponent("up-upload");
(_easycom_up_textarea2 + _easycom_up_input2 + _easycom_up_datetime_picker2 + _easycom_up_select2 + _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_datetime_picker = () => "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker.js";
const _easycom_up_select = () => "../../uni_modules/uview-plus/components/u-select/u-select.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_datetime_picker + _easycom_up_select + _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 value1 = common_vendor.ref(Date.now());
common_vendor.ref("");
const cateId = common_vendor.ref("");
const cateList = common_vendor.ref([]);
const selectedUserName = common_vendor.ref("");
const fetchDeptUsers = async () => {
try {
const res = await request_api.getDepartmentPersonUsers();
if (res.code === 0 && res.data) {
const userList = [];
res.data.forEach((dept) => {
if (dept.users && dept.users.length > 0) {
dept.users.forEach((user) => {
userList.push({
id: String(user.userId),
name: `${user.nickName}${dept.deptName}`
});
});
}
});
cateList.value = userList;
console.log("整改人员列表:", cateList.value);
}
} catch (error) {
console.error("获取部门人员失败:", error);
}
};
fetchDeptUsers();
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.getToken()
},
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;
}
});
const selectItem = (item) => {
console.log("选择的整改人员:", item);
cateId.value = item.id;
selectedUserName.value = item.name;
};
return (_ctx, _cache) => {
return common_vendor.e({
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.o(($event) => value1.value = $event),
j: common_vendor.p({
hasInput: true,
show: show.value,
mode: "date",
modelValue: value1.value
}),
k: selectedUserName.value
}, selectedUserName.value ? {
l: common_vendor.t(selectedUserName.value)
} : {}, {
m: common_vendor.o(selectItem),
n: common_vendor.o(($event) => cateId.value = $event),
o: common_vendor.p({
options: cateList.value,
current: cateId.value
}),
p: common_vendor.o(afterRead),
q: common_vendor.o(deletePic),
r: common_vendor.p({
fileList: fileList1.value,
name: "1",
multiple: true,
maxCount: 10
}),
s: common_vendor.o(handleSubmit)
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f18ba0ce"]]);
wx.createPage(MiniProgramPage);

View File

@@ -1,10 +0,0 @@
{
"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-datetime-picker": "../../uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker",
"up-select": "../../uni_modules/uview-plus/components/u-select/u-select",
"up-upload": "../../uni_modules/uview-plus/components/u-upload/u-upload"
}
}

View File

@@ -1 +0,0 @@
<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><up-datetime-picker wx:if="{{j}}" class="data-v-f18ba0ce" virtualHostClass="data-v-f18ba0ce" u-i="f18ba0ce-4" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></up-datetime-picker><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 wx:if="{{k}}" class="margin-left-sm text-black data-v-f18ba0ce">{{l}}</view></view><up-select wx:if="{{o}}" class="data-v-f18ba0ce" virtualHostClass="data-v-f18ba0ce" bindselect="{{m}}" u-i="f18ba0ce-5" bind:__l="__l" bindupdateCurrent="{{n}}" u-p="{{o}}"></up-select><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="{{r}}" class="data-v-f18ba0ce" virtualHostClass="data-v-f18ba0ce" bindafterRead="{{p}}" binddelete="{{q}}" u-i="f18ba0ce-6" bind:__l="__l" u-p="{{r}}"></up-upload><button class="bg-blue round margin-top-xl data-v-f18ba0ce" bindtap="{{s}}">提交整改</button></view></view>

View File

@@ -1,41 +0,0 @@
/**
* 这里是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

@@ -1,108 +0,0 @@
"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_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 rectifyAttachments = common_vendor.ref([]);
const getFullPath = (filePath) => {
if (!filePath)
return "";
if (filePath.startsWith("http://") || filePath.startsWith("https://")) {
return filePath;
}
return request_request.baseUrl + filePath;
};
const previewRectifyImage = (index) => {
const urls = rectifyAttachments.value.map((item) => getFullPath(item.filePath));
common_vendor.index.previewImage({
current: index,
urls
});
};
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);
if (res.data.assigns && res.data.assigns.length > 0) {
const assign = res.data.assigns[0];
if (assign.rectify && assign.rectify.attachments) {
rectifyAttachments.value = assign.rectify.attachments;
console.log("整改附件:", rectifyAttachments.value);
}
}
} 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: rectifyAttachments.value.length > 0
}, rectifyAttachments.value.length > 0 ? {
b: common_vendor.f(rectifyAttachments.value, (img, idx, i0) => {
return {
a: idx,
b: getFullPath(img.filePath),
c: common_vendor.o(($event) => previewRectifyImage(idx), idx)
};
})
} : {}, {
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

@@ -1,7 +0,0 @@
{
"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

@@ -1 +0,0 @@
<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="margin-top data-v-4d631e68"><view 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" bindtap="{{img.c}}"></image></view></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

@@ -1,53 +0,0 @@
/**
* 这里是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

@@ -1,199 +0,0 @@
"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 userInfo = common_vendor.reactive({
userId: "",
username: "",
nickName: "",
deptId: "",
deptName: ""
});
const getUserInfo = () => {
try {
const storedUserInfo = common_vendor.index.getStorageSync("userInfo");
if (storedUserInfo) {
const info = JSON.parse(storedUserInfo);
userInfo.userId = info.userId || "";
userInfo.username = info.username || "";
userInfo.nickName = info.nickName || "";
userInfo.deptId = info.deptId || "";
userInfo.deptName = info.deptName || "";
}
} catch (e) {
console.error("获取用户信息失败:", e);
}
};
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 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(() => {
getUserInfo();
getCheckPlanLists();
});
const hiddenDangerParams = common_vendor.ref({
pageNum: 1,
pageSize: 10,
name: ""
});
const hiddenDangerData = common_vendor.ref([]);
const getHiddenDangerLists = async () => {
try {
const res = await request_api.getHiddenDangerList(hiddenDangerParams.value);
console.log(res);
if (res.code === 0) {
hiddenDangerData.value = res.data.records;
console.log(hiddenDangerData.value, 1111);
}
} catch (error) {
console.error(error);
} finally {
loading.value = false;
}
};
common_vendor.onLoad(() => {
getHiddenDangerLists();
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.t(userInfo.deptName || "未知部门"),
b: common_vendor.t(userInfo.nickName || userInfo.username || "未登录"),
c: 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)
};
}),
d: checkPlanData.value.length === 0
}, checkPlanData.value.length === 0 ? {} : {}, {
e: 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
};
}),
f: common_assets._imports_0,
g: common_vendor.f(hiddenDangerData.value, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.t(item.source),
c: common_vendor.t(item.address),
d: common_vendor.t(item.levelName),
e: common_vendor.t(item.statusName),
f: common_vendor.t(item.createdAt),
g: item.id,
h: common_vendor.o(($event) => _ctx.HazardList(), item.id)
};
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
wx.createPage(MiniProgramPage);

View File

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

File diff suppressed because one or more lines are too long

View File

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

@@ -1,25 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
__name: "agreement",
setup(__props) {
const articleUrl = common_vendor.ref("");
const webviewStyles = common_vendor.ref({
progress: {
color: "#3D83F6"
// 使用蓝色主题色
}
});
common_vendor.onMounted(() => {
articleUrl.value = "http://www.baidu.com/";
});
return (_ctx, _cache) => {
return {
a: webviewStyles.value,
b: articleUrl.value
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b4896b2f"]]);
wx.createPage(MiniProgramPage);

View File

@@ -1,5 +0,0 @@
{
"navigationBarTitleText": "用户协议",
"navigationStyle": "custom",
"usingComponents": {}
}

View File

@@ -1 +0,0 @@
<view class="{{['data-v-b4896b2f', virtualHostClass]}}" style="{{virtualHostStyle}}"><web-view class="data-v-b4896b2f" webview-styles="{{a}}" src="{{b}}"></web-view></view>

View File

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

View File

@@ -1,152 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_form_item2 = common_vendor.resolveComponent("up-form-item");
const _easycom_up_form2 = common_vendor.resolveComponent("up-form");
const _component_lsl_protocol_popup = common_vendor.resolveComponent("lsl-protocol-popup");
(_easycom_up_input2 + _easycom_up_form_item2 + _easycom_up_form2 + _component_lsl_protocol_popup)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_form_item = () => "../../uni_modules/uview-plus/components/u-form-item/u-form-item.js";
const _easycom_up_form = () => "../../uni_modules/uview-plus/components/u-form/u-form.js";
if (!Math) {
(_easycom_up_input + _easycom_up_form_item + _easycom_up_form)();
}
const _sfc_main = {
__name: "enterprise",
setup(__props) {
const state = common_vendor.reactive({
showSex: false,
isAgreed: false,
// 用户是否同意协议
showProtocolPopup: false,
// 是否显示协议弹窗
model1: {
userInfo: {
name: "uview-plus UI",
sex: ""
}
},
rules: {
"userInfo.name": {
type: "string",
required: true,
message: "请填写姓名",
trigger: ["blur", "change"]
}
}
});
const toggleAgreement = () => {
state.isAgreed = !state.isAgreed;
};
const showProtocol = (type) => {
if (type === "user") {
common_vendor.index.navigateTo({
url: "/pages/login/agreement"
});
} else if (type === "privacy") {
state.showProtocolPopup = true;
}
};
const handleRegister = () => {
if (!state.isAgreed) {
common_vendor.index.showToast({
title: "请先阅读并同意用户协议和隐私政策",
icon: "none",
duration: 2e3
});
return;
}
console.log("开始注册流程");
};
const handleAgreeProtocol = () => {
state.isAgreed = true;
state.showProtocolPopup = false;
common_vendor.index.showToast({
title: "已同意协议条款",
icon: "success",
duration: 1500
});
};
const closeProtocolPopup = () => {
state.showProtocolPopup = false;
};
const other = [
[
{
tit: "《服务协议》",
type: "page",
// doc自行下载打开文档 page跳转页面
content: "/pages/login/agreement"
// 文档地址/页面跳转地址
},
{
tit: "《隐私政策》",
type: "page",
// doc自行下载打开文档 page跳转页面
content: "/pages/login/privacy"
// 文档地址/页面跳转地址
}
]
];
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
border: "none",
placeholder: "请填写营业执照上的企业名称",
inputAlign: "right"
}),
b: common_vendor.sr("item1", "280ea37d-1,280ea37d-0"),
c: common_vendor.p({
required: true,
label: "企业名称",
prop: "userInfo.name",
borderBottom: true,
["label-width"]: "90"
}),
d: common_vendor.p({
border: "none",
placeholder: "请输入管理员姓名",
inputAlign: "right"
}),
e: common_vendor.sr("item1", "280ea37d-3,280ea37d-0"),
f: common_vendor.p({
required: true,
label: "管理员姓名",
prop: "userInfo.name",
borderBottom: true,
["label-width"]: "120"
}),
g: common_vendor.sr("form1", "280ea37d-0"),
h: common_vendor.p({
labelPosition: "left",
model: state.model1,
rules: state.rules
}),
i: common_vendor.n(state.isAgreed ? "bg-blue" : "bg-gray"),
j: !state.isAgreed,
k: common_vendor.o(handleRegister),
l: state.isAgreed
}, state.isAgreed ? {} : {}, {
m: state.isAgreed ? 1 : "",
n: common_vendor.o(($event) => showProtocol("user")),
o: common_vendor.o(($event) => showProtocol("privacy")),
p: common_vendor.o(toggleAgreement),
q: common_vendor.o(handleAgreeProtocol),
r: common_vendor.o(closeProtocolPopup),
s: common_vendor.p({
title: "用户协议和隐私政策",
predesc: "为了更好地保护您的个人信息和合法权益,在使用我们的服务前,请您务必仔细阅读并充分理解以下协议条款。",
subdesc: '请您详细阅读各条款内容,特别是免除或限制责任的条款。如您同意以下协议条款,请点击"同意并继续"开始使用我们的服务。',
color: "#007AFF",
onNeed: state.showProtocolPopup,
other,
open_type: "getPhoneNumber|agreePrivacyAuthorization"
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-280ea37d"]]);
wx.createPage(MiniProgramPage);

View File

@@ -1,8 +0,0 @@
{
"navigationBarTitleText": "注册新企业",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-form-item": "../../uni_modules/uview-plus/components/u-form-item/u-form-item",
"up-form": "../../uni_modules/uview-plus/components/u-form/u-form"
}
}

View File

@@ -1 +0,0 @@
<view class="{{['data-v-280ea37d', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="padding solid radius margin data-v-280ea37d"><up-form wx:if="{{h}}" class="r data-v-280ea37d" virtualHostClass="r data-v-280ea37d" u-s="{{['d']}}" u-r="form1" u-i="280ea37d-0" bind:__l="__l" u-p="{{h}}"><up-form-item wx:if="{{c}}" class="r data-v-280ea37d" virtualHostClass="r data-v-280ea37d" u-s="{{['d']}}" u-r="item1" u-i="280ea37d-1,280ea37d-0" bind:__l="__l" u-p="{{c}}"><up-input wx:if="{{a}}" class="data-v-280ea37d" virtualHostClass="data-v-280ea37d" u-i="280ea37d-2,280ea37d-1" bind:__l="__l" u-p="{{a}}"></up-input></up-form-item><up-form-item wx:if="{{f}}" class="r data-v-280ea37d" virtualHostClass="r data-v-280ea37d" u-s="{{['d']}}" u-r="item1" u-i="280ea37d-3,280ea37d-0" bind:__l="__l" u-p="{{f}}"><up-input wx:if="{{d}}" class="data-v-280ea37d" virtualHostClass="data-v-280ea37d" u-i="280ea37d-4,280ea37d-3" bind:__l="__l" u-p="{{d}}"></up-input></up-form-item></up-form><view class="margin-top-xl data-v-280ea37d"><button class="{{['round', 'data-v-280ea37d', i]}}" disabled="{{j}}" bindtap="{{k}}"> 申请注册 </button></view><view class="protocol-agreement data-v-280ea37d"><view class="protocol-checkbox data-v-280ea37d" bindtap="{{p}}"><view class="{{['checkbox', 'data-v-280ea37d', m && 'checked']}}"><text wx:if="{{l}}" class="checkmark data-v-280ea37d">✓</text></view><text class="protocol-text data-v-280ea37d"> 我已阅读并接受 <text class="protocol-link data-v-280ea37d" catchtap="{{n}}">《服务协议》</text> 和 <text class="protocol-link data-v-280ea37d" catchtap="{{o}}">《隐私政策》</text></text></view></view><view class="container data-v-280ea37d"><lsl-protocol-popup wx:if="{{s}}" class="data-v-280ea37d" virtualHostClass="data-v-280ea37d" bindagree="{{q}}" bindclose="{{r}}" u-i="280ea37d-5" bind:__l="__l" u-p="{{s}}"></lsl-protocol-popup></view></view></view>

View File

@@ -1,59 +0,0 @@
/* 协议同意区域 */
.protocol-agreement.data-v-280ea37d {
padding: 30rpx 0;
}
.protocol-checkbox.data-v-280ea37d {
display: flex;
align-items: flex-start;
gap: 15rpx;
}
.checkbox.data-v-280ea37d {
width: 32rpx;
height: 32rpx;
border: 2rpx solid #ddd;
border-radius: 6rpx;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: all 0.3s ease;
margin-top: 2rpx;
}
.checkbox.checked.data-v-280ea37d {
background-color: #007AFF;
border-color: #007AFF;
}
.checkmark.data-v-280ea37d {
color: white;
font-size: 20rpx;
font-weight: bold;
}
.protocol-text.data-v-280ea37d {
font-size: 28rpx;
color: #666;
line-height: 1.6;
flex: 1;
}
.protocol-link.data-v-280ea37d {
color: #007AFF;
text-decoration: underline;
}
/* 注册按钮样式 */
.bg-gray.data-v-280ea37d {
background-color: #ccc !important;
color: #999 !important;
}
.bg-blue.data-v-280ea37d {
background-color: #007AFF !important;
color: white !important;
}
button[disabled].data-v-280ea37d {
opacity: 0.6;
cursor: not-allowed;
}
button.data-v-280ea37d:not([disabled]):active {
transform: scale(0.98);
transition: transform 0.1s ease;
}

View File

@@ -1,168 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
if (!Array) {
const _component_cu_custom = common_vendor.resolveComponent("cu-custom");
_component_cu_custom();
}
const _sfc_main = {
__name: "forget",
setup(__props) {
const phone = common_vendor.ref("");
const password = common_vendor.ref("");
const code = common_vendor.ref("");
const second = common_vendor.ref(0);
const showPassword = common_vendor.ref(false);
let timer = null;
const codeText = common_vendor.computed(() => {
if (second.value === 0) {
return "获取验证码";
} else {
const secondStr = second.value < 10 ? `0${second.value}` : second.value;
return `重新获取${secondStr}`;
}
});
const togglePassword = () => {
showPassword.value = !showPassword.value;
};
const getCode = () => {
if (phone.value.length !== 11) {
common_vendor.index.showToast({
icon: "none",
title: "手机号不正确"
});
return;
}
if (second.value > 0) {
return;
}
second.value = 60;
startCountdown();
common_vendor.index.request({
url: "http://example.com/api/code",
data: {
phone: phone.value,
type: "forget"
},
method: "POST",
dataType: "json",
success: (res) => {
if (res.data.code != 200) {
common_vendor.index.showToast({
title: res.data.msg || "获取验证码失败",
icon: "none"
});
second.value = 0;
clearCountdown();
} else {
common_vendor.index.showToast({
title: res.data.msg || "验证码已发送"
});
}
},
fail: () => {
common_vendor.index.showToast({
title: "网络请求失败",
icon: "none"
});
second.value = 0;
clearCountdown();
}
});
};
const startCountdown = () => {
clearCountdown();
timer = setInterval(() => {
second.value--;
if (second.value === 0) {
clearCountdown();
}
}, 1e3);
};
const clearCountdown = () => {
if (timer) {
clearInterval(timer);
timer = null;
}
};
const handleReset = () => {
if (phone.value.length !== 11) {
common_vendor.index.showToast({
icon: "none",
title: "手机号不正确"
});
return;
}
if (password.value.length < 6) {
common_vendor.index.showToast({
icon: "none",
title: "密码不正确"
});
return;
}
if (code.value.length !== 4) {
common_vendor.index.showToast({
icon: "none",
title: "验证码不正确"
});
return;
}
common_vendor.index.request({
url: "http://example.com/api/forget",
data: {
phone: phone.value,
password: password.value,
code: code.value
},
method: "POST",
dataType: "json",
success: (res) => {
if (res.data.code != 200) {
common_vendor.index.showToast({
title: res.data.msg || "修改密码失败",
icon: "none"
});
} else {
common_vendor.index.showToast({
title: res.data.msg || "修改密码成功"
});
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1500);
}
},
fail: () => {
common_vendor.index.showToast({
title: "网络请求失败",
icon: "none"
});
}
});
};
common_vendor.onUnmounted(() => {
clearCountdown();
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
isBack: true
}),
b: common_assets._imports_0$4,
c: phone.value,
d: common_vendor.o(($event) => phone.value = $event.detail.value),
e: common_assets._imports_1$2,
f: !showPassword.value,
g: password.value,
h: common_vendor.o(($event) => password.value = $event.detail.value),
i: showPassword.value ? 1 : "",
j: common_vendor.o(togglePassword),
k: common_vendor.t(codeText.value),
l: second.value > 0 ? 1 : "",
m: common_vendor.o(getCode),
n: common_vendor.o(handleReset)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-79044ba6"]]);
wx.createPage(MiniProgramPage);

View File

@@ -1,5 +0,0 @@
{
"navigationBarTitleText": "忘记密码",
"navigationStyle": "custom",
"usingComponents": {}
}

View File

@@ -1 +0,0 @@
<view class="{{['content', 'data-v-79044ba6', virtualHostClass]}}" style="{{virtualHostStyle}}"><cu-custom wx:if="{{a}}" class="data-v-79044ba6" virtualHostClass="data-v-79044ba6" u-s="{{['d']}}" u-i="79044ba6-0" bind:__l="__l" u-p="{{a}}"><view class="data-v-79044ba6" slot="backText">返回</view><view class="data-v-79044ba6" slot="content">忘记密码</view></cu-custom><view class="list data-v-79044ba6"><view class="tishi data-v-79044ba6">若您忘记了密码,可在此重新设置新密码。</view><view class="list-call data-v-79044ba6"><image class="img data-v-79044ba6" src="{{b}}"></image><input class="sl-input data-v-79044ba6" type="number" maxlength="11" placeholder="请输入手机号" value="{{c}}" bindinput="{{d}}"/></view><view class="list-call data-v-79044ba6"><image class="img data-v-79044ba6" src="{{e}}"></image><input class="sl-input data-v-79044ba6" type="text" maxlength="32" placeholder="请输入新密码" password="{{f}}" value="{{g}}" bindinput="{{h}}"/><text class="{{['eye-icon', 'data-v-79044ba6', i && 'eye-active']}}" bindtap="{{j}}"></text></view><view class="list-call data-v-79044ba6"><view class="{{['yzm', 'data-v-79044ba6', l && 'yzms']}}" bindtap="{{m}}">{{k}}</view></view></view><view class="padding-lr data-v-79044ba6"><view class="button-login data-v-79044ba6" hover-class="button-hover" bindtap="{{n}}"><text class="data-v-79044ba6">修改密码</text></view></view></view>

View File

@@ -1,116 +0,0 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
page.data-v-79044ba6 {
background-color: #FFFFFF;
}
.content.data-v-79044ba6 {
display: flex;
flex-direction: column;
justify-content: center;
background-color: #FFFFFF;
}
.tishi.data-v-79044ba6 {
color: #999999;
font-size: 28rpx;
line-height: 50rpx;
margin-bottom: 50rpx;
}
.list.data-v-79044ba6 {
display: flex;
flex-direction: column;
padding-top: 50rpx;
padding-left: 70rpx;
padding-right: 70rpx;
}
.list .list-call.data-v-79044ba6 {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
height: 100rpx;
color: #333333;
background: #F5F7FB;
border-radius: 16rpx;
border: 2rpx solid #F5F7FB;
margin-top: 30rpx;
padding: 0 30rpx;
}
.list .list-call .img.data-v-79044ba6 {
width: 30rpx;
height: 36rpx;
}
.list .list-call .sl-input.data-v-79044ba6 {
flex: 1;
text-align: left;
font-size: 32rpx;
margin-left: 16rpx;
}
.list .list-call .eye-icon.data-v-79044ba6 {
font-size: 36rpx;
color: #999;
}
.list .list-call .eye-icon.data-v-79044ba6::before {
content: "\e69c";
/* 闭眼图标的unicode */
}
.list .list-call .eye-icon.eye-active.data-v-79044ba6 {
color: #3D83F6;
}
.list .list-call .eye-icon.eye-active.data-v-79044ba6::before {
content: "\e69d";
/* 睁眼图标的unicode */
}
.list .list-call .yzm.data-v-79044ba6 {
width: 200rpx;
height: 60rpx;
text-align: center;
font-size: 30rpx;
color: #3D83F6;
}
.list .list-call .yzm.yzms.data-v-79044ba6 {
color: #999999;
}
.padding-lr.data-v-79044ba6 {
padding-left: 70rpx;
padding-right: 70rpx;
}
.button-login.data-v-79044ba6 {
color: #FFFFFF;
font-size: 34rpx;
width: 100%;
height: 100rpx;
background: linear-gradient(90deg, #3E95F1 0%, #4269F5 100%);
border-radius: 50rpx;
line-height: 100rpx;
text-align: center;
margin-left: auto;
margin-right: auto;
margin-top: 130rpx;
}
.button-hover.data-v-79044ba6 {
opacity: 0.8;
}

View File

@@ -1,99 +0,0 @@
"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: "login",
setup(__props) {
const username = common_vendor.ref("");
const password = common_vendor.ref("");
const showPassword = common_vendor.ref(true);
const changePassword = () => {
showPassword.value = !showPassword.value;
};
const handleLogin = async () => {
console.log("点击登录按钮");
console.log("用户名:", username.value);
console.log("密码:", password.value);
if (!username.value) {
common_vendor.index.showToast({
icon: "none",
title: "请输入用户名"
});
return;
}
if (!password.value) {
common_vendor.index.showToast({
icon: "none",
title: "请输入密码"
});
return;
}
try {
console.log("开始调用登录接口...");
const res = await request_api.login({
username: username.value,
password: password.value
});
console.log("登录接口返回:", res);
if (res.code === 0) {
if (res.data.token) {
common_vendor.index.setStorageSync("token", res.data.token);
}
const userInfo = {
userId: res.data.userId,
username: res.data.username,
nickName: res.data.nickName,
deptId: res.data.deptId,
deptName: res.data.deptName
};
common_vendor.index.setStorageSync("userInfo", JSON.stringify(userInfo));
common_vendor.index.showToast({
title: "登录成功",
icon: "success"
});
setTimeout(() => {
common_vendor.index.reLaunch({
url: "/pages/index/index"
});
}, 1500);
} else {
common_vendor.index.showToast({
title: res.msg || "登录失败",
icon: "none"
});
}
} catch (error) {
console.error("登录失败:", error);
common_vendor.index.showToast({
title: "网络请求失败",
icon: "none"
});
}
};
const goToReport = () => {
common_vendor.index.navigateTo({
url: "/subpackages/suishoupai/pages/index/index"
});
};
return (_ctx, _cache) => {
return {
a: common_assets._imports_0$3,
b: common_assets._imports_0$4,
c: username.value,
d: common_vendor.o(($event) => username.value = $event.detail.value),
e: common_assets._imports_1$2,
f: showPassword.value,
g: password.value,
h: common_vendor.o(($event) => password.value = $event.detail.value),
i: showPassword.value ? "/static/index/cl.png" : "/static/index/op.png",
j: common_vendor.o(changePassword),
k: common_vendor.o(handleLogin),
l: common_assets._imports_3$1,
m: common_vendor.o(goToReport)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e4e4508d"]]);
wx.createPage(MiniProgramPage);

View File

@@ -1,5 +0,0 @@
{
"navigationBarTitleText": "登录页面",
"navigationStyle": "custom",
"usingComponents": {}
}

View File

@@ -1 +0,0 @@
<view class="{{['content', 'data-v-e4e4508d', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="header data-v-e4e4508d"><image src="{{a}}" class="bg-image data-v-e4e4508d"></image><view class="padding login data-v-e4e4508d"><view class="text-xl text-black text-bold data-v-e4e4508d">账号登录</view><view class="padding-top data-v-e4e4508d">欢迎登录三查一曝光平台</view></view></view><view class="list data-v-e4e4508d"><view class="list-call data-v-e4e4508d"><image class="img data-v-e4e4508d" src="{{b}}"></image><input class="sl-input data-v-e4e4508d" type="text" placeholder="请输入用户名" value="{{c}}" bindinput="{{d}}"/></view><view class="list-call data-v-e4e4508d"><image class="img data-v-e4e4508d" src="{{e}}"></image><input class="sl-input data-v-e4e4508d" type="text" maxlength="32" placeholder="请输入密码" password="{{f}}" value="{{g}}" bindinput="{{h}}"/><image class="eye-img data-v-e4e4508d" src="{{i}}" bindtap="{{j}}"></image></view><view class="agreement data-v-e4e4508d"><navigator url="reg" open-type="navigate" class="link data-v-e4e4508d">注册成员账号</navigator><navigator url="forget" open-type="navigate" class="link data-v-e4e4508d">忘记密码?</navigator></view></view><view class="padding-lr data-v-e4e4508d"><button class="button-login data-v-e4e4508d" hover-class="button-hover" bindtap="{{k}}"> 登录 </button><view class="button-report margin-top data-v-e4e4508d" hover-class="button-hover" bindtap="{{m}}"><image src="{{l}}" class="icon-image data-v-e4e4508d"></image><text class="data-v-e4e4508d">随手拍举报</text></view></view></view>

View File

@@ -1,182 +0,0 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
page.data-v-e4e4508d {
background-color: #FFFFFF;
}
.content.data-v-e4e4508d {
display: flex;
flex-direction: column;
justify-content: center;
background-color: #FFFFFF;
}
.header.data-v-e4e4508d {
width: 100%;
position: relative;
margin-bottom: 0;
}
.header .bg-image.data-v-e4e4508d {
width: 100%;
vertical-align: bottom;
}
.login.data-v-e4e4508d {
position: absolute;
top: 50%;
color: #666666;
font-size: 28rpx;
}
.list.data-v-e4e4508d {
display: flex;
flex-direction: column;
padding-top: 50rpx;
padding-left: 70rpx;
padding-right: 70rpx;
background-color: #FFFFFF;
margin-top: -2rpx;
/* 消除可能的间隙 */
}
.list .list-call.data-v-e4e4508d {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
height: 100rpx;
color: #333333;
background: #F5F7FB;
border-radius: 16rpx;
border: 2rpx solid #F5F7FB;
margin-top: 30rpx;
padding: 0 30rpx;
}
.list .list-call .img.data-v-e4e4508d {
width: 30rpx;
height: 36rpx;
}
.list .list-call .sl-input.data-v-e4e4508d {
flex: 1;
text-align: left;
font-size: 32rpx;
margin-left: 16rpx;
}
.list .list-call .eye-img.data-v-e4e4508d {
width: 40rpx;
height: 40rpx;
}
.agreement.data-v-e4e4508d {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
font-size: 30rpx;
margin-top: 30rpx;
color: #3D83F6;
text-align: center;
height: 40rpx;
line-height: 40rpx;
}
.agreement .link.data-v-e4e4508d {
font-size: 30rpx;
color: #3D83F6;
}
.agreement .link.data-v-e4e4508d:active {
opacity: 0.8;
}
.padding-lr.data-v-e4e4508d {
padding-left: 70rpx;
padding-right: 70rpx;
}
.button-login.data-v-e4e4508d {
color: #FFFFFF;
font-size: 34rpx;
width: 100%;
height: 100rpx;
background: linear-gradient(90deg, #3E95F1 0%, #4269F5 100%);
border-radius: 50rpx;
line-height: 100rpx;
text-align: center;
margin-left: auto;
margin-right: auto;
margin-top: 130rpx;
border: none;
}
.button-login.data-v-e4e4508d::after {
border: none;
}
.button-report.data-v-e4e4508d {
color: #FFFFFF;
font-size: 34rpx;
width: 100%;
height: 100rpx;
background: linear-gradient(90deg, #FF7878 0%, #F2505B 100%);
border-radius: 50rpx;
line-height: 100rpx;
text-align: center;
margin-left: auto;
margin-right: auto;
display: flex;
align-items: center;
justify-content: center;
}
.margin-top.data-v-e4e4508d {
margin-top: 30rpx;
}
.button-hover.data-v-e4e4508d {
opacity: 0.8;
}
.text-blue.data-v-e4e4508d {
color: #3D83F6;
font-size: 28rpx;
}
.icon-image.data-v-e4e4508d {
width: 36rpx;
height: 36rpx;
margin-right: 8rpx;
}
.text-xl.data-v-e4e4508d {
font-size: 36rpx;
}
.text-black.data-v-e4e4508d {
color: #000000;
}
.text-bold.data-v-e4e4508d {
font-weight: bold;
}
.padding.data-v-e4e4508d {
padding: 30rpx;
}
.padding-top.data-v-e4e4508d {
padding-top: 15rpx;
}
.protocol-box.data-v-e4e4508d {
display: flex;
justify-content: center;
margin-top: 40rpx;
}
.protocol-box .protocol-link.data-v-e4e4508d {
font-size: 28rpx;
color: #3D83F6;
text-decoration: underline;
}

View File

@@ -1,201 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _component_cu_custom = common_vendor.resolveComponent("cu-custom");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_form_item2 = common_vendor.resolveComponent("up-form-item");
const _easycom_up_form2 = common_vendor.resolveComponent("up-form");
(_component_cu_custom + _easycom_up_input2 + _easycom_up_form_item2 + _easycom_up_form2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_form_item = () => "../../uni_modules/uview-plus/components/u-form-item/u-form-item.js";
const _easycom_up_form = () => "../../uni_modules/uview-plus/components/u-form/u-form.js";
if (!Math) {
(_easycom_up_input + _easycom_up_form_item + _easycom_up_form)();
}
const _sfc_main = {
__name: "reg",
setup(__props) {
const phone = common_vendor.ref("");
const password = common_vendor.ref("");
const code = common_vendor.ref("");
const invitation = common_vendor.ref("");
const second = common_vendor.ref(0);
common_vendor.ref(false);
const state = common_vendor.reactive({
showSex: false,
model1: {
userInfo: {
name: "uview-plus UI",
sex: ""
}
},
rules: {
"userInfo.name": {
type: "string",
required: true,
message: "请填写姓名",
trigger: ["blur", "change"]
}
}
});
common_vendor.computed(() => {
if (second.value === 0) {
return "获取验证码";
} else {
const secondStr = second.value < 10 ? `0${second.value}` : second.value;
return `重新获取${secondStr}`;
}
});
const handleRegister = () => {
if (phone.value.length !== 11) {
common_vendor.index.showToast({
icon: "none",
title: "手机号不正确"
});
return;
}
if (password.value.length < 6) {
common_vendor.index.showToast({
icon: "none",
title: "密码不正确"
});
return;
}
if (code.value.length !== 4) {
common_vendor.index.showToast({
icon: "none",
title: "验证码不正确"
});
return;
}
common_vendor.index.request({
url: "http://example.com/api/register",
data: {
phone: phone.value,
password: password.value,
code: code.value,
invitation: invitation.value
},
method: "POST",
dataType: "json",
success: (res) => {
if (res.data.code != 200) {
common_vendor.index.showToast({
title: res.data.msg || "注册失败",
icon: "none"
});
} else {
common_vendor.index.showToast({
title: res.data.msg || "注册成功"
});
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1500);
}
},
fail: () => {
common_vendor.index.showToast({
title: "网络请求失败",
icon: "none"
});
}
});
};
common_vendor.onUnmounted(() => {
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
isBack: true
}),
b: common_vendor.p({
border: "none",
placeholder: "请输入企业名称",
inputAlign: "right"
}),
c: common_vendor.sr("item1", "561d431d-2,561d431d-1"),
d: common_vendor.p({
label: "加入企业",
prop: "userInfo.name",
borderBottom: true,
["label-width"]: "90"
}),
e: common_vendor.p({
border: "none",
placeholder: "请输入",
inputAlign: "right"
}),
f: common_vendor.sr("item1", "561d431d-4,561d431d-1"),
g: common_vendor.p({
required: true,
label: "真实姓名",
prop: "userInfo.name",
borderBottom: true,
["label-width"]: "90"
}),
h: common_vendor.p({
border: "none",
placeholder: "选择",
inputAlign: "right"
}),
i: common_vendor.sr("item1", "561d431d-6,561d431d-1"),
j: common_vendor.p({
required: true,
label: "选择分组/部门",
prop: "userInfo.name",
borderBottom: true,
["label-width"]: "120"
}),
k: common_vendor.p({
border: "none",
placeholder: "请输入手机号码",
inputAlign: "right"
}),
l: common_vendor.sr("item1", "561d431d-8,561d431d-1"),
m: common_vendor.p({
required: true,
label: "手机号码",
prop: "userInfo.name",
borderBottom: true,
["label-width"]: "90"
}),
n: common_vendor.p({
border: "none",
placeholder: "请输入密码",
inputAlign: "right"
}),
o: common_vendor.sr("item1", "561d431d-10,561d431d-1"),
p: common_vendor.p({
required: true,
label: "密码",
prop: "userInfo.name",
borderBottom: true,
["label-width"]: "90"
}),
q: common_vendor.p({
border: "none",
placeholder: "请输入密码",
inputAlign: "right"
}),
r: common_vendor.sr("item1", "561d431d-12,561d431d-1"),
s: common_vendor.p({
required: true,
label: "确认密码",
prop: "userInfo.name",
borderBottom: true,
["label-width"]: "90"
}),
t: common_vendor.sr("form1", "561d431d-1"),
v: common_vendor.p({
labelPosition: "left",
model: state.model1,
rules: state.rules
}),
w: common_vendor.o(handleRegister)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-561d431d"]]);
wx.createPage(MiniProgramPage);

View File

@@ -1,9 +0,0 @@
{
"navigationBarTitleText": "注册账号",
"navigationStyle": "custom",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-form-item": "../../uni_modules/uview-plus/components/u-form-item/u-form-item",
"up-form": "../../uni_modules/uview-plus/components/u-form/u-form"
}
}

View File

@@ -1 +0,0 @@
<view class="{{['content', 'data-v-561d431d', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="header data-v-561d431d"><cu-custom wx:if="{{a}}" class="data-v-561d431d" virtualHostClass="data-v-561d431d" u-s="{{['d']}}" u-i="561d431d-0" bind:__l="__l" u-p="{{a}}"><view class="data-v-561d431d" slot="backText">返回</view><view class="data-v-561d431d" slot="content">注册新成员账号</view></cu-custom></view><view class="padding solid radius margin data-v-561d431d"><up-form wx:if="{{v}}" class="r data-v-561d431d" virtualHostClass="r data-v-561d431d" u-s="{{['d']}}" u-r="form1" u-i="561d431d-1" bind:__l="__l" u-p="{{v}}"><up-form-item wx:if="{{d}}" class="r data-v-561d431d" virtualHostClass="r data-v-561d431d" u-s="{{['d']}}" u-r="item1" u-i="561d431d-2,561d431d-1" bind:__l="__l" u-p="{{d}}"><up-input wx:if="{{b}}" class="data-v-561d431d" virtualHostClass="data-v-561d431d" u-i="561d431d-3,561d431d-2" bind:__l="__l" u-p="{{b}}"></up-input></up-form-item><up-form-item wx:if="{{g}}" class="r data-v-561d431d" virtualHostClass="r data-v-561d431d" u-s="{{['d']}}" u-r="item1" u-i="561d431d-4,561d431d-1" bind:__l="__l" u-p="{{g}}"><up-input wx:if="{{e}}" class="data-v-561d431d" virtualHostClass="data-v-561d431d" u-i="561d431d-5,561d431d-4" bind:__l="__l" u-p="{{e}}"></up-input></up-form-item><up-form-item wx:if="{{j}}" class="r data-v-561d431d" virtualHostClass="r data-v-561d431d" u-s="{{['d']}}" u-r="item1" u-i="561d431d-6,561d431d-1" bind:__l="__l" u-p="{{j}}"><up-input wx:if="{{h}}" class="data-v-561d431d" virtualHostClass="data-v-561d431d" u-i="561d431d-7,561d431d-6" bind:__l="__l" u-p="{{h}}"></up-input></up-form-item><up-form-item wx:if="{{m}}" class="r data-v-561d431d" virtualHostClass="r data-v-561d431d" u-s="{{['d']}}" u-r="item1" u-i="561d431d-8,561d431d-1" bind:__l="__l" u-p="{{m}}"><up-input wx:if="{{k}}" class="data-v-561d431d" virtualHostClass="data-v-561d431d" u-i="561d431d-9,561d431d-8" bind:__l="__l" u-p="{{k}}"></up-input></up-form-item><up-form-item wx:if="{{p}}" class="r data-v-561d431d" virtualHostClass="r data-v-561d431d" u-s="{{['d']}}" u-r="item1" u-i="561d431d-10,561d431d-1" bind:__l="__l" u-p="{{p}}"><up-input wx:if="{{n}}" class="data-v-561d431d" virtualHostClass="data-v-561d431d" u-i="561d431d-11,561d431d-10" bind:__l="__l" u-p="{{n}}"></up-input></up-form-item><up-form-item wx:if="{{s}}" class="r data-v-561d431d" virtualHostClass="r data-v-561d431d" u-s="{{['d']}}" u-r="item1" u-i="561d431d-12,561d431d-1" bind:__l="__l" u-p="{{s}}"><up-input wx:if="{{q}}" class="data-v-561d431d" virtualHostClass="data-v-561d431d" u-i="561d431d-13,561d431d-12" bind:__l="__l" u-p="{{q}}"></up-input></up-form-item></up-form><view class=" data-v-561d431d"><view class="button-login data-v-561d431d" hover-class="button-hover" bindtap="{{w}}"><text class="data-v-561d431d">申请加入</text></view></view></view></view>

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