|
|
|
@ -382,6 +382,16 @@ |
|
|
|
<el-option label="正式物料" value="Y"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="productGroupId4"> |
|
|
|
<span style="cursor: pointer" slot="label" @click="queryProductGroupId4"><a herf="#">计划人</a></span> |
|
|
|
<el-input v-model="componentPartData.productGroupId4" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'零件状态'"> |
|
|
|
<el-select v-model="componentPartData.partStatus" clearable style="width: 120px"> |
|
|
|
<el-option label="Active" value="active"></el-option> |
|
|
|
<el-option label="All" value="all"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="queryComponentPartList">查询</el-button> |
|
|
|
</el-form-item> |
|
|
|
@ -891,6 +901,60 @@ |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 计划人查询模态框--> |
|
|
|
<el-dialog title="计划人" top="17vh" :close-on-click-modal="false" v-drag :visible.sync="productGroupId4ModelFlag" |
|
|
|
width="940px"> |
|
|
|
<el-form :inline="true" label-position="top" :model="componentPartProductGroupId4Data"> |
|
|
|
<el-form-item :label="'计划人编码'"> |
|
|
|
<el-input v-model="componentPartProductGroupId4Data.productGroupId4" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'计划人名称'"> |
|
|
|
<el-input v-model="componentPartProductGroupId4Data.productGroupName4" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="queryProductGroupId4">查询</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
:height="250" |
|
|
|
:data="productGroupId4List" |
|
|
|
@row-dblclick="getProductGroupId4RowData" |
|
|
|
border |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in productGroupId4ColumnList" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
:prop="item.columnProp" |
|
|
|
:header-align="item.headerAlign" |
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
:align="item.align" |
|
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
|
:min-width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<!-- 分页插件 --> |
|
|
|
<el-pagination |
|
|
|
style="margin-top: 5px" |
|
|
|
@size-change="sizeChangeHandle6" |
|
|
|
@current-change="currentChangeHandle6" |
|
|
|
:current-page="pageIndex6" |
|
|
|
:page-sizes="[20, 50, 100, 200, 500]" |
|
|
|
:page-size="pageSize6" |
|
|
|
:total="totalPage6" |
|
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
|
</el-pagination> |
|
|
|
<el-footer style="height:35px;margin-top:10px;text-align:center"> |
|
|
|
<el-button type="primary" @click="productGroupId4ModelFlag = false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- chooseList模态框 --> |
|
|
|
<ChooseList ref="baseList" @getBaseData="getBaseData"></ChooseList> |
|
|
|
<filter-search :visible.sync="filterVisible" @search="queryByAnyField"></filter-search> |
|
|
|
@ -987,6 +1051,18 @@ export default { |
|
|
|
this.partData.partNo = this.partData.partNo.toUpperCase() |
|
|
|
} |
|
|
|
}, |
|
|
|
'componentPartProductGroupId4Data.productGroupId4': { |
|
|
|
deep: true, |
|
|
|
handler: function (newV, oldV) { |
|
|
|
this.componentPartData.productGroupId4 = this.componentPartProductGroupId4Data.productGroupId4 |
|
|
|
} |
|
|
|
}, |
|
|
|
'componentPartProductGroupId4SaveData.productGroupId4': { |
|
|
|
deep: true, |
|
|
|
handler: function (newV, oldV) { |
|
|
|
this.modalData.productGroupId4 = this.componentPartProductGroupId4SaveData.productGroupId4 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
// 对象 |
|
|
|
@ -1017,6 +1093,9 @@ export default { |
|
|
|
pageIndex5: 1, |
|
|
|
pageSize5: 20, |
|
|
|
totalPage5: 0, |
|
|
|
pageIndex6: 1, |
|
|
|
pageSize6: 20, |
|
|
|
totalPage6: 0, |
|
|
|
selectedDataNum: 0, |
|
|
|
// 条件查询 |
|
|
|
searchData: { |
|
|
|
@ -1072,6 +1151,13 @@ export default { |
|
|
|
page: 1, |
|
|
|
limit: 20 |
|
|
|
}, |
|
|
|
componentPartProductGroupId4Data: { |
|
|
|
productGroupId4: '', |
|
|
|
productGroupName4: '', |
|
|
|
site: this.$store.state.user.site, |
|
|
|
page: 1, |
|
|
|
limit: 20 |
|
|
|
}, |
|
|
|
detailData: { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
partNo: '', |
|
|
|
@ -1155,6 +1241,7 @@ export default { |
|
|
|
ifsPartNo: '', |
|
|
|
partDesc: '', |
|
|
|
status: '', |
|
|
|
productGroupId4: '', |
|
|
|
page: 1, |
|
|
|
limit: 10 |
|
|
|
}, |
|
|
|
@ -1245,6 +1332,7 @@ export default { |
|
|
|
// ======== 数据列表 ======== |
|
|
|
dataList: [], |
|
|
|
productGroupId4SaveList: [], |
|
|
|
productGroupId4List: [], |
|
|
|
partList: [], |
|
|
|
componentPartList: [], |
|
|
|
copyPartList: [], |
|
|
|
@ -2873,6 +2961,7 @@ export default { |
|
|
|
copyAlternativeModelFlag: false, |
|
|
|
headerSaveFlag: false, |
|
|
|
manufStructCostDistribModal: false, |
|
|
|
productGroupId4ModelFlag: false, |
|
|
|
productGroupId4SaveModelFlag: false, |
|
|
|
filterVisible: false, |
|
|
|
isFilterSearch: false, |
|
|
|
@ -3171,7 +3260,8 @@ export default { |
|
|
|
printUnitName: row.printUnitName, |
|
|
|
officialFlag: row.officialFlag, |
|
|
|
alternativeNo: row.alternativeNo, |
|
|
|
ifsPartNo: row.ifsPartNo |
|
|
|
ifsPartNo: row.ifsPartNo, |
|
|
|
productGroupId4: row.productGroupId4 |
|
|
|
} |
|
|
|
this.subDetailTable = 'recipe_sub_detail' |
|
|
|
// 查recipe明细 |
|
|
|
@ -3570,6 +3660,7 @@ export default { |
|
|
|
typeFlag: this.modalData.typeFlag, |
|
|
|
netWeight: this.modalData.netWeight, |
|
|
|
officialFlag: this.modalData.officialFlag, |
|
|
|
productGroupId4: this.modalData.productGroupId4, |
|
|
|
alternativeNo: this.detailData.alternativeNo, |
|
|
|
alternativeDescription: this.detailData.alternativeDescription, |
|
|
|
minLotQty: this.detailData.minLotQty, |
|
|
|
@ -3578,7 +3669,7 @@ export default { |
|
|
|
status: this.detailData.status, |
|
|
|
createBy: this.$store.state.user.name, |
|
|
|
updateBy: this.$store.state.user.name, |
|
|
|
informationList: this.subDetailList |
|
|
|
informationList: this.subDetailList, |
|
|
|
} |
|
|
|
if (this.modalData.flag === '1') { |
|
|
|
this.saveAllLoading = true |
|
|
|
@ -4184,7 +4275,8 @@ export default { |
|
|
|
engRevision: data.rows.modalData.engRevision, |
|
|
|
typeFlag: data.rows.modalData.typeFlag, |
|
|
|
netWeight: data.rows.modalData.netWeight, |
|
|
|
officialFlag: data.rows.modalData.officialFlag |
|
|
|
officialFlag: data.rows.modalData.officialFlag, |
|
|
|
productGroupId4: data.rows.modalData.productGroupId4, |
|
|
|
} |
|
|
|
this.detailDataList = data.rows.detailDataList |
|
|
|
this.detailData = data.rows.detailData |
|
|
|
@ -4712,7 +4804,49 @@ export default { |
|
|
|
getProductGroupId4SaveRowData(row){ |
|
|
|
this.modalData.productGroupId4 = row.productGroupId4 |
|
|
|
this.productGroupId4SaveModelFlag = false |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
queryProductGroupId4(){ |
|
|
|
this.componentPartProductGroupId4Data.productGroupId4 = this.componentPartData.productGroupId4 |
|
|
|
this.componentPartProductGroupId4Data.limit = this.pageSize6 |
|
|
|
this.componentPartProductGroupId4Data.page = this.pageIndex6 |
|
|
|
this.componentPartProductGroupId4Data.site = this.$store.state.user.site |
|
|
|
queryProductGroupId4(this.componentPartProductGroupId4Data).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.productGroupId4List = data.rows.list |
|
|
|
this.pageIndex6 = data.rows.currPage |
|
|
|
this.pageSize6 = data.rows.pageSize |
|
|
|
this.totalPage6 = data.rows.totalCount |
|
|
|
this.productGroupId4ModelFlag = true |
|
|
|
} else { |
|
|
|
this.productGroupId4List = [] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
getProductGroupId4RowData(row) { |
|
|
|
this.componentPartData.productGroupId4 = row.productGroupId4 |
|
|
|
queryPartListAll(this.componentPartData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.componentPartList = data.page.list |
|
|
|
} else { |
|
|
|
this.componentPartList = [] |
|
|
|
} |
|
|
|
}) |
|
|
|
this.productGroupId4ModelFlag = false |
|
|
|
}, |
|
|
|
|
|
|
|
sizeChangeHandle6(val){ |
|
|
|
this.pageSize6 = val |
|
|
|
this.pageIndex6 = 1 |
|
|
|
this.queryProductGroupId4() |
|
|
|
}, |
|
|
|
|
|
|
|
currentChangeHandle6(val) { |
|
|
|
this.pageIndex6 = val |
|
|
|
this.queryProductGroupId4() |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|