|
@@ -39,6 +39,12 @@
|
|
|
<el-table-column prop="versionNumber" header-align="center" align="center" min-width="140"
|
|
<el-table-column prop="versionNumber" header-align="center" align="center" min-width="140"
|
|
|
:show-tooltip-when-overflow="true" label="版本号">
|
|
:show-tooltip-when-overflow="true" label="版本号">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column header-align="center" align="center" label="图纸">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button :disabled="!scope.row.proDrawings || scope.row.proDrawings.length === 0" type="text" size="small"
|
|
|
|
|
+ @click="drawDetails(scope.row)">查看</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column header-align="center" align="center" min-width="100" :show-tooltip-when-overflow="true"
|
|
<el-table-column header-align="center" align="center" min-width="100" :show-tooltip-when-overflow="true"
|
|
|
label="简图">
|
|
label="简图">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -125,16 +131,18 @@
|
|
|
<attach-detail-dialog ref="attachDetail" />
|
|
<attach-detail-dialog ref="attachDetail" />
|
|
|
<!-- 图片预览组件(使用 v-viewer 打开大图) -->
|
|
<!-- 图片预览组件(使用 v-viewer 打开大图) -->
|
|
|
<preview-component v-if="previewVisible" ref="preview" />
|
|
<preview-component v-if="previewVisible" ref="preview" />
|
|
|
|
|
+ <project-draw-preview ref="drawPreview" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import AttachDetailDialog from '../common/attach-detail-dialog'
|
|
import AttachDetailDialog from '../common/attach-detail-dialog'
|
|
|
import PreviewComponent from '../common/preview-component'
|
|
import PreviewComponent from '../common/preview-component'
|
|
|
|
|
+import ProjectDrawPreview from '../tech/product-draw-detail-dialog.vue'
|
|
|
import { downloadUrl } from '@/api/file'
|
|
import { downloadUrl } from '@/api/file'
|
|
|
export default {
|
|
export default {
|
|
|
name: 'plan-submit',
|
|
name: 'plan-submit',
|
|
|
- components: { AttachDetailDialog, PreviewComponent },
|
|
|
|
|
|
|
+ components: { AttachDetailDialog, PreviewComponent, ProjectDrawPreview },
|
|
|
computed: {},
|
|
computed: {},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -182,7 +190,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- console.log(this.dataForm)
|
|
|
|
|
|
|
+ // console.log(this.dataForm)
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error(data.msg)
|
|
this.$message.error(data.msg)
|
|
|
}
|
|
}
|
|
@@ -196,6 +204,9 @@ export default {
|
|
|
this.$refs.attachDetail.init(attachList)
|
|
this.$refs.attachDetail.init(attachList)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ drawDetails(row) {
|
|
|
|
|
+ this.$refs.drawPreview && this.$refs.drawPreview.init(row.proDrawings || [])
|
|
|
|
|
+ },
|
|
|
// 过滤图片附件
|
|
// 过滤图片附件
|
|
|
getImageList(attachList) {
|
|
getImageList(attachList) {
|
|
|
if (!attachList || !Array.isArray(attachList)) return []
|
|
if (!attachList || !Array.isArray(attachList)) return []
|
|
@@ -228,7 +239,7 @@ export default {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- console.log('data', data)
|
|
|
|
|
|
|
+ // console.log('data', data)
|
|
|
|
|
|
|
|
this.$http({
|
|
this.$http({
|
|
|
url: this.$http.adornUrl(`/biz-service/projProduction/submitPlan`),
|
|
url: this.$http.adornUrl(`/biz-service/projProduction/submitPlan`),
|
|
@@ -253,7 +264,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
handleExpandChange(row, expanded) {
|
|
handleExpandChange(row, expanded) {
|
|
|
- console.log(row, expanded)
|
|
|
|
|
|
|
+ // console.log(row, expanded)
|
|
|
if (expanded) {
|
|
if (expanded) {
|
|
|
this.expandedRowKeys.push(row.productId)
|
|
this.expandedRowKeys.push(row.productId)
|
|
|
} else {
|
|
} else {
|
|
@@ -264,7 +275,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
loadingData(row, treeNode, resolve) {
|
|
loadingData(row, treeNode, resolve) {
|
|
|
- console.log('loadingData')
|
|
|
|
|
|
|
+ // console.log('loadingData')
|
|
|
if (!this.treeMap.has(row.productId)) {
|
|
if (!this.treeMap.has(row.productId)) {
|
|
|
this.treeMap.set(row.productId, { row, treeNode, resolve })
|
|
this.treeMap.set(row.productId, { row, treeNode, resolve })
|
|
|
}
|
|
}
|