From 978dfccf4c016b419f4201218abce808816e88e2 Mon Sep 17 00:00:00 2001 From: woody Date: Mon, 11 Aug 2025 09:22:21 +0800 Subject: [PATCH 01/18] =?UTF-8?q?fix(productSaleStatistics):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8DtopBar=E7=82=B9=E5=87=BB=E8=B7=B3=E8=BD=AC=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/productSaleStatistics.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/statistics/productSaleStatistics.vue b/src/views/statistics/productSaleStatistics.vue index 06b837e..54be745 100644 --- a/src/views/statistics/productSaleStatistics.vue +++ b/src/views/statistics/productSaleStatistics.vue @@ -148,11 +148,11 @@ export default { }, data() { return { - moren: 'productSaleStatisticsDetail', + moren: 'productSaleStatistics', topList: [ { name: '产品销售统计', - path: 'productSaleStatisticsDetail' + path: 'productSaleStatistics' } ], tableData: [], From 75f4de0601c29fba37dbaa97617c60a885555695 Mon Sep 17 00:00:00 2001 From: woody Date: Mon, 11 Aug 2025 15:41:48 +0800 Subject: [PATCH 02/18] =?UTF-8?q?feat(outOfStock):=20=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E6=B7=BB=E5=8A=A0=E9=9D=9E=E5=9C=A8=E5=94=AE?= =?UTF-8?q?=E5=95=86=E5=93=81=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product.js | 16 ++ src/components/Delivery/unhandeled.vue | 12 +- .../components/OutOfStockProductList.vue | 243 ++++++++++++++++++ src/views/logistics/delivery/index.vue | 194 ++------------ 4 files changed, 291 insertions(+), 174 deletions(-) create mode 100644 src/views/logistics/delivery/components/OutOfStockProductList.vue diff --git a/src/api/product.js b/src/api/product.js index cbac9b3..df016df 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -769,3 +769,19 @@ export function getMaxSortNum(params) { params }) } + +export function resetInventoryUse(data) { + return request({ + url: 'sale/manage/wares/resetInventoryUse', + method: 'post', + data + }) +} + +export function getOutOfStockProduct(params) { + return request({ + url: 'sale/manage/wares/list-no-sale', + method: 'get', + params + }) +} diff --git a/src/components/Delivery/unhandeled.vue b/src/components/Delivery/unhandeled.vue index 2dd0161..1bf2d43 100644 --- a/src/components/Delivery/unhandeled.vue +++ b/src/components/Delivery/unhandeled.vue @@ -41,6 +41,13 @@ @click="orderDk" >订单抵扣 + - + +
+ + + + + + + + + + + + + + + + + + + + + 搜索 + + + +
+ + {{ item.waresName }} ({{ item.waresCode }}) + +
+ + + + + + + + + + + +
+ + {{ '取消' }} + {{ + '确认' + }} + +
+ + + + + diff --git a/src/views/logistics/delivery/index.vue b/src/views/logistics/delivery/index.vue index 558d23d..b6e3acb 100644 --- a/src/views/logistics/delivery/index.vue +++ b/src/views/logistics/delivery/index.vue @@ -6,7 +6,7 @@ :moren="moren" />
- + @@ -1156,14 +1075,15 @@ import yihandeled from '@/components/Delivery/yihandeled.vue' import nowdelivery from '@/components/Delivery/nowdelivery.vue' import * as del from '@/api/delivery.js' import { getRouters } from '@/api/settle' -import { productList } from '@/api/product' +import OutOfStockProductList from './components/OutOfStockProductList.vue' export default { name: 'Fhqd', components: { topBar, unhandeled, yihandeled, - nowdelivery + nowdelivery, + OutOfStockProductList }, data() { return { @@ -1175,10 +1095,8 @@ export default { } ], dialogVisible: false, - dialogList: [], - lsArr: [], - tableData: [], - productLists: [], + + productLists: '', select: {}, orderTypeList: [], // 订单类型 orderStatusList: [], // 订单状态 @@ -1196,6 +1114,7 @@ export default { yesornoList: [], // 二次发货 storehouseList: [], // 发货仓库 total: '', + selectedProductList: [], queryParams: { pageNum: 1, pageSize: 500, @@ -1255,84 +1174,15 @@ export default { }, methods: { clearProduct() { - this.tableData = [] - this.lsArr = [] + this.selectedProductList = [] this.queryParams.productIdList = [] - this.productLists = [] + this.productLists = '' }, openDig() { - this.select = {} - productList(Object.assign({ isPutOn: 0 }, this.queryParams)).then( - (res) => { - res.rows.forEach((item) => { - item.quantity = 1 - item.pkProduct = item.pkProduct - item.isGift = 0 - }) - this.dialogList = res.rows - this.total = res.total - } - ) this.dialogVisible = true + this.select = {} }, - handleClose() { - this.dialogVisible = false - }, - getDataList() { - productList( - Object.assign({ isPutOn: 0 }, this.queryParams, this.select) - ).then((res) => { - res.rows.forEach((item) => { - item.quantity = 1 - item.pkProduct = item.pkProduct - item.isGift = 0 - }) - this.dialogList = res.rows - this.total = res.total - }) - }, - dialogChange(val) { - this.lsArr = val - }, - onSubmit() { - // this.tableData = [] - this.lsArr.forEach((item) => { - this.tableData.push(item) - }) - // this.tableData = this.clearArr(this.tableData) - this.dialogVisible = false - this.dialogList.forEach((row) => { - this.$refs.lessonTableRef.toggleRowSelection(row, false) - }) - // 判断重复 - const arr = this.tableData - let isTrue = false - for (var i = 0; i < arr.length; i++) { - // 首次遍历数组 - for (var j = i + 1; j < arr.length; j++) { - // 再次遍历数组 - if (arr[i].productCode == arr[j].productCode) { - if (arr[i].isGift == arr[j].isGift) { - isTrue = true - } - } - } - } - if (isTrue) { - this.$message.error('请勿选择重复的商品') - this.tableData = [] - this.lsArr = [] - this.queryParams.productIdList = [] - this.productLists = [] - return - } - this.queryParams.productIdList = [] - this.productLists = [] - this.tableData.forEach((item) => { - this.queryParams.productIdList.push(item.pkId) - this.productLists.push(item.productName) - }) - }, + tableRowClassName({ row, rowIndex }) { if (rowIndex % 2 == 1) { return 'warning-row' @@ -1477,7 +1327,8 @@ export default { }) }, // 重置 - reChongzhi() { + resetHandle() { + this.selectedProductList = [] this.queryParams = { pageNum: 1, pageSize: 500, @@ -1488,6 +1339,11 @@ export default { // 展开折叠 changeActive() { this.isActive = !this.isActive + }, + handleSubmit(products) { + this.selectedProductList = [...products] + this.queryParams.productIdList = products.map((item) => item.pkId).join(',') + this.productLists = products.map((item) => item.waresName).join(',') } } } From b5bbb67130da7d81a87ae28c00d2087e8af46512 Mon Sep 17 00:00:00 2001 From: woody Date: Mon, 11 Aug 2025 17:28:17 +0800 Subject: [PATCH 03/18] =?UTF-8?q?feat(unhandled):=20=E6=9C=AA=E5=90=88?= =?UTF-8?q?=E5=8D=95=E6=B6=88=E6=81=AF=E6=8F=90=E7=A4=BA=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Delivery/unhandeled.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Delivery/unhandeled.vue b/src/components/Delivery/unhandeled.vue index 1bf2d43..47f215f 100644 --- a/src/components/Delivery/unhandeled.vue +++ b/src/components/Delivery/unhandeled.vue @@ -45,8 +45,9 @@ style="width: fit-content" :closable="false" title="默认显示【在售】商品订单,如需查询【预售】【缺货】商品,请使用【非在售商品】条件进行筛选" - type="info" + type="error" show-icon + effect="dark" />
Date: Tue, 12 Aug 2025 10:16:36 +0800 Subject: [PATCH 04/18] =?UTF-8?q?feat(unHandeled):=20=E6=9C=AA=E5=90=88?= =?UTF-8?q?=E5=8D=95=E6=8F=90=E7=A4=BA=E8=AF=AD=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Delivery/unhandeled.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Delivery/unhandeled.vue b/src/components/Delivery/unhandeled.vue index 47f215f..3898956 100644 --- a/src/components/Delivery/unhandeled.vue +++ b/src/components/Delivery/unhandeled.vue @@ -44,7 +44,7 @@ Date: Tue, 12 Aug 2025 10:28:03 +0800 Subject: [PATCH 05/18] =?UTF-8?q?feat(unHandeled):=20=20=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E5=90=88=E5=8D=95=E5=8F=82=E6=95=B0=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Delivery/unhandeled.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/Delivery/unhandeled.vue b/src/components/Delivery/unhandeled.vue index 3898956..574a53a 100644 --- a/src/components/Delivery/unhandeled.vue +++ b/src/components/Delivery/unhandeled.vue @@ -44,7 +44,7 @@ { + const params = { + ...this.params, + pkWaresList: this.params.pkWaresList ? this.params.pkWaresList.split(',') : [], + mergeType: this.hdform.mergeType + } del - .deliverUnhandeldMerge( - Object.assign({}, this.params, { - mergeType: this.hdform.mergeType - }) - ) + .deliverUnhandeldMerge(params) .then((res) => { this.$message({ message: res.msg, From 727a5f8acd1f97c763d78f185f47845b6cb2ad46 Mon Sep 17 00:00:00 2001 From: woody Date: Tue, 12 Aug 2025 10:32:38 +0800 Subject: [PATCH 06/18] feat(unHandeled): rm dark --- src/components/Delivery/unhandeled.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Delivery/unhandeled.vue b/src/components/Delivery/unhandeled.vue index 574a53a..a23e93f 100644 --- a/src/components/Delivery/unhandeled.vue +++ b/src/components/Delivery/unhandeled.vue @@ -47,7 +47,6 @@ title="默认显示【在售】商品订单,如需查询【预售】【缺货】商品,请使用【非在售商品】进行追加查询" type="error" show-icon - effect="dark" /> Date: Tue, 12 Aug 2025 13:40:02 +0800 Subject: [PATCH 07/18] fix(delivery): queryparams pkWaresList --- src/views/logistics/delivery/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/logistics/delivery/index.vue b/src/views/logistics/delivery/index.vue index b6e3acb..50126c2 100644 --- a/src/views/logistics/delivery/index.vue +++ b/src/views/logistics/delivery/index.vue @@ -1342,7 +1342,7 @@ export default { }, handleSubmit(products) { this.selectedProductList = [...products] - this.queryParams.productIdList = products.map((item) => item.pkId).join(',') + this.queryParams.pkWaresList = products.map((item) => item.pkId).join(',') this.productLists = products.map((item) => item.waresName).join(',') } } From 2cdaca9a684bcec206535d3edbe78e482c01849f Mon Sep 17 00:00:00 2001 From: woody Date: Tue, 12 Aug 2025 15:15:55 +0800 Subject: [PATCH 08/18] feat(delivery): queryparams pkWaresList --- src/views/logistics/delivery/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/logistics/delivery/index.vue b/src/views/logistics/delivery/index.vue index 50126c2..2e5530e 100644 --- a/src/views/logistics/delivery/index.vue +++ b/src/views/logistics/delivery/index.vue @@ -222,7 +222,7 @@ - + Date: Tue, 12 Aug 2025 16:27:46 +0800 Subject: [PATCH 09/18] =?UTF-8?q?feat(cashDetails):=20=20=E6=8F=90?= =?UTF-8?q?=E7=8E=B0=E6=98=8E=E7=BB=86=E7=A8=8E=E8=B4=B9=E6=94=B9=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/financial/cashDetails/index.vue | 57 +++-------------------- 1 file changed, 6 insertions(+), 51 deletions(-) diff --git a/src/views/financial/cashDetails/index.vue b/src/views/financial/cashDetails/index.vue index 318764f..b26bc0e 100644 --- a/src/views/financial/cashDetails/index.vue +++ b/src/views/financial/cashDetails/index.vue @@ -294,7 +294,7 @@ v-if="showData.availableAmount" align="center" prop="availableAmount" - :label="'可提金额' + `(${isLocalSymbol()})`" + :label="'可提金额'" width="100" >