@@ -86,16 +86,32 @@ const props = defineProps({
const list = ref([]);
+const where = reactive({
+ page_no: 1,
+ page_size: 30,
+ loading: false,
+ loadend: false,
+})
const getLists = (reload = false) => {
if (reload) {
list.value = [];
+ where.page_no = 1;
+ where.loadend = false;
+ where.loading = false;
}
+ if(where.loading || where.loadend) return;
+ where.loading = true;
opurchaseGoodsOfferListsApi({
- is_adopt: 2,
start_time: timeFormat(new Date(props.date), "yyyy-mm-dd"),
end_time: timeFormat(new Date(props.date), "yyyy-mm-dd") + " 23:59:59",
+ is_adopt: 2,
+ page_no: where.page_no,
+ page_size: where.page_size
}).then((res) => {
list.value = [...list.value, ...res.lists];
+ if(res.lists.length < where.page_size) where.loadend = true;
+ where.page_no++;
+ where.loading = false;
});
};
@@ -162,4 +178,5 @@ const deliverGoodsRef = ref(null);
::-webkit-scrollbar-thumb:hover {
background-color: #999; /* 设置鼠标悬停时滑块的背景色 */
}
+input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
diff --git a/src/views/goods/quote/component/adoptTow.vue b/src/views/goods/quote/component/adoptTow.vue
index db4fd74..1b3b6ad 100644
--- a/src/views/goods/quote/component/adoptTow.vue
+++ b/src/views/goods/quote/component/adoptTow.vue
@@ -9,7 +9,7 @@
>
-
+
名称: {{ item.goods_name }}
@@ -89,16 +89,32 @@ const props = defineProps({
const list = ref([]);
+const where = reactive({
+ page_no: 1,
+ page_size: 30,
+ loading: false,
+ loadend: false,
+})
const getLists = (reload = false) => {
if (reload) {
list.value = [];
+ where.page_no = 1;
+ where.loadend = false;
+ where.loading = false;
}
+ if(where.loading || where.loadend) return;
+ where.loading = true;
opurchaseGoodsOfferListsApi({
- type: 2,
start_time: timeFormat(new Date(props.date), "yyyy-mm-dd"),
end_time: timeFormat(new Date(props.date), "yyyy-mm-dd") + " 23:59:59",
+ type: 2,
+ page_no: where.page_no,
+ page_size: where.page_size
}).then((res) => {
list.value = [...list.value, ...res.lists];
+ if(res.lists.length < where.page_size) where.loadend = true;
+ where.page_no++;
+ where.loading = false;
});
};
@@ -136,4 +152,5 @@ defineExpose({
::-webkit-scrollbar-thumb:hover {
background-color: #999; /* 设置鼠标悬停时滑块的背景色 */
}
+input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
diff --git a/src/views/goods/quote/component/deliverGoods.vue b/src/views/goods/quote/component/deliverGoods.vue
index a9516fe..3e1478d 100644
--- a/src/views/goods/quote/component/deliverGoods.vue
+++ b/src/views/goods/quote/component/deliverGoods.vue
@@ -2,7 +2,7 @@
-
+
diff --git a/src/views/opurchase/outList/index.vue b/src/views/opurchase/outList/index.vue
new file mode 100644
index 0000000..c67a8b0
--- /dev/null
+++ b/src/views/opurchase/outList/index.vue
@@ -0,0 +1,167 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 已出库
+ 未出库
+
+
+
+
+
+
+
+ 采纳
+ 已出库
+ 出库
+ 等待供应商报价
+
+
+
+
+
+
+
+ {{ updateInfo.supplier_name }}
+
+
+ {{ updateInfo.goods_name }}
+
+
+ ¥ {{ updateInfo.price }} / {{ updateInfo.unit_name }}
+
+
+ {{ updateInfo.q_nums }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/opurchase/putList/index.vue b/src/views/opurchase/putList/index.vue
new file mode 100644
index 0000000..99352b7
--- /dev/null
+++ b/src/views/opurchase/putList/index.vue
@@ -0,0 +1,167 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 已入库
+ 未入库
+
+
+
+
+
+
+
+ 采纳
+ 已入库
+ 入库
+ 等待供应商报价
+
+
+
+
+
+
+
+ {{ updateInfo.supplier_name }}
+
+
+ {{ updateInfo.goods_name }}
+
+
+ ¥ {{ updateInfo.price }} / {{ updateInfo.unit_name }}
+
+
+ {{ updateInfo.q_nums }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/retail/cashierclass/detail.vue b/src/views/retail/cashierclass/detail.vue
index c462bfc..a7b20fc 100644
--- a/src/views/retail/cashierclass/detail.vue
+++ b/src/views/retail/cashierclass/detail.vue
@@ -1,7 +1,8 @@