入库管理,出库管理,盘点管理,仓库下拉框,仓库字段添加,搜索框lable样式修改

This commit is contained in:
猫猫guowen
2025-06-27 11:32:18 +08:00
parent 2736aa6fb4
commit 81c04bd90d
13 changed files with 283 additions and 31 deletions

View File

@@ -185,13 +185,20 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>-->
<el-form-item :label="$t('inReceiveStockin.warehouseId')" prop="warehouseId">
<el-input
<el-form-item :label="$t('inReceiveStockin.warehouseId')" prop="warehouseId"><!--仓库-->
<el-select
v-model="queryParams.warehouseId"
:placeholder="$t('inReceiveStockin.selectWarehouseId')"
clearable
@keyup.enter.native="handleQuery"
/>
@change="handleQuery"
>
<el-option
v-for="item in warehouseOptions"
:key="item.warehouseId"
:label="item.warehouseName"
:value="item.warehouseId"
/>
</el-select>
</el-form-item>
<!-- <el-form-item label="重分标记" prop="faultFlag">
<el-input
@@ -350,6 +357,7 @@
<script>
import { listMydoJob,manualInvalidation,manualCompleted, getMydoJob, delMydoJob, addMydoJob, updateMydoJob } from "@/api/job/inmydoJob"
import { listMydoJobDetail } from "@/api/job/mydoJobDetail"
import {listWarehouse} from "@/api/bas/warehouse";
export default {
name: "MydoJob",
@@ -359,6 +367,7 @@ export default {
// 遮罩层
loading: true,
detailLoading:false,
warehouseOptions:[],
// 选中数组
ids: [],
// 非单个禁用
@@ -436,8 +445,18 @@ export default {
created() {
// 获取字典数据后,设置默认值
this.getList()
this.getWarehouseList()
},
methods: {
/** 获取仓库列表 */
getWarehouseList() {
listWarehouse().then(response => {
this.warehouseOptions = response.rows;
if (this.warehouseOptions.length > 0) {
this.handleQuery();
}
});
},
/** 查询任务表列表 */
getList() {
this.loading = true
@@ -581,4 +600,9 @@ export default {
.el-table >>> .current-row {
background-color: #f0f9eb;
}
.el-form-item >>> .el-form-item__label {
white-space: nowrap;
width: auto;
min-width: fit-content;
}
</style>

View File

@@ -669,3 +669,10 @@ export default {
}
}
</script>
<style scoped>
.el-form-item >>> .el-form-item__label {
white-space: nowrap;
width: auto;
min-width: fit-content;
}
</style>

View File

@@ -53,6 +53,21 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>-->
<el-form-item :label="$t('inReceiveStockin.warehouseId')" prop="warehouseId"><!--仓库-->
<el-select
v-model="queryParams.warehouseId"
:placeholder="$t('inReceiveStockin.selectWarehouseId')"
clearable
@change="handleQuery"
>
<el-option
v-for="item in warehouseOptions"
:key="item.warehouseId"
:label="item.warehouseName"
:value="item.warehouseId"
/>
</el-select>
</el-form-item>
<el-form-item :label="$t('inReceiveStockin.supplierNo')" prop="supplierNo"><!--供应商编码-->
<el-input
v-model="queryParams.supplierNo"
@@ -324,6 +339,7 @@ import {
} from "@/api/in/stockIn"
import {listStockInDetail, barcodePrinting} from "@/api/in/stockInDetail"
import {getLodop} from "@/plugins/LodopFuncs.js"
import {listWarehouse} from "@/api/bas/warehouse";
export default {
@@ -334,6 +350,7 @@ export default {
// 遮罩层
loading: true,
detailLoading: true,
warehouseOptions:[],
// 选中数组
ids: [],
detailIds: [],
@@ -408,8 +425,18 @@ export default {
},
created() {
this.getList()
this.getWarehouseList()
},
methods: {
/** 获取仓库列表 */
getWarehouseList() {
listWarehouse().then(response => {
this.warehouseOptions = response.rows;
if (this.warehouseOptions.length > 0) {
this.handleQuery();
}
});
},
/** 查询入库单据列表 */
getList() {
this.loading = true
@@ -659,3 +686,11 @@ export default {
}
}
</script>
<style scoped>
.el-form-item >>> .el-form-item__label {
white-space: nowrap;
width: auto;
min-width: fit-content;
}
</style>