|
@@ -1,8 +1,11 @@
|
|
|
<template>
|
|
|
<el-dialog id="workdialog" v-model="outerVisible" title="合同列表" width="800">
|
|
|
- <span>导入的合同开始时间大于当前时间 <br/>
|
|
|
- 注:当前导入的以下合同,其最小开始月大于当前时间,会在开始月之前无法将任务委托给工厂进行工作,请确认以下客户开始服务的时间是否正确。</span>
|
|
|
- <el-table
|
|
|
+ <h1 style="font-weight: bold;">导入的合同开始时间大于当前时间</h1>
|
|
|
+ <span style="color: #F69600;">注:当前导入的以下合同,其最小开始月大于当前时间,会在开始月之前无法将任务委托给工厂进行工作,请确认以下客户开始服务的时间是否正确。</span>
|
|
|
+ <div style="display:flex; flex-direction: row-reverse;">
|
|
|
+ <el-button type="warning" size="small" icon="Download" @click="exportExcel('2')" >导出</el-button>
|
|
|
+ </div>
|
|
|
+ <el-table
|
|
|
ref="singleTableRef"
|
|
|
:data="data.startMonth"
|
|
|
highlight-current-row
|
|
@@ -25,9 +28,12 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <span>导入的合同结束时间小于当前时间 <br/>
|
|
|
- 注:当前导入的以下合同,其最大结束月小于当前时间,会导致洪喜爱月开始该服务将无法委托给工厂工作,请确认一下客户是否都已经停止服务,如果未停止服务,需要补传续合同。</span>
|
|
|
- <el-table
|
|
|
+ <h1 style="font-weight: bold;">导入的合同结束时间小于当前时间</h1>
|
|
|
+ <span style="color: #F69600;">注:当前导入的以下合同,其最大结束月小于当前时间,会导致下个月开始该服务将无法委托给工厂工作,请确认一下客户是否都已经停止服务,如果未停止服务,需要补传续合同。</span>
|
|
|
+ <div style="display:flex; flex-direction: row-reverse;">
|
|
|
+ <el-button type="warning" size="small" icon="Download" @click="exportExcel('1')" >导出</el-button>
|
|
|
+ </div>
|
|
|
+ <el-table
|
|
|
|
|
|
:data="data.endMonth"
|
|
|
highlight-current-row
|
|
@@ -63,8 +69,11 @@
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
|
+import {
|
|
|
+ exportCheckExcel
|
|
|
+} from "@/api/upgrade/contract";
|
|
|
import {getCurrentInstance, reactive, ref, toRefs} from 'vue'
|
|
|
-import {ElTable,ElButton} from "element-plus";
|
|
|
+import {ElTable, ElButton, ElMessage} from "element-plus";
|
|
|
|
|
|
import { defineProps,defineEmits } from 'vue';
|
|
|
|
|
@@ -74,7 +83,7 @@ const formLabelWidth = '140px'
|
|
|
const outerVisible = ref(false);
|
|
|
const innerVisible = ref(false);
|
|
|
const currentRow = ref();
|
|
|
-
|
|
|
+const type = ref();
|
|
|
const checkNumber = ref(0);
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const form = reactive({
|
|
@@ -151,7 +160,15 @@ function sumbit() {
|
|
|
}
|
|
|
checkNumber.value = 0;
|
|
|
}
|
|
|
-
|
|
|
+function exportExcel(type:string){
|
|
|
+ let filename;
|
|
|
+ if(type === "1"){
|
|
|
+ filename = "导入的合同结束时间小于当前时间.xlsx";
|
|
|
+ }else {
|
|
|
+ filename ="导入的合同结束时间大于当前时间.xlsx";
|
|
|
+ }
|
|
|
+ exportCheckExcel(data.value,type,filename)
|
|
|
+}
|
|
|
|
|
|
const singleTableRef = ref<InstanceType<typeof ElTable>>()
|
|
|
|