This commit is contained in:
yanran200830
2024-10-30 17:29:42 +08:00
5 changed files with 20 additions and 14 deletions

1
.gitignore vendored
View File

@@ -3,6 +3,7 @@ node_modules
/dist
/artifacts
package-lock.json
/node_modules
# local env files
.env.local

View File

@@ -22,7 +22,7 @@
"*://*.shein.com/",
"*://*.geiwohuo.com/",
"*://*.ltwebstatic.com/",
"*://*.rqlis.com*"
"*://*.rqlis.com"
],
"permissions": [
"cookies",

View File

@@ -182,10 +182,13 @@ import JsonExcel from 'vue-json-excel'
this.rejectShow = true
},
async toReject() {
this.$refs.rejectForm.validate((valid) => {
this.$refs.rejectForm.validate(async (valid) => {
if (valid) {
this.loadingText = '正在拼命处理中~'
this.isLoading = true
this.rejectShow = false
this.reject()
await this.reject()
this.isLoading = false
}
})
},
@@ -203,20 +206,21 @@ import JsonExcel from 'vue-json-excel'
return item.skus == obj[0].skus
})
let params = {}
if (obj[0].num == 1) {
params = {
adjustId: obj[0].id,
reason: this.rejectForm.reason,
result: 2
}
} else {
if (obj.length > 1) {
params.adjustId = obj[0].id
params.adjustResultMap = {}
for (let k = 0; k < obj.length; k++) {
params.adjustResultMap[obj[k].id] = 2
}
params.result = 2
} else {
params = {
adjustId: obj[0].id,
reason: this.rejectForm.reason,
result: 2
}
}
// console.log(obj[0].mallName, params)
let res = await sendChromeAPIMessage({
url: 'gmp/bg/magneto/api/price/purchase-adjust/review',
needMallId: true,

View File

@@ -548,6 +548,7 @@ import { DualAxes } from '@antv/g2plot'
if (item.productSkcId == this.skcList[i].productSkcId) {
this.skcList[i].saleAmount = this.skcList[i].saleAmount + item.saleAmount
this.skcList[i].costAmount = this.skcList[i].costAmount + item.costAmount
this.skcList[i].saleCount = this.skcList[i].saleCount + item.saleCount
this.skcList[i].profitAmount = this.skcList[i].profitAmount + item.profitAmount
flag = true
break

View File

@@ -3,7 +3,7 @@
<ai-title
slot="title"
title="物流统计"
tips="数据来源于“履约服务账单->明细->缴费记录"
tips="数据来源于“履约服务账单->明细->缴费记录"
isShowBottomBorder>
</ai-title>
<template slot="content">
@@ -184,7 +184,7 @@ import {sendChromeAPIMessage } from '@/api/chromeApi'
let item = res.result.list[i]
this.totalLogisticFee += item.amount
this.transList.push(item.ptransId)
this.transList.push({ptransId: item.ptransId, chargeType: item.chargeType} )
}
if ((this.reqData.pageSize * this.reqData.pageNum) < res.result.total) {
this.reqData.pageNum ++
@@ -203,10 +203,10 @@ import {sendChromeAPIMessage } from '@/api/chromeApi'
needMallId: true,
mallId: this.$store.state.mallList[0].mallId,
data: {
chargeType: 0,
chargeType: this.transList[i].chargeType,
pageSize: 100,
pageNum: 1,
ptransId: this.transList[i]
ptransId: this.transList[i].ptransId
}})
if (res.errorCode == 1000000) {
for (let k = 0; k < res.result.list.length; k++) {