|
|
@ -25,11 +25,11 @@ |
|
|
|
|
|
|
|
|
<el-form-item prop="urlFile" label="UL文件号/UL Product Model" v-if="plmTechnicalSpecificationSheetFlag('urlFile') === 'N'||readonly"> |
|
|
<el-form-item prop="urlFile" label="UL文件号/UL Product Model" v-if="plmTechnicalSpecificationSheetFlag('urlFile') === 'N'||readonly"> |
|
|
<span slot="label">UL文件号/UL Product Model</span> |
|
|
<span slot="label">UL文件号/UL Product Model</span> |
|
|
<el-input :readonly="readonly" v-model="bomData.urlFile" disabled :class="{ 'input-error-border': urlFileChange && bomData.urlFile && bomData.urlFile.trim() !== '' }" style="width: 370px" /> |
|
|
|
|
|
|
|
|
<el-input :readonly="readonly" v-model="bomData.urlFile" disabled style="width: 370px" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item prop="urlFile" label="UL文件号/UL Product Model" v-else> |
|
|
<el-form-item prop="urlFile" label="UL文件号/UL Product Model" v-else> |
|
|
<span slot="label"><a href="javascript:void(0)" @click="queryUrlFile" style=" text-decoration: none;">UL文件号/UL Product Model</a></span> |
|
|
<span slot="label"><a href="javascript:void(0)" @click="queryUrlFile" style=" text-decoration: none;">UL文件号/UL Product Model</a></span> |
|
|
<el-input v-model="bomData.urlFile" readonly :class="{ 'input-error-border': urlFileChange && bomData.urlFile && bomData.urlFile.trim() !== '' }" style="width: 370px" /> |
|
|
|
|
|
|
|
|
<el-input v-model="bomData.urlFile" readonly style="width: 370px" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label=" " v-if="!readonly"> |
|
|
<el-form-item label=" " v-if="!readonly"> |
|
|
<el-button type="primary" @click="searchTable(true)" >刷新</el-button> |
|
|
<el-button type="primary" @click="searchTable(true)" >刷新</el-button> |
|
|
@ -309,7 +309,7 @@ |
|
|
:min-width="item.columnWidth" |
|
|
:min-width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden" style="white-space: pre-wrap">{{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -952,22 +952,12 @@ |
|
|
this.bomData.urlFile = row.dictLabel |
|
|
this.bomData.urlFile = row.dictLabel |
|
|
this.urlFileFlag = false |
|
|
this.urlFileFlag = false |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
validateUrlFile() { |
|
|
|
|
|
const value = this.bomData.urlFile.trim(); |
|
|
|
|
|
this.urlFileInvalid = !value; // 空值则标记为无效 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
'bomData.urlFile'(newVal) { |
|
|
|
|
|
this.urlFileChange = true |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped> |
|
|
<style scoped> |
|
|
input[readonly] { |
|
|
|
|
|
cursor: text; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |