|
@@ -37,11 +37,12 @@ import { EventBus } from '@/utils/eventBus'
|
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
import { listPageV2 } from "@/api/workOrder/orderType";
|
|
|
-import { orderBaseList, orderBaseListExport, orderBaseStatusCount } from "@/api/workOrderPool.js"
|
|
|
+import { orderBaseList, orderBaseListExport, orderBaseStatusCount, orderBaseImport } from "@/api/workOrderPool.js"
|
|
|
import workOrderInfo from './detailModule/workOrderInfo/index.vue'
|
|
|
import Detail from './detail'
|
|
|
import Reassignment from "./components/reassignment/index.vue"
|
|
|
import Reschedule from "./components/reschedule/index.vue"
|
|
|
+import { commonTemplateDownload } from '@/api/common.js'
|
|
|
export default {
|
|
|
components: {
|
|
|
TemplatePage,
|
|
@@ -118,6 +119,33 @@ export default {
|
|
|
],
|
|
|
[
|
|
|
{
|
|
|
+ name: '导入工单',
|
|
|
+ click: () => { }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '导入模板',
|
|
|
+ render: () => {
|
|
|
+ return this.importButton(orderBaseImport, '导入模板')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '工单导入模板',
|
|
|
+ click: () => {
|
|
|
+ commonTemplateDownload({ name: '工单导入模板.xlsx' }, `${this.$route.meta.title}`)
|
|
|
+ .then(res => {
|
|
|
+ this.$message({
|
|
|
+ message: '下载成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ this.$message.error('下载失败')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {
|
|
|
name: '批量操作',
|
|
|
click: () => { }
|
|
|
},
|
|
@@ -307,38 +335,5 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
-#pane-workOrderInfo {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
-}
|
|
|
-</style>
|
|
|
<style lang="scss" scoped>
|
|
|
-.worker {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
-
|
|
|
- .worker_left {
|
|
|
- font-size: 12px;
|
|
|
- font-weight: 400;
|
|
|
- text-align: left;
|
|
|
- color: #666;
|
|
|
- line-height: 28px;
|
|
|
- margin-right: 10px;
|
|
|
- }
|
|
|
-
|
|
|
- .worker_right {
|
|
|
- flex: 1;
|
|
|
-
|
|
|
- ::v-deep .el-button {
|
|
|
- margin: 0 10px 10px 0px;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.creatOrderPopuc {
|
|
|
- ::v-deep &>.zj-page-container {
|
|
|
- height: calc(100vh - 165px) !important;
|
|
|
- }
|
|
|
-}
|
|
|
</style>
|