diff --git a/src/views/order/index/config/content.ts b/src/views/order/index/config/content.ts index 2410d28..503e60a 100644 --- a/src/views/order/index/config/content.ts +++ b/src/views/order/index/config/content.ts @@ -14,14 +14,22 @@ const contentConfig: IContentConfig = { pageSize: 10, pageSizes: [10, 20, 30, 50], }, - indexAction: function (params) { + async indexAction(params) { console.log(params); if (params.createAt) { params.startTime = params.createAt[0]; params.endTime = params.createAt[1]; delete params.createAt; } - return OrderApi.getList(params); + + const res = await OrderApi.getList(params) + console.log('OrderApi.getList', res); + + res.records.map(item => { + item.payLoading = false + item.printStatus = JSON.parse(item.printStatus || '[]') + }) + return res; }, indexActionData: {}, // deleteAction: OrderApi.delete, @@ -93,7 +101,14 @@ const contentConfig: IContentConfig = { templet: "custom", slotName: "options", }, - + { + label: "打印状态", + align: "center", + prop: "printStatus", + width: 120, + templet: "custom", + slotName: "printStatus", + }, { label: "状态", align: "center", diff --git a/src/views/order/index/index.vue b/src/views/order/index/index.vue index ea01ec5..c4e8a8e 100644 --- a/src/views/order/index/index.vue +++ b/src/views/order/index/index.vue @@ -51,6 +51,13 @@ + + + + 打印失败({{scope.row.printStatus.map(item => item.name).join('、')}}) + + + {{ returnOptionsLabel(scope.prop, scope.row[scope.prop]) }} diff --git a/src/views/shop/config/components/contactSetting.vue b/src/views/shop/config/components/contactSetting.vue new file mode 100644 index 0000000..270dbb6 --- /dev/null +++ b/src/views/shop/config/components/contactSetting.vue @@ -0,0 +1,113 @@ + + + + + + + + + + + + + 如何获取企业 + 1.登录【企业微信管理后台】(work.weixin.qq.com) + 2.获取企业ID:登录后,进入【我的企业>>企业信息>>企业ID】 + + 如何获取接入链接 + 1. 登录【企业微信管理后台】(work.weixin.qq.com)。 + + 2.找到《微信客服》应用,路径:【应用管理>> 应用管理>>应用>>微信客服】 + + 3.进入《微信客服》,找到《创建账号》按钮,点击后进入页面完成创建。(具体的接待时间、接待人员等商家可自行配置) + + 4.创建成功后,再次点击刚刚创建的账号,进入后复制《接入链接》粘贴过来即可;特别说明,账号可选用已创建的账号; + + + + 保存 + + + + + + + + \ No newline at end of file diff --git a/src/views/shop/config/index.vue b/src/views/shop/config/index.vue index 57388b0..11213f2 100644 --- a/src/views/shop/config/index.vue +++ b/src/views/shop/config/index.vue @@ -6,11 +6,13 @@ + + @@ -19,6 +21,7 @@ import shopInfo from "./components/shopInfo.vue"; import safe from "./components/safe.vue"; import notifications from "./components/notifications.vue"; +import contactSetting from "./components/contactSetting.vue"; const state = reactive({ activeName: "1",
1.登录【企业微信管理后台】(work.weixin.qq.com)
2.获取企业ID:登录后,进入【我的企业>>企业信息>>企业ID】
1. 登录【企业微信管理后台】(work.weixin.qq.com)。 +
2.找到《微信客服》应用,路径:【应用管理>> 应用管理>>应用>>微信客服】
3.进入《微信客服》,找到《创建账号》按钮,点击后进入页面完成创建。(具体的接待时间、接待人员等商家可自行配置)
4.创建成功后,再次点击刚刚创建的账号,进入后复制《接入链接》粘贴过来即可;特别说明,账号可选用已创建的账号;