同步订单状态

This commit is contained in:
jianghanbo 2024-12-04 15:25:56 +08:00
parent 4d61fda391
commit ad28024477
7 changed files with 14 additions and 12 deletions

View File

@ -178,7 +178,7 @@
<el-button
size="small"
icon="el-icon-thumb"
@click="onOneClickRepair(scope.row)"
@click="onOneClickRepair(scope.row, true)"
>
同步
</el-button>
@ -774,6 +774,7 @@ export default {
dialogVisible: false,
dialog2Visible: false,
applyVisible: false,
notice:false,
orderConfirmDialogVisible:false,
oss: [],
isSynchronization: false,
@ -859,11 +860,11 @@ export default {
// await this.setOneClickRepair();
// await this.getList();
},
async setOneClickRepair(notice = false) {
async setOneClickRepair() {
let arr = this.list.map((res) => {
return res.id;
});
await this.onOneClickRepair({ id: arr.join() }, notice);
await this.onOneClickRepair({ id: arr.join() });
},
orderSort({ column, prop, order }) {
if (column.order == 'ascending') {
@ -1110,11 +1111,12 @@ export default {
})
.catch(() => {});
},
onOneClickRepair(item, notice=false) {
onOneClickRepair(item, notice = false) {
this.notice = notice;
this.$axios
.post("/admin/order/oneClickRepair", { id: item.id })
.then((res) => {
if (notice) {
if (this.notice) {
this.$notify({
title: "成功",
message: "同步完成",

View File

@ -159,14 +159,14 @@ class Meituan {
$body = curl_exec($ch);
curl_close($ch);
$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('http:' . $http);
Log::info('body:' . $body);
if ($this->tryTimes > 1) {
// if ($this->tryTimes > 1) {
(new ThirdApiService())->weComNotice($this->os);
}
// }
$this->tryTimes++;
}
return $res;

File diff suppressed because one or more lines are too long

View File

@ -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