调整
This commit is contained in:
@@ -90,7 +90,7 @@ const dateUtil = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const userCheck = () => {
|
const userCheck = (mallId) => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
store.dispatch('getUserInfo').then(res => {
|
store.dispatch('getUserInfo').then(res => {
|
||||||
if (res.flag != 1) {
|
if (res.flag != 1) {
|
||||||
@@ -99,7 +99,7 @@ const userCheck = () => {
|
|||||||
reject('您的账号未激活或已失效,请激活后使用')
|
reject('您的账号未激活或已失效,请激活后使用')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (res.type != 4 && store.state.mallId != store.state.userInfo.mallId) {
|
if (res.type != 4 && mallId != store.state.userInfo.mallId) {
|
||||||
Message.error('您当前登录的TEMU账号与会员绑定账号不一致')
|
Message.error('您当前登录的TEMU账号与会员绑定账号不一致')
|
||||||
reject('您当前登录的TEMU账号与会员绑定账号不一致')
|
reject('您当前登录的TEMU账号与会员绑定账号不一致')
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -248,7 +248,6 @@ import { Message } from 'element-ui'
|
|||||||
if (res.errorCode == 1000000) {
|
if (res.errorCode == 1000000) {
|
||||||
this.productPage.total = res.result.total
|
this.productPage.total = res.result.total
|
||||||
this.productTableData = res.result.pageItems.map((item) => {
|
this.productTableData = res.result.pageItems.map((item) => {
|
||||||
console.log(item.createdAt)
|
|
||||||
return {
|
return {
|
||||||
productSpu: item.productId,
|
productSpu: item.productId,
|
||||||
productSkc: item.productSkcId,
|
productSkc: item.productSkcId,
|
||||||
|
|||||||
@@ -153,17 +153,10 @@ import { Message } from 'element-ui'
|
|||||||
Message.error("请先选择店铺")
|
Message.error("请先选择店铺")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$http.post('/api/malluser/info').then(res => {
|
this.$userCheck(this.mallId).then(() => {
|
||||||
if (res.code == 0) {
|
|
||||||
this.$store.commit('setUserInfo', res.data)
|
|
||||||
if (res.data.flag != 1) {
|
|
||||||
Message.error('您的账号未激活或已失效,请激活后使用')
|
|
||||||
this.$store.commit('setActiveDlgShow', true)
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
this.getList()
|
this.getList()
|
||||||
}
|
}).catch((err) => {
|
||||||
}
|
console.log(err)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getList () {
|
getList () {
|
||||||
|
|||||||
@@ -179,7 +179,9 @@
|
|||||||
timer: null,
|
timer: null,
|
||||||
choosedList: [],
|
choosedList: [],
|
||||||
arr: [],
|
arr: [],
|
||||||
robTotal: 0
|
robTotal: 0,
|
||||||
|
pageSize: 100,
|
||||||
|
currentPage: 1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -188,9 +190,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.mallId = this.mallList[0].mallId
|
|
||||||
this.mallName = this.mallList[0].mallName
|
|
||||||
this.getList()
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@@ -198,11 +197,19 @@
|
|||||||
this.arr = e
|
this.arr = e
|
||||||
},
|
},
|
||||||
mallChange() {
|
mallChange() {
|
||||||
|
this.$userCheck(this.mallId).then(() => {
|
||||||
let mallInfo = this.mallList.filter(item => {
|
let mallInfo = this.mallList.filter(item => {
|
||||||
return item.mallId == this.mallId
|
return item.mallId == this.mallId
|
||||||
})
|
})
|
||||||
this.mallName = mallInfo.mallName
|
this.mallName = mallInfo.mallName
|
||||||
|
|
||||||
|
// 下载数据
|
||||||
|
this.tableData = []
|
||||||
|
this.currentPage = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
|
}).catch((err) => {
|
||||||
|
console.log(err)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
onConfirm () {
|
onConfirm () {
|
||||||
if (this.arr.length == 0) {
|
if (this.arr.length == 0) {
|
||||||
@@ -221,14 +228,13 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
getList () {
|
getList () {
|
||||||
this.tableData = []
|
|
||||||
sendChromeAPIMessage({
|
sendChromeAPIMessage({
|
||||||
url: 'oms/bg/venom/api/supplier/purchase/manager/querySubOrderList',
|
url: 'oms/bg/venom/api/supplier/purchase/manager/querySubOrderList',
|
||||||
needMallId: true,
|
needMallId: true,
|
||||||
mallId: this.mallId,
|
mallId: this.mallId,
|
||||||
data: {
|
data: {
|
||||||
"pageNo": 1,
|
"pageNo": this.currentPage,
|
||||||
"pageSize": 100,
|
"pageSize": this.pageSize,
|
||||||
"urgencyType": 0,
|
"urgencyType": 0,
|
||||||
"isCustomGoods": false,
|
"isCustomGoods": false,
|
||||||
"statusList": [
|
"statusList": [
|
||||||
@@ -239,8 +245,8 @@
|
|||||||
res.result.subOrderForSupplierList = res.result.subOrderForSupplierList.filter((item) => {
|
res.result.subOrderForSupplierList = res.result.subOrderForSupplierList.filter((item) => {
|
||||||
return item.isCanJoinDeliverPlatform;
|
return item.isCanJoinDeliverPlatform;
|
||||||
})
|
})
|
||||||
this.tableData = res.result.subOrderForSupplierList.map((item) => {
|
res.result.subOrderForSupplierList.map((item) => {
|
||||||
return {
|
this.tableData.push({
|
||||||
robTotal: 0,
|
robTotal: 0,
|
||||||
subPurchaseOrderSn: item.subPurchaseOrderSn,
|
subPurchaseOrderSn: item.subPurchaseOrderSn,
|
||||||
originalPurchaseOrderSn: item.originalPurchaseOrderSn,
|
originalPurchaseOrderSn: item.originalPurchaseOrderSn,
|
||||||
@@ -253,10 +259,15 @@
|
|||||||
category: item.category,
|
category: item.category,
|
||||||
mallId: this.mallId,
|
mallId: this.mallId,
|
||||||
mallName: this.mallName
|
mallName: this.mallName
|
||||||
};
|
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
if (this.pageSize == res.result.subOrderForSupplierList.length) {
|
||||||
|
this.currentPage ++
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Message.error("【拼多多】" + res.error_msg)
|
Message.error("【拼多多】" + res.errorMsg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -280,7 +291,6 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$userCheck().then(() => {
|
|
||||||
if (this.choosedList.length <= 0) {
|
if (this.choosedList.length <= 0) {
|
||||||
Message.error('请选择备货单');
|
Message.error('请选择备货单');
|
||||||
return;
|
return;
|
||||||
@@ -304,9 +314,7 @@
|
|||||||
clearInterval(tt);
|
clearInterval(tt);
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}).catch((err) => {
|
|
||||||
console.log(err)
|
|
||||||
})
|
|
||||||
// this.$http.post('/api/malluser/info').then(res => {
|
// this.$http.post('/api/malluser/info').then(res => {
|
||||||
// if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
// this.$store.commit('setUserInfo', res.data)
|
// this.$store.commit('setUserInfo', res.data)
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<p>TEMU助手是为致力于“拼多多跨境卖家中心”通过自动化的方式,提高TEMU运营管理效率。</p>
|
<p>TEMU助手是为致力于“拼多多跨境卖家中心”通过自动化的方式,提高TEMU运营管理效率。</p>
|
||||||
<p>在使用卖家中心过程中,有觉得不方便之处,或者重复劳动力的地方可与我们沟通,我们竭尽全力为大家打造实用的智能化工具。</p>
|
<p>在使用卖家中心过程中,有觉得不方便之处,或者重复劳动力的地方可与我们沟通,我们竭尽全力为大家打造实用的智能化工具。</p>
|
||||||
<p>欢迎大家扫描下方二维码与我们沟通交流,获取最新智能化研发进展,一起经营跨境电商,让中国货走向全世界</p>
|
|
||||||
</div>
|
</div>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
|
|||||||
Reference in New Issue
Block a user