From ac0f8cb931267139baf676cec8c3b97eef1e1334 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 5 Jun 2024 17:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/http.ts | 14 +- src/api/request2.js | 2 +- src/common/calc.js | 8 + src/common/style/new_style.css | 1 - src/components/my-paging/my-paging.vue | 1 + src/mycomponents/balance/pack.vue | 2 +- src/mycomponents/detail/comDetailCard.vue | 11 +- src/mycomponents/item/itemCompareQty.vue | 2 +- src/mycomponents/item/itemQty.vue | 2 +- src/mycomponents/job/jobComMainDetailCard.vue | 2 +- src/mycomponents/package/packageList.vue | 356 ++++----- .../package/packageRecordCard.vue | 217 +++-- src/mycomponents/qty/balanceQtyEdit.vue | 20 +- .../record/recordComDetailCard.vue | 2 +- src/mycomponents/scan/winScanItem.vue | 26 +- src/mycomponents/scan/winScanLocation.vue | 2 +- src/mycomponents/status/balanceStatus.vue | 6 +- src/pages.json | 10 + .../request/customerReturnRequest.vue | 2 +- .../request/customerReturnRequestCreate.vue | 2 +- .../deliver/coms/comDeliverRequestPopup.vue | 2 +- src/pages/deliver/record/deliverRecord.vue | 122 +-- src/pages/deliver/request/deliverRequest.vue | 2 +- .../deliver/request/deliverRequestCreate.vue | 28 +- src/pages/index/index.vue | 2 +- src/pages/issue/coms/comIssueRequestPopup.vue | 3 +- src/pages/issue/coms/comScanIssuePack.vue | 2 +- src/pages/issue/job/issueDetail.vue | 9 +- src/pages/issue/record/directIssue.vue | 5 +- .../issue/request/issueRequestCreate.vue | 9 +- .../package/job/overPackageJobDetail.vue | 7 +- src/pages/pointProductReceipt/webview.vue | 1 + .../productPutaway/request/putawayRequest.vue | 2 +- src/pages/productReceipt/coms/comFgCard.vue | 4 +- .../coms/comProductDetailCard.vue | 2 +- .../job/fgProductReceiptDetail.vue | 23 +- .../productReceipt/job/productReceiptJob.vue | 2 +- .../record/productReceiptRecord.vue | 3 +- .../coms/comReturnCommonRequest.vue | 2 +- .../coms/comReturnRequestCreator.vue | 4 +- .../productionReturn/record/returnToHold.vue | 37 +- .../productionReturn/record/returnToStore.vue | 80 +- .../request/requestDetail.vue | 1 + .../request/returnRequestCreate.vue | 11 +- .../coms/comReceiptDetailCard.vue | 3 + .../purchaseReceipt/job/receiptDetail.vue | 13 +- src/pages/purchaseReturn/job/returnDetail.vue | 2 +- .../purchaseReturn/request/returnRequest.vue | 15 +- .../request/returnRequestCreate.vue | 1 - src/pages/putaway/record/putawayRecord.vue | 17 +- src/pages/putaway/request/putawayRequest.vue | 2 +- src/pages/query/coms/comItemDetailCard.vue | 2 +- src/pages/query/item.vue | 2 + .../repleinsh/coms/comScanReplishPack.vue | 117 +-- src/pages/repleinsh/job/repleinshDetail.vue | 14 +- .../record/directRepleinshRecord.vue} | 229 +++--- .../repleinsh/record/repleinshRecord.vue | 7 +- src/pages/scrap/request/scrapRrequest.vue | 2 +- src/pages/unPlanned/request/issueRequest.vue | 2 +- .../unPlanned/request/receiptRequest.vue | 2 +- src/uni_modules/z-paging/changelog.md | 6 + .../z-paging-cell/z-paging-cell.vue | 34 + .../z-paging-empty-view.vue | 162 ++++ .../z-paging-swiper-item.vue | 143 ++++ .../z-paging-swiper/z-paging-swiper.vue | 170 ++++ .../components/z-paging-load-more.vue | 141 ++++ .../z-paging/components/z-paging-refresh.vue | 182 +++++ .../components/z-paging/config/index.js | 3 + .../components/z-paging/css/z-paging-main.css | 228 ++++++ .../z-paging/css/z-paging-static.css | 35 + .../z-paging/components/z-paging/i18n/en.json | 22 + .../components/z-paging/i18n/index.js | 8 + .../components/z-paging/i18n/zh-Hans.json | 22 + .../components/z-paging/i18n/zh-Hant.json | 22 + .../z-paging/js/hooks/useZPaging.js | 25 + .../z-paging/js/hooks/useZPagingComp.js | 26 + .../z-paging/js/modules/back-to-top.js | 100 +++ .../z-paging/js/modules/common-layout.js | 116 +++ .../z-paging/js/modules/data-handle.js | 741 ++++++++++++++++++ .../components/z-paging/js/modules/empty.js | 147 ++++ .../components/z-paging/js/modules/i18n.js | 101 +++ .../z-paging/js/modules/load-more.js | 315 ++++++++ .../components/z-paging/js/modules/loading.js | 93 +++ .../components/z-paging/js/modules/nvue.js | 249 ++++++ .../z-paging/js/modules/refresher.js | 677 ++++++++++++++++ .../z-paging/js/modules/scroller.js | 464 +++++++++++ .../z-paging/js/modules/virtual-list.js | 461 +++++++++++ .../components/z-paging/js/z-paging-config.js | 21 + .../z-paging/js/z-paging-constant.js | 12 + .../components/z-paging/js/z-paging-enum.js | 44 ++ .../z-paging/js/z-paging-interceptor.js | 48 ++ .../components/z-paging/js/z-paging-main.js | 446 +++++++++++ .../components/z-paging/js/z-paging-mixin.js | 22 + .../components/z-paging/js/z-paging-static.js | 13 + .../components/z-paging/js/z-paging-utils.js | 228 ++++++ .../z-paging/wxs/z-paging-renderjs.js | 58 ++ .../components/z-paging/wxs/z-paging-wxs.wxs | 340 ++++++++ .../z-paging/components/z-paging/z-paging.vue | 307 ++++++++ src/uni_modules/z-paging/package.json | 86 ++ src/uni_modules/z-paging/readme.md | 53 ++ src/uni_modules/z-tabs/changelog.md | 2 + .../z-tabs/components/z-tabs/config/index.js | 4 + .../z-tabs/components/z-tabs/z-tabs.vue | 736 +++++++++++++++++ src/uni_modules/z-tabs/package.json | 82 ++ src/uni_modules/z-tabs/readme.md | 175 +++++ 105 files changed, 8183 insertions(+), 668 deletions(-) rename src/pages/{putaway/record/putawayRecord_bat.vue => repleinsh/record/directRepleinshRecord.vue} (68%) create mode 100644 src/uni_modules/z-paging/changelog.md create mode 100644 src/uni_modules/z-paging/components/z-paging-cell/z-paging-cell.vue create mode 100644 src/uni_modules/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue create mode 100644 src/uni_modules/z-paging/components/z-paging-swiper-item/z-paging-swiper-item.vue create mode 100644 src/uni_modules/z-paging/components/z-paging-swiper/z-paging-swiper.vue create mode 100644 src/uni_modules/z-paging/components/z-paging/components/z-paging-load-more.vue create mode 100644 src/uni_modules/z-paging/components/z-paging/components/z-paging-refresh.vue create mode 100644 src/uni_modules/z-paging/components/z-paging/config/index.js create mode 100644 src/uni_modules/z-paging/components/z-paging/css/z-paging-main.css create mode 100644 src/uni_modules/z-paging/components/z-paging/css/z-paging-static.css create mode 100644 src/uni_modules/z-paging/components/z-paging/i18n/en.json create mode 100644 src/uni_modules/z-paging/components/z-paging/i18n/index.js create mode 100644 src/uni_modules/z-paging/components/z-paging/i18n/zh-Hans.json create mode 100644 src/uni_modules/z-paging/components/z-paging/i18n/zh-Hant.json create mode 100644 src/uni_modules/z-paging/components/z-paging/js/hooks/useZPaging.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/hooks/useZPagingComp.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/back-to-top.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/common-layout.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/data-handle.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/empty.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/i18n.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/load-more.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/loading.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/nvue.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/refresher.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/scroller.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/modules/virtual-list.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-config.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-constant.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-enum.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-interceptor.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-main.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-static.js create mode 100644 src/uni_modules/z-paging/components/z-paging/js/z-paging-utils.js create mode 100644 src/uni_modules/z-paging/components/z-paging/wxs/z-paging-renderjs.js create mode 100644 src/uni_modules/z-paging/components/z-paging/wxs/z-paging-wxs.wxs create mode 100644 src/uni_modules/z-paging/components/z-paging/z-paging.vue create mode 100644 src/uni_modules/z-paging/package.json create mode 100644 src/uni_modules/z-paging/readme.md create mode 100644 src/uni_modules/z-tabs/changelog.md create mode 100644 src/uni_modules/z-tabs/components/z-tabs/config/index.js create mode 100644 src/uni_modules/z-tabs/components/z-tabs/z-tabs.vue create mode 100644 src/uni_modules/z-tabs/package.json create mode 100644 src/uni_modules/z-tabs/readme.md diff --git a/src/api/http.ts b/src/api/http.ts index d0e64e78..608ba47e 100644 --- a/src/api/http.ts +++ b/src/api/http.ts @@ -89,7 +89,19 @@ instance.interceptors.response.use((v) => { confirmText: '重新登录', success: function (res) { if (res.confirm) { - uni.reLaunch({ url: '/pages/login' }) + uni.reLaunch({ url: '/pages/login/index' }) + } + } + }) + } else if(v.data.code == 401){ + uni.showModal({ + title: '系统提示', + content: '账号未登录,请重新登录', + cancelText: '关闭', + confirmText: '重新登录', + success: function (res) { + if (res.confirm) { + uni.reLaunch({ url: '/pages/login/index' }) } } }) diff --git a/src/api/request2.js b/src/api/request2.js index 94f96ef7..33d3433b 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -2108,7 +2108,7 @@ export function productionReturnRequestAddAgain(id) { export function productionReturnRequestCreate(params) { - return http.put("/wms/productionreturn-request-main/create",params) + return http.post("/wms/productionreturn-request-main/create",params) } /** * 生产退料记录 提交 diff --git a/src/common/calc.js b/src/common/calc.js index 6c5da860..5661a6bb 100644 --- a/src/common/calc.js +++ b/src/common/calc.js @@ -2,15 +2,23 @@ import Decimal from 'decimal.js' class Calc { add(num1,num2) { + num1 = num1 || 0 + num2 = num2 || 0 return new Decimal(num1).add(new Decimal(num2)).toNumber() } sub(num1,num2) { + num1 = num1 || 0 + num2 = num2 || 0 return new Decimal(num1).sub(new Decimal(num2)).toNumber() } mul(num1,num2) { + num1 = num1 || 0 + num2 = num2 || 0 return new Decimal(num1).mul(new Decimal(num2)).toNumber() } div(num1,num2) { + num1 = num1 || 0 + num2 = num2 || 0 return new Decimal(num1).div(new Decimal(num2)).toNumber() } } diff --git a/src/common/style/new_style.css b/src/common/style/new_style.css index 9e694dcf..3808b7c6 100644 --- a/src/common/style/new_style.css +++ b/src/common/style/new_style.css @@ -218,7 +218,6 @@ uni-page-head .uni-page-head__title { .cen_card { padding: 0 0rpx; - width: 100%; box-sizing: border-box; background:#EEF4FA; padding:20rpx; diff --git a/src/components/my-paging/my-paging.vue b/src/components/my-paging/my-paging.vue index e8447694..29685440 100644 --- a/src/components/my-paging/my-paging.vue +++ b/src/components/my-paging/my-paging.vue @@ -131,6 +131,7 @@ const reload = (data) => { } // 接收页面触发的complete方法,传给z-paging const complete = (data) => { + console.log(data) paging.value.complete(data) } /* diff --git a/src/mycomponents/balance/pack.vue b/src/mycomponents/balance/pack.vue index 3874c0a4..a205761e 100644 --- a/src/mycomponents/balance/pack.vue +++ b/src/mycomponents/balance/pack.vue @@ -1,6 +1,6 @@ diff --git a/src/mycomponents/detail/comDetailCard.vue b/src/mycomponents/detail/comDetailCard.vue index 66f55847..8c0c48dd 100644 --- a/src/mycomponents/detail/comDetailCard.vue +++ b/src/mycomponents/detail/comDetailCard.vue @@ -10,7 +10,7 @@ - + @@ -48,6 +48,10 @@ const props = defineProps({ locationAreaTypeList: { type: Array, default: null + }, + queryBalance: { + type: Boolean, + default: true } }) const option = ref([]) @@ -59,6 +63,7 @@ const scanOptions = ref([]) const comMessageRef = ref() const collapse = ref() const qtyEdit = ref() +const scanLocationCode = ref() const dataContent = ref(props.dataContent) dataContent.value.subList.forEach((item) => { item.show = false @@ -110,7 +115,7 @@ const swipeClick = (params, item) => { } const edit = (item) => { editItem.value = item - qtyEdit.value.openEditPopup(item.balance, item.handleQty) + qtyEdit.value.openEditPopup(item, item.handleQty) } const detail = (item) => { emit('openDetail', item) @@ -129,7 +134,7 @@ const confirm = (qty) => { editItem.value.handleQty = qty emit('updateData') } -const showLocation = () => { +const showLocation = (item) => { locatonItem.value = item scanLocationCode.value.openScanPopup() } diff --git a/src/mycomponents/item/itemCompareQty.vue b/src/mycomponents/item/itemCompareQty.vue index 3bac1b38..82e36972 100644 --- a/src/mycomponents/item/itemCompareQty.vue +++ b/src/mycomponents/item/itemCompareQty.vue @@ -3,7 +3,7 @@ - + diff --git a/src/mycomponents/item/itemQty.vue b/src/mycomponents/item/itemQty.vue index 4e8fe76b..9eb9e54e 100644 --- a/src/mycomponents/item/itemQty.vue +++ b/src/mycomponents/item/itemQty.vue @@ -1,5 +1,5 @@