jufubao-base 1.0.243-beta2 → 1.0.243-beta201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/JfbBaseAfterOrderList/Attr.js +13 -0
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +33 -1
- package/src/components/JfbBaseAfterSales/Api.js +58 -0
- package/src/components/JfbBaseAfterSales/Attr.js +25 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +550 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesLess.less +79 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesMixin.js +30 -0
- package/src/components/JfbBaseAfterSales/Mock.js +13 -0
- package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +150 -0
- package/src/components/JfbBaseAfterSalesDetail/Api.js +41 -0
- package/src/components/JfbBaseAfterSalesDetail/Attr.js +25 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +538 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less +79 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesDetail/Mock.js +60 -0
- package/src/components/JfbBaseAfterSalesDetail/secProd.vue +58 -0
- package/src/components/JfbBaseAfterSalesFast/Api.js +30 -0
- package/src/components/JfbBaseAfterSalesFast/Attr.js +32 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +297 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less +79 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesFast/Mock.js +38 -0
- package/src/components/JfbBaseAfterSalesList/Api.js +40 -0
- package/src/components/JfbBaseAfterSalesList/Attr.js +107 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +463 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less +79 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesList/Mock.js +362 -0
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +4 -6
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +10 -16
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +6 -10
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +6 -10
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +2 -16
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +3 -5
- package/src/components/JfbBaseOrderDetail/Attr.js +36 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +21 -1
- package/src/components/JfbBaseOrderList/Attr.js +36 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +30 -0
- package/src/components/JfbBaseOrderList/Mock.js +1 -1
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
- package/src/components/JfbBasePay/JfbBasePay.vue +19 -35
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +5 -21
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +29 -30
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +11 -18
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +3 -5
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="order_info">
|
|
3
|
+
<view class="order_number">订单号:{{ orderNumber }}</view>
|
|
4
|
+
<view class="prod_list">
|
|
5
|
+
<view class="prod_item" v-for="(item, i) in uiList" :key="i">
|
|
6
|
+
<view class="prod_img">
|
|
7
|
+
<image :src="item.product_thumb" mode="aspectFit"></image>
|
|
8
|
+
</view>
|
|
9
|
+
<view class="prod_info">
|
|
10
|
+
<view class="prod_title">{{ item.product_name }}</view>
|
|
11
|
+
<view class="prod_number">申请数量
|
|
12
|
+
<xd-number v-if="showNumberSet" style="margin-left: 24rpx;"
|
|
13
|
+
v-model="item.product_num"
|
|
14
|
+
:max="item.product_num"
|
|
15
|
+
:min="1"
|
|
16
|
+
@change="update(item)"
|
|
17
|
+
></xd-number>
|
|
18
|
+
<text v-else>:×{{ item.product_num }}</text>
|
|
19
|
+
</view>
|
|
20
|
+
</view>
|
|
21
|
+
<view v-if="showRadio" style="margin-left: 10rpx;">
|
|
22
|
+
<xd-radio :value="item.checked" @change="handleChangeRadio(item)"></xd-radio>
|
|
23
|
+
</view>
|
|
24
|
+
</view>
|
|
25
|
+
</view>
|
|
26
|
+
</view>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
import XdRadio from "@/components/XdRadio/XdRadio"
|
|
31
|
+
import XdNumber from "@/components/XdNumber/XdNumber";
|
|
32
|
+
export default {
|
|
33
|
+
components: {
|
|
34
|
+
XdRadio,
|
|
35
|
+
XdNumber
|
|
36
|
+
},
|
|
37
|
+
props: {
|
|
38
|
+
list: {
|
|
39
|
+
type: Array,
|
|
40
|
+
default() {
|
|
41
|
+
return []
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
orderNumber: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: ""
|
|
47
|
+
},
|
|
48
|
+
showRadio: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false
|
|
51
|
+
},
|
|
52
|
+
showNumberSet: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: false
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
data(){
|
|
58
|
+
return {
|
|
59
|
+
uiList: []
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
watch: {
|
|
63
|
+
list: {
|
|
64
|
+
handler(val){
|
|
65
|
+
this.uiList = val;
|
|
66
|
+
},
|
|
67
|
+
deep: true
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
created(){
|
|
71
|
+
this.uiList = this.list;
|
|
72
|
+
},
|
|
73
|
+
methods: {
|
|
74
|
+
getReturnParams(){
|
|
75
|
+
if(this.showRadio){
|
|
76
|
+
return this.uiList.filter(item => item.checked);
|
|
77
|
+
}
|
|
78
|
+
return this.uiList;
|
|
79
|
+
},
|
|
80
|
+
update(){
|
|
81
|
+
let params = this.getReturnParams();
|
|
82
|
+
this.$emit("change", params);
|
|
83
|
+
},
|
|
84
|
+
handleChangeRadio(prod){
|
|
85
|
+
//单选逻辑,选中一个取消其他所有勾选状态
|
|
86
|
+
this.uiList = this.uiList.map(item => {
|
|
87
|
+
if(prod.product_id === item.product_id && prod.sku_id === item.sku_id){
|
|
88
|
+
return {...item, checked: true};
|
|
89
|
+
}
|
|
90
|
+
return {...item, checked: false};
|
|
91
|
+
})
|
|
92
|
+
// this.$set(item, "checked", !item.checked);
|
|
93
|
+
console.log(this.uiList);
|
|
94
|
+
this.update();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
</script>
|
|
99
|
+
|
|
100
|
+
<style lang="less" scoped>
|
|
101
|
+
.order_info{
|
|
102
|
+
background-color: #FFFFFF;
|
|
103
|
+
margin-top: 20rpx;
|
|
104
|
+
border-radius: 16rpx;
|
|
105
|
+
font-size: 24rpx;
|
|
106
|
+
padding: 32rpx;
|
|
107
|
+
.order_number{
|
|
108
|
+
padding-bottom: 24rpx;
|
|
109
|
+
border-bottom: 1px solid #F2F2F2;
|
|
110
|
+
margin-bottom: 32rpx;
|
|
111
|
+
}
|
|
112
|
+
.prod_item{
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
margin-bottom: 40rpx;
|
|
116
|
+
&:last-child{
|
|
117
|
+
margin-bottom: 0;
|
|
118
|
+
}
|
|
119
|
+
.prod_img{
|
|
120
|
+
width: 140rpx;
|
|
121
|
+
height: 140rpx;
|
|
122
|
+
border-radius: 16rpx;
|
|
123
|
+
background-color: #F0F0F0;
|
|
124
|
+
image{
|
|
125
|
+
width: 100%;
|
|
126
|
+
height: 100%;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
.prod_info{
|
|
130
|
+
margin-left: 20rpx;
|
|
131
|
+
flex: 1;
|
|
132
|
+
align-self: stretch;
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
justify-content: space-between;
|
|
136
|
+
.prod_title{
|
|
137
|
+
margin-bottom: 10rpx;
|
|
138
|
+
font-size: 28rpx;
|
|
139
|
+
color: #333333;
|
|
140
|
+
}
|
|
141
|
+
.prod_number{
|
|
142
|
+
color: #999999;
|
|
143
|
+
font-size: 24rpx;
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
</style>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:After
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: "getAfterServiceOrder",
|
|
10
|
+
path: "/aftersale/v1/service-order/get",
|
|
11
|
+
title: "服务单详情",
|
|
12
|
+
isRule: false,
|
|
13
|
+
params: {
|
|
14
|
+
service_order_id: ['服务单订单号', 'String', true],
|
|
15
|
+
},
|
|
16
|
+
isConsole: true,
|
|
17
|
+
disabled: true,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
mapFnName: "delAfterServiceOrder",
|
|
21
|
+
path: "/aftersale/v1/service-order/del",
|
|
22
|
+
title: "删除服务单",
|
|
23
|
+
isRule: false,
|
|
24
|
+
params: {
|
|
25
|
+
service_order_id: ['服务单订单号', 'String', true],
|
|
26
|
+
},
|
|
27
|
+
isConsole: true,
|
|
28
|
+
disabled: true,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
mapFnName: "cancelAfterServiceOrder",
|
|
32
|
+
path: "/aftersale/v1/service-order/cancel",
|
|
33
|
+
title: "服务单取消",
|
|
34
|
+
isRule: false,
|
|
35
|
+
params: {
|
|
36
|
+
service_order_id: ['服务单订单号', 'String', true],
|
|
37
|
+
},
|
|
38
|
+
isConsole: true,
|
|
39
|
+
disabled: true,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '售后服务列表路径:',
|
|
12
|
+
ele: 'xd-select-pages-path',
|
|
13
|
+
valueKey: 'serviceListPath',
|
|
14
|
+
groupKey:'advanced',
|
|
15
|
+
placeholder: '请选择售后服务列表路径',
|
|
16
|
+
value: data['serviceListPath'] || null,
|
|
17
|
+
setting: {
|
|
18
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
19
|
+
},
|
|
20
|
+
inline: false,
|
|
21
|
+
},
|
|
22
|
+
].filter(i=>i)
|
|
23
|
+
},
|
|
24
|
+
advanced: [],
|
|
25
|
+
};
|