+
@@ -159,7 +159,7 @@ import {
deleteList,
detailList,
} from "@/api/statistics/statistics";
-import {getWuliuInfo,getOrderList,exportList,getComPanyList,getDetail} from "@/api/order/order"
+import {getWuliuInfo,getOrderList,exportList,getComPanyList,getDetail,confirmgoods} from "@/api/order/order"
// import { getToken } from "@/util/auth";
import md5 from "js-md5";
export default {
@@ -526,7 +526,30 @@ export default {
},
// 确认发货接口
handlieConfirm(){
- // confirmgoods()
+ if(this.checkaccept.logisticsCompanyCode == '') {
+ this.$message.warning('请选择物流公司');
+ return;
+ }
+ if(this.checkaccept.logisticsNo == '') {
+ this.$message.warning('请输入快递单号');
+ return;
+ }
+ let idx = this.companyData.findIndex(item => { return item.dictKey == this.checkaccept.logisticsCompanyCode });
+ let logisticsCompany = '';
+ if(idx > -1) {
+ logisticsCompany = this.companyData[idx].dictValue;
+ }
+ this.$confirm(`确认该订单已发货吗?`, {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ }).then(() => {
+ confirmgoods({ id:this.checkaccept.id, logisticsCompany: logisticsCompany, logisticsCompanyCode: this.checkaccept.logisticsCompanyCode, logisticsNo: this.checkaccept.logisticsNo }).then(res => {
+ this.$message.success('发货信息保存成功');
+ this.dialogVisible = false;
+ this.onLoad();
+ })
+ });
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
@@ -567,9 +590,9 @@ export default {
customer: "1C32AD38DC92D3A1950391AD766C7F6D",
sign: "",
param: JSON.stringify({
- "com": 'zhongtong',
- "num": '78713552736238',
- "phone": '17852327323',
+ "com": this.checkaccept.logisticsCompanyCode,
+ "num": this.checkaccept.logisticsNo,
+ "phone": this.checkaccept.consigneePhone,
"from": "",
"to": "",
"resultv2": "4",
@@ -578,55 +601,55 @@ export default {
})
}
param.sign = md5(param.param + 'ubdRnSOv5517' + param.customer).toUpperCase();
- this.activities = [
- {
- status:'投柜或驿站',
- context: '【青岛市】 快件已被 菜鸟的【青岛康泰源惠客友超市店】代收,【取件地址:青岛康泰源惠客友超市店】,请及时取件。如有疑问请联系:15805321109,投诉电话:0532-88985563',
- time: '2023-08-18 10:33:33'
- },
- {
- status:'派件',
- context: '【青岛市】青岛市中五二部(0532-88985563)业务员【杨金梅,19106394524】正在为您派件(95720为中通快递员外呼专属号码,请放心接听,如有问题可联系投诉电话:0532-88985563)',
- time: '2023-08-18 08:08:38'
- },
- {
- status:'在途',
- context: '【青岛市】 快件已到达 青岛市中五二部',
- time: '2023-08-18 08:08:33'
- },
- {
- status:'在途',
- context: '【青岛市】 快件已发往 青岛市中五二部',
- time: '2023-08-18 04:36:56'
- },
- {
- status:'在途',
- context: '【青岛市】 快件已到达 青岛中转部',
- time: '2023-08-18 01:04:40'
- },
- {
- status:'在途',
- context: '【昆明市】 快件已发往 青岛中转部',
- time: '2023-08-16 00:51:30'
- },
- {
- status:'在途',
- context: '【昆明市】 快件已到达 昆明中转',
- time: '2023-08-15 15:30:16'
- }, {
- status:'在途',
- context: '【丽江市】 快件已发往 昆明中转',
- time: '2023-08-14 19:02:02'
- }, {
- status:'揽收',
- context: '【丽江市】 【丽江华坪县】(0888-8834031) 的 P1陈平(15108866686) 已揽收',
- time: '2023-08-14 19:01:18'
- }],
- this.activities[0].status = this.activities[0].status == '在途' ? '运输中' : this.activities[0].status
- this.activities[0].color = '#0bbd87'
- console.log(this.activities)
+ // this.activities = [
+ // {
+ // status:'投柜或驿站',
+ // context: '【青岛市】 快件已被 菜鸟的【青岛康泰源惠客友超市店】代收,【取件地址:青岛康泰源惠客友超市店】,请及时取件。如有疑问请联系:15805321109,投诉电话:0532-88985563',
+ // time: '2023-08-18 10:33:33'
+ // },
+ // {
+ // status:'派件',
+ // context: '【青岛市】青岛市中五二部(0532-88985563)业务员【杨金梅,19106394524】正在为您派件(95720为中通快递员外呼专属号码,请放心接听,如有问题可联系投诉电话:0532-88985563)',
+ // time: '2023-08-18 08:08:38'
+ // },
+ // {
+ // status:'在途',
+ // context: '【青岛市】 快件已到达 青岛市中五二部',
+ // time: '2023-08-18 08:08:33'
+ // },
+ // {
+ // status:'在途',
+ // context: '【青岛市】 快件已发往 青岛市中五二部',
+ // time: '2023-08-18 04:36:56'
+ // },
+ // {
+ // status:'在途',
+ // context: '【青岛市】 快件已到达 青岛中转部',
+ // time: '2023-08-18 01:04:40'
+ // },
+ // {
+ // status:'在途',
+ // context: '【昆明市】 快件已发往 青岛中转部',
+ // time: '2023-08-16 00:51:30'
+ // },
+ // {
+ // status:'在途',
+ // context: '【昆明市】 快件已到达 昆明中转',
+ // time: '2023-08-15 15:30:16'
+ // }, {
+ // status:'在途',
+ // context: '【丽江市】 快件已发往 昆明中转',
+ // time: '2023-08-14 19:02:02'
+ // }, {
+ // status:'揽收',
+ // context: '【丽江市】 【丽江华坪县】(0888-8834031) 的 P1陈平(15108866686) 已揽收',
+ // time: '2023-08-14 19:01:18'
+ // }],
+ // this.activities[0].status = this.activities[0].status == '在途' ? '运输中' : this.activities[0].status
+ // this.activities[0].color = '#0bbd87'
+ // console.log(this.activities)
getWuliuInfo(param).then(res =>{
- console.log(res)
+ // console.log(res)
this.activities = res.data.data
})
},
diff --git a/src/views/statistics/index.vue b/src/views/statistics/index.vue
index 1ee13cd..2fd639e 100644
--- a/src/views/statistics/index.vue
+++ b/src/views/statistics/index.vue
@@ -1,71 +1,32 @@
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
-
+
@@ -75,83 +36,69 @@
- 查看详情
- 删除
+ 查看详情
+ 编辑
+ 删除
- 仰睡
- 侧睡
+ 仰睡
+ 侧睡
- 微信商城
- 抖音商城
- 微信小程序
+ 微信商城
+ 抖音商城
+ 微信小程序
-
- {{scope.row.neckShoulderWidth}}
+
+ {{ scope.row.neckShoulderWidth }}
- {{scope.row.neckLength}}
+ {{ scope.row.neckLength }}
- 是
- 否
+ 是
+ 否
- 偏硬
- 适中
- 偏软
+ 偏硬
+ 适中
+ 偏软
- 羽丝绒枕
- 草本植物枕(荞麦、决明子等)
- 乳胶枕
- 慢回弹记忆枕
- 软管枕
- 其他
+ 羽丝绒枕
+ 草本植物枕(荞麦、决明子等)
+ 乳胶枕
+ 慢回弹记忆枕
+ 软管枕
+ 其他
- {{scope.row.finishTime !== '' ? scope.row.finishTime : '---/-/---'}}
-
+ {{ scope.row.finishTime !== '' ? scope.row.finishTime : '---/-/---' }}
+
- {{(scope.row.province ? scope.row.province : '') + (scope.row.city ? scope.row.city : '') + (scope.row.district ? scope.row.district : '') + (scope.row.detail ? scope.row.detail : '')}}
-
+ {{ (scope.row.province ? scope.row.province : '') + (scope.row.city ? scope.row.city : '') +
+ (scope.row.district ? scope.row.district : '') + (scope.row.detail ? scope.row.detail : '') }}
+
- 删除
- 导出
-
+ 删除
+ 导出
+
-
+
+
+ 订单编号
+ {{ checkaccept.orderNo }}
+
+
+ 来源渠道
+ {{ calcChannel(checkaccept.purchaseChannel) }}
+
姓名
- {{checkaccept.username}}
+ {{ checkaccept.username }}
手机
@@ -159,75 +106,113 @@
身高
- {{ checkaccept.height }}
+ {{ checkaccept.height }}
- 体重
+ 体重
- {{ checkaccept.weight }}
+ {{ checkaccept.weight }}
- 地址
+ 地址
{{ checkaccept.position }}
睡眠姿势
-
+
{{ checkaccept.sleepingPosture == 1 ? '仰睡' : checkaccept.sleepingPosture == 2 ? '侧睡' : '' }}
枕头软硬度
-
-
{{ checkaccept.pillowHardness == 1 ? '偏硬' : checkaccept.pillowHardness == 2 ? '适中' : checkaccept.pillowHardness == 3 ? '偏软' : '' }}
+
+
{{ checkaccept.pillowHardness == 1 ? '偏硬' : checkaccept.pillowHardness == 2 ? '适中' :
+ checkaccept.pillowHardness == 3 ? '偏软' : '' }}
枕头类型
-
-
{{ checkaccept.pillowMaterial == 1 ? '羽丝绒枕' : checkaccept.pillowMaterial == 2 ? '草本植物枕(荞麦、决明子等)' : checkaccept.pillowMaterial == 3 ? '乳胶枕' : checkaccept.pillowMaterial == 4 ? '慢回弹记忆枕' : checkaccept.pillowMaterial == 5 ? '软管枕' : checkaccept.pillowMaterial == 6 ? '其他' : '' }}
+
+
{{ checkaccept.pillowMaterial == 1 ? '羽丝绒枕' : checkaccept.pillowMaterial == 2 ? '草本植物枕(荞麦、决明子等)' :
+ checkaccept.pillowMaterial == 3 ? '乳胶枕' : checkaccept.pillowMaterial == 4 ? '慢回弹记忆枕' :
+ checkaccept.pillowMaterial == 5 ? '软管枕' : checkaccept.pillowMaterial == 6 ? '其他' : '' }}
颈肩宽度
-
+
{{ checkaccept.neckShoulderWidth == '-1' ? '' : checkaccept.neckShoulderWidth }}
颈长
-
+
{{ checkaccept.neckLength == '-1' ? '' : checkaccept.neckLength }}
年龄范围
-
+
{{ checkaccept.ageRange }}
睡眠时长
-
+
{{ checkaccept.sleepLength }}
颈椎是否有问题
-
+
{{ checkaccept.cervicalVertebra == 1 ? '是' : checkaccept.cervicalVertebra == 0 ? '否' : '' }}
其他需求
-
+
{{ checkaccept.otherNeed }}
+
+ 备注
+ {{ checkaccept.remark }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -235,18 +220,18 @@