|
|
@@ -42,7 +42,9 @@
|
|
|
businessCode: {
|
|
|
default: ''
|
|
|
},
|
|
|
- businessType: ''
|
|
|
+ businessType: {
|
|
|
+ default: ''
|
|
|
+ }
|
|
|
},
|
|
|
components: {
|
|
|
browse
|
|
|
@@ -60,12 +62,12 @@
|
|
|
methods: {
|
|
|
async open() {
|
|
|
let api = getDetailById;
|
|
|
- console.log(this.businessType,'this.businessType')
|
|
|
+ console.log(this.businessType, 'this.businessType');
|
|
|
if (this.businessType?.includes('质检任务单')) {
|
|
|
api = taskmonadGetById;
|
|
|
}
|
|
|
if (this.businessType?.includes('质检受托单')) {
|
|
|
- api = requestentrustGetById
|
|
|
+ api = requestentrustGetById;
|
|
|
}
|
|
|
const detail = await api(this.businessId);
|
|
|
// this.reportData = detail;
|