|
@@ -39,7 +39,7 @@ import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
|
import { listPageV2 } from "@/api/workOrder/orderType";
|
|
|
-import { orderBaseList, orderBaseListExport, orderBaseStatusCount, orderBaseImport, orderBaseDetail } from "@/api/workOrderPool.js"
|
|
|
+import { orderBaseList, orderBaseListExport, orderBaseStatusCount, orderBaseImport, orderBaseImport2, orderBaseDetail } from "@/api/workOrderPool.js"
|
|
|
import workOrderInfo from './detailModule/workOrderInfo/index.vue'
|
|
|
import Detail from './detail'
|
|
|
import Reassignment from "./components/reassignment/index.vue"
|
|
@@ -140,7 +140,7 @@ export default {
|
|
|
})
|
|
|
],
|
|
|
[
|
|
|
- this.optionsEvensAuth(["importTemplate", "downloadImportTemplate"], {
|
|
|
+ this.optionsEvensAuth(["importTemplate", "downloadImportTemplate", 'importTemplate2', 'downloadImportTemplate2'], {
|
|
|
name: '导入工单',
|
|
|
click: () => { }
|
|
|
}),
|
|
@@ -166,6 +166,28 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
}),
|
|
|
+ this.optionsEvensAuth("importTemplate2", ({ moduleName }) => {
|
|
|
+ return {
|
|
|
+ name: moduleName,
|
|
|
+ render: () => {
|
|
|
+ return this.importButton(orderBaseImport2, moduleName)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ this.optionsEvensAuth("downloadImportTemplate2", {
|
|
|
+ click: () => {
|
|
|
+ commonTemplateDownload({ name: '工单导入模板2.xlsx' }, `${this.$route.meta.title}`)
|
|
|
+ .then(res => {
|
|
|
+ this.$message({
|
|
|
+ message: '下载成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ this.$message.error('下载失败')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }),
|
|
|
],
|
|
|
[
|
|
|
this.optionsEvensAuth(["bulkOrder", "lotOrder"], {
|