|
|
@ -141,6 +141,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
import { selectAllFactoryArea } from '@/api/system/dept' |
|
|
|
import * as UserApi from '@/api/system/user' |
|
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
|
|
|
|
defineOptions({ name: 'MoldMaintainOrderMain' }) |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -159,6 +160,8 @@ const updateFormValue = ref({ |
|
|
|
}) |
|
|
|
const dialogVisible = ref(false) |
|
|
|
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) => { |
|
|
|
tableColumns.value = val |
|
|
@ -272,6 +275,9 @@ const butttondata = (row) => { |
|
|
|
defaultButtons.verifyOrderBtn({ |
|
|
|
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) => { |
|
|
@ -303,6 +309,8 @@ const buttonTableClick = async (val, row) => { |
|
|
|
openDialog(row) |
|
|
|
} else if (val == 'finishOrder') { |
|
|
|
finishOrder(row) |
|
|
|
} else if (val == 'orderPrint') { |
|
|
|
orderPrint(row) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -649,6 +657,9 @@ const onSubmit = (val) => { |
|
|
|
getList() |
|
|
|
} |
|
|
|
|
|
|
|
const orderPrint = (row) => { |
|
|
|
window.open(src.value + "&id=" + row.id) |
|
|
|
} |
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|