交办、整改责任人修改

This commit is contained in:
王利强
2026-06-30 09:47:10 +08:00
parent d4897284e8
commit 455fd4fc07
638 changed files with 5153 additions and 2572 deletions

View File

@@ -57,6 +57,10 @@
<text class="text-gray">检查形式</text>
<text>{{ SOURCE_OPTIONS[hazardPayload.formData.source]?.title || '-' }}</text>
</view>
<view class="info-row">
<text class="text-gray">隐患来源</text>
<text>{{ hazardPayload.formData.hazardSourceName || '-' }}</text>
</view>
<view class="info-row">
<text class="text-gray">隐患位置</text>
<text>{{ hazardPayload.address || '-' }}</text>

View File

@@ -85,6 +85,10 @@
<text class="readonly-label">检查形式</text>
<text class="readonly-value">{{ item.source }}</text>
</view>
<view v-if="item.hazardSource" class="readonly-row readonly-row--stack">
<text class="readonly-label">隐患来源</text>
<text class="readonly-value">{{ item.hazardSource }}</text>
</view>
<view v-if="item.hazardAddress" class="readonly-row readonly-row--stack">
<text class="readonly-label">隐患位置</text>
<text class="readonly-value">{{ item.hazardAddress }}</text>
@@ -156,6 +160,10 @@
<text class="text-gray">检查形式</text>
<text>{{ SOURCE_OPTIONS[answerList[index].hazardPayload.formData.source]?.title || '-' }}</text>
</view>
<view class="info-row">
<text class="text-gray">隐患来源</text>
<text>{{ answerList[index].hazardPayload.formData.hazardSourceName || '-' }}</text>
</view>
<view class="info-row">
<text class="text-gray">隐患位置</text>
<text>{{ answerList[index].hazardPayload.address || '-' }}</text>
@@ -337,7 +345,7 @@ const viewHazardDetail = (item) => {
return;
}
uni.navigateTo({
url: `/pages/hiddendanger/view?hazardId=${item.hazardId}`
url: `/pages/hiddendanger/detail2?hazardId=${item.hazardId}&assignId=${item.assignId || ''}`
});
};
@@ -407,13 +415,20 @@ const buildAnswerFromTask = (item) => {
if (item.result === 2 && item.hazardName) {
const sourceIndex = SOURCE_OPTIONS.findIndex((o) => o.title === item.source);
const hazardSourceCode = item.hazardSourceCode ?? (
item.hazardSource != null && item.hazardSource !== '' && !Number.isNaN(Number(item.hazardSource))
? Number(item.hazardSource)
: null
);
answer.hazardPayload = {
...createEmptyHazardPayload(),
formData: {
...createEmptyHazardPayload().formData,
title: item.hazardName || '',
description: item.hazardDesc || '',
source: sourceIndex >= 0 ? sourceIndex : 0
source: sourceIndex >= 0 ? sourceIndex : 0,
hazardSourceCode,
hazardSourceName: item.hazardSourceName || ''
},
address: item.hazardAddress || ''
};