|
@@ -1,6 +1,7 @@
|
|
|
<script setup>
|
|
|
import {computed, ref, watch} from 'vue'
|
|
|
import apiReportEn from '@/api/reportEn'
|
|
|
+import apiReportVarietyEn from '@/api/reportVarietyEn'
|
|
|
import { showToast } from 'vant'
|
|
|
|
|
|
const props=defineProps({
|
|
@@ -22,7 +23,9 @@ function getEmailList(){
|
|
|
apiReportEn.getCustomEmailList({
|
|
|
CurrentIndex:1,
|
|
|
PageSize:10000,
|
|
|
- ListParam:4
|
|
|
+ ListParam:4,
|
|
|
+ SortType:1,
|
|
|
+ SortParam:3
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
emailOpt.value=res.Data?.List||[]
|
|
@@ -32,6 +35,16 @@ function getEmailList(){
|
|
|
}
|
|
|
getEmailList()
|
|
|
|
|
|
+//获取报告对应的品种数据
|
|
|
+function getVarietyList(){
|
|
|
+ apiReportVarietyEn.varietyList({
|
|
|
+ ReportId:props.reportId
|
|
|
+ }).then(res=>{
|
|
|
+
|
|
|
+ })
|
|
|
+}
|
|
|
+getVarietyList()
|
|
|
+
|
|
|
const btnDisabled=computed(()=>{
|
|
|
if(themeVal.value&&checked.value.length>0) return false
|
|
|
return true
|
|
@@ -110,7 +123,8 @@ function handleConfirmSendEmail(){
|
|
|
apiReportEn.sendEmail({
|
|
|
ReportId:props.reportId,
|
|
|
EmailIds:ids.join(','),
|
|
|
- Theme:themeVal.value
|
|
|
+ Theme:themeVal.value,
|
|
|
+ EnPermissions:[]
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
showToast('发送成功')
|