|
|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div class="mod-config" v-highlight-container> |
|
|
|
<el-form :inline="true" label-position="top" :model="bomData" style="margin-top: 1px; margin-left: 0px;" > |
|
|
|
<el-form :inline="true" label-position="top" :model="bomData" :rules="componentRules" style="margin-top: 1px; margin-left: 0px;" > |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="18"> |
|
|
|
<el-form-item label="物料编码/Part No."> |
|
|
|
@ -23,38 +23,38 @@ |
|
|
|
<!-- <el-input v-model="bomData.urlFile" style="width: 103px"></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
|
|
<el-form-item |
|
|
|
prop="urlFile" |
|
|
|
label="UL文件号/UL Product Model" |
|
|
|
> |
|
|
|
<el-form-item prop="urlFile" label="UL文件号/UL Product Model"> |
|
|
|
<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" style="width: 370px" /> |
|
|
|
<el-input v-model="bomData.urlFile" :class="{ 'input-error-border': urlFileChange && bomData.urlFile && bomData.urlFile.trim() !== '' }" style="width: 370px" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button type="primary" @click="searchTable(true)" >刷新</el-button> |
|
|
|
<el-button type="primary" v-if="((!ifDisableFlag && spForm.sp.includes(searchData.username) && baseForm.status === 'spz') || baseForm.status === 'cg' || superAdmin)" @click="changeBomRev()">变更</el-button> |
|
|
|
<el-button type="primary" @click="jumpBom()">跳转至BOM</el-button> |
|
|
|
<el-button type="primary" v-if="(!ifDisableFlag && isAuth('103002:bmSave') && spForm.sp.includes(searchData.username) && baseForm.status === 'spz') || baseForm.status === 'cg' || superAdmin" @click="updateBMProcess()" >保存数据</el-button> |
|
|
|
<el-button v-if="baseForm.status === 'spz' && ((!ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))" type="primary" @click="agreeSubmit">同意</el-button> |
|
|
|
<el-button type="primary" v-if="(!ifDisableFlag && isAuth('103002:bmSave') && spForm.sp.includes(searchData.username) && baseForm.status === 'spz') || baseForm.status === 'cg' || superAdmin" @click="updateBMProcess()">保存数据</el-button> |
|
|
|
<el-button v-if="baseForm.status === 'spz' && ((!ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button> |
|
|
|
<el-button v-if="baseForm.status === 'spz' && ((baseForm.isReject === 'Y' && !ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))" type="primary" @click="submitDataModal">驳回</el-button> |
|
|
|
<!-- <el-button type="primary" @click="newData()" v-if="!ifDisableFlag">新增</el-button>--> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"><div class="grid-content bg-purple"> |
|
|
|
<el-form-item label="当前节点/Status" style="width: 100%"> |
|
|
|
<el-input v-model="spForm.nodeName" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
<el-col :span="3"> |
|
|
|
<div class="grid-content bg-purple"> |
|
|
|
<el-form-item label="当前节点/Status" style="width: 100%"> |
|
|
|
<el-input v-model="spForm.nodeName" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"><div class="grid-content bg-purple"> |
|
|
|
<el-form-item label="当前节点审批人/Authorizer" style="width: 100%"> |
|
|
|
<el-input v-model="spForm.sp" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
<el-col :span="3"> |
|
|
|
<div class="grid-content bg-purple"> |
|
|
|
<el-form-item label="当前节点审批人/Authorizer" style="width: 100%"> |
|
|
|
<el-input v-model="spForm.sp" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-table |
|
|
|
:data="bomList" |
|
|
|
:height="height" |
|
|
|
@ -381,6 +381,15 @@ |
|
|
|
engChgLevel:'', |
|
|
|
urlFile: '' |
|
|
|
}, |
|
|
|
componentRules:{ |
|
|
|
urlFile: [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: ' ', |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
], |
|
|
|
}, |
|
|
|
currentRow:"", |
|
|
|
bomList:[], |
|
|
|
urlFileList:[], |
|
|
|
@ -924,6 +933,16 @@ |
|
|
|
this.bomData.urlFile = row.dictLabel |
|
|
|
this.urlFileFlag = false |
|
|
|
}, |
|
|
|
|
|
|
|
validateUrlFile() { |
|
|
|
const value = this.bomData.urlFile.trim(); |
|
|
|
this.urlFileInvalid = !value; // 空值则标记为无效 |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
'bomData.urlFile'(newVal) { |
|
|
|
this.urlFileChange = true |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|