|
|
@ -96,7 +96,7 @@ |
|
|
<el-input v-model="searchData.spec" placeholder="请输入规格型号" clearable style="width: 100%"></el-input> |
|
|
<el-input v-model="searchData.spec" placeholder="请输入规格型号" clearable style="width: 100%"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="8"> |
|
|
|
|
|
|
|
|
<el-col :span="4"> |
|
|
<el-form-item label="加工中心"> |
|
|
<el-form-item label="加工中心"> |
|
|
<el-select v-model="searchData.workCenterNoList" multiple collapse-tags clearable filterable placeholder="请选择加工中心" style="width: 100%"> |
|
|
<el-select v-model="searchData.workCenterNoList" multiple collapse-tags clearable filterable placeholder="请选择加工中心" style="width: 100%"> |
|
|
<el-option |
|
|
<el-option |
|
|
@ -108,6 +108,18 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
<el-form-item label="仓库"> |
|
|
|
|
|
<el-select v-model="searchData.warehouseIdList" multiple collapse-tags clearable placeholder="请选择仓库" style="width: 100%"> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in warehouseList" |
|
|
|
|
|
:key="item.warehouseId" |
|
|
|
|
|
:label="item.warehouseName" |
|
|
|
|
|
:value="item.warehouseId"> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -196,6 +208,7 @@ import { |
|
|
getWorkCenterList, |
|
|
getWorkCenterList, |
|
|
getSiteAndBuByUserName |
|
|
getSiteAndBuByUserName |
|
|
} from "@/api/orderIssure/soIssueNotify.js" |
|
|
} from "@/api/orderIssure/soIssueNotify.js" |
|
|
|
|
|
import { getWarehouseList } from "@/api/wms/wms" |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
@ -219,9 +232,11 @@ export default { |
|
|
componentPartNo: '', |
|
|
componentPartNo: '', |
|
|
partDescription: '', |
|
|
partDescription: '', |
|
|
spec: '', |
|
|
spec: '', |
|
|
workCenterNoList: [] |
|
|
|
|
|
|
|
|
workCenterNoList: [], |
|
|
|
|
|
warehouseIdList: [] |
|
|
}, |
|
|
}, |
|
|
workCenterList: [], |
|
|
workCenterList: [], |
|
|
|
|
|
warehouseList: [], |
|
|
pageIndex: 1, |
|
|
pageIndex: 1, |
|
|
pageSize: 50, |
|
|
pageSize: 50, |
|
|
totalPage: 0, |
|
|
totalPage: 0, |
|
|
@ -336,6 +351,17 @@ export default { |
|
|
columnWidth: 120, |
|
|
columnWidth: 120, |
|
|
showOverflowTooltip: true |
|
|
showOverflowTooltip: true |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
columnProp: "warehouseName", |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "left", |
|
|
|
|
|
columnLabel: "出库仓库", |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 120, |
|
|
|
|
|
showOverflowTooltip: true |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
columnProp: "componentScrap", |
|
|
columnProp: "componentScrap", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -413,6 +439,7 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.calculateTableHeight(); |
|
|
this.calculateTableHeight(); |
|
|
window.addEventListener('resize', this.calculateTableHeight); |
|
|
window.addEventListener('resize', this.calculateTableHeight); |
|
|
|
|
|
this.loadWarehouseList(); |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.getSiteAndBuByUserName() |
|
|
this.getSiteAndBuByUserName() |
|
|
this.searchTable() |
|
|
this.searchTable() |
|
|
@ -451,7 +478,8 @@ export default { |
|
|
componentPartNo: '', |
|
|
componentPartNo: '', |
|
|
partDescription: '', |
|
|
partDescription: '', |
|
|
spec: '', |
|
|
spec: '', |
|
|
workCenterNoList: [] |
|
|
|
|
|
|
|
|
workCenterNoList: [], |
|
|
|
|
|
warehouseIdList: [] |
|
|
} |
|
|
} |
|
|
this.pageIndex = 1 |
|
|
this.pageIndex = 1 |
|
|
this.searchTable() |
|
|
this.searchTable() |
|
|
@ -480,6 +508,14 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 加载仓库列表 |
|
|
|
|
|
loadWarehouseList() { |
|
|
|
|
|
getWarehouseList({ userName: this.$store.state.user.name }).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.warehouseList = data.rows || [] |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
// 每页数 |
|
|
// 每页数 |
|
|
sizeChangeHandle(val) { |
|
|
sizeChangeHandle(val) { |
|
|
this.pageSize = val |
|
|
this.pageSize = val |
|
|
|