|
|
@@ -759,6 +759,8 @@ onMounted(() => {
|
|
|
const endOfCenturyYear = currentCentury + 99
|
|
|
maxDate.value = new Date(endOfCenturyYear, 0, 1)
|
|
|
|
|
|
+ console.log(warehouse)
|
|
|
+
|
|
|
getOwner().then((res) => {
|
|
|
const { data } = res
|
|
|
owners.value = data.map((item) => {
|
|
|
@@ -785,13 +787,11 @@ onMounted(() => {
|
|
|
warehouses.value = data.map((item) => {
|
|
|
return { value: item.code, text: item.name }
|
|
|
})
|
|
|
- console.log(warehouses)
|
|
|
const map = {}
|
|
|
data.forEach((item) => {
|
|
|
map[item.code] = item.name
|
|
|
})
|
|
|
warehousesMap.value = map
|
|
|
- console.log(warehousesMap.value)
|
|
|
})
|
|
|
|
|
|
carrierOptions().then((res) => {
|
|
|
@@ -847,11 +847,6 @@ function getProductItems(detail) {
|
|
|
if (!productPhotos || productPhotos.length === 0) {
|
|
|
return []
|
|
|
}
|
|
|
- console.log(
|
|
|
- productFiles.value.filter((item) => {
|
|
|
- return productPhotos.includes(item.fileName)
|
|
|
- }),
|
|
|
- )
|
|
|
return productFiles.value.filter((item) => {
|
|
|
return productPhotos.includes(item.fileName)
|
|
|
})
|
|
|
@@ -1035,9 +1030,6 @@ function getOwnerName(owner) {
|
|
|
|
|
|
// 仓库名
|
|
|
function getWarehouseName() {
|
|
|
- console.log(warehousesMap.value)
|
|
|
- console.log(params.value.warehouseCode)
|
|
|
- console.log(warehousesMap.value[params.value.warehouseCode])
|
|
|
return warehousesMap.value[params.value.warehouseCode]
|
|
|
}
|
|
|
|
|
|
@@ -1054,7 +1046,6 @@ function inputExpressNo() {
|
|
|
return
|
|
|
}
|
|
|
params.value.returnNo = express_no
|
|
|
- console.log(warehouse.value)
|
|
|
params.value.warehouseCode = warehouse.value
|
|
|
listAsn(express_no).then((res) => {
|
|
|
if (res.data) {
|
|
|
@@ -1073,7 +1064,6 @@ function matchReturned(express_no) {
|
|
|
}
|
|
|
const { id, headStatus, returnNo, warehouseCode } = data
|
|
|
if (!id) {
|
|
|
- console.log('没有退件记录')
|
|
|
matchOrder(express_no)
|
|
|
expressNo.value = null
|
|
|
showInitialPage.value = false
|
|
|
@@ -1915,7 +1905,6 @@ function checkDetailNumber() {
|
|
|
function handleDetails(details) {
|
|
|
for (let i = 0; i < details.length; i++) {
|
|
|
const { qualityStatus } = details[i]
|
|
|
- console.log(qualityStatus)
|
|
|
const { isGenuineValue, qualityMark } = getStatus(qualityStatus)
|
|
|
details[i].isGenuine = isGenuineValue
|
|
|
details[i].qualityMark = qualityMark
|
|
|
@@ -1991,12 +1980,6 @@ const detailBoxImages = computed(() => {
|
|
|
if (!items || items.length === 0) {
|
|
|
return []
|
|
|
}
|
|
|
- const list = boxFiles.value
|
|
|
- .filter((item) => {
|
|
|
- return items.includes(item.fileName)
|
|
|
- })
|
|
|
- .map((item) => item.src)
|
|
|
- console.log(list)
|
|
|
return boxFiles.value
|
|
|
.filter((item) => {
|
|
|
return items.includes(item.fileName)
|
|
|
@@ -2068,8 +2051,6 @@ function previewImages(filenames, index, type) {
|
|
|
} else if (type === '内物图') {
|
|
|
list = productFiles.value
|
|
|
}
|
|
|
- console.log(filenames)
|
|
|
- console.log(list)
|
|
|
const images = []
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
const item = list[i]
|
|
|
@@ -2078,11 +2059,9 @@ function previewImages(filenames, index, type) {
|
|
|
images.push(src)
|
|
|
}
|
|
|
}
|
|
|
- console.log(images)
|
|
|
if(!images || images.length === 0) {
|
|
|
return
|
|
|
}
|
|
|
- console.log(images)
|
|
|
showImagePreview({
|
|
|
images: images,
|
|
|
startPosition: index,
|