|
|
|
@ -158,6 +158,10 @@ |
|
|
|
<el-form-item :label="'工程版本号'"> |
|
|
|
<el-input v-model="modalData.engRevision" readonly style="width: 90px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="productGroupId4"> |
|
|
|
<span style="cursor: pointer" slot="label" @click="queryProductGroupId4Save"><a herf="#">计划人</a></span> |
|
|
|
<el-input v-model="modalData.productGroupId4" readonly clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<!-- <el-form-item :label="'净重'">--> |
|
|
|
<!-- <el-input-number :controls="false" :step="0" v-model="modalData.netWeight" style="width: 110px"></el-input-number>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
@ -499,6 +503,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> |
|
|
|
@ -945,6 +959,111 @@ |
|
|
|
</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="sizeChangeHandle5" |
|
|
|
@current-change="currentChangeHandle5" |
|
|
|
:current-page="pageIndex5" |
|
|
|
:page-sizes="[20, 50, 100, 200, 500]" |
|
|
|
:page-size="pageSize5" |
|
|
|
:total="totalPage5" |
|
|
|
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> |
|
|
|
|
|
|
|
<el-dialog title="计划人" top="17vh" :close-on-click-modal="false" v-drag :visible.sync="productGroupId4SaveModelFlag" |
|
|
|
width="940px"> |
|
|
|
<el-form :inline="true" label-position="top" :model="componentPartProductGroupId4SaveData"> |
|
|
|
<el-form-item :label="'计划人编码'"> |
|
|
|
<el-input v-model="componentPartProductGroupId4SaveData.productGroupId4" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'计划人名称'"> |
|
|
|
<el-input v-model="componentPartProductGroupId4SaveData.productGroupName4" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="queryProductGroupId4Save">查询</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
:height="250" |
|
|
|
:data="productGroupId4SaveList" |
|
|
|
@row-dblclick="getProductGroupId4SaveRowData" |
|
|
|
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="productGroupId4SaveModelFlag = false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- chooseList模态框 --> |
|
|
|
<ChooseList ref="baseList" @getBaseData="getBaseData"></ChooseList> |
|
|
|
<filter-search :visible.sync="filterVisible" @search="queryByAnyField"></filter-search> |
|
|
|
@ -990,7 +1109,9 @@ import ChooseList from '@/views/modules/common/Chooselist' |
|
|
|
import {isAuth} from "../../../utils"; |
|
|
|
import FilterSearch from "../../common/filterSearch.vue"; |
|
|
|
import {partAllInfoSearchAny} from "../../../api/part/partAllInfoSearch"; |
|
|
|
import {bomManagementSearchAny} from "../../../api/part/bomManagement"; |
|
|
|
import {bomManagementSearchAny, queryProductGroupId4} from "../../../api/part/bomManagement"; |
|
|
|
import {queryWorkCenterList} from "../../../api/part/workCenter"; |
|
|
|
import {queryWorkerLevelList} from "../../../api/base/laborClass"; |
|
|
|
|
|
|
|
export default { |
|
|
|
// 组件 |
|
|
|
@ -1042,6 +1163,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 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
// 对象 |
|
|
|
@ -1069,6 +1202,12 @@ export default { |
|
|
|
pageIndex4: 1, |
|
|
|
pageSize4: 20, |
|
|
|
totalPage4: 0, |
|
|
|
pageIndex5: 1, |
|
|
|
pageSize5: 20, |
|
|
|
totalPage5: 0, |
|
|
|
pageIndex6: 1, |
|
|
|
pageSize6: 20, |
|
|
|
totalPage6: 0, |
|
|
|
selectedDataNum: 0, |
|
|
|
// 条件查询 |
|
|
|
searchData: { |
|
|
|
@ -1115,7 +1254,8 @@ export default { |
|
|
|
updateBy: '', |
|
|
|
printUnit: '', |
|
|
|
printUnitName: '', |
|
|
|
officialFlag: '' |
|
|
|
officialFlag: '', |
|
|
|
productGroupId4: '' |
|
|
|
}, |
|
|
|
detailData: { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
@ -1179,9 +1319,25 @@ export default { |
|
|
|
plmPartNo: '', |
|
|
|
partDesc: '', |
|
|
|
status: '', |
|
|
|
productGroupId4: '', |
|
|
|
partStatus: 'all', |
|
|
|
page: 1, |
|
|
|
limit: 10 |
|
|
|
}, |
|
|
|
componentPartProductGroupId4Data: { |
|
|
|
productGroupId4: '', |
|
|
|
productGroupName4: '', |
|
|
|
site: this.$store.state.user.site, |
|
|
|
page: 1, |
|
|
|
limit: 20 |
|
|
|
}, |
|
|
|
componentPartProductGroupId4SaveData: { |
|
|
|
productGroupId4: '', |
|
|
|
productGroupName4: '', |
|
|
|
site: this.$store.state.user.site, |
|
|
|
page: 1, |
|
|
|
limit: 20 |
|
|
|
}, |
|
|
|
copyPartData: { |
|
|
|
type: '', |
|
|
|
site: this.$store.state.user.site, |
|
|
|
@ -1278,6 +1434,8 @@ export default { |
|
|
|
operationList: [], |
|
|
|
multiLevelStructureList: [], |
|
|
|
componentPartBomList: [], |
|
|
|
productGroupId4List: [], |
|
|
|
productGroupId4SaveList: [], |
|
|
|
// ======== 列表表头 ======== |
|
|
|
columnList: [ |
|
|
|
{ |
|
|
|
@ -1688,7 +1846,7 @@ export default { |
|
|
|
columnWidth: 130 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'partStatus', |
|
|
|
columnProp: 'partStatusDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '零件状态', |
|
|
|
@ -2672,6 +2830,30 @@ export default { |
|
|
|
columnWidth: 80 |
|
|
|
}, |
|
|
|
], |
|
|
|
productGroupId4ColumnList: [ |
|
|
|
{ |
|
|
|
columnProp: 'productGroupId4', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '计划人编码', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80 |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'productGroupName4', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '计划人名称', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100 |
|
|
|
} |
|
|
|
], |
|
|
|
// ======== 必填规则 ======== |
|
|
|
rules: { |
|
|
|
partNo: [ |
|
|
|
@ -2808,6 +2990,8 @@ export default { |
|
|
|
copyAlternativeModelFlag: false, |
|
|
|
headerSaveFlag: false, |
|
|
|
manufStructCostDistribModal: false, |
|
|
|
productGroupId4ModelFlag: false, |
|
|
|
productGroupId4SaveModelFlag: false, |
|
|
|
filterVisible: false, |
|
|
|
isFilterSearch: false, |
|
|
|
filterSearchData: {}, |
|
|
|
@ -3517,7 +3701,8 @@ export default { |
|
|
|
status: this.detailData.status, |
|
|
|
createBy: this.$store.state.user.name, |
|
|
|
updateBy: this.$store.state.user.name, |
|
|
|
informationList: this.subDetailList |
|
|
|
informationList: this.subDetailList, |
|
|
|
productGroupId4: this.modalData.productGroupId4 |
|
|
|
} |
|
|
|
if (this.modalData.flag === '1') { |
|
|
|
this.saveAllLoading = true |
|
|
|
@ -4747,6 +4932,81 @@ export default { |
|
|
|
this.isFilterSearch = true |
|
|
|
this.filterVisible = false |
|
|
|
}, |
|
|
|
|
|
|
|
queryProductGroupId4(){ |
|
|
|
this.componentPartProductGroupId4Data.productGroupId4 = this.componentPartData.productGroupId4 |
|
|
|
this.componentPartProductGroupId4Data.limit = this.pageSize5 |
|
|
|
this.componentPartProductGroupId4Data.page = this.pageIndex5 |
|
|
|
this.componentPartProductGroupId4Data.site = this.$store.state.user.site |
|
|
|
queryProductGroupId4(this.componentPartProductGroupId4Data).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.productGroupId4List = data.rows.list |
|
|
|
this.pageIndex5 = data.rows.currPage |
|
|
|
this.pageSize5 = data.rows.pageSize |
|
|
|
this.totalPage5 = 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 |
|
|
|
}, |
|
|
|
|
|
|
|
sizeChangeHandle5(val){ |
|
|
|
this.pageSize5 = val |
|
|
|
this.pageIndex5 = 1 |
|
|
|
this.queryProductGroupId4() |
|
|
|
}, |
|
|
|
|
|
|
|
currentChangeHandle5(val) { |
|
|
|
this.pageIndex5 = val |
|
|
|
this.queryProductGroupId4() |
|
|
|
}, |
|
|
|
|
|
|
|
sizeChangeHandle6(val){ |
|
|
|
this.pageSize6 = val |
|
|
|
this.pageIndex6 = 1 |
|
|
|
this.queryProductGroupId4Save() |
|
|
|
}, |
|
|
|
|
|
|
|
currentChangeHandle6(val) { |
|
|
|
this.pageIndex6 = val |
|
|
|
this.queryProductGroupId4Save() |
|
|
|
}, |
|
|
|
|
|
|
|
queryProductGroupId4Save(){ |
|
|
|
this.componentPartProductGroupId4SaveData.productGroupId4 = this.modalData.productGroupId4 |
|
|
|
this.componentPartProductGroupId4SaveData.limit = this.pageSize6 |
|
|
|
this.componentPartProductGroupId4SaveData.page = this.pageIndex6 |
|
|
|
this.componentPartProductGroupId4SaveData.site = this.$store.state.user.site |
|
|
|
queryProductGroupId4(this.componentPartProductGroupId4SaveData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.productGroupId4SaveList = data.rows.list |
|
|
|
this.pageIndex6 = data.rows.currPage |
|
|
|
this.pageSize6 = data.rows.pageSize |
|
|
|
this.totalPage6 = data.rows.totalCount |
|
|
|
this.productGroupId4SaveModelFlag = true |
|
|
|
} else { |
|
|
|
this.productGroupId4SaveList = [] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
getProductGroupId4SaveRowData(row){ |
|
|
|
this.modalData.productGroupId4 = row.productGroupId4 |
|
|
|
this.productGroupId4SaveModelFlag = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|