|
@@ -37,10 +37,10 @@
|
|
|
<template v-slot:batchNo="{ row }">
|
|
<template v-slot:batchNo="{ row }">
|
|
|
<el-link type="primary" :underline="false">
|
|
<el-link type="primary" :underline="false">
|
|
|
{{ row.batchNo }}
|
|
{{ row.batchNo }}
|
|
|
- <el-tag type="success" size="mini" v-if="row.joinPlanCode"
|
|
|
|
|
- >拆</el-tag
|
|
|
|
|
|
|
+ <el-tag type="success" size="mini" v-if="row.joinPlanCode" @click.stop="splitDetails(1, row)">
|
|
|
|
|
+ 拆</el-tag
|
|
|
>
|
|
>
|
|
|
- <el-tag type="danger" size="mini" v-if="row.splitBatch == 2">
|
|
|
|
|
|
|
+ <el-tag type="danger" size="mini" v-if="row.splitBatch == 2" @click.stop="splitDetails(2, row)">
|
|
|
和</el-tag
|
|
和</el-tag
|
|
|
>
|
|
>
|
|
|
</el-link>
|
|
</el-link>
|
|
@@ -145,6 +145,9 @@
|
|
|
<unpackDialog ref="unpackRef" @success="reload" />
|
|
<unpackDialog ref="unpackRef" @success="reload" />
|
|
|
|
|
|
|
|
<mergeDialog ref="mergeRef" @success="reload"></mergeDialog>
|
|
<mergeDialog ref="mergeRef" @success="reload"></mergeDialog>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <unpackDetails ref="DetailsRef"></unpackDetails>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -153,6 +156,7 @@
|
|
|
import productionPlanSearch from './components/productionPlan-search.vue';
|
|
import productionPlanSearch from './components/productionPlan-search.vue';
|
|
|
import unpackDialog from './components/unpackDialog.vue';
|
|
import unpackDialog from './components/unpackDialog.vue';
|
|
|
import mergeDialog from './components/mergeDialog.vue';
|
|
import mergeDialog from './components/mergeDialog.vue';
|
|
|
|
|
+ import unpackDetails from './components/unpackDetails.vue';
|
|
|
import { release } from '@/api/productionPlan/order.js';
|
|
import { release } from '@/api/productionPlan/order.js';
|
|
|
|
|
|
|
|
import { getCode } from '@/api/codeManagement';
|
|
import { getCode } from '@/api/codeManagement';
|
|
@@ -164,7 +168,8 @@
|
|
|
components: {
|
|
components: {
|
|
|
productionPlanSearch,
|
|
productionPlanSearch,
|
|
|
unpackDialog,
|
|
unpackDialog,
|
|
|
- mergeDialog
|
|
|
|
|
|
|
+ mergeDialog,
|
|
|
|
|
+ unpackDetails
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -633,6 +638,10 @@
|
|
|
console.log(this.selection);
|
|
console.log(this.selection);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ splitDetails(type, row) {
|
|
|
|
|
+ this.$refs.DetailsRef.open(type, row.childList);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
handleDelete({ id }) {
|
|
handleDelete({ id }) {
|
|
|
this.$confirm('确定删除当前数据?', '提示')
|
|
this.$confirm('确定删除当前数据?', '提示')
|
|
|
.then(async () => {
|
|
.then(async () => {
|