|
|
|
@ -899,6 +899,26 @@ |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog |
|
|
|
:title="'提示'" |
|
|
|
:visible.sync="uploadMessageDialogVisible" |
|
|
|
:close-on-click-modal="false" |
|
|
|
width="500px" |
|
|
|
append-to-body |
|
|
|
@close="uploadMessageDialogVisible = false"> |
|
|
|
<div class="message-content"> |
|
|
|
<div |
|
|
|
v-for="(message, index) in messages" |
|
|
|
:key="index" |
|
|
|
class="message-item"> |
|
|
|
{{ message }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="uploadMessageDialogVisible = false">确 定</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
<project-part-upload ref="projectPartUpload" @refreshPageTables="searchTable" v-drag></project-part-upload> |
|
|
|
|
|
|
|
@ -986,11 +1006,20 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
if (newVal === false){ |
|
|
|
this.refreshDetailList(); |
|
|
|
} |
|
|
|
}, |
|
|
|
'uploadMessageDialogVisible': { |
|
|
|
deep: true, |
|
|
|
handler: (val, oldVal) => { |
|
|
|
if (val === false) { |
|
|
|
this.messages = [] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
dataList: [], |
|
|
|
messages: [], |
|
|
|
searchData: { |
|
|
|
site: '', |
|
|
|
username: this.$store.state.user.name, |
|
|
|
@ -1729,6 +1758,7 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
], |
|
|
|
characteristicSelections: [], |
|
|
|
saveItemModelFlag: false, |
|
|
|
uploadMessageDialogVisible: false, |
|
|
|
partItemList: [], |
|
|
|
columnUnitCostList: [ |
|
|
|
{ |
|
|
|
@ -3603,12 +3633,8 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/ |
|
|
|
if (data && data.code === 0) { |
|
|
|
if (data.rows.list.length > 0) { |
|
|
|
if(typeof data.rows.list[0] ==='string'){ |
|
|
|
let exceptionString = data.rows.list.join("") |
|
|
|
this.$message({ |
|
|
|
message: exceptionString, |
|
|
|
type: 'warning', |
|
|
|
dangerouslyUseHTMLString: true |
|
|
|
}); |
|
|
|
this.messages = data.rows.list |
|
|
|
this.uploadMessageDialogVisible = true |
|
|
|
} else { |
|
|
|
data.rows.list.forEach(item => { |
|
|
|
item.partNo = item.plmPartNo |
|
|
|
|