|
|
@@ -18,7 +18,7 @@
|
|
|
</el-button>
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
- <el-dropdown-item :disabled="!!downloadSignFilePdf" @click="dialogVisible = true"
|
|
|
+ <el-dropdown-item :disabled="!!downloadSignFilePdf" @click="pushWX"
|
|
|
>小程序推送</el-dropdown-item
|
|
|
>
|
|
|
<el-dropdown-item :disabled="!downloadSignFilePdf" @click="serviceOrderDownload"
|
|
|
@@ -460,6 +460,20 @@ const initPreview=()=>{
|
|
|
console.log('initPreview', initData.value)
|
|
|
}
|
|
|
|
|
|
+const pushWX = async () => {
|
|
|
+
|
|
|
+ try {
|
|
|
+ await editSpreadRecordRef.value?.handleSave()
|
|
|
+ } catch (error) {
|
|
|
+ console.error('保存数据失败:', error)
|
|
|
+ ElMessage.error('保存数据失败,请重试')
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ dialogVisible.value = true
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
onMounted(async () => {
|
|
|
await handleRefresh()
|
|
|
// initPreview()
|