diff --git a/src/components/ordermanager/order-detail.vue b/src/components/ordermanager/order-detail.vue index 378c2cc..b4860db 100644 --- a/src/components/ordermanager/order-detail.vue +++ b/src/components/ordermanager/order-detail.vue @@ -162,11 +162,21 @@

其他信息

-
- 自提单 - 门店自送 - 平台配送 - 自提妥投 +
+
+ 自提单 + 门店自送 + 平台配送 + 自提妥投 +
+
+ 美团客服电话:10105557 或 400-600-5339 + 淘宝闪购客服电话:10105757 + 京东客服电话:4000-020-020 + + + +
@@ -651,6 +661,7 @@ moment.locale('zh-cn') import { getCityName } from '@/apis/cms.js' import { getOneUserInfoWithAuth } from '@/apis/controls/user' import { selfDelivering } from '@/apis/order.js' +import copyText from '@/tools/copytext' // import { QueryOrder } from '@/apis/lakala/lakala' export default { @@ -980,6 +991,24 @@ export default { } }, methods: { + // 复制客服电话 + copyTel(vendorID){ + let str = '' + if(vendorID === 1){ + str = '10105557 或 400-600-5339' + }else if(vendorID === 3){ + str = '10105757' + }else { + str = '4000-020-020' + } + copyText(str) + this.$message({ + message: "已复制到剪切板", + type: "success", + center: true, + }); + + }, // 发消息 sendMessage(){ if(this.order.vendorUserID.length === 0) return this.$toast('没有查询到用户数据') diff --git a/src/pages/indexpage/cmp/storeOrderRank.vue b/src/pages/indexpage/cmp/storeOrderRank.vue index a1da6e1..19ecd1d 100644 --- a/src/pages/indexpage/cmp/storeOrderRank.vue +++ b/src/pages/indexpage/cmp/storeOrderRank.vue @@ -273,7 +273,7 @@ export default { } } }) - console.log(brr,'data',data) + // console.log(brr,'data',data) return brr }, // 选项的时间发生变化 diff --git a/src/pages/indexpage/indexPage3.vue b/src/pages/indexpage/indexPage3.vue index 4ed01e3..fcb3887 100644 --- a/src/pages/indexpage/indexPage3.vue +++ b/src/pages/indexpage/indexPage3.vue @@ -479,6 +479,24 @@ + + +
+ + + + +
{{ '¥' + platformBalance }}
+ + + +
+
+ @@ -570,7 +588,7 @@ import staticInfo from './cmp/staticInfo' import storeOrderRank from './cmp/storeOrderRank.vue' import { mapGetters } from 'vuex' import { APIGetInvoiceRecord,APIUploadOrderInvoice } from '@/apis/APIOrder' -import { queryUnansweredInvoice,getMyStoreInfo } from '@/apis/store.js' +import { queryUnansweredInvoice,getMyStoreInfo,queryPlatformBalance,balanceRecharge } from '@/apis/store.js' import { getOrdersPost } from '@/apis/order.js' import CMPWaybillInfo from "@/components/ordermanager/cmp/waybillInfo.vue"; export default { @@ -669,6 +687,10 @@ export default { result:[], totalCount:0 }, + // 配送总金额 + platformBalance:'0.00', // 查询结果 + deliveryType:101, + amount:0 // 充值金额 } }, @@ -724,8 +746,33 @@ export default { this.getNewFeatures() this.getMtInvoiceRecord() this.getMaterialInfo() + this.queryPlatFormAmount(this.deliveryType) // 达达 }, methods: { + // 查询平台余额 101_达达 103_蜂鸟 + async queryPlatFormAmount(vendorID){ + if(vendorID === 101 || vendorID ===103) { + let res1 = await queryPlatformBalance({vendorID}) + // console.log('查询平台余额',res1) + this.platformBalance = +res1/100 + } + }, + // 确认充值 + async sureRecharge(){ + if(!this.amount) return this.$toast('请输入充值金额') + let form = new FormData() + form.append('vendorID',this.currentDialog.vendorID) + form.append('amount',this.amount * 100) + form.append('category','PC') // 链接场景 [PC,H5] + // form.append('notifyUrl','https://www.jxc4.com/#/jxstoremanager') //支付宝有,微信没有 + + let res = await balanceRecharge(form) + // window.location.href = res + window.open(res, '_blank'); + // this.handleClose(); + // console.log(this.amount,'充值情况','res',res) + // } + }, // 获取物料信息 async getMaterialInfo(){ let res = await getMyStoreInfo('1.3.5',true) @@ -780,7 +827,7 @@ export default { // 获取们团发票申请记录 async getMtInvoiceRecord(){ try { - console.log('获取美团发票申请记录',this.platform) + // console.log('获取美团发票申请记录',this.platform) if(this.platform === '1'){ let form = new FormData() if(this.storeIDs && this.storeIDs.id) form.append('storeId',this.storeIDs.id) // int false 门店id