同步订单状态
This commit is contained in:
parent
4d61fda391
commit
ad28024477
|
@ -178,7 +178,7 @@
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
icon="el-icon-thumb"
|
icon="el-icon-thumb"
|
||||||
@click="onOneClickRepair(scope.row)"
|
@click="onOneClickRepair(scope.row, true)"
|
||||||
>
|
>
|
||||||
同步
|
同步
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -774,6 +774,7 @@ export default {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
dialog2Visible: false,
|
dialog2Visible: false,
|
||||||
applyVisible: false,
|
applyVisible: false,
|
||||||
|
notice:false,
|
||||||
orderConfirmDialogVisible:false,
|
orderConfirmDialogVisible:false,
|
||||||
oss: [],
|
oss: [],
|
||||||
isSynchronization: false,
|
isSynchronization: false,
|
||||||
|
@ -859,11 +860,11 @@ export default {
|
||||||
// await this.setOneClickRepair();
|
// await this.setOneClickRepair();
|
||||||
// await this.getList();
|
// await this.getList();
|
||||||
},
|
},
|
||||||
async setOneClickRepair(notice = false) {
|
async setOneClickRepair() {
|
||||||
let arr = this.list.map((res) => {
|
let arr = this.list.map((res) => {
|
||||||
return res.id;
|
return res.id;
|
||||||
});
|
});
|
||||||
await this.onOneClickRepair({ id: arr.join() }, notice);
|
await this.onOneClickRepair({ id: arr.join() });
|
||||||
},
|
},
|
||||||
orderSort({ column, prop, order }) {
|
orderSort({ column, prop, order }) {
|
||||||
if (column.order == 'ascending') {
|
if (column.order == 'ascending') {
|
||||||
|
@ -1111,10 +1112,11 @@ export default {
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
onOneClickRepair(item, notice = false) {
|
onOneClickRepair(item, notice = false) {
|
||||||
|
this.notice = notice;
|
||||||
this.$axios
|
this.$axios
|
||||||
.post("/admin/order/oneClickRepair", { id: item.id })
|
.post("/admin/order/oneClickRepair", { id: item.id })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (notice) {
|
if (this.notice) {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
title: "成功",
|
title: "成功",
|
||||||
message: "同步完成",
|
message: "同步完成",
|
||||||
|
|
|
@ -159,14 +159,14 @@ class Meituan {
|
||||||
$body = curl_exec($ch);
|
$body = curl_exec($ch);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
$res = json_decode($body);
|
$res = json_decode($body);
|
||||||
if (!isset($res->code) || $res->code != 0) {
|
if (isset($res->code) && $res->code == 6) {
|
||||||
Log::info('os:' . $this->os);
|
Log::info('os:' . $this->os);
|
||||||
Log::info('http:' . $http);
|
Log::info('http:' . $http);
|
||||||
Log::info('body:' . $body);
|
Log::info('body:' . $body);
|
||||||
|
|
||||||
if ($this->tryTimes > 1) {
|
// if ($this->tryTimes > 1) {
|
||||||
(new ThirdApiService())->weComNotice($this->os);
|
(new ThirdApiService())->weComNotice($this->os);
|
||||||
}
|
// }
|
||||||
$this->tryTimes++;
|
$this->tryTimes++;
|
||||||
}
|
}
|
||||||
return $res;
|
return $res;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
.pagination-container[data-v-28fdfbeb]{padding:32px 16px;position:fixed;bottom:0;left:0;width:100%;background:#fff;padding:40px 280px;-webkit-box-shadow:0 -2px 10px rgba(0,0,0,.1);box-shadow:0 -2px 10px rgba(0,0,0,.1);z-index:100}.pagination-container.hidden[data-v-28fdfbeb]{display:none}.app-container[data-v-a6440056]{position:relative;padding-bottom:60px}.el-table[data-v-a6440056],.filter-container[data-v-a6440056]{padding-bottom:5px}
|
.pagination-container[data-v-28fdfbeb]{padding:32px 16px;position:fixed;bottom:0;left:0;width:100%;background:#fff;padding:40px 280px;-webkit-box-shadow:0 -2px 10px rgba(0,0,0,.1);box-shadow:0 -2px 10px rgba(0,0,0,.1);z-index:100}.pagination-container.hidden[data-v-28fdfbeb]{display:none}.app-container[data-v-e3c84f38]{position:relative;padding-bottom:60px}.el-table[data-v-e3c84f38],.filter-container[data-v-e3c84f38]{padding-bottom:5px}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue