|
|
@ -86,6 +86,12 @@ |
|
|
|
<el-button v-if="ButtonPermissions.add" type="primary" @click="AddInfo"> |
|
|
|
<el-button v-if="ButtonPermissions.add" type="primary" @click="AddInfo"> |
|
|
|
<el-icon><Plus /></el-icon>新 增</el-button |
|
|
|
<el-icon><Plus /></el-icon>新 增</el-button |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-button type="primary" @click="exportReport"> |
|
|
|
|
|
|
|
<el-icon><Plus /></el-icon>导出报表</el-button |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-button type="primary" @click="BatchDelete"> |
|
|
|
<!-- <el-button type="primary" @click="BatchDelete"> |
|
|
|
<el-icon><Delete /></el-icon>批量删除</el-button |
|
|
|
<el-icon><Delete /></el-icon>批量删除</el-button |
|
|
|
> --> |
|
|
|
> --> |
|
|
@ -710,6 +716,7 @@ import { ElMessage } from 'element-plus'; |
|
|
|
import { ElMessageBox } from 'element-plus'; |
|
|
|
import { ElMessageBox } from 'element-plus'; |
|
|
|
import { Plus } from '@element-plus/icons-vue'; |
|
|
|
import { Plus } from '@element-plus/icons-vue'; |
|
|
|
import { useStore } from 'vuex'; |
|
|
|
import { useStore } from 'vuex'; |
|
|
|
|
|
|
|
import { exportBlob } from '@/api/common'; |
|
|
|
import { |
|
|
|
import { |
|
|
|
$_getList, |
|
|
|
$_getList, |
|
|
|
$_submit, |
|
|
|
$_submit, |
|
|
@ -737,10 +744,13 @@ import { |
|
|
|
$_getDetails, |
|
|
|
$_getDetails, |
|
|
|
$_settlementUpdate, |
|
|
|
$_settlementUpdate, |
|
|
|
$_updateArbitrateStatu, |
|
|
|
$_updateArbitrateStatu, |
|
|
|
|
|
|
|
$_exportAftersalesWorkOrder, |
|
|
|
} from '@/api/aftersales/aftersalesWorkOrder'; |
|
|
|
} from '@/api/aftersales/aftersalesWorkOrder'; |
|
|
|
import { getToken } from '@/utils/auth'; |
|
|
|
import { getToken } from '@/utils/auth'; |
|
|
|
|
|
|
|
import NProgress from 'nprogress'; |
|
|
|
import { getDictionaryBiz } from '@/api/system/dict'; //字典 |
|
|
|
import { getDictionaryBiz } from '@/api/system/dict'; //字典 |
|
|
|
import functions from '@/utils/functions.js'; |
|
|
|
import functions from '@/utils/functions.js'; |
|
|
|
|
|
|
|
import website from '@/config/website'; |
|
|
|
import { getDetailWarehouse, getDeptWarehouse } from '@/api/basicdata/basicdataWarehouse'; //处理方 |
|
|
|
import { getDetailWarehouse, getDeptWarehouse } from '@/api/basicdata/basicdataWarehouse'; //处理方 |
|
|
|
import { |
|
|
|
import { |
|
|
|
ref, |
|
|
|
ref, |
|
|
@ -761,6 +771,7 @@ import { |
|
|
|
} from '@/option/aftersales/vueTvemp.js'; |
|
|
|
} from '@/option/aftersales/vueTvemp.js'; |
|
|
|
import { processRowProperty, isNumer, computeNumber } from '@/utils/util'; |
|
|
|
import { processRowProperty, isNumer, computeNumber } from '@/utils/util'; |
|
|
|
import { useRouter } from 'vue-router'; |
|
|
|
import { useRouter } from 'vue-router'; |
|
|
|
|
|
|
|
import { downloadXls } from '@/utils/util'; |
|
|
|
import dayjs from 'dayjs'; |
|
|
|
import dayjs from 'dayjs'; |
|
|
|
const $router = useRouter(); |
|
|
|
const $router = useRouter(); |
|
|
|
const $useStore = useStore(); |
|
|
|
const $useStore = useStore(); |
|
|
@ -3313,6 +3324,9 @@ const ConfirmReturn = () => { |
|
|
|
dialogReturn.value = false; //关闭打回弹窗 |
|
|
|
dialogReturn.value = false; //关闭打回弹窗 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 工单指派 |
|
|
|
// 工单指派 |
|
|
|
const assign = () => { |
|
|
|
const assign = () => { |
|
|
|
if (!details.selectionList.length) { |
|
|
|
if (!details.selectionList.length) { |
|
|
@ -3684,6 +3698,24 @@ const MessageReply = val => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 导出报表 |
|
|
|
|
|
|
|
const exportReport=()=>{ |
|
|
|
|
|
|
|
let dataID={ |
|
|
|
|
|
|
|
workOrderStatus:TabPermissions.value, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$_exportAftersalesWorkOrder(dataID).then(res => { |
|
|
|
|
|
|
|
console.log(res, '导出'); |
|
|
|
|
|
|
|
downloadXls(res.data, `报表.xlsx`); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log('导出报表'); |
|
|
|
|
|
|
|
// $_exportAftersalesWorkOrder().then(res=>{ |
|
|
|
|
|
|
|
// console.log(res,'导出报表成功'); |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
<style scoped lang="scss"> |
|
|
|