|
|
@@ -100,13 +100,13 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="附件:">
|
|
|
- <!-- <el-link
|
|
|
+ <el-link
|
|
|
type="primary"
|
|
|
- v-for="(item, index) in infoData.contentImage"
|
|
|
- @click="contentImageDownload(item)"
|
|
|
+ v-for="item in infoData.qualityFile"
|
|
|
+ @click="download(item)"
|
|
|
:key="item.name"
|
|
|
>{{ item.name }}</el-link
|
|
|
- > -->
|
|
|
+ >
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
@@ -518,10 +518,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import { getFile } from '@/api/system/file/index.js';
|
|
|
// import { getInfo } from '@/api/stockManagement';
|
|
|
import PageHeader from '@/components/PageHeader';
|
|
|
import StatusStep from '@/components/StatusStep/common.vue';
|
|
|
- // import { fileSystemDownload } from '@/utils';
|
|
|
+ import { fileSystemDownload } from '@/utils';
|
|
|
import outin from '@/api/warehouseManagement/outin';
|
|
|
import { getTreeByPid, allCategoryLevel } from '@/api/classifyManage';
|
|
|
|
|
|
@@ -702,8 +703,10 @@
|
|
|
|
|
|
return a * b * c + { yuan: '元', wanyuan: '万元' }[row.univalenceUnit];
|
|
|
},
|
|
|
- contentImageDownload(item) {
|
|
|
- fileSystemDownload(item);
|
|
|
+ download(row) {
|
|
|
+ if (row.storePath) {
|
|
|
+ getFile({ objectName: row.storePath }, row.name);
|
|
|
+ }
|
|
|
},
|
|
|
selectActive(num) {
|
|
|
this.num = num;
|