|
|
@@ -64,7 +64,7 @@
|
|
|
<!-- 工作负责人选择 -->
|
|
|
<view class="info-section">
|
|
|
<!-- <view class="section-title">
|
|
|
- <text class="section-title-text">退回类型</text>
|
|
|
+ <text class="section-title-text">复位方式</text>
|
|
|
</view> -->
|
|
|
<view class="info-card">
|
|
|
<view class="info-item">
|
|
|
@@ -81,21 +81,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="info-item">
|
|
|
- <view class="info-label">
|
|
|
- <text class="form-label required">真实故障原因</text>
|
|
|
- </view>
|
|
|
- <view class="info-value">
|
|
|
- <textarea
|
|
|
- class="reject-reason-textarea"
|
|
|
- placeholder="请输入真实故障原因"
|
|
|
- v-model="realFailureReason"
|
|
|
- maxlength="500"
|
|
|
- :show-confirm-bar="false"
|
|
|
- auto-height
|
|
|
- ></textarea>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -158,9 +143,8 @@
|
|
|
const model = ref<string>('')
|
|
|
const acceptTime = ref<string>('')
|
|
|
const resetMethod = ref<string>('')
|
|
|
- const realFailureReason = ref<string>("")
|
|
|
const returnTypeLabel = ref<string>("")
|
|
|
-
|
|
|
+
|
|
|
const teamLeaderName = ref<string>("")
|
|
|
// 添加字典加载状态
|
|
|
const dictLoaded = ref<boolean>(false)
|
|
|
@@ -172,7 +156,7 @@
|
|
|
}
|
|
|
|
|
|
// 选中的挂起原因
|
|
|
-
|
|
|
+
|
|
|
const selectedReasonIndex = ref<number>(-1)
|
|
|
const returnTypeOptions = ref<PickerOption[]>([])
|
|
|
const showReasonPicker = ref<boolean>(false)
|
|
|
@@ -240,7 +224,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (isDealing.value || hasDealed.value) return // 双重保险
|
|
|
isDealing.value = true
|
|
|
const subOrder = {
|
|
|
@@ -249,10 +233,9 @@
|
|
|
workOrderProjectNo: workOrderProjectNo.value,
|
|
|
workOrderStatus: workOrderStatus.value,
|
|
|
resetMethod: resetMethod.value,
|
|
|
- realFailureReason: realFailureReason.value,
|
|
|
repairMethod: "2"
|
|
|
} as UTSJSONObject
|
|
|
-
|
|
|
+
|
|
|
try {
|
|
|
const result = await resetAndStart(subOrder)
|
|
|
const resultObj = result as UTSJSONObject
|
|
|
@@ -297,7 +280,7 @@
|
|
|
const loadDetail = async (id: string, orderType?: string): Promise<void> => {
|
|
|
try {
|
|
|
loading.value = true
|
|
|
-
|
|
|
+
|
|
|
await dictList()
|
|
|
|
|
|
let result: any;
|
|
|
@@ -326,7 +309,6 @@
|
|
|
model.value = (data['model'] as string | null) ?? ''
|
|
|
acceptTime.value = (data['acceptTime'] as string | null) ?? ''
|
|
|
resetMethod.value = (data['resetMethod'] as string | null) ?? ''
|
|
|
- realFailureReason.value = (data['realFailureReason'] as string | null) ?? ''
|
|
|
if (returnTypeOptions.value.length > 0 && resetMethod.value != '') {
|
|
|
// 循环匹配
|
|
|
for (const option of returnTypeOptions.value) {
|