|
|
@ -1,6 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="mod-config" v-highlight-container> |
|
|
<div class="mod-config" v-highlight-container> |
|
|
<el-form :inline="true" label-position="top" :model="bomData" :rules="componentRules" style="margin-top: 1px; margin-left: 0px;" > |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="bomData" style="margin-top: 1px; margin-left: 0px;" > |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
|
<el-col :span="18"> |
|
|
<el-col :span="18"> |
|
|
<el-form-item label="物料编码/Part No."> |
|
|
<el-form-item label="物料编码/Part No."> |
|
|
@ -30,7 +30,7 @@ |
|
|
<span slot="label"> |
|
|
<span slot="label"> |
|
|
<a href="javascript:void(0)" @click="queryUrlFile" style=" text-decoration: none;">UL文件号/UL Product Model</a> |
|
|
<a href="javascript:void(0)" @click="queryUrlFile" style=" text-decoration: none;">UL文件号/UL Product Model</a> |
|
|
</span> |
|
|
</span> |
|
|
<el-input v-model="bomData.urlFile" :class="{ 'input-error-border': urlFileChange && bomData.urlFile && bomData.urlFile.trim() !== '' }" style="width: 370px" /> |
|
|
|
|
|
|
|
|
<el-input v-model="bomData.urlFile" style="width: 370px" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label=" "> |
|
|
<el-form-item label=" "> |
|
|
<el-button type="primary" @click="searchTable(true)" >刷新</el-button> |
|
|
<el-button type="primary" @click="searchTable(true)" >刷新</el-button> |
|
|
@ -381,15 +381,6 @@ |
|
|
engChgLevel:'', |
|
|
engChgLevel:'', |
|
|
urlFile: '' |
|
|
urlFile: '' |
|
|
}, |
|
|
}, |
|
|
componentRules:{ |
|
|
|
|
|
urlFile: [ |
|
|
|
|
|
{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
currentRow:"", |
|
|
currentRow:"", |
|
|
bomList:[], |
|
|
bomList:[], |
|
|
urlFileList:[], |
|
|
urlFileList:[], |
|
|
@ -933,16 +924,6 @@ |
|
|
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: { |
|
|
|
|
|
'bomData.urlFile'(newVal) { |
|
|
|
|
|
this.urlFileChange = true |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|