|
@@ -243,7 +243,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="form-item">
|
|
<view class="form-item">
|
|
|
- <text class="form-label">{{ inspectionPlanType === 'commPlan' ? '检验方案' : '模板封面' }}</text>
|
|
|
|
|
|
|
+ <text class="form-label">
|
|
|
|
|
+ {{ inspectionPlanType === 'commPlan' ? '检验方案' : '模板封面' }}
|
|
|
|
|
+ </text>
|
|
|
<wd-picker
|
|
<wd-picker
|
|
|
v-model="selectedTemplateId"
|
|
v-model="selectedTemplateId"
|
|
|
:columns="templateListColumn"
|
|
:columns="templateListColumn"
|
|
@@ -301,11 +303,8 @@ import { onLoad, onShow } from '@dcloudio/uni-app'
|
|
|
import { pressure2NotVerifyPageApi } from '@/api/task'
|
|
import { pressure2NotVerifyPageApi } from '@/api/task'
|
|
|
import { useUserStore } from '@/store/user'
|
|
import { useUserStore } from '@/store/user'
|
|
|
import { useConfigStore } from '@/store/config'
|
|
import { useConfigStore } from '@/store/config'
|
|
|
-import {
|
|
|
|
|
- PressureCheckerMyTaskStatus,
|
|
|
|
|
- PressureCheckerMyTaskStatusMap,
|
|
|
|
|
- getStrDictOptions,
|
|
|
|
|
-} from '@/utils/dictMap'
|
|
|
|
|
|
|
+import { PressureCheckerMyTaskStatus, PressureCheckerMyTaskStatusMap } from '@/utils/dictMap'
|
|
|
|
|
+import { getStrDictOptions } from '@/utils/dictStoreUtil'
|
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
|
import UpdateSafetyManagerPopup from '@/pages/unClaim/components/UpdateSafetyManagerPopup.vue'
|
|
import UpdateSafetyManagerPopup from '@/pages/unClaim/components/UpdateSafetyManagerPopup.vue'
|
|
|
import { TaskOrderFuncName, requestFunc } from '@/api/ApiRouter/taskOrder'
|
|
import { TaskOrderFuncName, requestFunc } from '@/api/ApiRouter/taskOrder'
|
|
@@ -351,7 +350,7 @@ const showSuspendPopup = ref(false)
|
|
|
const suspendReason = ref('')
|
|
const suspendReason = ref('')
|
|
|
const suspendReasonDict = ref('')
|
|
const suspendReasonDict = ref('')
|
|
|
const refuseCategoryColumns = computed(() => {
|
|
const refuseCategoryColumns = computed(() => {
|
|
|
- return getStrDictOptions('refuseInspectedCategory').map((item: any) => ({
|
|
|
|
|
|
|
+ return getStrDictOptions('refuseInspectedCategory').value.map((item: any) => ({
|
|
|
label: item.label,
|
|
label: item.label,
|
|
|
value: item.value,
|
|
value: item.value,
|
|
|
}))
|
|
}))
|
|
@@ -370,9 +369,7 @@ const filteredTemplateList = computed(() => {
|
|
|
(item) => item.reportType === 900 && (item.pjType === 3 || item.pjType === 5),
|
|
(item) => item.reportType === 900 && (item.pjType === 3 || item.pjType === 5),
|
|
|
)
|
|
)
|
|
|
} else if (inspectionPlanType.value === 'selfPlan') {
|
|
} else if (inspectionPlanType.value === 'selfPlan') {
|
|
|
- return optionsResult.value.filter(
|
|
|
|
|
- (item) => item.reportType === 500 && item.pjType === 5,
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ return optionsResult.value.filter((item) => item.reportType === 500 && item.pjType === 5)
|
|
|
}
|
|
}
|
|
|
return []
|
|
return []
|
|
|
})
|
|
})
|