|
|
@@ -15,6 +15,12 @@
|
|
|
详情
|
|
|
</el-link>
|
|
|
</template>
|
|
|
+
|
|
|
+ <template v-slot:code="{ row }">
|
|
|
+ <el-link type="primary" @click="goToDetail(row)">{{
|
|
|
+ row.code
|
|
|
+ }}</el-link>
|
|
|
+ </template>
|
|
|
</ele-pro-table>
|
|
|
|
|
|
<detailed
|
|
|
@@ -22,6 +28,12 @@
|
|
|
v-if="detailedShow && detailedObj"
|
|
|
:detailedObj="detailedObj"
|
|
|
></detailed>
|
|
|
+
|
|
|
+ <selfDetailed
|
|
|
+ @detailedClose="detailedClose"
|
|
|
+ v-if="selfDetailedShow && detailedObj"
|
|
|
+ :detailedObj="detailedObj"
|
|
|
+ ></selfDetailed>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -30,11 +42,13 @@
|
|
|
import tableColumnsMixin from '@/mixins/tableColumnsMixin';
|
|
|
import { batchRecordPage } from '@/api/pickorder/index';
|
|
|
import detailed from '@/views/produce/components/picking/detailed.vue';
|
|
|
+ import selfDetailed from '@/views/pick/pickApply/components/selfDetailed.vue';
|
|
|
+
|
|
|
import { getDetails } from '@/api/pick/pickApply';
|
|
|
|
|
|
export default {
|
|
|
mixins: [dictMixins, tableColumnsMixin],
|
|
|
- components: { detailed },
|
|
|
+ components: { detailed, selfDetailed },
|
|
|
props: {
|
|
|
tableQuery: {
|
|
|
type: Object,
|
|
|
@@ -58,7 +72,8 @@
|
|
|
label: '领料单编号',
|
|
|
align: 'center',
|
|
|
minWidth: 110,
|
|
|
- showOverflowTooltip: true
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'code'
|
|
|
},
|
|
|
{
|
|
|
prop: 'workOrderCode',
|
|
|
@@ -177,11 +192,16 @@
|
|
|
this.detailedObj = JSON.stringify(res);
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
- this.detailedShow = true;
|
|
|
+ if (this.detailedObj.type == 1) {
|
|
|
+ this.selfDetailedShow = true;
|
|
|
+ } else {
|
|
|
+ this.detailedShow = true;
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
detailedClose() {
|
|
|
this.detailedShow = false;
|
|
|
+ this.selfDetailedShow = false;
|
|
|
}
|
|
|
}
|
|
|
};
|