|
|
@@ -11,6 +11,17 @@
|
|
|
<el-tag>{{ row.isRelease == 1 ? '已发布' : '未发布' }}</el-tag>
|
|
|
</template>
|
|
|
|
|
|
+
|
|
|
+ <template v-slot:bomArtFiles="{ row }">
|
|
|
+
|
|
|
+ <div v-if="row.bomArtFiles && row.bomArtFiles?.length">
|
|
|
+ <el-link v-for="link in row.bomArtFiles" :key="link.id" type="primary" :underline="false"
|
|
|
+ @click="downloadFile(link)">
|
|
|
+ {{ link.name }}</el-link>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </template>
|
|
|
+
|
|
|
<template v-slot:action="{ row }">
|
|
|
<el-link type="primary" :underline="false" @click="handleFlow(row)">
|
|
|
流程
|
|
|
@@ -48,6 +59,7 @@ import flow from './components/flow.vue'
|
|
|
import search from './components/search.vue';
|
|
|
import release from './components/release.vue'
|
|
|
import Detail from './components/details.vue';
|
|
|
+import { getFile } from "@/api/system/file";
|
|
|
export default {
|
|
|
components: {
|
|
|
search,
|
|
|
@@ -132,8 +144,7 @@ export default {
|
|
|
prop: 'expectReceiveDate',
|
|
|
label: '预计到货日期',
|
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110
|
|
|
+ minWidth: 70
|
|
|
},
|
|
|
|
|
|
|
|
|
@@ -141,8 +152,7 @@ export default {
|
|
|
prop: 'createTime',
|
|
|
label: '创建时间',
|
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110
|
|
|
+ minWidth: 70
|
|
|
},
|
|
|
|
|
|
{
|
|
|
@@ -152,6 +162,13 @@ export default {
|
|
|
},
|
|
|
|
|
|
|
|
|
+ {
|
|
|
+ label: '附件',
|
|
|
+ slot: 'bomArtFiles',
|
|
|
+ action: 'bomArtFiles',
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+
|
|
|
|
|
|
{
|
|
|
columnKey: 'action',
|
|
|
@@ -194,6 +211,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ downloadFile(file) {
|
|
|
+ getFile({ objectName: file.storePath }, file.name);
|
|
|
+ },
|
|
|
+
|
|
|
|
|
|
handleFlow(row) {
|
|
|
this.$refs.flowRef.open(row.processInstanceId);
|
|
|
@@ -203,10 +224,10 @@ export default {
|
|
|
handleDetails(row) {
|
|
|
|
|
|
|
|
|
- if(this.clientEnvironmentId == 3) {
|
|
|
+ if (this.clientEnvironmentId == 3) {
|
|
|
this.$refs.detailsRef.open(row)
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
|