|
@@ -14,7 +14,7 @@
|
|
|
@fullscreen-change="fullscreenChange"
|
|
@fullscreen-change="fullscreenChange"
|
|
|
>
|
|
>
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
- <el-button type="primary" size="mini" @click="openCheckAdd('add')"
|
|
|
|
|
|
|
+ <el-button v-if="!isDetails" type="primary" size="mini" @click="openCheckAdd('add')"
|
|
|
>新建</el-button
|
|
>新建</el-button
|
|
|
>
|
|
>
|
|
|
</template>
|
|
</template>
|
|
@@ -71,7 +71,8 @@
|
|
|
import tableColumnsMixin from '@/mixins/tableColumnsMixin';
|
|
import tableColumnsMixin from '@/mixins/tableColumnsMixin';
|
|
|
import {
|
|
import {
|
|
|
checklistrecordPage,
|
|
checklistrecordPage,
|
|
|
- checklistrecordDelete
|
|
|
|
|
|
|
+ checklistrecordDelete,
|
|
|
|
|
+ checklistByWorkOrderId
|
|
|
} from '@/api/checklistrecord/index';
|
|
} from '@/api/checklistrecord/index';
|
|
|
import checkAdd from './components/checkAdd.vue';
|
|
import checkAdd from './components/checkAdd.vue';
|
|
|
import checkDetails from './components/checkDetails.vue';
|
|
import checkDetails from './components/checkDetails.vue';
|
|
@@ -81,6 +82,22 @@
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins, tableColumnsMixin],
|
|
mixins: [dictMixins, tableColumnsMixin],
|
|
|
components: { checkAdd, checkDetails, processSubmitDialog },
|
|
components: { checkAdd, checkDetails, processSubmitDialog },
|
|
|
|
|
+ props: {
|
|
|
|
|
+ isDetails: {
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ default: false
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ props: {
|
|
|
|
|
+ workOrderInfo: {
|
|
|
|
|
+ type: Object,
|
|
|
|
|
+ default: () => {}
|
|
|
|
|
+ },
|
|
|
|
|
+ isDetails: {
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ default: false
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
columns: [
|
|
columns: [
|
|
@@ -291,6 +308,9 @@
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: limit
|
|
size: limit
|
|
|
};
|
|
};
|
|
|
|
|
+ if(this.isDetails) {
|
|
|
|
|
+ return checklistByWorkOrderId(this.workOrderInfo.id)
|
|
|
|
|
+ }
|
|
|
return checklistrecordPage(body);
|
|
return checklistrecordPage(body);
|
|
|
},
|
|
},
|
|
|
search(where) {
|
|
search(where) {
|