diff --git a/public/js/temuSeller.js b/public/js/temuSeller.js index 0d5ea95..76b6abf 100644 --- a/public/js/temuSeller.js +++ b/public/js/temuSeller.js @@ -84,9 +84,9 @@ function init() { } } - /*let models2 = document.querySelectorAll('div[class^="price-adjust-confirm-system_contentWrp"]') + let models2 = document.querySelectorAll('div[class^="modal-content_platBanner"]') for (let i = 0; i < models2.length; i++) { - let tipsObj = models2[i].querySelector('div[class^="price-adjust-confirm-system_tips"]') + let tipsObj = models2[i].parentElement.querySelector('div[class^="modal-content_content"]') let spanObj = tipsObj.querySelector('div span:last-child') if (spanObj) { const popup = document.createElement("div") @@ -105,12 +105,12 @@ function init() { spanObj.appendChild(popup) popup.addEventListener('click', async () => { - let tbodyObj = models2[i].querySelector('tbody') + let tbodyObj = models2[i].parentElement.querySelector('tbody') let trList = tbodyObj.querySelectorAll('tr') for (let i = 0; i < trList.length; i++) { let tdObj = trList[i].querySelector('td:last-child') let firstLabelObj = tdObj.querySelector('div label:first-child') - if (firstLabelObj.getAttribute("data-checked")) { + if (firstLabelObj && firstLabelObj.getAttribute("data-checked")) { let labelObj = tdObj.querySelector('div label:nth-child(2)') let radioObj = labelObj.querySelector('div[class^="RD_radioWrapper"]') // await sleepSync(50) @@ -122,7 +122,45 @@ function init() { } } - let models3 = document.querySelectorAll('div[class^="price-adjust-confirm-new_content"]') + let models3 = document.querySelectorAll('div[class^="modal-content_content"]') + for (let i = 0; i < models2.length; i++) { + let tipsObj = models2[i].parentElement.querySelector('div[class^="modal-content_content"]') + let spanObj = tipsObj.querySelector('div span:last-child') + if (spanObj) { + const popup = document.createElement("div") + popup.innerText = "拒绝调价" + const styles = { + padding: "8px", + background: "#fb7701", + color: "#fff", + display: 'inline', + borderRadius: "8px", + cursor: "pointer" + } + for (const e in styles) { + popup.style[e] = styles[e] + } + spanObj.appendChild(popup) + + popup.addEventListener('click', async () => { + let tbodyObj = models2[i].parentElement.querySelector('tbody') + let trList = tbodyObj.querySelectorAll('tr') + for (let i = 0; i < trList.length; i++) { + let tdObj = trList[i].querySelector('td:last-child') + let firstLabelObj = tdObj.querySelector('div label:first-child') + if (firstLabelObj && firstLabelObj.getAttribute("data-checked")) { + let labelObj = tdObj.querySelector('div label:nth-child(2)') + let radioObj = labelObj.querySelector('div[class^="RD_radioWrapper"]') + // await sleepSync(50) + radioObj.click() + } + } + }) + flag = true + } + } + + /*let models3 = document.querySelectorAll('div[class^="price-adjust-confirm-new_content"]') for (let i = 0; i < models3.length; i++) { let tipsObj = models3[i].querySelector('div[class^="price-adjust-confirm-new_tips"]') let spanObj = tipsObj.querySelector('div span:last-child') diff --git a/public/rules_11.json b/public/rules_11.json new file mode 100644 index 0000000..48fb418 --- /dev/null +++ b/public/rules_11.json @@ -0,0 +1,24 @@ +[ + { + "id": 22, + "priority": 1, + "action": { + "type": "modifyHeaders", + "requestHeaders": [ + { + "header": "Origin", + "operation": "set", + "value": "https://sellerhub.shein.com/" + }, + { + "header": "Referer", + "operation": "set", + "value": "https://sellerhub.shein.com/" + } + ] + }, + "condition": { + "urlFilter": "||sellerhub.shein.com" + } + } +] \ No newline at end of file diff --git a/src/api/index.js b/src/api/index.js index 964b0be..dae2761 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -4,7 +4,7 @@ import store from '@/store' var instance = axios.create({ - baseURL: process.env.NODE_ENV === 'production' ? 'http://temu.jjcp52.com' : 'http://temu.jjcp52.com', + baseURL: process.env.NODE_ENV === 'production' ? 'http://124.71.2.127:8888' : 'http://124.71.2.127:8888', timeout: 50000, validateStatus: function (status) { return status < 500 diff --git a/src/components/AiCopyFromTemu.vue b/src/components/AiCopyFromTemu.vue index 5e20e2b..59168bd 100644 --- a/src/components/AiCopyFromTemu.vue +++ b/src/components/AiCopyFromTemu.vue @@ -9,10 +9,19 @@ + + + + + + - + @@ -136,6 +145,15 @@ export default { siteList: [] } }, + computed: { + mallList () { + const filteredData = this.$store.state.mallList.filter(item => { + return item.isSemiManagedMall == this.form.isSemi + }) + + return filteredData + } + }, created () { this.getSiteList() if (this.params?.url) { @@ -143,21 +161,6 @@ export default { } }, methods: { - onMallChange() { - if (!this.form.targetMallId) { - Message.error("请先选择店铺") - return - } - let tempMall = this.$store.state.mallList.filter(item => { - return item.mallId == this.form.targetMallId - }) - if (null == tempMall || tempMall.length == 0) { - Message.error("请先选择店铺") - return - } else { - this.form.isSemi = tempMall[0].isSemiManagedMall - } - }, getSiteList() { sendChromeAPIMessage({ url: 'bg-visage-mms/config/common/site/query', @@ -250,7 +253,7 @@ export default { }) }) - Promise.all(specIds.map(item => this.getSpecIdNew(item).then(res => { + /*Promise.all(specIds.map(item => this.getSpecIdNew(item).then(res => { this.sku.forEach(item1 => { item1.specs.forEach(item2 => { if (item2.spec_value == item.spec_value) { @@ -265,7 +268,8 @@ export default { this.createDraft(res.data) } }) - }) + })*/ + this.toCreateDraftNew(specIds) }) }, async addToDraft() { @@ -319,7 +323,7 @@ export default { }) }) - Promise.all(specIds.map(item => this.getSpecId(item).then(res => { + /*Promise.all(specIds.map(item => this.getSpecId(item).then(res => { this.sku.forEach(item1 => { item1.specs.forEach(item2 => { if (item2.specValue == item.specValue) { @@ -334,9 +338,9 @@ export default { this.createDraft(res.data) } }) - }) + })*/ + this.toCreateDraft(specIds) } else if (this.form.type == '2') { - console.log(1) } }) } else { @@ -344,7 +348,45 @@ export default { } }) }, - async createDraft(data) { + async toCreateDraft(specIds) { + for (let kk = 0; kk < this.form.targetMallId.length; kk++) { + await Promise.all(specIds.map(item => this.getSpecId(item, this.form.targetMallId[kk]).then(res => { + this.sku.forEach(item1 => { + item1.specs.forEach(item2 => { + if (item2.specValue == item.specValue) { + item2.specValueId = res.result.specId + } + }) + }) + return 0 + }))) + let res = await this.$http.post('/api/copyProduct/translate',{type: 1, goods: this.goods, sku: this.sku, productDetail: this.productDetail}) + if (res.code == 0) { + await this.createDraft(res.data, this.form.targetMallId[kk]) + } + await this.$sleepSync(500) + } + }, + async toCreateDraftNew(specIds) { + for (let kk = 0; kk < this.form.targetMallId.length; kk++) { + await Promise.all(specIds.map(item => this.getSpecIdNew(item, this.form.targetMallId[kk]).then(res => { + this.sku.forEach(item1 => { + item1.specs.forEach(item2 => { + if (item2.spec_value == item.spec_value) { + item2.spec_value_id = res.result.specId + } + }) + }) + return 0 + }))) + let res = await this.$http.post('/api/copyProduct/translateNew',{type: 1, goods: this.goods, sku: this.sku, productDetail: this.productDetail}) + if (res.code == 0) { + await this.createDraft(res.data, this.form.targetMallId[kk]) + } + await this.$sleepSync(500) + } + }, + async createDraft(data, mallId) { let reqData = {} let catId = null; if (this.form.isSameCategory) { @@ -360,7 +402,7 @@ export default { let res = await sendChromeAPIMessage({ url: 'bg-visage-mms/product/draft/add', needMallId: true, - mallId: this.form.targetMallId, + mallId: mallId, data: reqData}) if (res.errorCode == 1000000) { @@ -384,7 +426,7 @@ export default { let res3 = await sendChromeAPIMessage({ url: 'bg-anniston-mms/category/template/query', needMallId: true, - mallId: this.form.targetMallId, + mallId: mallId, data: { catId: reqData.catId, productCreateTime: null, @@ -436,50 +478,44 @@ export default { content.personalizationSwitch = 0 content.productDraftId = draftId - this.createProduct(content) - } else { - setTimeout(() => { - this.createDraft(data) - }, 500) + await this.createProduct(content, mallId) } }, - createProduct(content) { + async createProduct(content, mallId) { if (this.form.isSemi) { content.productSemiManagedReq = { bindSiteIds: this.form.siteId } } - sendChromeAPIMessage({ + let res = await sendChromeAPIMessage({ url: 'bg-visage-mms/product/draft/save', needMallId: true, - mallId: this.form.targetMallId, + mallId: mallId, data: { ...content - }}).then((res) => { - if (res.errorCode == 1000000) { - this.successList.push(this.currentUrl) - this.saveInfo() - if (this.isMultiCopy) { - this.currentIndex ++ - if (this.currentIndex == this.params.urlList.length) { - this.isCopying = false - this.$emit('onSuccess') - MessageBox.alert(`成功添加${this.successList.length}个商品进入草稿箱`) - } else { - this.currentUrl = this.params.urlList[this.currentIndex] - this.execAddToDraft() - } - } else { + }}) + if (res.errorCode == 1000000) { + this.successList.push(this.currentUrl) + this.saveInfo(mallId) + if (this.isMultiCopy) { + this.currentIndex ++ + if (this.currentIndex == this.params.urlList.length) { this.isCopying = false - Message.success("成功添加到草稿箱") + this.$emit('onSuccess') + MessageBox.alert(`成功添加${this.successList.length}个商品进入草稿箱`) + } else { + this.currentUrl = this.params.urlList[this.currentIndex] + this.execAddToDraft() } - } else { - setTimeout(() => { - this.createProduct(content) - }, 500) + this.isCopying = false + Message.success("成功添加到草稿箱") } - }) + + } else { + await this.$sleepSync(1000) + this.createProduct(content) + } }, getSpecIdNew(data) { return sendChromeAPIMessage({ @@ -497,11 +533,11 @@ export default { } }) }, - getSpecId(data) { + getSpecId(data, mallId) { return sendChromeAPIMessage({ url: 'bg-anniston-mms/sku/spec/byName/queryOrAdd', needMallId: true, - mallId: this.form.targetMallId, + mallId: mallId, data: { parentSpecId: data.specKeyId, specName: data.specValue @@ -509,13 +545,13 @@ export default { if (res.errorCode == 1000000) { return res } else { - this.getSpecId(data) + this.getSpecId(data, mallId) } }) }, - saveInfo() { + saveInfo(mallId) { let mallInfo = this.$store.state.mallList.filter(item => { - return item.mallId == this.form.targetMallId + return item.mallId == mallId }) this.$http.post('/api/copyProduct/add', { mallId: mallInfo[0].mallId, diff --git a/src/manifest.development.json b/src/manifest.development.json index 0b1d3dd..0d9ed90 100644 --- a/src/manifest.development.json +++ b/src/manifest.development.json @@ -69,6 +69,10 @@ "id": "10", "enabled": true, "path": "rules_10.json" + },{ + "id": "11", + "enabled": true, + "path": "rules_11.json" }] }, "content_scripts": [ diff --git a/src/manifest.production.json b/src/manifest.production.json index da4aded..61ad9a9 100644 --- a/src/manifest.production.json +++ b/src/manifest.production.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "TEMU助手", "description": "TEMU助手 - 自动化提高生产效率", - "version": "3.2.12", + "version": "3.3.0", "background": { "service_worker": "/background.js" }, @@ -14,7 +14,7 @@ "action": { }, "host_permissions": [ - "*://*.jjcp52.com/", + "*://124.71.2.127:8888/", "*://*.kuajingmaihuo.com/", "*://*.temu.com/", "*://*.aliexpress.com/", @@ -68,6 +68,10 @@ "id": "9", "enabled": true, "path": "rules_9.json" + },{ + "id": "11", + "enabled": true, + "path": "rules_11.json" }] }, "content_scripts": [ diff --git a/src/router/index.js b/src/router/index.js index bc41083..6ffd597 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -217,6 +217,11 @@ const router = new VueRouter({ name: 'priceAdjustment', component: () => import('../view/sale/PriceAdjustment.vue') }, + { + path: 'logisticFee', + name: 'logisticFee', + component: () => import('../view/sale/LogisticFee.vue') + }, { path: 'costManageShein', name: 'costManageShein', @@ -247,6 +252,11 @@ const router = new VueRouter({ name: 'orderListShein', component: () => import('../view/shein/OrderListShein.vue') }, + { + path: 'productListOdm', + name: 'productListOdm', + component: () => import('../view/shein/ProductListOdm.vue') + }, { path: 'returnRecordShein', name: 'returnRecordShein', diff --git a/src/view/Home.vue b/src/view/Home.vue index 4e90783..2756a8c 100644 --- a/src/view/Home.vue +++ b/src/view/Home.vue @@ -137,6 +137,7 @@ 售后统计 售后赔付统计 调价管理 + 物流统计 { + skuList.push(item.productSkuId) + }) + let temp = [] + for (let x = 0; x < skuList.length; x++) { + temp.push(skuList[x]) + if (temp.length == 100) { + let res = await sendChromeAPIMessage({ + url: 'bg-visage-mms/labelcode/pageQuery', + needMallId: true, + mallId: this.mallId, + anti: true, + data: { + "page": 1, + "pageSize": 100, + "productSkuIdList": temp + }}) + if (res.errorCode == 1000000) { + for(let i = 0;i < res.result.pageItems.length; i++) { + let item = res.result.pageItems[i]; + for(let j = 0; j < this.list.length; j++) { + if (this.list[j].productSkuId == item.labelCodeVO.productSkuId) { + this.list[j].labelCode = item.labelCodeVO.labelCode + this.list[j].skuExtCode = item.labelCodeVO.skuExtCode + + let temp = item.productSkuSpecList.map(item2 => { + return item2.specName + }) + this.list[j].skuSpecName = temp.join(',') + } + } + } + } + temp = [] + } + } + + + // 假设你有一个表格数据的数组 + const data = [ + ["备货单号", "商品名称", "货号", "SKC ID","SKU ID", "商品属性", "发货件数", "物流公司", "物流单号", "发货单号", "收货仓库", "发货时间", "预约取货时间", "条码编码", "SKU货号", "次销售属性"] + ] + + this.list.map(item => { + data.push([item.subPurchaseOrderSn, item.productName, item.skcExtCode, item.productSkcId, item.productSkuId, item.specName, item.skuNum, item.expressCompany, item.expressDeliverySn, item.deliveryOrderSn, item.subWarehouseName, item.deliverTime, + item.expectPickUpGoodsTime, item.labelCode, item.skuExtCode, item.skuSpecName]) + }) + + // 将数据转换为工作表 + const worksheet = XLSX.utils.aoa_to_sheet(data); + + // 创建工作簿并添加工作表 + const workbook = XLSX.utils.book_new(); + XLSX.utils.book_append_sheet(workbook, worksheet, 'Sheet1'); + + // 生成Excel文件 + const excelBuffer = XLSX.write(workbook, { bookType: 'xlsx', type: 'array' }); + + // 使用blob和FileReader创建一个Blob URL + const dataBlob = new Blob([excelBuffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8' }); + const blobUrl = window.URL.createObjectURL(dataBlob); + + // 使用saveAs下载文件 + saveAs(dataBlob, '待收货发货单带标签数据.xlsx'); + + // 清理 + window.URL.revokeObjectURL(blobUrl); } } } diff --git a/src/view/shipping/WaitShippingList.vue b/src/view/shipping/WaitShippingList.vue index bed43f1..cba2bab 100644 --- a/src/view/shipping/WaitShippingList.vue +++ b/src/view/shipping/WaitShippingList.vue @@ -31,6 +31,7 @@ worksheet="待收货发货单明细"> 导出数据 + { - if (res.errorCode == 1000000) { - for(let i = 0;i < res.result.list.length; i++) { - let item = res.result.list[i]; - let data = {}; - data.expressCompany = item.expressCompany - data.expressDeliverySn = item.expressDeliverySn - data.subWarehouseName = item.subWarehouseName - data.expectPickUpGoodsTime = timestampToTime(item.expectPickUpGoodsTime) + }}) + if (res.errorCode == 1000000) { + for(let i = 0;i < res.result.list.length; i++) { + let item = res.result.list[i]; + let data = {}; + data.expressCompany = item.expressCompany + data.expressDeliverySn = item.expressDeliverySn + data.subWarehouseName = item.subWarehouseName + data.expectPickUpGoodsTime = timestampToTime(item.expectPickUpGoodsTime) + + for(let j = 0;j < item.deliveryOrderList.length; j++) { + let item1 = item.deliveryOrderList[j] + data = {...data, + subPurchaseOrderSn: item1.subPurchaseOrderSn, + deliveryOrderSn: item1.deliveryOrderSn, + productName: item1.subPurchaseOrderBasicVO.productName, + skcExtCode: item1.subPurchaseOrderBasicVO.skcExtCode, + deliverTime: timestampToTime(item1.deliverTime), + productSkcId: item1.productSkcId} - for(let j = 0;j < item.deliveryOrderList.length; j++) { - let item1 = item.deliveryOrderList[j] - data = {...data, - subPurchaseOrderSn: item1.subPurchaseOrderSn, - deliveryOrderSn: item1.deliveryOrderSn, - productName: item1.subPurchaseOrderBasicVO.productName, - skcExtCode: item1.subPurchaseOrderBasicVO.skcExtCode, - deliverTime: timestampToTime(item1.deliverTime), - productSkcId: item1.productSkcId} - - for(let k = 0; k < item1.packageDetailList.length; k++) { - data = {...data, - productSkuId: item1.packageDetailList[k].productSkuId, - specName: '', - skuNum: item1.packageDetailList[k].skuNum} + for(let k = 0; k < item1.packageDetailList.length; k++) { + data = {...data, + productSkuId: item1.packageDetailList[k].productSkuId, + specName: '', + skuNum: item1.packageDetailList[k].skuNum} - this.list.push(data) - } - - this.packageNumber = this.packageNumber + item.receivePackageNum - setTimeout(() => { - this.getSkuDetailList(item1.deliveryOrderSn) - }, 200 * i) + this.list.push(data) } + + // this.packageNumber = this.packageNumber + item.receivePackageNum + await this.getSkuDetailList(item1.deliveryOrderSn) } - if (100 == res.result.list.length) { - this.currentPage ++ - setTimeout(() => { - this.getList() - }, 1500) - } else { - this.isLoading = false - } - } else { - setTimeout(() => { - this.getList() - }, 1500) - // Message.error("【拼多多】" + res.errorMsg + ", 请重新尝试加载") } - }).catch(() => { - this.isLoading = false - }) + if (100 == res.result.list.length) { + this.currentPage ++ + await this.$sleepSync(1000) + await this.getList() + } else { + this.isLoading = false + } + } else { + await this.$sleepSync(200) + await this.getList() + // Message.error("【拼多多】" + res.errorMsg + ", 请重新尝试加载") + } }, - getSkuDetailList(sn) { - sendChromeAPIMessage({ + async getSkuDetailList(sn) { + let res = await sendChromeAPIMessage({ url: 'bgSongbird-api/supplier/deliverGoods/management/queryDeliveryOrderPackageDetailInfo', needMallId: true, mallId: this.mallId, anti: true, - data: {deliveryOrderSn: sn}}).then((res) => { - if (res.errorCode == 1000000) { - for(let i = 0;i < res.result.deliveryOrderDetails.length; i++) { - let item = res.result.deliveryOrderDetails[i] + data: {deliveryOrderSn: sn}}) + if (res.errorCode == 1000000) { + for(let i = 0;i < res.result.deliveryOrderDetails.length; i++) { + let item = res.result.deliveryOrderDetails[i] - let specArr = item.secondarySpecVOList.map(item => { - return item.specName - }) - let spec = specArr.join(',') + let specArr = item.secondarySpecVOList.map(item => { + return item.specName + }) + let spec = specArr.join(',') - for(let j = 0; j < this.list.length; j++) { - if (this.list[j].productSkuId == item.productSkuId) { - this.list[j].specName = spec - } + for(let j = 0; j < this.list.length; j++) { + if (this.list[j].productSkuId == item.productSkuId) { + this.list[j].specName = spec } } - this.packageNumber = this.packageNumber - res.result.deliveryOrderDetails.length - - if (this.packageNumber < 5) this.isLoading = false - } else { - setTimeout(() => { - this.getSkuDetailList(sn) - }, 200) } - }) + // this.packageNumber = this.packageNumber - res.result.deliveryOrderDetails.length + + // if (this.packageNumber < 5) this.isLoading = false + } else { + await this.getSkuDetailList(sn) + } }, startDownload() { this.$http.post('/api/malluser/info').then(res => { @@ -230,6 +223,75 @@ import { Message } from 'element-ui' } } }) + }, + async downloadLabelData() { + let skuList = [] + this.list.map(item => { + skuList.push(item.productSkuId) + }) + let temp = [] + for (let x = 0; x < skuList.length; x++) { + temp.push(skuList[x]) + if (temp.length == 100) { + let res = await sendChromeAPIMessage({ + url: 'bg-visage-mms/labelcode/pageQuery', + needMallId: true, + mallId: this.mallId, + anti: true, + data: { + "page": 1, + "pageSize": 100, + "productSkuIdList": temp + }}) + if (res.errorCode == 1000000) { + for(let i = 0;i < res.result.pageItems.length; i++) { + let item = res.result.pageItems[i]; + for(let j = 0; j < this.list.length; j++) { + if (this.list[j].productSkuId == item.labelCodeVO.productSkuId) { + this.list[j].labelCode = item.labelCodeVO.labelCode + this.list[j].skuExtCode = item.labelCodeVO.skuExtCode + + let temp = item.productSkuSpecList.map(item2 => { + return item2.specName + }) + this.list[j].skuSpecName = temp.join(',') + } + } + } + } + temp = [] + } + } + + // 假设你有一个表格数据的数组 + const data = [ + ["备货单号", "商品名称", "货号", "SKC ID","SKU ID", "商品属性", "发货件数", "物流公司", "物流单号", "发货单号", "收货仓库", "发货时间", "预约取货时间", "条码编码", "SKU货号", "次销售属性"] + ] + + this.list.map(item => { + data.push([item.subPurchaseOrderSn, item.productName, item.skcExtCode, item.productSkcId, item.productSkuId, item.specName, item.skuNum, item.expressCompany, item.expressDeliverySn, item.deliveryOrderSn, item.subWarehouseName, item.deliverTime, + item.expectPickUpGoodsTime, item.labelCode, item.skuExtCode, item.skuSpecName]) + }) + + // 将数据转换为工作表 + const worksheet = XLSX.utils.aoa_to_sheet(data); + + // 创建工作簿并添加工作表 + const workbook = XLSX.utils.book_new(); + XLSX.utils.book_append_sheet(workbook, worksheet, 'Sheet1'); + + // 生成Excel文件 + const excelBuffer = XLSX.write(workbook, { bookType: 'xlsx', type: 'array' }); + + // 使用blob和FileReader创建一个Blob URL + const dataBlob = new Blob([excelBuffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8' }); + const blobUrl = window.URL.createObjectURL(dataBlob); + + // 使用saveAs下载文件 + saveAs(dataBlob, '待收货发货单带标签数据.xlsx'); + + // 清理 + window.URL.revokeObjectURL(blobUrl); } } } diff --git a/src/view/stock/ReturnPackage.vue b/src/view/stock/ReturnPackage.vue index fb34182..5d3120a 100644 --- a/src/view/stock/ReturnPackage.vue +++ b/src/view/stock/ReturnPackage.vue @@ -84,14 +84,12 @@ import { Message } from 'element-ui' { prop: 'contactName', label: '退货子仓联系人',width: '160px', align: 'left' }, { prop: 'contactPhone', label: '手机号', width: '160px',align: 'left' }, { prop: 'packageStatusDesc', label: '状态',width: '100px', }, - { prop: 'returnSupplierReasonDesc', label: '退货原因', width: '120px'}, - { prop: 'reason', label: '退货原因备注', width: '120px'}, { prop: 'returnSupplierQuantity', label: '退货数量(件)', width: '120px'}, { prop: 'returnHandOverTypeDesc', label: '退货方式', width: '100px'}, { prop: 'payMethodDesc', label: '快递支付方式', width: '120px'}, { prop: 'logisticsTypeDesc', label: '物流商', width: '100px'}, { prop: 'packageFinishTime', label: '打包完成时间', width: '160px'}, - { prop: 'latestSelfTakeTime', label: '最晚自提时间', width: '160px'}, + { prop: 'latestSelfTakeTime', label: '最晚可创建自提单时间', width: '160px'}, { prop: 'outboundTime', label: '出库时间', width: '160px'} ], jsonFields: { @@ -102,14 +100,12 @@ import { Message } from 'element-ui' "退货子仓联系人": "contactName", "手机号": "contactPhone", "状态": "packageStatusDesc", - "退货原因": "returnSupplierReasonDesc", - "退货原因备注": "reason", "退货数量(件)": "returnSupplierQuantity", "退货方式": "returnHandOverTypeDesc", "快递支付方式": "payMethodDesc", "物流商": "logisticsTypeDesc", "打包完成时间": "packageFinishTime", - "最晚自提时间": "latestSelfTakeTime", + "最晚可创建自提单时间": "latestSelfTakeTime", "出库时间": "outboundTime" }, form: { @@ -177,6 +173,7 @@ import { Message } from 'element-ui' }}).then((res) => { if (res.errorCode == 1000000) { for(let i = 0;i < res.result.items.length; i++) { + console.log(i) let item = res.result.items[i]; let data = {}; data.returnSupplierPackageNo = item.returnSupplierPackageNo @@ -186,8 +183,6 @@ import { Message } from 'element-ui' data.contactName = item.contactName data.contactPhone = item.contactPhone data.packageStatusDesc = item.packageStatusDesc - data.returnSupplierReasonDesc = JSON.parse(item.returnSupplierReasonDesc).join('') - data.reason = item.reason data.returnSupplierQuantity = item.returnSupplierQuantity data.returnHandOverTypeDesc = item.returnHandOverTypeDesc data.payMethodDesc = item.payMethodDesc