|
@@ -18,6 +18,7 @@ import { required, mobileRequired, mobile, httpUrl, email } from '@/components/t
|
|
|
import { policyOrderListIn, policyOrderListInExport, policyOrderImport } from '@/api/workersCompensationInsurance'
|
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
+import { commonTemplateDownload } from '@/api/common.js'
|
|
|
export default {
|
|
|
components: { TemplatePage },
|
|
|
mixins: [operation_mixin, import_mixin],
|
|
@@ -73,6 +74,22 @@ export default {
|
|
|
return [
|
|
|
[
|
|
|
[
|
|
|
+ this.optionsEvensAuth('download', {
|
|
|
+ click: () => {
|
|
|
+ commonTemplateDownload({ name: '工伤险购买明细模板.xlsx' }, `${this.$route.meta.title}`)
|
|
|
+ .then(res => {
|
|
|
+ this.$message({
|
|
|
+ message: '下载成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ this.$message.error('下载失败')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ],
|
|
|
+ [
|
|
|
this.optionsEvensAuth('import', ({ moduleName }) => {
|
|
|
return {
|
|
|
name: moduleName,
|