Commit ce073dfc by 匡雅琴

同步订单逻辑调整

1 parent e9d004fd
...@@ -42,7 +42,8 @@ const syncCorpAccountCode = params => { ...@@ -42,7 +42,8 @@ const syncCorpAccountCode = params => {
url: 'rop-scrm-wechat/router', url: 'rop-scrm-wechat/router',
method: 'post', method: 'post',
data: params, data: params,
sign: true sign: true,
returnAll: true
}) })
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</div> </div>
<template slot="auth-button" slot-scope="scope" :data="scope.scope" v-if="scope.scope.isBuyPermit"> <template slot="auth-button" slot-scope="scope" :data="scope.scope" v-if="scope.scope.isBuyPermit">
<GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton> <GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton>
<el-button type="text" @click="viewConfig(scope.scope)">查看</el-button> <!-- <el-button type="text" @click="viewConfig(scope.scope)">查看</el-button> -->
<!-- <el-button type="text" @click="handelActivate(scope.scope)" :loading="loading">一键激活许可</el-button> --> <!-- <el-button type="text" @click="handelActivate(scope.scope)" :loading="loading">一键激活许可</el-button> -->
</template> </template>
</GLTable> </GLTable>
...@@ -248,12 +248,20 @@ export default { ...@@ -248,12 +248,20 @@ export default {
handleSync() { handleSync() {
this.syncLoad = true this.syncLoad = true
this.$apis.accountConfig.syncCorpAccountCode({}).then(res => { this.$apis.accountConfig.syncCorpAccountCode({}).then(res => {
if (res) { if (res.code == 0) {
this.syncLoad = false this.syncLoad = false
this.$message({ this.$message({
message: '同步成功', message: '同步成功',
type: 'success' type: 'success'
}) })
this.handleSearch()
} else {
this.syncLoad = false
this.$message({
message: '同步门店许可数据异常',
type: 'error'
})
this.handleSearch()
} }
}) })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!