diff --git a/src/views/wisdom/bill/index.vue b/src/views/wisdom/bill/index.vue
index c20b76f..df93254 100644
--- a/src/views/wisdom/bill/index.vue
+++ b/src/views/wisdom/bill/index.vue
@@ -60,7 +60,7 @@
- {{ scope.row.execStatus == 1 ? "已入库" : "预入库" }}
+ {{ getExecStatusName(scope.row.execStatus) }}
@@ -138,7 +138,7 @@
- {{ scope.row.execStatus == 1 ? "已入库" : "预入库" }}
+ {{ getExecStatusName(scope.row.execStatus) }}
@@ -292,9 +292,9 @@
-
+
-
+
@@ -783,11 +783,17 @@ const {
} = toRefs(data);
const warehouseList = ref([]); //所属仓库下拉数据
+
// 新增库存状态
const execStatusMenu = ref([
{ value: "0", label: "预入库" },
{ value: "1", label: "已入库" },
]);
+
+const getExecStatusName = (value) => {
+ return execStatusMenu.value.find((item) => item.value === value)?.label;
+};
+
//所属仓库
function warehouseFun() {
//所属仓库下拉数据
@@ -836,12 +842,6 @@ function lhyList() {
//理货员下拉数据
lhyList();
-// 是否预入库
-const execStatusList = ref([
- { id: 0, name: "是" },
- { id: 1, name: "否" },
-]);
-
const loading = ref(true);
const billList = ref([{ execStatus: 0 }]); //单据列表
const total = ref(0); //单据