|
@@ -167,9 +167,6 @@
|
|
for (let val of list) {
|
|
for (let val of list) {
|
|
if (val.status) val.zhStatus = that.searchStatus(val.status)
|
|
if (val.status) val.zhStatus = that.searchStatus(val.status)
|
|
}
|
|
}
|
|
- list.sort(function(a, b) {
|
|
|
|
- return a.buy_time < b.buy_time ? 1 : -1;
|
|
|
|
- })
|
|
|
|
that.$set(that, `list`, list);
|
|
that.$set(that, `list`, list);
|
|
that.$set(that, `total`, res.total)
|
|
that.$set(that, `total`, res.total)
|
|
} else {
|
|
} else {
|
|
@@ -222,11 +219,8 @@
|
|
// 输入框
|
|
// 输入框
|
|
toInput(e) {
|
|
toInput(e) {
|
|
const that = this;
|
|
const that = this;
|
|
- if (that.searchInfo.goods) {
|
|
|
|
- that.$set(that.searchInfo, `customer`, e.detail.value)
|
|
|
|
- } else {
|
|
|
|
- that.$set(that, `searchInfo`, {})
|
|
|
|
- }
|
|
|
|
|
|
+ if (that.searchInfo.customer) that.$set(that.searchInfo, `customer`, e.detail.value)
|
|
|
|
+ else that.$set(that, `searchInfo`, {})
|
|
that.clearPage();
|
|
that.clearPage();
|
|
that.search();
|
|
that.search();
|
|
},
|
|
},
|
|
@@ -266,7 +260,7 @@
|
|
} else {
|
|
} else {
|
|
if (e.is_afterSale != true) {
|
|
if (e.is_afterSale != true) {
|
|
let arr = await that.$api(`/groupAfterSale`, 'POST', {
|
|
let arr = await that.$api(`/groupAfterSale`, 'POST', {
|
|
- order_detail: e._id,
|
|
|
|
|
|
+ order: e._id,
|
|
type: '4'
|
|
type: '4'
|
|
}, 'group')
|
|
}, 'group')
|
|
if (arr.errcode == '0') {
|
|
if (arr.errcode == '0') {
|
|
@@ -397,7 +391,7 @@
|
|
success: async function(res) {
|
|
success: async function(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
let arr = await that.$api(`/groupAfterSale`, 'POST', {
|
|
let arr = await that.$api(`/groupAfterSale`, 'POST', {
|
|
- order_detail: e._id,
|
|
|
|
|
|
+ order: e._id,
|
|
type: '5'
|
|
type: '5'
|
|
}, 'group')
|
|
}, 'group')
|
|
if (arr.errcode == '0') {
|
|
if (arr.errcode == '0') {
|
|
@@ -561,7 +555,7 @@
|
|
text-align: right;
|
|
text-align: right;
|
|
|
|
|
|
button {
|
|
button {
|
|
- margin: 0 2vw 0 0;
|
|
|
|
|
|
+ margin: 0 1vw 0 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|