|
@@ -51,9 +51,18 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column header-align="center" align="center" label="对应图纸">
|
|
<el-table-column header-align="center" align="center" label="对应图纸">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
|
|
+ <el-button v-if="scope.row.drawings && scope.row.drawings.length" type="text" size="small"
|
|
|
|
|
+ @click="openImagePreview(scope.row.drawings)">
|
|
|
|
|
+ 查看({{ scope.row.drawings.length }})
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button v-else type="text" size="small" disabled>
|
|
|
|
|
+ 查看(0)
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- <template slot-scope="scope">
|
|
|
<el-button :disabled="!scope.row.proDrawings || scope.row.proDrawings.length === 0" type="text" size="small"
|
|
<el-button :disabled="!scope.row.proDrawings || scope.row.proDrawings.length === 0" type="text" size="small"
|
|
|
@click="drawDetails(scope.row)">查看</el-button>
|
|
@click="drawDetails(scope.row)">查看</el-button>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template> -->
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="simplePic" header-align="center" align="center" min-width="120" label="简图">
|
|
<el-table-column prop="simplePic" header-align="center" align="center" min-width="120" label="简图">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -189,7 +198,7 @@
|
|
|
<el-button size="small" type="success" @click="submitUpload">开始上传</el-button>
|
|
<el-button size="small" type="success" @click="submitUpload">开始上传</el-button>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
-
|
|
|
|
|
|
|
+ <image-preview ref="imagePreview" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -207,9 +216,12 @@ import ChangeForm from './product-change'
|
|
|
import { bomStateOption, writeStateOption, optionsCompose } from '@/utils/enums'
|
|
import { bomStateOption, writeStateOption, optionsCompose } from '@/utils/enums'
|
|
|
import UploadComponent from '@/views/modules/common/upload-component-v2'
|
|
import UploadComponent from '@/views/modules/common/upload-component-v2'
|
|
|
import { downloadUrl } from '@/api/file'
|
|
import { downloadUrl } from '@/api/file'
|
|
|
|
|
+import ImagePreview from '@/views/modules/common/image-preview.vue'
|
|
|
|
|
+import ImageViewerMixin from '@/views/modules/common/mixins/image-viewer-mixin'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'product-management',
|
|
name: 'product-management',
|
|
|
|
|
+ mixins: [ImageViewerMixin],
|
|
|
components: {
|
|
components: {
|
|
|
AttachDetail,
|
|
AttachDetail,
|
|
|
ProductDrawDetail,
|
|
ProductDrawDetail,
|
|
@@ -218,7 +230,8 @@ export default {
|
|
|
Detail,
|
|
Detail,
|
|
|
NoticeChangeSetting,
|
|
NoticeChangeSetting,
|
|
|
ChangeForm,
|
|
ChangeForm,
|
|
|
- UploadComponent
|
|
|
|
|
|
|
+ UploadComponent,
|
|
|
|
|
+ ImagePreview
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|