|
|
|
@ -3,26 +3,30 @@ |
|
|
|
<el-form :inline="true" label-position="top" style="margin-top: 1px; margin-left: 0px;" > |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="18"> |
|
|
|
<el-form-item label="物料"> |
|
|
|
<el-input v-model="bomData.partNo" readonly style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="BOM类型"> |
|
|
|
<el-input v-model="bomData.bomType" readonly style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="BOM版本"> |
|
|
|
<el-input v-model="bomData.engChgLevel" readonly style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="替代编码"> |
|
|
|
<el-input v-model="bomData.alternativeNo" readonly style="width: 120px"></el-input> |
|
|
|
</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 v-if="baseForm.status === 'spz' && ((!ifDisableFlag && spForm.sp.includes(searchData.username)) || (superAdmin))" type="primary" @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-form-item label="物料"> |
|
|
|
<el-input v-model="bomData.partNo" readonly style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="BOM类型"> |
|
|
|
<el-input v-model="bomData.bomType" readonly style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="BOM版本"> |
|
|
|
<el-input v-model="bomData.engChgLevel" readonly style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="替代编码"> |
|
|
|
<el-input v-model="bomData.alternativeNo" readonly style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="URL File"> |
|
|
|
<dict-data-select :site="searchData.site" v-if="searchData.site" v-model="bomData.urlFile" style="width: 120px" dict-type="bm_url_file"></dict-data-select> |
|
|
|
</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 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="'当前节点'" style="width: 100%"> |
|
|
|
@ -165,16 +169,20 @@ |
|
|
|
searchBMBom, |
|
|
|
searchBMBomDetail, |
|
|
|
updateBMBomRev, |
|
|
|
tsdBasicInformationSearch,getBMStatusDesc, |
|
|
|
tsdBasicInformationSearch, |
|
|
|
getBMStatusDesc, |
|
|
|
submitChange, // 提交 |
|
|
|
getOADetailForBM, |
|
|
|
updateBMProcessBom, // 保存数据 |
|
|
|
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|
|
|
import { |
|
|
|
getNodeAuthority, // 获取节点权限 |
|
|
|
} from '@/api/changeManagement/changeManagement.js' |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
|
import DictDataSelect from "../../sys/dict-data-select-highlight"; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
DictDataSelect, |
|
|
|
Chooselist |
|
|
|
}, |
|
|
|
|
|
|
|
@ -197,6 +205,7 @@ |
|
|
|
alternativeNo:'', |
|
|
|
bomType:'', |
|
|
|
engChgLevel:'', |
|
|
|
urlFile: '' |
|
|
|
}, |
|
|
|
currentRow:"", |
|
|
|
bomList:[], |
|
|
|
@ -515,18 +524,18 @@ |
|
|
|
}) |
|
|
|
return false; |
|
|
|
} |
|
|
|
if (this.currentRow.status!=='Buildable') { |
|
|
|
if (this.currentRow.status !== 'Buildable') { |
|
|
|
this.$alert('只有Buildable状态的可以保存!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false; |
|
|
|
} |
|
|
|
let inData = { |
|
|
|
site:this.bomData.site, |
|
|
|
codeNo:this.searchData.codeNo, |
|
|
|
bomType:this.currentRow.bomType, |
|
|
|
engChgLevel:this.currentRow.engChgLevel, |
|
|
|
bomAlternativeNo:this.currentRow.alternativeNo |
|
|
|
site: this.bomData.site, |
|
|
|
codeNo: this.searchData.codeNo, |
|
|
|
bomType: this.currentRow.bomType, |
|
|
|
engChgLevel: this.currentRow.engChgLevel, |
|
|
|
bomAlternativeNo: this.currentRow.alternativeNo |
|
|
|
} |
|
|
|
updateBMBomRev(inData).then(({data})=>{ |
|
|
|
if(data&& data.code===0){ |
|
|
|
@ -602,6 +611,23 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 修改表单数据 |
|
|
|
updateBMProcess () { |
|
|
|
let inData = { |
|
|
|
site: this.bomData.site, |
|
|
|
codeNo: this.searchData.codeNo, |
|
|
|
urlFile: this.bomData.urlFile |
|
|
|
} |
|
|
|
updateBMProcessBom(inData).then(({data})=>{ |
|
|
|
if (data&& data.code === 0) { |
|
|
|
this.searchTable() |
|
|
|
this.$message.success( '操作成功') |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 同意提交 |
|
|
|
agreeSubmit () { |
|
|
|
this.$confirm(`是否确认提交?`, '提示', { |
|
|
|
|