jufubao-takeorder 1.0.1 → 1.0.2-beta10
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/JfbTakeorderFilterOrderList/Api.js +43 -0
- package/src/components/JfbTakeorderFilterOrderList/Attr.js +16 -0
- package/src/components/JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderList.vue +353 -0
- package/src/components/JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderListLess.less +80 -0
- package/src/components/JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderListMixin.js +30 -0
- package/src/components/JfbTakeorderFilterOrderList/Mock.js +13 -0
- package/src/components/JfbTakeorderFilterOrderList/cusAttr/advanced.js +26 -0
- package/src/components/JfbTakeorderFilterOrderList/cusAttr/content.js +9 -0
- package/src/components/JfbTakeorderFilterOrderList/cusAttr/style.js +11 -0
- package/src/components/JfbTakeorderIndex/Api.js +72 -0
- package/src/components/JfbTakeorderIndex/Attr.js +16 -0
- package/src/components/JfbTakeorderIndex/JfbTakeorderIndex.vue +851 -0
- package/src/components/JfbTakeorderIndex/JfbTakeorderIndexLess.less +80 -0
- package/src/components/JfbTakeorderIndex/JfbTakeorderIndexMixin.js +30 -0
- package/src/components/JfbTakeorderIndex/Mock.js +13 -0
- package/src/components/JfbTakeorderIndex/components/cityPicker.vue +307 -0
- package/src/components/JfbTakeorderIndex/cusAttr/advanced.js +26 -0
- package/src/components/JfbTakeorderIndex/cusAttr/content.js +9 -0
- package/src/components/JfbTakeorderIndex/cusAttr/style.js +11 -0
- package/src/components/JfbTakeorderOrderDetail/Api.js +125 -0
- package/src/components/JfbTakeorderOrderDetail/Attr.js +16 -0
- package/src/components/JfbTakeorderOrderDetail/JfbTakeorderOrderDetail.vue +1211 -0
- package/src/components/JfbTakeorderOrderDetail/JfbTakeorderOrderDetailLess.less +80 -0
- package/src/components/JfbTakeorderOrderDetail/JfbTakeorderOrderDetailMixin.js +30 -0
- package/src/components/JfbTakeorderOrderDetail/Mock.js +13 -0
- package/src/components/JfbTakeorderOrderDetail/components/CusEditQuote.vue +150 -0
- package/src/components/JfbTakeorderOrderDetail/components/products.vue +141 -0
- package/src/components/JfbTakeorderOrderDetail/cusAttr/advanced.js +12 -0
- package/src/components/JfbTakeorderOrderDetail/cusAttr/content.js +233 -0
- package/src/components/JfbTakeorderOrderDetail/cusAttr/style.js +11 -0
- package/src/components/JfbTakeorderOrderList/Api.js +43 -0
- package/src/components/JfbTakeorderOrderList/Attr.js +16 -0
- package/src/components/JfbTakeorderOrderList/JfbTakeorderOrderList.vue +320 -0
- package/src/components/JfbTakeorderOrderList/JfbTakeorderOrderListLess.less +80 -0
- package/src/components/JfbTakeorderOrderList/JfbTakeorderOrderListMixin.js +30 -0
- package/src/components/JfbTakeorderOrderList/Mock.js +13 -0
- package/src/components/JfbTakeorderOrderList/cusAttr/advanced.js +26 -0
- package/src/components/JfbTakeorderOrderList/cusAttr/content.js +23 -0
- package/src/components/JfbTakeorderOrderList/cusAttr/style.js +11 -0
- package/src/components/JfbTakeorderVoiceSwitch/Api.js +39 -0
- package/src/components/JfbTakeorderVoiceSwitch/Attr.js +12 -0
- package/src/components/JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitch.vue +191 -0
- package/src/components/JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitchLess.less +80 -0
- package/src/components/JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitchMixin.js +30 -0
- package/src/components/JfbTakeorderVoiceSwitch/Mock.js +5 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Order
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: 'getOrderList',
|
|
10
|
+
title: '订单列表',
|
|
11
|
+
path: '/takeorder/v1/order',
|
|
12
|
+
isRule: false,
|
|
13
|
+
params: {
|
|
14
|
+
tab: ['tab', 'String', '必选'],
|
|
15
|
+
order_type: ['订单类型', 'Number', '必选'],
|
|
16
|
+
page_token: ['page_token', 'Number', ''],
|
|
17
|
+
page_size: ['page_size', 'Number', ''],
|
|
18
|
+
},
|
|
19
|
+
isConsole: true,
|
|
20
|
+
disabled: true,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
mapFnName: 'getNewOrderNotify',
|
|
24
|
+
title: '新订单通知-轮询(5s轮询一次)',
|
|
25
|
+
path: '/takeorder/v1/new-order/notify',
|
|
26
|
+
isRule: false,
|
|
27
|
+
params: {
|
|
28
|
+
order_type: ['订单类型', 'Number', '必选'],
|
|
29
|
+
max_id: ['订单列表的最大ID,如果不存在,直接传递 0', 'Number', ''],
|
|
30
|
+
},
|
|
31
|
+
isConsole: true,
|
|
32
|
+
disabled: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
mapFnName: 'getUserConfig',
|
|
36
|
+
title: '获取用户配置',
|
|
37
|
+
path: '/takeorder/v1/user-config',
|
|
38
|
+
isRule: false,
|
|
39
|
+
params: {},
|
|
40
|
+
isConsole: true,
|
|
41
|
+
disabled: true,
|
|
42
|
+
},
|
|
43
|
+
];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import Style from './cusAttr/style'
|
|
3
|
+
import Advanced from './cusAttr/advanced'
|
|
4
|
+
import Content from './cusAttr/content'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data, gValue, gColor, oldData) => {
|
|
9
|
+
return [
|
|
10
|
+
...Content(data, gValue, gColor, oldData),
|
|
11
|
+
...Style(data, gValue, gColor, oldData),
|
|
12
|
+
...Advanced(data, gValue, gColor, oldData),
|
|
13
|
+
].filter(i => i)
|
|
14
|
+
},
|
|
15
|
+
advanced: [],
|
|
16
|
+
}
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-takeorder-order-list"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx: isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-takeorder-order-list__edit"
|
|
10
|
+
:class="{ editx: isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-takeorder-order-list__edit-icon" @click.stop="delEdit">
|
|
14
|
+
<xd-font-icon
|
|
15
|
+
icon="iconshanchu-01"
|
|
16
|
+
color="#fff"
|
|
17
|
+
size="30"
|
|
18
|
+
></xd-font-icon>
|
|
19
|
+
</view>
|
|
20
|
+
</view>
|
|
21
|
+
<!-- #endif -->
|
|
22
|
+
<view class="jfb-takeorder-order-list__body">
|
|
23
|
+
<!-- <view
|
|
24
|
+
v-if="showNew"
|
|
25
|
+
@click="handleRefresh"
|
|
26
|
+
:style="{ color: warningColor, background: newBackgroundColor }"
|
|
27
|
+
class="jfb-takeorder-quoted-list__body-new"
|
|
28
|
+
><XdFontIcon size="24" icon="iconIM"></XdFontIcon>
|
|
29
|
+
<view>新的订单来了,点我立即刷新</view></view
|
|
30
|
+
> -->
|
|
31
|
+
<view v-for="(item, index) in orderList" :key="index">
|
|
32
|
+
<CusTakeorder
|
|
33
|
+
:item="item"
|
|
34
|
+
:mainColor="mainColor"
|
|
35
|
+
@expire="handleOrderExpire"
|
|
36
|
+
@btnEvent="handleBtnEvent"
|
|
37
|
+
></CusTakeorder>
|
|
38
|
+
</view>
|
|
39
|
+
<xd-no-data
|
|
40
|
+
icon-type="order"
|
|
41
|
+
:scale-size="2"
|
|
42
|
+
v-if="orderList && orderList.length === 0"
|
|
43
|
+
>暂无订单</xd-no-data
|
|
44
|
+
>
|
|
45
|
+
</view>
|
|
46
|
+
</view>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<script>
|
|
50
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
51
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
52
|
+
import JfbTakeorderOrderListMixin from "./JfbTakeorderOrderListMixin";
|
|
53
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
54
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
55
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
56
|
+
import CusTakeorder from "@/components/CusTakeorder/CusTakeorder";
|
|
57
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
58
|
+
import XdNoData from "@/components/XdNoData/XdNoData";
|
|
59
|
+
import { mapActions } from "vuex";
|
|
60
|
+
const Color = require("color");
|
|
61
|
+
export default {
|
|
62
|
+
name: "JfbTakeorderOrderList",
|
|
63
|
+
components: {
|
|
64
|
+
XdFontIcon,
|
|
65
|
+
CusTakeorder,
|
|
66
|
+
XdNoData,
|
|
67
|
+
},
|
|
68
|
+
mixins: [componentsMixins, extsMixins, JfbTakeorderOrderListMixin],
|
|
69
|
+
data() {
|
|
70
|
+
return {
|
|
71
|
+
newBackgroundColor: "",
|
|
72
|
+
showNew: false,
|
|
73
|
+
pollTimer: null, // 轮询定时器
|
|
74
|
+
orderList: [],
|
|
75
|
+
order_type: "hourdash",
|
|
76
|
+
orderTab: "index",
|
|
77
|
+
page_size: 10,
|
|
78
|
+
page_token: 1,
|
|
79
|
+
hasNext: true,
|
|
80
|
+
next_page_token: "",
|
|
81
|
+
order_detail_path: "",
|
|
82
|
+
isPreview: false,
|
|
83
|
+
isOpenNew: "N",
|
|
84
|
+
isOpenWin: "N",
|
|
85
|
+
max_id: 0,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
watch: {
|
|
89
|
+
container(value, oldValue) {
|
|
90
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
91
|
+
if (this.$configProject["isPreview"]) this.init(value);
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
created() {
|
|
95
|
+
this.init(this.container);
|
|
96
|
+
},
|
|
97
|
+
destroyed() {
|
|
98
|
+
this.stopPolling();
|
|
99
|
+
},
|
|
100
|
+
methods: {
|
|
101
|
+
...mapActions(["voiceAlert", "playWebSpeech", "playAudioFile"]),
|
|
102
|
+
onJfbLoad(options) {
|
|
103
|
+
// 获取订单列表
|
|
104
|
+
this.getList();
|
|
105
|
+
if (!this.isPreview) {
|
|
106
|
+
jfbRootExec("getUserConfig", {
|
|
107
|
+
vm: this,
|
|
108
|
+
data: {},
|
|
109
|
+
}).then((configRes) => {
|
|
110
|
+
this.isOpenNew = configRes.is_open_new_order_notify_audio;
|
|
111
|
+
this.isOpenWin = configRes.is_open_win_order_audio;
|
|
112
|
+
// 立即调用一次
|
|
113
|
+
this.handleGetNew();
|
|
114
|
+
// 启动定时器,每5秒调用一次
|
|
115
|
+
this.startPolling();
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
/**
|
|
120
|
+
* @description 监听事件变化
|
|
121
|
+
* @param container {object} 业务组件对象自己
|
|
122
|
+
*/
|
|
123
|
+
init(container) {
|
|
124
|
+
this.newBackgroundColor = Color(this.warningColor).alpha(0.15).toString();
|
|
125
|
+
this.orderTab = getContainerPropsValue(
|
|
126
|
+
container,
|
|
127
|
+
"content.orderTab",
|
|
128
|
+
"index"
|
|
129
|
+
);
|
|
130
|
+
this.order_detail_path = getContainerPropsValue(
|
|
131
|
+
container,
|
|
132
|
+
"content.order_detail_path",
|
|
133
|
+
{ value: "" }
|
|
134
|
+
).value;
|
|
135
|
+
if (this.$configProject["isPreview"]) {
|
|
136
|
+
this.isPreview = true;
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
* 获取订单列表
|
|
141
|
+
*/
|
|
142
|
+
getList() {
|
|
143
|
+
// 构建请求参数
|
|
144
|
+
const params = {
|
|
145
|
+
tab: this.orderTab,
|
|
146
|
+
order_type: this.order_type,
|
|
147
|
+
page_token: this.page_token,
|
|
148
|
+
page_size: this.page_size,
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
return jfbRootExec("getOrderList", {
|
|
152
|
+
vm: this,
|
|
153
|
+
data: params,
|
|
154
|
+
})
|
|
155
|
+
.then((res) => {
|
|
156
|
+
// 设置订单列表数据
|
|
157
|
+
let list = res.list.map((item) => {
|
|
158
|
+
item.product_list = item.product_list.map((prod, i) => {
|
|
159
|
+
prod["product_thumb"] = prod.product_thumb
|
|
160
|
+
? getServiceUrl(prod.product_thumb, "size3")
|
|
161
|
+
: "";
|
|
162
|
+
return prod;
|
|
163
|
+
});
|
|
164
|
+
return item;
|
|
165
|
+
});
|
|
166
|
+
if (this.page_token === 1) {
|
|
167
|
+
this.orderList = list;
|
|
168
|
+
} else {
|
|
169
|
+
this.orderList = this.orderList.concat(list);
|
|
170
|
+
}
|
|
171
|
+
this.hasNext = res.next_page_token !== "";
|
|
172
|
+
this.next_page_token = res.next_page_token;
|
|
173
|
+
})
|
|
174
|
+
.catch((err) => {
|
|
175
|
+
console.error("获取订单列表失败:", err);
|
|
176
|
+
});
|
|
177
|
+
},
|
|
178
|
+
handleBtnEvent({ item, btn }) {
|
|
179
|
+
// 跳转到订单详情页
|
|
180
|
+
this.$xdUniHelper.navigateTo({
|
|
181
|
+
url: `${this.order_detail_path}?order_id=${item.order_id}`,
|
|
182
|
+
});
|
|
183
|
+
},
|
|
184
|
+
/**
|
|
185
|
+
* 处理子组件派发的 'expire' 事件
|
|
186
|
+
* 订单倒计时结束后,从列表中删除该订单
|
|
187
|
+
*/
|
|
188
|
+
handleOrderExpire(order) {
|
|
189
|
+
if (this.isPreview) return;
|
|
190
|
+
const orderIndex = this.orderList.findIndex(
|
|
191
|
+
(item) => item.order_id === order.order_id
|
|
192
|
+
);
|
|
193
|
+
if (orderIndex === -1) return;
|
|
194
|
+
//如果用户状态为已报价,倒计时结束后则刷新列表,并return
|
|
195
|
+
if (order.user_quotation_status === "quoted") {
|
|
196
|
+
this.handleRefresh();
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
// 从列表中删除该订单
|
|
200
|
+
this.orderList.splice(orderIndex, 1);
|
|
201
|
+
},
|
|
202
|
+
/**
|
|
203
|
+
* 刷新列表
|
|
204
|
+
*/
|
|
205
|
+
handleRefresh() {
|
|
206
|
+
// 重置分页
|
|
207
|
+
this.page_token = 1;
|
|
208
|
+
this.hasNext = true;
|
|
209
|
+
this.next_page_token = "";
|
|
210
|
+
// 重新获取列表
|
|
211
|
+
this.getList();
|
|
212
|
+
this.showNew = false;
|
|
213
|
+
},
|
|
214
|
+
/**
|
|
215
|
+
* 获取新订单通知
|
|
216
|
+
*/
|
|
217
|
+
handleGetNew() {
|
|
218
|
+
jfbRootExec("getNewOrderNotify", {
|
|
219
|
+
vm: this,
|
|
220
|
+
data: {
|
|
221
|
+
order_type: this.order_type,
|
|
222
|
+
max_id: this.max_id,
|
|
223
|
+
},
|
|
224
|
+
}).then((res) => {
|
|
225
|
+
if (res.is_exist_new_order && res.is_exist_win_order) {
|
|
226
|
+
if (this.isOpenNew === "Y") {
|
|
227
|
+
this.voiceAlert({
|
|
228
|
+
type: "new",
|
|
229
|
+
filePath: "https://img.jufubao.cn/takeorder/new_order.mp3",
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
if (this.isOpenWin === "Y") {
|
|
233
|
+
setTimeout(() => {
|
|
234
|
+
this.voiceAlert({
|
|
235
|
+
type: "win",
|
|
236
|
+
filePath: "https://img.jufubao.cn/takeorder/wait_order.mp3",
|
|
237
|
+
});
|
|
238
|
+
}, 1000);
|
|
239
|
+
}
|
|
240
|
+
} else if (res.is_exist_new_order) {
|
|
241
|
+
if (this.isOpenNew === "Y") {
|
|
242
|
+
this.voiceAlert({
|
|
243
|
+
type: "new",
|
|
244
|
+
filePath: "https://img.jufubao.cn/takeorder/new_order.mp3",
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
} else if (res.is_exist_win_order) {
|
|
248
|
+
if (this.isOpenWin === "Y") {
|
|
249
|
+
this.voiceAlert({
|
|
250
|
+
type: "win",
|
|
251
|
+
filePath: "https://img.jufubao.cn/takeorder/wait_order.mp3",
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
if (res.new_order_max_id > this.max_id) {
|
|
256
|
+
this.max_id = res.new_order_max_id;
|
|
257
|
+
}
|
|
258
|
+
this.showNew = res.is_exist_new_order;
|
|
259
|
+
});
|
|
260
|
+
},
|
|
261
|
+
/**
|
|
262
|
+
* 启动轮询定时器
|
|
263
|
+
*/
|
|
264
|
+
startPolling() {
|
|
265
|
+
// 如果已经存在定时器,先清除
|
|
266
|
+
if (this.pollTimer) {
|
|
267
|
+
clearInterval(this.pollTimer);
|
|
268
|
+
}
|
|
269
|
+
// 每5秒调用一次接口
|
|
270
|
+
this.pollTimer = setInterval(() => {
|
|
271
|
+
this.handleGetNew();
|
|
272
|
+
}, 5000);
|
|
273
|
+
},
|
|
274
|
+
/**
|
|
275
|
+
* 停止轮询定时器
|
|
276
|
+
*/
|
|
277
|
+
stopPolling() {
|
|
278
|
+
if (this.pollTimer) {
|
|
279
|
+
clearInterval(this.pollTimer);
|
|
280
|
+
this.pollTimer = null;
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
onJfbScroll(options) {},
|
|
284
|
+
onJfbReachBottom(options) {
|
|
285
|
+
if (this.hasNext) {
|
|
286
|
+
this.page_token = this.next_page_token;
|
|
287
|
+
this.getList();
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
onJfbShow(options) {
|
|
291
|
+
this.onJfbLoad(options);
|
|
292
|
+
},
|
|
293
|
+
onJfbHide(options) {
|
|
294
|
+
// 页面隐藏时暂停轮询
|
|
295
|
+
this.stopPolling();
|
|
296
|
+
console.log("event.onJfbHide", options);
|
|
297
|
+
},
|
|
298
|
+
onJfbBack(options) {
|
|
299
|
+
console.log("event.onJfbBack", options);
|
|
300
|
+
},
|
|
301
|
+
onJfbUpdate(...data) {
|
|
302
|
+
console.log("event.onJfbUpdate", data);
|
|
303
|
+
},
|
|
304
|
+
onJfbCustomEvent(options) {
|
|
305
|
+
console.log("event.onJfbReachBottom", options);
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
};
|
|
309
|
+
</script>
|
|
310
|
+
|
|
311
|
+
<style scoped lang="less">
|
|
312
|
+
@import "./JfbTakeorderOrderListLess.less";
|
|
313
|
+
|
|
314
|
+
.jfb-takeorder-order-list {
|
|
315
|
+
&__body {
|
|
316
|
+
// 订单列表容器样式
|
|
317
|
+
padding: 0;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
</style>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @desc 获取绝对路径完整地址
|
|
3
|
+
* @param @path
|
|
4
|
+
**/
|
|
5
|
+
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
+
@basePath: 'business/';
|
|
7
|
+
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
+
|
|
9
|
+
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
+
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
+
background-image: url(@url);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//start
|
|
15
|
+
.jfb-takeorder-order-list {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
|
|
18
|
+
&__body{
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
z-index: 2
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.editx,&.editx:hover {
|
|
25
|
+
position: relative;
|
|
26
|
+
min-height: unit(100, rpx);
|
|
27
|
+
z-index: 3;
|
|
28
|
+
&::after {
|
|
29
|
+
border: 2rpx dashed blue;
|
|
30
|
+
content: " ";
|
|
31
|
+
position: absolute;
|
|
32
|
+
top:0;
|
|
33
|
+
left:0;
|
|
34
|
+
bottom:0;
|
|
35
|
+
right:0;
|
|
36
|
+
z-index: var(--preview-z-index);
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
&__edit {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: unit(0, rpx);
|
|
47
|
+
top: unit(0, rpx);
|
|
48
|
+
height: unit(50, rpx);
|
|
49
|
+
z-index: 100;
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
background: rgba(0, 0, 0, .4);
|
|
54
|
+
border-radius: 0 0 0 20rpx;
|
|
55
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
+
color: #fff;
|
|
57
|
+
font-size: unit(22, rpx);
|
|
58
|
+
padding: 0 6rpx 0 6px;
|
|
59
|
+
|
|
60
|
+
&-icon{
|
|
61
|
+
padding: 0 unit(20, rpx);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.editx {
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//end
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**notPreview**/
|
|
74
|
+
.jfb-takeorder-order-list {
|
|
75
|
+
//&:before {
|
|
76
|
+
//content: " ";
|
|
77
|
+
//display: table;
|
|
78
|
+
//}
|
|
79
|
+
}
|
|
80
|
+
/**endNotPreview**/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
//@AttrImport
|
|
5
|
+
import Attr from "./Attr";
|
|
6
|
+
//@EndAttrImport
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
//#ifdef H5
|
|
13
|
+
|
|
14
|
+
//@AttrData
|
|
15
|
+
Attr:{}, //对外开发编辑属性
|
|
16
|
+
//@EndAttrData
|
|
17
|
+
|
|
18
|
+
// #endif
|
|
19
|
+
cssRoot: 'jfb-takeorder-order-list'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
|
|
5
|
+
getOrderList: { "list": [{ "order_id": "h867336984252252161", "order_status": "quoting", "shop_name": "星巴克(平谷国泰店)", "brand_name": "星巴克", "province_name": "平谷区", "market_amount": 525, "suggest_min_quotation": 116, "suggest_max_quotation": 171, "rest_quotation_time": 12, "rest_receive_time": 0, "rest_report_time": 0, "quotation_person_count": 0, "user_quotation": 0, "user_quotation_status": "wait_quote", "product_list": [{ "product_name": "星巴克经典咖啡", "product_sku_name": "大杯\/特别热\/经典糖\/标准\/全脂牛奶", "product_thumb": "https:\/\/www.shuomingshu.cn\/wp-content\/uploads\/images\/2023\/01\/07\/dc0bdf6bfedb4038911ec6550fd31d62_5t1vcuagbok.jpg", "product_num": 5, "market_price": 382, "suggest_min_quotation": 23, "suggest_max_quotation": 34, "user_quotation": 0 }], "button_list": [] }], "next_page_token": "", "request_id": "c1dfb0423e9c83df" },
|
|
6
|
+
|
|
7
|
+
updateOrderFilmPaiqiDate:{},
|
|
8
|
+
|
|
9
|
+
removeOrderFilmAddress:{},
|
|
10
|
+
|
|
11
|
+
addOrderFilmcart:{},
|
|
12
|
+
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import {
|
|
3
|
+
dataVal,
|
|
4
|
+
statusDataVal,
|
|
5
|
+
statusShow
|
|
6
|
+
} from "@/utils/AttrTools";
|
|
7
|
+
export default (data, gValue, gColor, oldData = {}) => {
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
label: '订单详情',
|
|
11
|
+
ele: 'xd-select-pages-path',
|
|
12
|
+
labelInline: true,
|
|
13
|
+
valueKey: 'order_detail_path',
|
|
14
|
+
placeholder: '请选择订单详情页面',
|
|
15
|
+
className: 'input100',
|
|
16
|
+
value: dataVal({ data, key: 'order_detail_path', dValue: null, gValue }),
|
|
17
|
+
groupKey: 'advanced',
|
|
18
|
+
inline: false,
|
|
19
|
+
setting: {
|
|
20
|
+
mode: 'new',
|
|
21
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
].filter(i => i)
|
|
25
|
+
}
|
|
26
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import { customVal, dataVal } from "@/utils/AttrTools";
|
|
4
|
+
|
|
5
|
+
export default (data, gValue, gColor, oldData = {}) => {
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
label: '订单状态:',
|
|
9
|
+
ele: 'xd-select-list',
|
|
10
|
+
valueKey: 'orderTab',
|
|
11
|
+
value: data['orderTab'] || '',
|
|
12
|
+
groupKey: 'content',
|
|
13
|
+
multiple: false,
|
|
14
|
+
className: 'input80',
|
|
15
|
+
list: [
|
|
16
|
+
{ label: '报价中', value: 'quoting' },
|
|
17
|
+
{ label: '待上报', value: 'wait_report' },
|
|
18
|
+
],
|
|
19
|
+
inline: false,
|
|
20
|
+
},
|
|
21
|
+
].filter(i => i)
|
|
22
|
+
}
|
|
23
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Voice
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: 'getUserConfig',
|
|
10
|
+
title: '获取用户配置',
|
|
11
|
+
path: '/takeorder/v1/user-config',
|
|
12
|
+
isRule: false,
|
|
13
|
+
params: {},
|
|
14
|
+
isConsole: true,
|
|
15
|
+
disabled: true,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
mapFnName: 'openNewNotify',
|
|
19
|
+
title: '是否开启新订单通知音频',
|
|
20
|
+
path: '/takeorder/v1/user-config/is-open-new-order-notify-audio',
|
|
21
|
+
isRule: false,
|
|
22
|
+
data: {
|
|
23
|
+
is_open: ['是否开启', 'String', '必填'],
|
|
24
|
+
},
|
|
25
|
+
isConsole: true,
|
|
26
|
+
disabled: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
mapFnName: 'openWinNotify',
|
|
30
|
+
title: '是否开启中标通知音频',
|
|
31
|
+
path: '/takeorder/v1/user-config/is-open-win-order-audio',
|
|
32
|
+
isRule: false,
|
|
33
|
+
data: {
|
|
34
|
+
is_open: ['是否开启', 'String', '必填'],
|
|
35
|
+
},
|
|
36
|
+
isConsole: true,
|
|
37
|
+
disabled: true,
|
|
38
|
+
},
|
|
39
|
+
];
|