|
|
|
@ -29,6 +29,13 @@ |
|
|
|
<el-form-item :label="'BOM版本号'"> |
|
|
|
<el-input v-model="searchData.engChgLevel" clearable style="width: 90px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'BOM状态'"> |
|
|
|
<el-select v-model="searchData.status" clearable style="width: 120px"> |
|
|
|
<el-option label="Tentative" value="Tentative"></el-option> |
|
|
|
<el-option label="Buildable" value="Buildable"></el-option> |
|
|
|
<el-option label="Obsolete" value="Obsolete"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button v-if="!authSearch" @click="getDataList">查询</el-button> |
|
|
|
<el-button v-if="!authSave" type="primary" @click="addModal">新增</el-button> |
|
|
|
@ -188,9 +195,9 @@ |
|
|
|
<el-tab-pane label="Product Structure" name="bom_detail"> |
|
|
|
<el-form label-position="top" style="margin-top: -10px"> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" @click="saveBomDetail" style="margin-left: 7px">新增</el-button> |
|
|
|
<el-button type="primary" :loading="alternativeLoading" @click="deleteBomDetail">删除</el-button> |
|
|
|
<el-button type="primary" :loading="alternativeLoading" @click="updateBomDetail">编辑</el-button> |
|
|
|
<!-- <el-button type="primary" @click="saveBomDetail" style="margin-left: 7px">新增</el-button>--> |
|
|
|
<!-- <el-button type="primary" :loading="alternativeLoading" @click="deleteBomDetail">删除</el-button>--> |
|
|
|
<el-button type="primary" :loading="alternativeLoading" @click="updateBomDetail" style="margin-left: 7px">编辑</el-button> |
|
|
|
<el-button v-if="modalData.flag === '2'" type="primary" :loading="alternativeLoading" @click="copyBomAlternative">Copy</el-button> |
|
|
|
<el-button v-if="detailData.status === 'Tentative' || detailData.status === 'Obsolete'" type="primary" :loading="alternativeLoading" @click="updateStatusToBuildable">Build</el-button> |
|
|
|
<el-button v-if="detailData.status === 'Buildable' && (modalData.effPhaseOutDate == null || modalData.effPhaseOutDate === '')" type="primary" :loading="alternativeLoading" @click="updateStatusToObsolete">Retire</el-button> |
|
|
|
@ -1094,8 +1101,9 @@ export default { |
|
|
|
userName: this.$store.state.user.name, |
|
|
|
partNo: '', |
|
|
|
partDesc: '', |
|
|
|
bomType:'', |
|
|
|
engChgLevel:'', |
|
|
|
bomType: '', |
|
|
|
engChgLevel: '', |
|
|
|
status: '', |
|
|
|
page: 1, |
|
|
|
limit: 10 |
|
|
|
}, |
|
|
|
|