|
|
|
@ -763,42 +763,43 @@ |
|
|
|
</el-tab-pane> |
|
|
|
<!-- 文档页签 --> |
|
|
|
<el-tab-pane label="附件信息" name="part_file"> |
|
|
|
<el-form label-position="top" style="margin-top: 2px; margin-left: 2px;"> |
|
|
|
<el-button type="primary" @click="uploadFile">上传文件</el-button> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
:data="fileContentList" |
|
|
|
:height="secondHeight - 60" |
|
|
|
border |
|
|
|
style="width: 100%; "> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnFileList" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
:prop="item.columnProp" |
|
|
|
:header-align="item.headerAlign" |
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
:align="item.align" |
|
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
|
:min-width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
fixed="right" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="100" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link style="cursor: pointer" @click="previewFile(scope.row)">预览</el-link> |
|
|
|
<el-link style="cursor: pointer" @click="downloadFile(scope.row)">下载</el-link> |
|
|
|
<el-link style="cursor: pointer" @click="deleteFile(scope.row)">删除</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<oss-components label="物料编码" :height="secondHeight - 60" style="margin-top: 2px" :columns="columnFileList" :order-ref2="partCurrentRow.partNo" :order-ref1="partCurrentRow.site"></oss-components> |
|
|
|
<!-- <el-form label-position="top" style="margin-top: 2px; margin-left: 2px;">--> |
|
|
|
<!-- <el-button type="primary" @click="uploadFile">上传文件</el-button>--> |
|
|
|
<!-- </el-form>--> |
|
|
|
<!-- <el-table--> |
|
|
|
<!-- :data="fileContentList"--> |
|
|
|
<!-- :height="secondHeight - 60"--> |
|
|
|
<!-- border--> |
|
|
|
<!-- style="width: 100%; ">--> |
|
|
|
<!-- <el-table-column--> |
|
|
|
<!-- v-for="(item,index) in columnFileList" :key="index"--> |
|
|
|
<!-- :sortable="item.columnSortable"--> |
|
|
|
<!-- :prop="item.columnProp"--> |
|
|
|
<!-- :header-align="item.headerAlign"--> |
|
|
|
<!-- :show-overflow-tooltip="item.showOverflowTooltip"--> |
|
|
|
<!-- :align="item.align"--> |
|
|
|
<!-- :fixed="item.fixed==''?false:item.fixed"--> |
|
|
|
<!-- :min-width="item.columnWidth"--> |
|
|
|
<!-- :label="item.columnLabel">--> |
|
|
|
<!-- <template slot-scope="scope">--> |
|
|
|
<!-- <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>--> |
|
|
|
<!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>--> |
|
|
|
<!-- </template>--> |
|
|
|
<!-- </el-table-column>--> |
|
|
|
<!-- <el-table-column--> |
|
|
|
<!-- fixed="right"--> |
|
|
|
<!-- header-align="center"--> |
|
|
|
<!-- align="center"--> |
|
|
|
<!-- width="100"--> |
|
|
|
<!-- label="操作">--> |
|
|
|
<!-- <template slot-scope="scope">--> |
|
|
|
<!-- <el-link style="cursor: pointer" @click="previewFile(scope.row)">预览</el-link>--> |
|
|
|
<!-- <el-link style="cursor: pointer" @click="downloadFile(scope.row)">下载</el-link>--> |
|
|
|
<!-- <el-link style="cursor: pointer" @click="deleteFile(scope.row)">删除</el-link>--> |
|
|
|
<!-- </template>--> |
|
|
|
<!-- </el-table-column>--> |
|
|
|
<!-- </el-table>--> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
@ -1415,8 +1416,10 @@ |
|
|
|
import partUploadFile from "./part_upload_file" |
|
|
|
import DictDataSelect from '../sys/dict-data-select.vue' |
|
|
|
import UploadFileList from "../common/uploadFileList.vue"; |
|
|
|
import OssComponents from "../oss/ossComponents.vue"; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
OssComponents, |
|
|
|
UploadFileList, |
|
|
|
DictDataSelect, |
|
|
|
Chooselist, |
|
|
|
@ -3401,6 +3404,7 @@ |
|
|
|
selectionItem2 (val) { |
|
|
|
this.itemSelections2 = val |
|
|
|
}, |
|
|
|
|
|
|
|
// 物料项目新增 |
|
|
|
addItem () { |
|
|
|
if (this.itemSelections1 == null || this.itemSelections1.length === 0) { |
|
|
|
@ -3423,6 +3427,12 @@ |
|
|
|
}) |
|
|
|
this.getPartItem() |
|
|
|
this.itemSelections1 = [] |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
@ -3430,6 +3440,7 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 物料项目删除 |
|
|
|
deleteItem () { |
|
|
|
if (this.itemSelections2 == null || this.itemSelections2.length === 0) { |
|
|
|
@ -3454,6 +3465,12 @@ |
|
|
|
}) |
|
|
|
this.getPartItem() |
|
|
|
this.itemSelections2 = [] |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
@ -3461,6 +3478,7 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 查询物料项目 |
|
|
|
queryPartItem () { |
|
|
|
this.itemData.partNo = this.partCurrentRow.partNo |
|
|
|
@ -3656,7 +3674,7 @@ |
|
|
|
this.partCurrentRow = {} |
|
|
|
} |
|
|
|
// 加载当前的页签的table |
|
|
|
this.refreshCurrentTabTable() |
|
|
|
//this.refreshCurrentTabTable() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|