调整
This commit is contained in:
@@ -179,7 +179,9 @@
|
||||
timer: null,
|
||||
choosedList: [],
|
||||
arr: [],
|
||||
robTotal: 0
|
||||
robTotal: 0,
|
||||
pageSize: 100,
|
||||
currentPage: 1,
|
||||
}
|
||||
},
|
||||
|
||||
@@ -188,9 +190,6 @@
|
||||
},
|
||||
|
||||
created () {
|
||||
this.mallId = this.mallList[0].mallId
|
||||
this.mallName = this.mallList[0].mallName
|
||||
this.getList()
|
||||
},
|
||||
|
||||
methods: {
|
||||
@@ -198,11 +197,19 @@
|
||||
this.arr = e
|
||||
},
|
||||
mallChange() {
|
||||
let mallInfo = this.mallList.filter(item => {
|
||||
return item.mallId == this.mallId
|
||||
this.$userCheck(this.mallId).then(() => {
|
||||
let mallInfo = this.mallList.filter(item => {
|
||||
return item.mallId == this.mallId
|
||||
})
|
||||
this.mallName = mallInfo.mallName
|
||||
|
||||
// 下载数据
|
||||
this.tableData = []
|
||||
this.currentPage = 1
|
||||
this.getList()
|
||||
}).catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
this.mallName = mallInfo.mallName
|
||||
this.getList()
|
||||
},
|
||||
onConfirm () {
|
||||
if (this.arr.length == 0) {
|
||||
@@ -221,14 +228,13 @@
|
||||
},
|
||||
|
||||
getList () {
|
||||
this.tableData = []
|
||||
sendChromeAPIMessage({
|
||||
url: 'oms/bg/venom/api/supplier/purchase/manager/querySubOrderList',
|
||||
needMallId: true,
|
||||
mallId: this.mallId,
|
||||
data: {
|
||||
"pageNo": 1,
|
||||
"pageSize": 100,
|
||||
"pageNo": this.currentPage,
|
||||
"pageSize": this.pageSize,
|
||||
"urgencyType": 0,
|
||||
"isCustomGoods": false,
|
||||
"statusList": [
|
||||
@@ -239,8 +245,8 @@
|
||||
res.result.subOrderForSupplierList = res.result.subOrderForSupplierList.filter((item) => {
|
||||
return item.isCanJoinDeliverPlatform;
|
||||
})
|
||||
this.tableData = res.result.subOrderForSupplierList.map((item) => {
|
||||
return {
|
||||
res.result.subOrderForSupplierList.map((item) => {
|
||||
this.tableData.push({
|
||||
robTotal: 0,
|
||||
subPurchaseOrderSn: item.subPurchaseOrderSn,
|
||||
originalPurchaseOrderSn: item.originalPurchaseOrderSn,
|
||||
@@ -253,10 +259,15 @@
|
||||
category: item.category,
|
||||
mallId: this.mallId,
|
||||
mallName: this.mallName
|
||||
};
|
||||
})
|
||||
})
|
||||
|
||||
if (this.pageSize == res.result.subOrderForSupplierList.length) {
|
||||
this.currentPage ++
|
||||
this.getList()
|
||||
}
|
||||
} else {
|
||||
Message.error("【拼多多】" + res.error_msg)
|
||||
Message.error("【拼多多】" + res.errorMsg)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -280,33 +291,30 @@
|
||||
return;
|
||||
}
|
||||
|
||||
this.$userCheck().then(() => {
|
||||
if (this.choosedList.length <= 0) {
|
||||
Message.error('请选择备货单');
|
||||
return;
|
||||
if (this.choosedList.length <= 0) {
|
||||
Message.error('请选择备货单');
|
||||
return;
|
||||
}
|
||||
|
||||
this.robTotal = this.choosedList.length
|
||||
this.isBegin = true;
|
||||
this.timer = [];
|
||||
|
||||
for (let i = 0;i < this.choosedList.length; i++) {
|
||||
setTimeout(() => {
|
||||
let t = setInterval(this.robFunc(this.choosedList[i].subPurchaseOrderSn, this.choosedList[i].mallId), 1000);
|
||||
this.timer.push({id: this.choosedList[i].subPurchaseOrderSn, timer: t})
|
||||
}, 100 * i)
|
||||
}
|
||||
|
||||
let _this = this;
|
||||
let tt = setInterval(function() {
|
||||
if (_this.choosedList.length == 0) {
|
||||
_this.isBegin = false;
|
||||
clearInterval(tt);
|
||||
}
|
||||
|
||||
this.robTotal = this.choosedList.length
|
||||
this.isBegin = true;
|
||||
this.timer = [];
|
||||
|
||||
for (let i = 0;i < this.choosedList.length; i++) {
|
||||
setTimeout(() => {
|
||||
let t = setInterval(this.robFunc(this.choosedList[i].subPurchaseOrderSn, this.choosedList[i].mallId), 1000);
|
||||
this.timer.push({id: this.choosedList[i].subPurchaseOrderSn, timer: t})
|
||||
}, 100 * i)
|
||||
}
|
||||
|
||||
let _this = this;
|
||||
let tt = setInterval(function() {
|
||||
if (_this.choosedList.length == 0) {
|
||||
_this.isBegin = false;
|
||||
clearInterval(tt);
|
||||
}
|
||||
}, 1000)
|
||||
}).catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
}, 1000)
|
||||
|
||||
// this.$http.post('/api/malluser/info').then(res => {
|
||||
// if (res.code == 0) {
|
||||
// this.$store.commit('setUserInfo', res.data)
|
||||
|
||||
Reference in New Issue
Block a user