|
|
|
@ -156,6 +156,7 @@
|
|
|
|
|
size="small"
|
|
|
|
|
style="margin-right: 12px"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="SOP(scope.row)"
|
|
|
|
|
>
|
|
|
|
|
SOP预览
|
|
|
|
|
</el-button>
|
|
|
|
@ -441,6 +442,65 @@
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
:visible.sync="SOPModel"
|
|
|
|
|
title="上传图纸"
|
|
|
|
|
width="30%"
|
|
|
|
|
@before-close="blueprintModel = false">
|
|
|
|
|
<el-upload
|
|
|
|
|
ref="drawingUpload"
|
|
|
|
|
:auto-upload="true"
|
|
|
|
|
:file-list="fileList"
|
|
|
|
|
:headers="headers"
|
|
|
|
|
:limit="0"
|
|
|
|
|
action="uploadImgUrl"
|
|
|
|
|
list-type="picture-card"
|
|
|
|
|
single
|
|
|
|
|
>
|
|
|
|
|
<i slot="default" class="el-icon-plus"></i>
|
|
|
|
|
<div slot="file" slot-scope="{file}">
|
|
|
|
|
<img
|
|
|
|
|
v-if="isAssetTypeAnImage(file.name)"
|
|
|
|
|
:alt="file.name"
|
|
|
|
|
:src="file.url" class="el-upload-list__item-thumbnail"
|
|
|
|
|
>
|
|
|
|
|
<span v-else>{{ file.name }}</span>
|
|
|
|
|
<span class="el-upload-list__item-actions">
|
|
|
|
|
<span
|
|
|
|
|
v-if="isAssetTypeAnImage(file.name)"
|
|
|
|
|
class="el-upload-list__item-preview"
|
|
|
|
|
@click="handlePictureCardPreview(file)"
|
|
|
|
|
>
|
|
|
|
|
<i class="el-icon-zoom-in"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<span
|
|
|
|
|
class="el-upload-list__item-delete"
|
|
|
|
|
@click="handleDownload(file)"
|
|
|
|
|
>
|
|
|
|
|
<i class="el-icon-download"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-upload>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="SOPModel = false">关 闭</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
:visible.sync="pictureDetailModel"
|
|
|
|
|
append-to-body
|
|
|
|
|
title="图纸预览"
|
|
|
|
|
width="800"
|
|
|
|
|
>
|
|
|
|
|
<img
|
|
|
|
|
:src="dialogImageUrl"
|
|
|
|
|
style="display: block; max-width: 100%; margin: 0 auto"
|
|
|
|
|
/>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- <el-dialog :visible.sync="assignModel" title="工位选择" width="80%">-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-table :data="stationData" highlight-current-row-->
|
|
|
|
@ -515,6 +575,10 @@ export default {
|
|
|
|
|
dicts: ['wms_raw_return_task_type'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
fileList: [],
|
|
|
|
|
SOPModel: false,
|
|
|
|
|
pictureDetailModel: false,
|
|
|
|
|
dialogImageUrl: '',
|
|
|
|
|
returnModelVisible: false,
|
|
|
|
|
returnModelForm:{},
|
|
|
|
|
WarehousesList:[],
|
|
|
|
@ -629,6 +693,14 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async mounted() {
|
|
|
|
|
setInterval(() => {
|
|
|
|
|
this.$notify.info({
|
|
|
|
|
title: '通知',
|
|
|
|
|
message: '通知公告',
|
|
|
|
|
position: 'bottom-right',
|
|
|
|
|
duration: 0
|
|
|
|
|
});
|
|
|
|
|
}, 60 * 1000)
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
@ -1517,7 +1589,73 @@ export default {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async SOP(e) {
|
|
|
|
|
this.fileList = []
|
|
|
|
|
|
|
|
|
|
console.log(e)
|
|
|
|
|
// const data = await fun()
|
|
|
|
|
// this.fileList = data.map(v=>v)
|
|
|
|
|
|
|
|
|
|
this.fileList = [
|
|
|
|
|
{
|
|
|
|
|
name: 'Snipaste_2023-09-04_08-16-59.png',
|
|
|
|
|
url: 'http://175.27.215.92:9665/statics/2024/04/17/Snipaste_2023-09-04_08-16-59_20240417142903A013.png'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '会议纪要 0825_20240417143926A014.docx',
|
|
|
|
|
url: 'http://175.27.215.92:9665/statics/2024/04/17/会议纪要 0825_20240417143926A014.docx'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '会议纪要 0825_20240417143926A014.docx',
|
|
|
|
|
url: 'http://175.27.215.92:9665/statics/2024/04/17/会议纪要 0825_20240417143926A014.docx'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '会议纪要 0825_20240417143926A014.docx',
|
|
|
|
|
url: 'http://175.27.215.92:9665/statics/2024/04/17/会议纪要 0825_20240417143926A014.docx'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Snipaste_2023-09-04_08-16-59.png',
|
|
|
|
|
url: 'http://175.27.215.92:9665/statics/2024/04/17/Snipaste_2023-09-04_08-16-59_20240417142903A013.png'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Snipaste_2023-09-04_08-16-59.png',
|
|
|
|
|
url: 'http://175.27.215.92:9665/statics/2024/04/17/Snipaste_2023-09-04_08-16-59_20240417142903A013.png'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Snipaste_2023-09-04_08-16-59.png',
|
|
|
|
|
url: 'http://175.27.215.92:9665/statics/2024/04/17/Snipaste_2023-09-04_08-16-59_20240417142903A013.png'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Snipaste_2023-09-04_08-16-59.png',
|
|
|
|
|
url: 'http://175.27.215.92:9665/statics/2024/04/17/Snipaste_2023-09-04_08-16-59_20240417142903A013.png'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Snipaste_2023-09-04_08-16-59.png',
|
|
|
|
|
url: 'http://175.27.215.92:9665/statics/2024/04/17/Snipaste_2023-09-04_08-16-59_20240417142903A013.png'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '会议纪要 0825_20240417143926A014.docx',
|
|
|
|
|
url: 'http://175.27.215.92:9665/statics/2024/04/17/会议纪要 0825_20240417143926A014.docx'
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
this.SOPModel = true;
|
|
|
|
|
},
|
|
|
|
|
//查看图纸预览
|
|
|
|
|
handlePictureCardPreview(file) {
|
|
|
|
|
this.dialogImageUrl = file.url;
|
|
|
|
|
this.pictureDetailModel = true;
|
|
|
|
|
},
|
|
|
|
|
//图纸下载
|
|
|
|
|
async handleDownload(file) {
|
|
|
|
|
this.fileDownload(file)
|
|
|
|
|
},
|
|
|
|
|
isAssetTypeAnImage(ext) {
|
|
|
|
|
let suffix = ext.lastIndexOf(".");
|
|
|
|
|
let name = ext.substr(suffix + 1);
|
|
|
|
|
return ['png', 'jpg', 'jpeg'].includes(name.toLowerCase())
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|