diff --git a/src/entry/background.js b/src/entry/background.js index 82d9e43..786f24f 100644 --- a/src/entry/background.js +++ b/src/entry/background.js @@ -47,8 +47,6 @@ chrome.action.onClicked.addListener(function () { }); chrome.webRequest.onSendHeaders.addListener(details => { - console.log(11111) - console.log(details.url) if (details.url && (details.url.indexOf('joinDeliveryGoodsOrderPlatform') != -1)) { details.requestHeaders.push({ name: 'Referer', @@ -61,14 +59,12 @@ chrome.webRequest.onSendHeaders.addListener(details => { } } } else if (details.url && (details.url.indexOf('mms/userInfo') != -1)) { - console.log(3413243243) details.requestHeaders.push({ name: 'Referer', value: 'https://kuajing.pinduoduo.com/main/order-manage' }) for (let i = 0 ; i < details.requestHeaders.length; i++) { if (details.requestHeaders[i].name == 'Origin') { - console.log(95459745974) details.requestHeaders[i].value = 'https://kuajing.pinduoduo.com' break; } diff --git a/src/manifest.production.json b/src/manifest.production.json index 98fe4a1..aa1070e 100644 --- a/src/manifest.production.json +++ b/src/manifest.production.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "TEMU助手", "description": "TEMU助手 - 自动化提高生产效率", - "version": "2.3.0", + "version": "2.3.1", "background": { "service_worker": "/background.js" }, diff --git a/src/router/index.js b/src/router/index.js index 5c406b6..aad8e94 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -30,6 +30,11 @@ const router = new VueRouter({ name: 'NormalSendGoods', component: () => import('../view/shipping/NormalSendGoods.vue') }, + { + path: 'shippingDesk', + name: 'shippingDesk', + component: () => import('../view/shipping/ShippingDesk.vue') + }, { path: 'shippingList', name: 'shippingList', diff --git a/src/view/Home.vue b/src/view/Home.vue index 520faed..f45a0e5 100644 --- a/src/view/Home.vue +++ b/src/view/Home.vue @@ -46,6 +46,7 @@ 备货单管理 抢仓发货 + 发货台管理 待收货发货单 已收货发货单 @@ -56,7 +57,7 @@ 商品管理 商品复制 - 商品调价 + diff --git a/src/view/shipping/NormalSendGoods.vue b/src/view/shipping/NormalSendGoods.vue index df6bb9e..5dae91e 100644 --- a/src/view/shipping/NormalSendGoods.vue +++ b/src/view/shipping/NormalSendGoods.vue @@ -237,6 +237,19 @@ 开 始 + + + {{ warningText }} + + 我知道了 + + @@ -305,6 +318,10 @@ isLoading: false, isDlgLoading: false, + // 警告弹窗 + isShowWarning: false, + warningText: '', + robDlgShow: false, } }, @@ -364,10 +381,16 @@ loadAll() { this.$userCheck().then(() => { this.choosedList = [] - this.loadMallIndex = 0 - this.loadMode = 1 + this.currentPage = 1 this.isLoading = true - this.getList(this.choosedList, this.mallList[this.loadMallIndex].mallId, this.mallList[this.loadMallIndex].mallName, 1) + if (this.$store.state.userInfo.type == 3) { + this.loadMode = 0 + this.getList(this.choosedList, this.$store.state.mallId, this.$store.state.mallName, 1) + } else { + this.loadMallIndex = 0 + this.loadMode = 1 + this.getList(this.choosedList, this.mallList[this.loadMallIndex].mallId, this.mallList[this.loadMallIndex].mallName, 1) + } }); }, @@ -434,7 +457,7 @@ currentPage ++ this.getList(data, mallId, mallName, currentPage) } else { - if (this.loadMode == '1') { + if (this.loadMode == 1) { this.loadMallIndex ++ if (this.loadMallIndex < this.mallList.length) { this.getList(data, this.mallList[this.loadMallIndex].mallId, this.mallList[this.loadMallIndex].mallName, 1) @@ -531,12 +554,22 @@ } } if (!res.errorCode && res.error_code && (res.error_code == 40001)) { - this.networkErrorCount ++ + this.isShowWarning = true + this.warningText = '“卖家中心”已退出登录,抢单停止' + this.isBegin = false } - // 继续抢 - setTimeout(() => { - this.rob() - }, parseInt(this.robForm.step) + Math.floor(Math.random() * parseInt(this.robForm.randomValue))) + if (!res.errorCode && res.error_code && (res.error_code == 40002)) { + this.isShowWarning = true + this.warningText = '账号异常,请更换“卖家中心”账号' + this.isBegin = false + } + if (this.isBegin) { + // 继续抢 + setTimeout(() => { + this.rob() + }, parseInt(this.robForm.step) + Math.floor(Math.random() * parseInt(this.robForm.randomValue))) + } + }) }, createDeliveryBill(sn, mallId) { diff --git a/src/view/shipping/ShippingDesk.vue b/src/view/shipping/ShippingDesk.vue new file mode 100644 index 0000000..6591c18 --- /dev/null +++ b/src/view/shipping/ShippingDesk.vue @@ -0,0 +1,588 @@ + + + + + + + + + + 添加备货单 + + 按店铺添加 + 一键添加所有 + + + + 开始创建 + {{ `结束创建(${choosedList.length}/${createTotal})` }} + + + + + + + + + + 备货母单号: {{ scope.row.subPurchaseOrderBasicVO.subPurchaseOrderSn }} + SKC: {{ scope.row.subPurchaseOrderBasicVO.productSkcId }} + 货号: {{ scope.row.subPurchaseOrderBasicVO.skcExtCode }} + + + + + + + {{ scope.row.subPurchaseOrderBasicVO.subWarehouseName }} + + + + + {{ formatTime(scope.row.subPurchaseOrderBasicVO.purchaseTime) }} + + + + + + + + + + + + + 属性集:{{ item.color + ' ' + item.size}} + 待发货数/最大发货数(件):{{ item.productSkuPurchaseQuantity }} / {{ item.skuDeliveryQuantityMaxLimit }} + SKU ID: {{ item.productSkuId }} + + + + + + + + 移除 + + + + + + 店铺: + + + {{ item.mallName }} + + + + + + + + + 备货母单号: {{ scope.row.subPurchaseOrderBasicVO.subPurchaseOrderSn }} + SKC: {{ scope.row.subPurchaseOrderBasicVO.productSkcId }} + 货号: {{ scope.row.subPurchaseOrderBasicVO.skcExtCode }} + + + + + + + {{ scope.row.subPurchaseOrderBasicVO.subWarehouseName }} + + + + + {{ formatTime(scope.row.subPurchaseOrderBasicVO.purchaseTime) }} + + + + + + + + + + + + + 属性集:{{ item.color + ' ' + item.size}} + 待发货数/最大发货数(件):{{ item.productSkuPurchaseQuantity }} / {{ item.skuDeliveryQuantityMaxLimit }} + SKU ID: {{ item.productSkuId }} + + + + + + + 关 闭 + 添加 + + + + + + + + 否 + 是 + + + + + + 关 闭 + 开 始 + + + + + + + + + +