优化后,再次提交

This commit is contained in:
王利强
2026-05-03 09:08:56 +08:00
parent 721ef0ad54
commit 805747d1d9
1243 changed files with 46213 additions and 221 deletions

File diff suppressed because one or more lines are too long

View File

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

@@ -0,0 +1 @@
<view class="{{['padding', 'page', 'data-v-838320dc', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden || false}}" id="{{R}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="h" class="padding bg-white radius margin-bottom data-v-838320dc"><view class="flex justify-between margin-bottom data-v-838320dc"><view class="text-bold text-black data-v-838320dc">{{item.a}}</view><view class="data-v-838320dc">{{item.b}}</view></view><view class="flex margin-bottom data-v-838320dc"><view class="text-gray data-v-838320dc">隐患日期:</view><view class="text-black data-v-838320dc">{{item.c}}</view></view><view class="flex margin-bottom data-v-838320dc"><view class="text-gray data-v-838320dc">责任单位:</view><view class="text-black data-v-838320dc">{{item.d}}</view></view><view class="flex margin-bottom data-v-838320dc"><view class="text-gray data-v-838320dc">判定人员:</view><view class="text-black data-v-838320dc">{{item.e}}</view></view><view class="flex margin-bottom data-v-838320dc"><view class="text-gray data-v-838320dc">创建时间:</view><view class="text-black data-v-838320dc">{{item.f}}</view></view><view class="flex justify-between data-v-838320dc"><view class="data-v-838320dc"></view><view class="data-v-838320dc"><button class="bg-blue round cu-btn lg data-v-838320dc" bindtap="{{item.g}}">查看详情</button></view></view></view><button class="cuIcon-add bg-blue round margin-top data-v-838320dc" bindtap="{{b}}">新增</button><u-popup wx:if="{{Q}}" class="data-v-838320dc" virtualHostClass="data-v-838320dc" u-s="{{['d']}}" bindclose="{{P}}" u-i="838320dc-0" bind:__l="__l" u-p="{{Q}}"><view class="popup-content data-v-838320dc"><view class="popup-header data-v-838320dc"><view class="popup-title text-bold data-v-838320dc">新增销号申请</view><view class="popup-close data-v-838320dc" bindtap="{{c}}">×</view></view><scroll-view class="popup-body data-v-838320dc" scroll-y style="{{'height:' + '60vh'}}"><view class="flex margin-bottom data-v-838320dc"><view class="data-v-838320dc">隐患</view><view class="text-red data-v-838320dc">*</view></view><view class="picker-input data-v-838320dc" bindtap="{{f}}"><text class="{{['data-v-838320dc', e]}}">{{d}}</text></view><up-picker wx:if="{{j}}" class="data-v-838320dc" virtualHostClass="data-v-838320dc" bindconfirm="{{g}}" bindcancel="{{h}}" bindclose="{{i}}" u-i="838320dc-1,838320dc-0" bind:__l="__l" u-p="{{j}}"></up-picker><view class="flex margin-bottom margin-top data-v-838320dc"><view class="data-v-838320dc">整改时限</view></view><view class="picker-input data-v-838320dc" bindtap="{{m}}"><text class="{{['data-v-838320dc', l]}}">{{k}}</text></view><up-datetime-picker wx:if="{{r}}" class="data-v-838320dc" virtualHostClass="data-v-838320dc" bindconfirm="{{n}}" bindcancel="{{o}}" bindclose="{{p}}" u-i="838320dc-2,838320dc-0" bind:__l="__l" bindupdateModelValue="{{q}}" u-p="{{r}}"></up-datetime-picker><view class="margin-bottom margin-top data-v-838320dc">隐患治理责任单位</view><view class="picker-input data-v-838320dc" bindtap="{{v}}"><text class="{{['data-v-838320dc', t]}}">{{s}}</text></view><up-picker wx:if="{{z}}" class="data-v-838320dc" virtualHostClass="data-v-838320dc" bindconfirm="{{w}}" bindcancel="{{x}}" bindclose="{{y}}" u-i="838320dc-3,838320dc-0" bind:__l="__l" u-p="{{z}}"></up-picker><view class="margin-bottom margin-top data-v-838320dc">主要负责人</view><up-input wx:if="{{B}}" class="data-v-838320dc" virtualHostClass="data-v-838320dc" u-i="838320dc-4,838320dc-0" bind:__l="__l" bindupdateModelValue="{{A}}" u-p="{{B}}"></up-input><view class="ai-btn-wrapper margin-top margin-bottom data-v-838320dc"><button class="ai-analyze-btn data-v-838320dc" loading="{{E}}" disabled="{{F}}" bindtap="{{G}}"><text wx:if="{{C}}" class="cuIcon-magic ai-btn-icon data-v-838320dc"></text> {{D}}</button></view><view class="margin-bottom margin-top data-v-838320dc">主要治理内容</view><up-textarea wx:if="{{I}}" class="data-v-838320dc" virtualHostClass="data-v-838320dc" u-i="838320dc-5,838320dc-0" bind:__l="__l" bindupdateModelValue="{{H}}" u-p="{{I}}"></up-textarea><view class="margin-bottom margin-top data-v-838320dc">隐患治理完成内容</view><up-textarea wx:if="{{K}}" class="data-v-838320dc" virtualHostClass="data-v-838320dc" u-i="838320dc-6,838320dc-0" bind:__l="__l" bindupdateModelValue="{{J}}" u-p="{{K}}"></up-textarea><view class="margin-bottom margin-top data-v-838320dc">隐患治理责任单位自行验收的情况</view><up-textarea wx:if="{{M}}" class="data-v-838320dc" virtualHostClass="data-v-838320dc" u-i="838320dc-7,838320dc-0" bind:__l="__l" bindupdateModelValue="{{L}}" u-p="{{M}}"></up-textarea></scroll-view><view class="popup-footer data-v-838320dc"><button class="btn-cancel data-v-838320dc" bindtap="{{N}}">取消</button><button class="btn-confirm bg-blue data-v-838320dc" bindtap="{{O}}">确定</button></view></view></u-popup></view>

View File

@@ -0,0 +1 @@
.page.data-v-838320dc{min-height:100vh;background:#ebf2fc}.popup-content.data-v-838320dc{width:600rpx;background:#fff;border-radius:20rpx;overflow:hidden}.popup-header.data-v-838320dc{display:flex;justify-content:space-between;align-items:center;padding:30rpx;border-bottom:1rpx solid #eee}.popup-header .popup-title.data-v-838320dc{font-size:32rpx;color:#333}.popup-header .popup-close.data-v-838320dc{font-size:40rpx;color:#999;line-height:1}.popup-body.data-v-838320dc{padding:30rpx}.popup-footer.data-v-838320dc{display:flex;border-top:1rpx solid #eee}.popup-footer button.data-v-838320dc{flex:1;height:90rpx;line-height:90rpx;border-radius:0;font-size:30rpx}.popup-footer button.data-v-838320dc:after{border:none}.popup-footer .btn-cancel.data-v-838320dc{background:#fff;color:#666}.popup-footer .btn-confirm.data-v-838320dc{color:#fff}.ai-btn-wrapper.data-v-838320dc{display:flex;justify-content:flex-end}.ai-analyze-btn.data-v-838320dc{display:flex;align-items:center;justify-content:center;height:72rpx;padding:0 32rpx;font-size:28rpx;color:#fff;background:linear-gradient(135deg,#4facfe,#2668ea);border-radius:36rpx;border:none}.ai-analyze-btn.data-v-838320dc:after{border:none}.ai-analyze-btn .ai-btn-icon.data-v-838320dc{margin-right:8rpx;font-size:30rpx}.ai-analyze-btn[disabled].data-v-838320dc{opacity:.7}.picker-input.data-v-838320dc{background:#fff;border-radius:8rpx;padding:24rpx 20rpx;margin-bottom:20rpx;border:1rpx solid #eee}.picker-input text.data-v-838320dc{font-size:28rpx}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),a=require("../../request/api.js");if(!Array){e.resolveComponent("up-input")()}Math;const o={__name:"editor",setup(o){const l=e.ref(""),t=e.ref(!1),s=e.reactive({id:"",hazardId:"",hazardTitle:"",hazardCreatedAt:"",responsibleDeptName:"",responsiblePerson:"",createdAt:"",statusName:""}),d=async e=>{console.log("=== fetchDetail 被调用 ===, id:",e);try{const o=await a.getMyWriteOffList();if(console.log("接口返回:",o),0===o.code&&o.data&&o.data.length>0){const a=o.data;let l=null;e&&(l=a.find((a=>a.id==e))),l||(l=a[0]),console.log("绑定数据:",l),s.id=l.id,s.hazardId=l.hazardId,s.hazardTitle=l.hazardTitle||"",s.hazardCreatedAt=l.hazardCreatedAt||"",s.responsibleDeptName=l.responsibleDeptName||"",s.responsiblePerson=l.responsiblePerson||"",s.createdAt=l.createdAt||"",s.statusName=l.statusName||"",1==l.status||"待审核"===l.statusName?(t.value=!0,console.log("状态为待审核,可以编辑")):(t.value=!1,console.log("状态为已审核,不可编辑"))}}catch(o){console.error("获取详情失败:",o)}},r=()=>{e.index.navigateBack()};return e.onLoad((e=>{console.log("=== onLoad 触发 ==="),console.log("options:",e),l.value=(null==e?void 0:e.id)||"",d(l.value)})),e.onMounted((()=>{if(console.log("=== onMounted 触发 ==="),!l.value){const e=(()=>{const e=getCurrentPages(),a=e[e.length-1];return(null==a?void 0:a.options)||{}})();console.log("备用获取参数:",e),l.value=(null==e?void 0:e.id)||"",d(l.value)}})),(a,o)=>({a:e.o((e=>s.hazardTitle=e)),b:e.p({placeholder:"",disabled:!0,modelValue:s.hazardTitle}),c:e.o((e=>s.hazardCreatedAt=e)),d:e.p({placeholder:"",disabled:!0,modelValue:s.hazardCreatedAt}),e:e.o((e=>s.responsibleDeptName=e)),f:e.p({placeholder:"请输入",disabled:!t.value,modelValue:s.responsibleDeptName}),g:e.o((e=>s.responsiblePerson=e)),h:e.p({placeholder:"请输入",disabled:!t.value,modelValue:s.responsiblePerson}),i:e.o((e=>s.createdAt=e)),j:e.p({placeholder:"",disabled:!0,modelValue:s.createdAt}),k:e.o((e=>s.statusName=e)),l:e.p({placeholder:"",disabled:!0,modelValue:s.statusName}),m:e.o(r),n:e.gei(a,"")})}},l=e._export_sfc(o,[["__scopeId","data-v-c2c78ce5"]]);wx.createPage(l);

View File

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

View File

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

View File

@@ -0,0 +1 @@
.page.data-v-c2c78ce5{min-height:100vh;background:#ebf2fc}