|
@@ -0,0 +1,683 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="mine">
|
|
3
|
+ <div class="box">
|
|
4
|
+ <div class="headline">
|
|
5
|
+ <h2>创建订单</h2>
|
|
6
|
+ <div class="saveOrder" @click="save">保存</div>
|
|
7
|
+ </div>
|
|
8
|
+ <!-- 选择客户信息 -->
|
|
9
|
+ <div class="titleBox">
|
|
10
|
+ <div class="title">
|
|
11
|
+ <span class="notice">*</span>
|
|
12
|
+ 选择客户
|
|
13
|
+ <el-select
|
|
14
|
+ clearable
|
|
15
|
+ :filter-method="filterName"
|
|
16
|
+ filterable
|
|
17
|
+ size="mini"
|
|
18
|
+ v-model="user_id"
|
|
19
|
+ placeholder="请选择"
|
|
20
|
+ >
|
|
21
|
+ <el-option
|
|
22
|
+ v-for="item in userList"
|
|
23
|
+ :key="item.id"
|
|
24
|
+ :label="item.nickname"
|
|
25
|
+ :value="item.id"
|
|
26
|
+ ></el-option>
|
|
27
|
+ </el-select>
|
|
28
|
+ </div>
|
|
29
|
+ <div class="title">
|
|
30
|
+ 客户标签
|
|
31
|
+ <el-select clearable size="mini" v-model="user_tag" placeholder="请选择">
|
|
32
|
+ <el-option v-for="item in labelList" :key="item" :label="item" :value="item"></el-option>
|
|
33
|
+ </el-select>
|
|
34
|
+ </div>
|
|
35
|
+ <div class="clientSource">客户来源</div>
|
|
36
|
+ <div class="title">
|
|
37
|
+ 线上
|
|
38
|
+ <el-select clearable size="mini" v-model="source_online" placeholder="请选择">
|
|
39
|
+ <el-option v-for="item in onlineList" :key="item" :label="item" :value="item"></el-option>
|
|
40
|
+ </el-select>
|
|
41
|
+ </div>
|
|
42
|
+ <div class="title">
|
|
43
|
+ 线下
|
|
44
|
+ <el-select clearable size="mini" v-model="source_offline" placeholder="请选择">
|
|
45
|
+ <el-option v-for="item in offlineList" :key="item" :label="item" :value="item"></el-option>
|
|
46
|
+ </el-select>
|
|
47
|
+ </div>
|
|
48
|
+ </div>
|
|
49
|
+ <el-divider></el-divider>
|
|
50
|
+ <!-- 服务项目/销售类别 -->
|
|
51
|
+ <div class="center">
|
|
52
|
+ <el-radio-group size="medium" v-model="order_type">
|
|
53
|
+ <el-radio-button label="1">服务项目</el-radio-button>
|
|
54
|
+ <el-radio-button label="2">销售类别</el-radio-button>
|
|
55
|
+ </el-radio-group>
|
|
56
|
+ <!-- 服务项目 -->
|
|
57
|
+ <div class="centerBox1" v-if="order_type=='1'">
|
|
58
|
+ <div class="centerBox1-box">
|
|
59
|
+ <div class="centerBox1-productBox">
|
|
60
|
+ <div class="productBox" v-for="(item,index) in selectProject" :key="index">
|
|
61
|
+ <div class="title">
|
|
62
|
+ 选择项目
|
|
63
|
+ <el-select
|
|
64
|
+ clearable
|
|
65
|
+ :filter-method="filterProject"
|
|
66
|
+ filterable
|
|
67
|
+ size="mini"
|
|
68
|
+ v-model="item.project"
|
|
69
|
+ placeholder="请选择"
|
|
70
|
+ >
|
|
71
|
+ <el-option
|
|
72
|
+ v-for="item in projectList"
|
|
73
|
+ :key="item.id"
|
|
74
|
+ :label="item.project_name"
|
|
75
|
+ :value="{value:item.id,name:item.project_name}"
|
|
76
|
+ ></el-option>
|
|
77
|
+ </el-select>
|
|
78
|
+ </div>
|
|
79
|
+ <div class="title">
|
|
80
|
+ 项目分类
|
|
81
|
+ <el-select clearable size="mini" v-model="item.category_name" placeholder="请选择">
|
|
82
|
+ <el-option
|
|
83
|
+ v-for="item in project_category_list"
|
|
84
|
+ :key="item"
|
|
85
|
+ :label="item"
|
|
86
|
+ :value="item"
|
|
87
|
+ ></el-option>
|
|
88
|
+ </el-select>
|
|
89
|
+ </div>
|
|
90
|
+ <i v-if="index!=0" @click="deletes('project',index)" class="el-icon-circle-close"></i>
|
|
91
|
+ </div>
|
|
92
|
+ </div>
|
|
93
|
+ <div class="add" @click="add('project')">新增</div>
|
|
94
|
+ </div>
|
|
95
|
+ <div class="isAlone">
|
|
96
|
+ 单买 (预买未体验)
|
|
97
|
+ <el-radio v-model="is_single" label="1">是</el-radio>
|
|
98
|
+ <el-radio v-model="is_single" label="0">否</el-radio>
|
|
99
|
+ </div>
|
|
100
|
+ <div class="titleBox">
|
|
101
|
+ <div class="title">
|
|
102
|
+ 消耗金额 (卡扣)
|
|
103
|
+ <el-input class="input" v-model="card_expend_price" size="mini" placeholder="请输入内容"></el-input>
|
|
104
|
+ </div>
|
|
105
|
+ <div class="title">
|
|
106
|
+ 单买体验额
|
|
107
|
+ <el-input class="input" v-model="single_price" size="mini" placeholder="请输入内容"></el-input>
|
|
108
|
+ </div>
|
|
109
|
+ <div class="title">
|
|
110
|
+ 减免原由
|
|
111
|
+ <el-input class="input" v-model="reduce_reason" size="mini" placeholder="请输入内容"></el-input>
|
|
112
|
+ </div>
|
|
113
|
+ </div>
|
|
114
|
+ </div>
|
|
115
|
+ <!-- 销售类别 -->
|
|
116
|
+ <div v-else class="centerBox2">
|
|
117
|
+ <div class="cardBox">
|
|
118
|
+ <div class="cardBox1">
|
|
119
|
+ <div class="titleBox" v-for="(item,index) in selectCard" :key="index">
|
|
120
|
+ <div class="title">
|
|
121
|
+ 选择卡项
|
|
122
|
+ <el-select
|
|
123
|
+ clearable
|
|
124
|
+ filterable
|
|
125
|
+ :filter-method="filterCard"
|
|
126
|
+ size="mini"
|
|
127
|
+ v-model="item.card"
|
|
128
|
+ placeholder="请选择"
|
|
129
|
+ @change="(val) => seleted(val, index,'card')"
|
|
130
|
+ >
|
|
131
|
+ <el-option
|
|
132
|
+ v-for="item in cardList"
|
|
133
|
+ :key="item.id"
|
|
134
|
+ :label="item.card_name"
|
|
135
|
+ :value="{value:item.id,label:item.category_name,name:item.card_name}"
|
|
136
|
+ ></el-option>
|
|
137
|
+ </el-select>
|
|
138
|
+ </div>
|
|
139
|
+ <div class="word">{{item.type}}</div>
|
|
140
|
+ <i v-if="index!=0" @click="deletes('card',index)" class="el-icon-circle-close"></i>
|
|
141
|
+ </div>
|
|
142
|
+ </div>
|
|
143
|
+ <div class="add" @click="add('card')">新增</div>
|
|
144
|
+ </div>
|
|
145
|
+ <div class="cardBox">
|
|
146
|
+ <div class="cardBox1">
|
|
147
|
+ <div class="titleBox" v-for="(item,index) in selectGoods" :key="index">
|
|
148
|
+ <div class="title">
|
|
149
|
+ 选择产品
|
|
150
|
+ <el-select
|
|
151
|
+ clearable
|
|
152
|
+ filterable
|
|
153
|
+ :filter-method="filterGoods"
|
|
154
|
+ size="mini"
|
|
155
|
+ v-model="item.goods"
|
|
156
|
+ placeholder="请选择"
|
|
157
|
+ @change="(val) => seleted(val, index,'goods')"
|
|
158
|
+ >
|
|
159
|
+ <el-option
|
|
160
|
+ v-for="item in goodsList"
|
|
161
|
+ :key="item.id"
|
|
162
|
+ :label="item.goods_name"
|
|
163
|
+ :value="{value:item.id,label:item.category_name,name:item.goods_name}"
|
|
164
|
+ ></el-option>
|
|
165
|
+ </el-select>
|
|
166
|
+ </div>
|
|
167
|
+ <div class="word">{{item.type}}</div>
|
|
168
|
+ <div class="title">
|
|
169
|
+ 数量
|
|
170
|
+ <el-input class="input" v-model="item.num" size="mini" placeholder="请输入内容"></el-input>
|
|
171
|
+ </div>
|
|
172
|
+ <i v-if="index!=0" @click="deletes('goods',index)" class="el-icon-circle-close"></i>
|
|
173
|
+ </div>
|
|
174
|
+ </div>
|
|
175
|
+ <div class="add" @click="add('goods')">新增</div>
|
|
176
|
+ </div>
|
|
177
|
+ <div class="titleBox">
|
|
178
|
+ <div class="title">
|
|
179
|
+ 储值金额
|
|
180
|
+ <el-input class="moneyInput" v-model="recharge_price" size="mini" placeholder="请输入内容"></el-input>
|
|
181
|
+ </div>
|
|
182
|
+ </div>
|
|
183
|
+ </div>
|
|
184
|
+ </div>
|
|
185
|
+ <el-divider></el-divider>
|
|
186
|
+ <!-- 底部销售信息 -->
|
|
187
|
+ <div class="bottom">
|
|
188
|
+ <div class="titleBox">
|
|
189
|
+ <div class="title">
|
|
190
|
+ 销售总额
|
|
191
|
+ <el-input class="input" v-model="total_price" size="mini" placeholder="请输入内容"></el-input>
|
|
192
|
+ </div>
|
|
193
|
+ <div class="title">
|
|
194
|
+ 实收金额
|
|
195
|
+ <el-input class="input" v-model="payer_price" size="mini" placeholder="请输入内容"></el-input>
|
|
196
|
+ </div>
|
|
197
|
+ <div class="title">
|
|
198
|
+ 收款方式
|
|
199
|
+ <el-select clearable size="mini" v-model="pay_way" placeholder="请选择">
|
|
200
|
+ <el-option v-for="item in payList" :key="item" :label="item" :value="item"></el-option>
|
|
201
|
+ </el-select>
|
|
202
|
+ </div>
|
|
203
|
+ </div>
|
|
204
|
+ <div class="titleBox">
|
|
205
|
+ <div class="title">
|
|
206
|
+ 成交配赠
|
|
207
|
+ <el-input class="input" v-model="grant" size="mini" placeholder="请输入内容"></el-input>
|
|
208
|
+ </div>
|
|
209
|
+ <div class="title">
|
|
210
|
+ 新客转化
|
|
211
|
+ <el-input class="input" v-model="conver" size="mini" placeholder="请输入内容"></el-input>
|
|
212
|
+ </div>
|
|
213
|
+ <div class="title">
|
|
214
|
+ 选择美容师
|
|
215
|
+ <el-select multiple size="mini" v-model="suser_list" placeholder="请选择">
|
|
216
|
+ <el-option
|
|
217
|
+ v-for="item in suserList"
|
|
218
|
+ :key="item.id"
|
|
219
|
+ :label="item.realname"
|
|
220
|
+ :value="{value:item.id,name:item.realname}"
|
|
221
|
+ ></el-option>
|
|
222
|
+ </el-select>
|
|
223
|
+ </div>
|
|
224
|
+ <div class="titleBox">
|
|
225
|
+ <div class="title">
|
|
226
|
+ 备注
|
|
227
|
+ <el-input class="input" v-model="remark" size="mini" placeholder="请输入内容"></el-input>
|
|
228
|
+ </div>
|
|
229
|
+ </div>
|
|
230
|
+ </div>
|
|
231
|
+ </div>
|
|
232
|
+ </div>
|
|
233
|
+ </div>
|
|
234
|
+</template>
|
|
235
|
+
|
|
236
|
+<script>
|
|
237
|
+import api from "../../../server/home";
|
|
238
|
+export default {
|
|
239
|
+ data() {
|
|
240
|
+ return {
|
|
241
|
+ userList: [], //选择客户列表
|
|
242
|
+ user_id: "", //客户名称
|
|
243
|
+ labelList: [
|
|
244
|
+ "新客",
|
|
245
|
+ "老客",
|
|
246
|
+ "普通会员",
|
|
247
|
+ "卡项会员",
|
|
248
|
+ "产品会员",
|
|
249
|
+ "充值会员"
|
|
250
|
+ ], //客户标签列表
|
|
251
|
+ user_tag: "", //客户标签
|
|
252
|
+ onlineList: ["联联", "美团", "大众", "抖音", "小程序", "企微"], //线上列表
|
|
253
|
+ offlineList: ["老带新/转介绍", "内拓卡", "拼团拓", "外拓卡", "自然进店"], //线下列表
|
|
254
|
+ source_online: "", //来源-线上
|
|
255
|
+ source_offline: "", //来源-线下
|
|
256
|
+ order_type: "1", //订单类型,1服务项目,2销售类型
|
|
257
|
+ selectProject: [
|
|
258
|
+ {
|
|
259
|
+ project: "",
|
|
260
|
+ category_name: ""
|
|
261
|
+ }
|
|
262
|
+ ], //选择项目列表
|
|
263
|
+ selectCard: [
|
|
264
|
+ {
|
|
265
|
+ card: "",
|
|
266
|
+ type: ""
|
|
267
|
+ }
|
|
268
|
+ ], //选择次卡列表
|
|
269
|
+ selectGoods: [
|
|
270
|
+ {
|
|
271
|
+ goods: "",
|
|
272
|
+ type: "",
|
|
273
|
+ num: ""
|
|
274
|
+ }
|
|
275
|
+ ], //选择美妆产品列表
|
|
276
|
+ projectList: [], //项目列表
|
|
277
|
+ categoryList: [], //项目分类列表
|
|
278
|
+ project_list: [], //提交的项目ID列表
|
|
279
|
+ project_category_list: ["医美类", "生美类"], //提交的项目分类列表
|
|
280
|
+ is_single: "0", //是否单买,1是,0否
|
|
281
|
+ card_expend_price: "", //消耗金额(卡扣)
|
|
282
|
+ single_price: "", //单买体验额
|
|
283
|
+ reduce_reason: "", //减免原因
|
|
284
|
+ cardList: [], //次卡列表
|
|
285
|
+ goodsList: [], //商品列表
|
|
286
|
+ recharge_price: "", //充值金额
|
|
287
|
+ total_price: "", //销售总额
|
|
288
|
+ payer_price: "", //实收总额
|
|
289
|
+ payList: [
|
|
290
|
+ "小程序",
|
|
291
|
+ "erp刷卡",
|
|
292
|
+ "扫码微信",
|
|
293
|
+ "扫码支付宝",
|
|
294
|
+ "手动卡扣",
|
|
295
|
+ "手动扣储值",
|
|
296
|
+ "美团",
|
|
297
|
+ "大众",
|
|
298
|
+ "抖音",
|
|
299
|
+ "联联"
|
|
300
|
+ ], //支付方式列表
|
|
301
|
+ pay_way: "", //支付方式
|
|
302
|
+ grant: "", //成效配额
|
|
303
|
+ conver: "", //新客转化
|
|
304
|
+ remark: "", //备注
|
|
305
|
+ suserList: [], //美容师列表
|
|
306
|
+ suser_list: [] //选择的美容师ID列表
|
|
307
|
+ };
|
|
308
|
+ },
|
|
309
|
+ methods: {
|
|
310
|
+ // 选择次卡和美妆后的事件
|
|
311
|
+ seleted(e, index, type) {
|
|
312
|
+ if (type == "card") {
|
|
313
|
+ this.$set(this.selectCard[index], "type", e.label);
|
|
314
|
+ } else {
|
|
315
|
+ this.$set(this.selectGoods[index], "type", e.label);
|
|
316
|
+ }
|
|
317
|
+ },
|
|
318
|
+ // 新增项目选项
|
|
319
|
+ add(type) {
|
|
320
|
+ switch (type) {
|
|
321
|
+ case "project":
|
|
322
|
+ this.selectProject.push({ project: "", category_name: "" });
|
|
323
|
+ break;
|
|
324
|
+ case "card":
|
|
325
|
+ this.selectCard.push({ card: "" });
|
|
326
|
+ break;
|
|
327
|
+ case "goods":
|
|
328
|
+ this.selectGoods.push({
|
|
329
|
+ goods: "",
|
|
330
|
+ num: ""
|
|
331
|
+ });
|
|
332
|
+ break;
|
|
333
|
+ }
|
|
334
|
+ },
|
|
335
|
+ // 删除项目选项
|
|
336
|
+ deletes(type, index) {
|
|
337
|
+ switch (type) {
|
|
338
|
+ case "project":
|
|
339
|
+ this.selectProject.splice(index, 1);
|
|
340
|
+ break;
|
|
341
|
+ case "card":
|
|
342
|
+ this.selectCard.splice(index, 1);
|
|
343
|
+ break;
|
|
344
|
+ case "goods":
|
|
345
|
+ this.selectGoods.splice(index, 1);
|
|
346
|
+ break;
|
|
347
|
+ }
|
|
348
|
+ },
|
|
349
|
+ // 获取客户列表
|
|
350
|
+ getUserList(e) {
|
|
351
|
+ api
|
|
352
|
+ .tradeUserList({
|
|
353
|
+ keyword: e || "",
|
|
354
|
+ page: 1,
|
|
355
|
+ limit: 20
|
|
356
|
+ })
|
|
357
|
+ .then(res => {
|
|
358
|
+ if (res.code == 200) {
|
|
359
|
+ this.userList = res.data.list;
|
|
360
|
+ }
|
|
361
|
+ });
|
|
362
|
+ },
|
|
363
|
+ // 获取项目列表
|
|
364
|
+ getProjectList(e) {
|
|
365
|
+ api
|
|
366
|
+ .tradeProjectList({
|
|
367
|
+ keyword: e || "",
|
|
368
|
+ page: 1,
|
|
369
|
+ limit: 20
|
|
370
|
+ })
|
|
371
|
+ .then(res => {
|
|
372
|
+ if (res.code == 200) {
|
|
373
|
+ this.projectList = res.data.list;
|
|
374
|
+ }
|
|
375
|
+ });
|
|
376
|
+ },
|
|
377
|
+ // 获取卡项列表
|
|
378
|
+ getCardList(e) {
|
|
379
|
+ api
|
|
380
|
+ .tradeCardList({
|
|
381
|
+ keyword: e || "",
|
|
382
|
+ page: 1,
|
|
383
|
+ limit: 20
|
|
384
|
+ })
|
|
385
|
+ .then(res => {
|
|
386
|
+ if (res.code == 200) {
|
|
387
|
+ this.cardList = res.data.list;
|
|
388
|
+ }
|
|
389
|
+ });
|
|
390
|
+ },
|
|
391
|
+ // 获取项目列表
|
|
392
|
+ getGoodsList(e) {
|
|
393
|
+ api
|
|
394
|
+ .tradeGoodsList({
|
|
395
|
+ keyword: e || "",
|
|
396
|
+ page: 1,
|
|
397
|
+ limit: 20
|
|
398
|
+ })
|
|
399
|
+ .then(res => {
|
|
400
|
+ if (res.code == 200) {
|
|
401
|
+ this.goodsList = res.data.list;
|
|
402
|
+ }
|
|
403
|
+ });
|
|
404
|
+ },
|
|
405
|
+ // 获取美容师列表
|
|
406
|
+ getSuserList() {
|
|
407
|
+ api
|
|
408
|
+ .tradeSuserList({
|
|
409
|
+ page: 1,
|
|
410
|
+ limit: 30
|
|
411
|
+ })
|
|
412
|
+ .then(res => {
|
|
413
|
+ if (res.code == 200) {
|
|
414
|
+ this.suserList = res.data.list;
|
|
415
|
+ }
|
|
416
|
+ });
|
|
417
|
+ },
|
|
418
|
+ // 输入搜索客户列表
|
|
419
|
+ filterName(e) {
|
|
420
|
+ this.getUserList(e);
|
|
421
|
+ },
|
|
422
|
+ // 输入搜索项目列表
|
|
423
|
+ filterProject(e) {
|
|
424
|
+ this.getProjectList(e);
|
|
425
|
+ },
|
|
426
|
+ // 输入搜索次卡列表
|
|
427
|
+ filterCard(e) {
|
|
428
|
+ this.getCardList(e);
|
|
429
|
+ },
|
|
430
|
+ // 输入搜索美妆产品列表
|
|
431
|
+ filterGoods(e) {
|
|
432
|
+ this.getGoodsList(e);
|
|
433
|
+ },
|
|
434
|
+ // 保存表单
|
|
435
|
+ save() {
|
|
436
|
+ // 验证
|
|
437
|
+ if (!this.user_id) {
|
|
438
|
+ this.$message.error("请选择客户");
|
|
439
|
+ return;
|
|
440
|
+ }
|
|
441
|
+ // console.log(this.suser_list);
|
|
442
|
+ // 产品列表
|
|
443
|
+ let project_list = [];
|
|
444
|
+ this.selectProject.forEach(item => {
|
|
445
|
+ let list = {};
|
|
446
|
+ list.id = item.project ? item.project.value : "";
|
|
447
|
+ list.name = item.project ? item.project.name : "";
|
|
448
|
+ list.category_name = item.category_name;
|
|
449
|
+ project_list.push(list);
|
|
450
|
+ });
|
|
451
|
+ // 次卡ID列表
|
|
452
|
+ let card_list = [];
|
|
453
|
+ this.selectCard.forEach(item => {
|
|
454
|
+ let list = {};
|
|
455
|
+ list.id = item.card ? item.card.value : "";
|
|
456
|
+ list.name = item.card ? item.card.name : "";
|
|
457
|
+ list.category_name = item.type;
|
|
458
|
+ card_list.push(list);
|
|
459
|
+ });
|
|
460
|
+ // 商品列表
|
|
461
|
+ let goods_list = [];
|
|
462
|
+ this.selectGoods.forEach(item => {
|
|
463
|
+ let list = {};
|
|
464
|
+ list.id = item.goods ? item.goods.value : "";
|
|
465
|
+ list.name = item.goods ? item.goods.name : "";
|
|
466
|
+ list.num = item.num;
|
|
467
|
+ list.category_name = item.type;
|
|
468
|
+ goods_list.push(list);
|
|
469
|
+ });
|
|
470
|
+ // 美容师列表
|
|
471
|
+ let suser_list = [];
|
|
472
|
+ this.suser_list.forEach(item => {
|
|
473
|
+ let list = {};
|
|
474
|
+ list.id = item.value;
|
|
475
|
+ list.name = item.name;
|
|
476
|
+ suser_list.push(list);
|
|
477
|
+ });
|
|
478
|
+ let params = {
|
|
479
|
+ user_id: this.user_id,
|
|
480
|
+ user_tag: this.user_tag,
|
|
481
|
+ source_online: this.source_online,
|
|
482
|
+ source_offline: this.source_offline,
|
|
483
|
+ order_type: this.order_type,
|
|
484
|
+ project_list,
|
|
485
|
+ is_single: this.is_single,
|
|
486
|
+ card_expend_price: this.card_expend_price,
|
|
487
|
+ single_price: this.single_price,
|
|
488
|
+ reduce_reason: this.reduce_reason,
|
|
489
|
+ card_list,
|
|
490
|
+ goods_list,
|
|
491
|
+ recharge_price: this.recharge_price,
|
|
492
|
+ total_price: this.total_price,
|
|
493
|
+ payer_price: this.payer_price,
|
|
494
|
+ pay_way: this.pay_way,
|
|
495
|
+ grant: this.grant,
|
|
496
|
+ conver: this.conver,
|
|
497
|
+ remark: this.remark,
|
|
498
|
+ suser_list
|
|
499
|
+ };
|
|
500
|
+ console.log(params);
|
|
501
|
+ api.tradeListAdd(params).then(res => {
|
|
502
|
+ if (res.code == 200) {
|
|
503
|
+ this.$message.success("添加成功");
|
|
504
|
+ setTimeout(() => {
|
|
505
|
+ this.$router.push("/revenueManage");
|
|
506
|
+ }, 1000);
|
|
507
|
+ }
|
|
508
|
+ });
|
|
509
|
+ }
|
|
510
|
+ },
|
|
511
|
+ created() {
|
|
512
|
+ // 获取客户列表
|
|
513
|
+ this.getUserList();
|
|
514
|
+ // 获取项目列表
|
|
515
|
+ this.getProjectList();
|
|
516
|
+ // 获取次卡列表
|
|
517
|
+ this.getCardList();
|
|
518
|
+ // 获取美妆产品列表
|
|
519
|
+ this.getGoodsList();
|
|
520
|
+ // 获取美容师列表
|
|
521
|
+ this.getSuserList();
|
|
522
|
+ }
|
|
523
|
+};
|
|
524
|
+</script>
|
|
525
|
+
|
|
526
|
+<style scoped lang='less'>
|
|
527
|
+.box {
|
|
528
|
+ width: 857px;
|
|
529
|
+ background-color: #fff;
|
|
530
|
+ border-radius: 10px;
|
|
531
|
+ padding: 14px;
|
|
532
|
+ box-sizing: border-box;
|
|
533
|
+ padding-bottom: 40px;
|
|
534
|
+ .notice {
|
|
535
|
+ color: red;
|
|
536
|
+ }
|
|
537
|
+ .headline {
|
|
538
|
+ display: flex;
|
|
539
|
+ justify-content: space-between;
|
|
540
|
+ align-items: center;
|
|
541
|
+ margin-bottom: 20px;
|
|
542
|
+ .saveOrder {
|
|
543
|
+ width: 70px;
|
|
544
|
+ height: 35px;
|
|
545
|
+ background: #fa7d22;
|
|
546
|
+ border-radius: 4px;
|
|
547
|
+ line-height: 35px;
|
|
548
|
+ text-align: center;
|
|
549
|
+ color: #fff;
|
|
550
|
+ }
|
|
551
|
+ }
|
|
552
|
+ // 选择客户消息
|
|
553
|
+ .titleBox {
|
|
554
|
+ display: flex;
|
|
555
|
+ align-items: center;
|
|
556
|
+ margin-top: 20px;
|
|
557
|
+ flex-wrap: wrap;
|
|
558
|
+ .title {
|
|
559
|
+ display: flex;
|
|
560
|
+ font-weight: 700;
|
|
561
|
+ align-items: center;
|
|
562
|
+ font-size: 12px;
|
|
563
|
+ /deep/ .el-select {
|
|
564
|
+ margin: 0 10px;
|
|
565
|
+ width: 150px;
|
|
566
|
+ }
|
|
567
|
+ .input {
|
|
568
|
+ width: 160px;
|
|
569
|
+ margin: 0 20px;
|
|
570
|
+ }
|
|
571
|
+ /deep/.el-input__inner:focus {
|
|
572
|
+ border: #fa7d22 1px solid;
|
|
573
|
+ }
|
|
574
|
+ }
|
|
575
|
+ .word {
|
|
576
|
+ margin-right: 10px;
|
|
577
|
+ font-size: 12px;
|
|
578
|
+ }
|
|
579
|
+ .clientSource {
|
|
580
|
+ font-weight: 700;
|
|
581
|
+ margin: 0 20px 0 30px;
|
|
582
|
+ }
|
|
583
|
+ .add {
|
|
584
|
+ width: 40px;
|
|
585
|
+ height: 20px;
|
|
586
|
+ background: #fa7d22;
|
|
587
|
+ border-radius: 4px;
|
|
588
|
+ line-height: 20px;
|
|
589
|
+ text-align: center;
|
|
590
|
+ color: #fff;
|
|
591
|
+ font-weight: 400;
|
|
592
|
+ font-size: 12px;
|
|
593
|
+ margin-right: 20px;
|
|
594
|
+ font-size: 12px;
|
|
595
|
+ display: inline-block;
|
|
596
|
+ }
|
|
597
|
+ }
|
|
598
|
+ /deep/ .el-divider.el-divider--horizontal {
|
|
599
|
+ margin: 34px 0;
|
|
600
|
+ }
|
|
601
|
+ // 中间功能样式
|
|
602
|
+ .center {
|
|
603
|
+ /deep/ .el-radio-button__orig-radio:checked + .el-radio-button__inner {
|
|
604
|
+ background-color: #fa7d22 !important;
|
|
605
|
+ border-color: #fa7d22 !important;
|
|
606
|
+ box-shadow: -1px 0 0 0 #fa7d22 !important;
|
|
607
|
+ }
|
|
608
|
+ .clientSource {
|
|
609
|
+ font-weight: 700;
|
|
610
|
+ margin: 0 20px 0 30px;
|
|
611
|
+ }
|
|
612
|
+ .centerBox1-box {
|
|
613
|
+ display: flex;
|
|
614
|
+ .centerBox1-productBox {
|
|
615
|
+ .productBox {
|
|
616
|
+ display: flex;
|
|
617
|
+ flex-wrap: wrap;
|
|
618
|
+ margin-top: 20px;
|
|
619
|
+ align-items: center;
|
|
620
|
+ .title {
|
|
621
|
+ font-weight: 700;
|
|
622
|
+ display: flex;
|
|
623
|
+ align-items: center;
|
|
624
|
+ font-size: 12px;
|
|
625
|
+ /deep/ .el-select {
|
|
626
|
+ margin: 0 10px;
|
|
627
|
+ width: 150px;
|
|
628
|
+ }
|
|
629
|
+ }
|
|
630
|
+ .el-icon-circle-close {
|
|
631
|
+ font-size: 20px;
|
|
632
|
+ // line-height: 32px;
|
|
633
|
+ }
|
|
634
|
+ }
|
|
635
|
+ }
|
|
636
|
+ .add {
|
|
637
|
+ width: 40px;
|
|
638
|
+ height: 20px;
|
|
639
|
+ background: #fa7d22;
|
|
640
|
+ border-radius: 4px;
|
|
641
|
+ line-height: 20px;
|
|
642
|
+ text-align: center;
|
|
643
|
+ color: #fff;
|
|
644
|
+ font-weight: 400;
|
|
645
|
+ font-size: 12px;
|
|
646
|
+ margin-right: 20px;
|
|
647
|
+ font-size: 12px;
|
|
648
|
+ margin-top: 22px;
|
|
649
|
+ }
|
|
650
|
+ }
|
|
651
|
+ .cardBox {
|
|
652
|
+ display: flex;
|
|
653
|
+ .add {
|
|
654
|
+ width: 40px;
|
|
655
|
+ height: 20px;
|
|
656
|
+ background: #fa7d22;
|
|
657
|
+ border-radius: 4px;
|
|
658
|
+ line-height: 20px;
|
|
659
|
+ text-align: center;
|
|
660
|
+ color: #fff;
|
|
661
|
+ font-weight: 400;
|
|
662
|
+ font-size: 12px;
|
|
663
|
+ margin-right: 20px;
|
|
664
|
+ font-size: 12px;
|
|
665
|
+ margin-top: 22px;
|
|
666
|
+ margin-left: 6px;
|
|
667
|
+ }
|
|
668
|
+ }
|
|
669
|
+ .isAlone {
|
|
670
|
+ font-weight: 700;
|
|
671
|
+ margin-top: 20px;
|
|
672
|
+ font-size: 12px;
|
|
673
|
+ /deep/ .el-radio:first-child {
|
|
674
|
+ margin-left: 20px;
|
|
675
|
+ }
|
|
676
|
+ }
|
|
677
|
+ /deep/ .moneyInput {
|
|
678
|
+ margin: 0 10px;
|
|
679
|
+ width: 160px;
|
|
680
|
+ }
|
|
681
|
+ }
|
|
682
|
+}
|
|
683
|
+</style>
|