|
|
@@ -1696,13 +1696,15 @@ const miniProgramPushFormRules = {
|
|
|
const miniProgramPushFormRef = ref()
|
|
|
const miniProgramPushLoading = ref(false)
|
|
|
|
|
|
-// 判断是否可以小程序推送:记录录入状态下且配置了项目
|
|
|
+// 判断是否可以小程序推送:记录录入状态下且项目配置需要签名
|
|
|
const isCanMiniProgramPush = computed(() => {
|
|
|
if (!props.selectedItem) return false
|
|
|
// 只有记录录入状态下才能推送
|
|
|
if (props.selectedItem.taskStatus !== PressureCheckerMyTaskStatus['RECORD_INPUT']) return false
|
|
|
// 需要有模板ID才能获取项目配置
|
|
|
- return !!props.selectedItem.templateId
|
|
|
+ if (!props.selectedItem.templateId) return false
|
|
|
+ // 项目配置需要签名才显示
|
|
|
+ return projectConfig.value.isSign === '1'
|
|
|
})
|
|
|
|
|
|
// 获取项目配置
|
|
|
@@ -2673,6 +2675,7 @@ const handleRefreshData = () => {
|
|
|
initPreview()
|
|
|
handleGetCheckKeyInputs()
|
|
|
getOrderHistoryVersion(props.selectedItem?.id)
|
|
|
+ fetchProjectConfig()
|
|
|
|
|
|
}
|
|
|
|