Browse Source

2026-03-02

生产领料任务页面增加仓库显示和查询条件
master
fengyuan_yang 2 months ago
parent
commit
9ca9a8147e
  1. 42
      src/views/modules/orderIssure/soIssueNotify/searchIssureNotifyForCK.vue

42
src/views/modules/orderIssure/soIssueNotify/searchIssureNotifyForCK.vue

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

Loading…
Cancel
Save