|
@ -141,6 +141,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
import { selectAllFactoryArea } from '@/api/system/dept' |
|
|
import { selectAllFactoryArea } from '@/api/system/dept' |
|
|
import * as UserApi from '@/api/system/user' |
|
|
import * as UserApi from '@/api/system/user' |
|
|
|
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
|
|
|
|
|
defineOptions({ name: 'MoldMaintainOrderMain' }) |
|
|
defineOptions({ name: 'MoldMaintainOrderMain' }) |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
@ -159,6 +160,8 @@ const updateFormValue = ref({ |
|
|
}) |
|
|
}) |
|
|
const dialogVisible = ref(false) |
|
|
const dialogVisible = ref(false) |
|
|
const dialogRowData = ref() |
|
|
const dialogRowData = ref() |
|
|
|
|
|
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL |
|
|
|
|
|
const src = ref(BASE_URL + '/jmreport/view/940395429096013824?token=' + getAccessToken()) |
|
|
// 字段设置 更新主列表字段 |
|
|
// 字段设置 更新主列表字段 |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
@ -272,6 +275,9 @@ const butttondata = (row) => { |
|
|
defaultButtons.verifyOrderBtn({ |
|
|
defaultButtons.verifyOrderBtn({ |
|
|
hide: !(row.status == 'COMPLETED' && judgeIsTheClassEngineer(row)) |
|
|
hide: !(row.status == 'COMPLETED' && judgeIsTheClassEngineer(row)) |
|
|
}), // 验证 |
|
|
}), // 验证 |
|
|
|
|
|
defaultButtons.orderPrintBtn({ |
|
|
|
|
|
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id) || !((row.status == 'COMPLETED' || row.status == 'PECEIVED') && judgeIsTheClassEngineer(row)) |
|
|
|
|
|
}) // 打印 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
const onChange = (field, cur, item) => { |
|
|
const onChange = (field, cur, item) => { |
|
@ -303,6 +309,8 @@ const buttonTableClick = async (val, row) => { |
|
|
openDialog(row) |
|
|
openDialog(row) |
|
|
} else if (val == 'finishOrder') { |
|
|
} else if (val == 'finishOrder') { |
|
|
finishOrder(row) |
|
|
finishOrder(row) |
|
|
|
|
|
} else if (val == 'orderPrint') { |
|
|
|
|
|
orderPrint(row) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -649,6 +657,9 @@ const onSubmit = (val) => { |
|
|
getList() |
|
|
getList() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const orderPrint = (row) => { |
|
|
|
|
|
window.open(src.value + "&id=" + row.id) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|