|
@@ -60,10 +60,10 @@
|
|
|
methods: {
|
|
methods: {
|
|
|
async open() {
|
|
async open() {
|
|
|
let api = getDetailById;
|
|
let api = getDetailById;
|
|
|
- if (this.businessType.includes('质检任务单')) {
|
|
|
|
|
|
|
+ if (this.businessType?.includes('质检任务单')) {
|
|
|
api = taskmonadGetById;
|
|
api = taskmonadGetById;
|
|
|
}
|
|
}
|
|
|
- if (this.businessType.includes('质检受托单')) {
|
|
|
|
|
|
|
+ if (this.businessType?.includes('质检受托单')) {
|
|
|
api = requestentrustGetById
|
|
api = requestentrustGetById
|
|
|
}
|
|
}
|
|
|
const detail = await api(this.businessId);
|
|
const detail = await api(this.businessId);
|