From 46c67af1fcdb39648596dcafc6771d73844f4c0b Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Wed, 29 May 2024 18:06:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/opurchaseclass.ts | 5 + src/components/subOrderDetail/index.vue | 3 + src/utils/print.ts | 4 +- src/views/goods/quote/component/adoptOne.vue | 49 ++++- src/views/goods/quote/component/adoptThe.vue | 21 ++- src/views/goods/quote/component/adoptTow.vue | 21 ++- .../goods/quote/component/deliverGoods.vue | 2 +- src/views/opurchase/outList/index.vue | 167 ++++++++++++++++++ src/views/opurchase/putList/index.vue | 167 ++++++++++++++++++ src/views/retail/cashierclass/detail.vue | 13 +- .../translationOrder/component/goodsOffer.vue | 64 ++++--- .../translationOrder/component/outStorage.vue | 2 +- 12 files changed, 478 insertions(+), 40 deletions(-) create mode 100644 src/views/opurchase/outList/index.vue create mode 100644 src/views/opurchase/putList/index.vue diff --git a/src/api/opurchaseclass.ts b/src/api/opurchaseclass.ts index e5886a0..b61582b 100644 --- a/src/api/opurchaseclass.ts +++ b/src/api/opurchaseclass.ts @@ -75,4 +75,9 @@ export function opurchaseclassStreamUpdateApi(params: any) { return request.post({ url: '/operation/opurchaseclass/stream_update', params }) } +// 全部出入库记录 +export function opurchaseclassAllListsApi(params: any) { + return request.get({ url: '/operation/OpurchaseGoodsOffer/all_lists', params }) +} + diff --git a/src/components/subOrderDetail/index.vue b/src/components/subOrderDetail/index.vue index e5517ec..bd154e5 100644 --- a/src/components/subOrderDetail/index.vue +++ b/src/components/subOrderDetail/index.vue @@ -28,6 +28,9 @@ {{ formData.money }} + + {{ formData.merchant_info?.mer_address }} +
diff --git a/src/utils/print.ts b/src/utils/print.ts index 5d61d20..bdcfe12 100644 --- a/src/utils/print.ts +++ b/src/utils/print.ts @@ -214,9 +214,9 @@ export const print = (data: any) => { // 合计高度 23 + length * 2 //打印 - hiprintTemplate.print({}); + // hiprintTemplate.print({}); //直接打印,需要安装客户端 - // hiprintTemplate.print2({}); + hiprintTemplate.print2({}); // 直接打印回调 // 发送任务到打印机成功 hiprintTemplate.on("printSuccess", (e: any) => { diff --git a/src/views/goods/quote/component/adoptOne.vue b/src/views/goods/quote/component/adoptOne.vue index 299552d..539c8aa 100644 --- a/src/views/goods/quote/component/adoptOne.vue +++ b/src/views/goods/quote/component/adoptOne.vue @@ -9,10 +9,11 @@ :infinite-scroll-delay="500" :infinite-scroll-immediate="false" style="overflow: auto" + v-loading="where.loading" > - +
名称: {{ item.goods_name }}
@@ -28,6 +29,8 @@ v-model="item.nums" placeholder="请输入可提供数量" style="flex: 1" + type="number" + @blur="blur1(item)" >
@@ -36,6 +39,8 @@ v-model="item.price" placeholder="请输入产品报价" style="flex: 1" + type="number" + @blur="blur2(item)" >
@@ -57,6 +62,7 @@ - diff --git a/src/views/goods/quote/component/adoptThe.vue b/src/views/goods/quote/component/adoptThe.vue index ade716c..aac77d6 100644 --- a/src/views/goods/quote/component/adoptThe.vue +++ b/src/views/goods/quote/component/adoptThe.vue @@ -15,7 +15,7 @@
-
+
名称: {{ item.goods_name }}
@@ -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 @@ + + + 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 @@ + + + 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 @@