|
@@ -32,6 +32,7 @@
|
|
|
import tableColumnsMixin from '@/mixins/tableColumnsMixin';
|
|
import tableColumnsMixin from '@/mixins/tableColumnsMixin';
|
|
|
import { batchRecordPage } from '@/api/workOrderList';
|
|
import { batchRecordPage } from '@/api/workOrderList';
|
|
|
import detailsPop from '@/views/produceOrder/components/details/index.vue';
|
|
import detailsPop from '@/views/produceOrder/components/details/index.vue';
|
|
|
|
|
+ import { getById } from '@/api/produceOrder/index';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins, tableColumnsMixin],
|
|
mixins: [dictMixins, tableColumnsMixin],
|
|
@@ -201,8 +202,10 @@
|
|
|
search(where) {
|
|
search(where) {
|
|
|
this.reload(where);
|
|
this.reload(where);
|
|
|
},
|
|
},
|
|
|
- goToDetail(row) {
|
|
|
|
|
- this.$refs.detailsRef.open(row);
|
|
|
|
|
|
|
+ async goToDetail(row) {
|
|
|
|
|
+ // 查询详情
|
|
|
|
|
+ const data = await getById(row.id);
|
|
|
|
|
+ this.$refs.detailsRef.open(data);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|