多规格增加
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
orders({
|
||||
state: this.tabs[this.index].type,
|
||||
page: this.page
|
||||
}).then(res => {
|
||||
}).then(res => {
|
||||
if (res.page.current === 1) {
|
||||
this.array = []
|
||||
}
|
||||
@@ -114,7 +114,8 @@
|
||||
stateText: val.state,
|
||||
cans: val.can,
|
||||
shop: val.shop,
|
||||
goods_id:val.items[0].sku.goods_id
|
||||
goods_id:val.items[0].sku.goods_id,
|
||||
unit:val.items[0].sku.unit
|
||||
}
|
||||
})
|
||||
this.array = this.array.concat(ordersArr)
|
||||
@@ -149,10 +150,8 @@
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
cancel(orderNo).then(res => {
|
||||
console.log(res)
|
||||
let orderIndex = this.array.findIndex(val => val.no === e
|
||||
.order.no)
|
||||
console.log(this.index, typeof this.index, orderIndex);
|
||||
if (this.index == '0') {
|
||||
this.array[orderIndex].stateText = "已取消";
|
||||
this.array[orderIndex].cans = {
|
||||
@@ -208,10 +207,8 @@
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
sign(orderNo).then(res => {
|
||||
console.log(res)
|
||||
let orderIndex = this.array.findIndex(val => val.no === e
|
||||
.order.no)
|
||||
console.log(this.index, typeof this.index, orderIndex);
|
||||
if (this.index == '0') {
|
||||
this.array[orderIndex].stateText = "已签收";
|
||||
this.array[orderIndex].cans = {
|
||||
|
||||
Reference in New Issue
Block a user