jufubao-admin-library 1.0.0-beta1

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.
Files changed (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +90 -0
  3. package/library/gulpfile.js/const.js +51 -0
  4. package/library/gulpfile.js/index.js +237 -0
  5. package/library/gulpfile.js/util.js +114 -0
  6. package/library/viewModules/config.js +75 -0
  7. package/library/viewModules/viewStat/router/supplierStat.js +33 -0
  8. package/library/viewModules/viewStat/schemas/supplier.stat.js +70 -0
  9. package/library/viewModules/viewStat/schemas.js +18 -0
  10. package/library/viewModules/viewStat/viewsStat/index/components/stat-all.vue +233 -0
  11. package/library/viewModules/viewStat/viewsStat/index/components/stat-product.vue +129 -0
  12. package/library/viewModules/viewStat/viewsStat/index/components/stat-supplier.vue +124 -0
  13. package/library/viewModules/viewStat/viewsStat/index/components/table-category.vue +309 -0
  14. package/library/viewModules/viewStat/viewsStat/index/components/table-product.vue +316 -0
  15. package/library/viewModules/viewStat/viewsStat/index/components/table-supplier.vue +276 -0
  16. package/library/viewModules/viewStat/viewsStat/index/index.vue +117 -0
  17. package/library/viewModules/viewTask/router/tasks.js +34 -0
  18. package/library/viewModules/viewTask/schemas/tasks.js +52 -0
  19. package/library/viewModules/viewTask/viewTask/list.vue +195 -0
  20. package/library/viewModules/viewsEnterpriseBuy/router/enterprise_buy.js +91 -0
  21. package/library/viewModules/viewsEnterpriseBuy/schemas/enterprise_buy.js +420 -0
  22. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/OrderInfoButton.vue +550 -0
  23. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/cardList.vue +119 -0
  24. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/expressCopy.vue +259 -0
  25. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/operateHistory.vue +164 -0
  26. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/send_list.vue +395 -0
  27. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/storeList.vue +100 -0
  28. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/compontents/workHistory.vue +163 -0
  29. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/detail.vue +503 -0
  30. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/list.vue +635 -0
  31. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/order_detail.vue +860 -0
  32. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/set_create.vue +219 -0
  33. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/set_list.vue +237 -0
  34. package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/table-card.vue +180 -0
  35. package/library/viewModules/viewsFinance/router/balance.js +75 -0
  36. package/library/viewModules/viewsFinance/router/finance.js +30 -0
  37. package/library/viewModules/viewsFinance/schemas/trade.record.js +153 -0
  38. package/library/viewModules/viewsFinance/schemas/wallet.js +116 -0
  39. package/library/viewModules/viewsFinance/viewsFinance/balance/components/listChannel.vue +220 -0
  40. package/library/viewModules/viewsFinance/viewsFinance/balance/components/listOpenapi.vue +260 -0
  41. package/library/viewModules/viewsFinance/viewsFinance/balance/components/listPartner.vue +217 -0
  42. package/library/viewModules/viewsFinance/viewsFinance/balance/components/listSupplier.vue +229 -0
  43. package/library/viewModules/viewsFinance/viewsFinance/balance/detail_channel.vue +401 -0
  44. package/library/viewModules/viewsFinance/viewsFinance/balance/detail_openapi.vue +364 -0
  45. package/library/viewModules/viewsFinance/viewsFinance/balance/detail_partner.vue +633 -0
  46. package/library/viewModules/viewsFinance/viewsFinance/balance/detail_supplier.vue +417 -0
  47. package/library/viewModules/viewsFinance/viewsFinance/balance/list.vue +75 -0
  48. package/library/viewModules/viewsFinance/viewsFinance/index.vue +191 -0
  49. package/library/viewModules/viewsLimit/router/buyLimit/buyLimit.js +31 -0
  50. package/library/viewModules/viewsLimit/schemas/buyLimit.js +22 -0
  51. package/library/viewModules/viewsLimit/viewsLimit/index.vue +211 -0
  52. package/package.json +114 -0
@@ -0,0 +1,550 @@
1
+ <template>
2
+ <div>
3
+ <div class="app-container__list-table-option">
4
+ <template v-for="event in events">
5
+ <el-button type="primary" size="small" @click="handleClick(event.action)">{{event.text}}</el-button>
6
+ </template>
7
+ </div>
8
+ <xd-dialog
9
+ title="清单结算金额"
10
+ v-if="dialogVisibleSetAmount"
11
+ :show.sync="dialogVisibleSetAmount"
12
+ width="50%"
13
+ @onConfirm="handleSetAmount"
14
+ @onClose="dialogVisibleSetAmount = false"
15
+ @onCancel="dialogVisibleSetAmount = false"
16
+ >
17
+ <xd-base-dynamic-field
18
+ ref="amountForm"
19
+ v-if="listFormSetAmount.length > 0"
20
+ v-model="listValueSetAmount"
21
+ :key="renderFormSetAmountKey"
22
+ :list="listFormSetAmount"
23
+ label-width="140px"
24
+ ></xd-base-dynamic-field>
25
+ </xd-dialog>
26
+ <xd-dialog
27
+ title="上传发票"
28
+ v-if="dialogVisibleUploadInvoice"
29
+ :show.sync="dialogVisibleUploadInvoice"
30
+ width="50%"
31
+ @onConfirm="handleConfirmUploadInvoice"
32
+ @onClose="dialogVisibleUploadInvoice = false"
33
+ @onCancel="dialogVisibleUploadInvoice = false"
34
+ >
35
+ <xd-base-dynamic-field
36
+ ref="invoiceForm"
37
+ v-if="listFormUploadInvoice.length > 0"
38
+ v-model="listValueUploadInvoice"
39
+ :key="renderFormUploadInvoiceKey"
40
+ :list="listFormUploadInvoice"
41
+ label-width="140px"
42
+ @success="handleSuccess"
43
+ @onApiSuccessUrl="handleApiSuccessUrl"
44
+ @onGetParamsAndHeader="handleGetParamsAndHeader"
45
+ >
46
+ <template slot="tableform">
47
+ <el-table
48
+ :data="tableData"
49
+ border
50
+ >
51
+ <el-table-column
52
+ prop="supplier_name"
53
+ label="供货商"
54
+ width="120">
55
+ </el-table-column>
56
+ <el-table-column
57
+ prop="invoice_url"
58
+ label="发票地址">
59
+ </el-table-column>
60
+ <el-table-column
61
+ fixed="right"
62
+ label="操作"
63
+ width="100">
64
+ <template slot-scope="scope">
65
+ <xd-upload
66
+ style-type="one"
67
+ v-model="tableUrl"
68
+ action="aliyun"
69
+ :size=1
70
+ :type="uploadType"
71
+ upload-type="aliyun"
72
+ @success="handleSuccess"
73
+ @onApiSuccessUrl="handleApiSuccessUrl"
74
+ @onGetParamsAndHeader="(file,resolve)=>{handleGetParamsAndHeader1(file, resolve,scope.$index)}"
75
+ >
76
+ </xd-upload>
77
+ </template>
78
+ </el-table-column>
79
+ </el-table>
80
+ </template>
81
+ </xd-base-dynamic-field>
82
+ </xd-dialog>
83
+ </div>
84
+ </template>
85
+
86
+ <script>
87
+
88
+ import XdDialog from "@/components/XdDialog"
89
+ import XdTable from "@/components/XdTable"
90
+ import { mapActions } from 'vuex'
91
+ import XdBaseDynamicField from "@/components/XdBaseDynamicField"
92
+ import XdUpload from "@/components/XdUpload"
93
+ import { getOptions } from "@/utils/options"
94
+ import { Loading } from 'element-ui'
95
+
96
+ export default {
97
+ name: 'orderButton',
98
+ components: {
99
+ XdDialog,
100
+ XdTable,
101
+ XdBaseDynamicField,
102
+ XdUpload
103
+ },
104
+ props: {
105
+ purchase_main_order_id: "",
106
+ events: {
107
+ type: Array,
108
+ default: () => {
109
+ }
110
+ },
111
+ },
112
+ data () {
113
+ return {
114
+ isBorder: false,
115
+ headersExperss: [{ "type": "selection" },
116
+ { "type": "normal", "prop": "info", "align": "center", "width": 120, "label": "商品信息" },
117
+ {
118
+ type: 'priceNumber',
119
+ prop: "priceNumber",
120
+ align: 'center',
121
+ width: 150,
122
+ label: '价格&数量',
123
+ message: ['price', 'buy_num']
124
+ },
125
+ { "type": "normal", "prop": "allow_send_num", "align": "center", "minWidth": 120, "label": "可发数量" },
126
+ { "type": "input", "prop": "send_num", "align": "center", "minWidth": 120, "label": "发货数量" },
127
+ ],
128
+
129
+ //设置结算金额
130
+ dialogVisibleSetAmount:false,
131
+ renderFormSetAmountKey:'renderFormSetAmountKey',
132
+ listFormSetAmount:[],
133
+ listValueSetAmount:{},
134
+ //上传发票
135
+ listFormUploadInvoice:[],
136
+ renderFormUploadInvoiceKey:'renderFormUploadInvoiceKey',
137
+ dialogVisibleUploadInvoice:false,
138
+ listValueUploadInvoice:{},
139
+ uploadType:["jpg", "png", "jpeg"],
140
+ tableUrl:'',
141
+ }
142
+ },
143
+ watch:{
144
+ 'listValueUploadInvoice.invoice_type':{
145
+ handler(n,o){
146
+ console.log(n,o,'llll')
147
+ if(n&&n!==o){
148
+ this.initFormUploadInvoice(this.listValueUploadInvoice)
149
+ }
150
+ }
151
+ }
152
+ },
153
+ created () {
154
+
155
+ },
156
+ methods: {
157
+ ...mapActions('enterprise_buy',
158
+ [
159
+ 'purchaseMainOrderReceive',//接单
160
+ 'purchaseMainOrderCancel',//取消
161
+ //确定价格
162
+ 'userSettlementAmount',//设置结算金额
163
+ 'purchaseMainOrderConfirmAmount',//确定结算金额
164
+ 'purchaseMainOrderConfirmPaid',//确定买家支付
165
+ //上传发票
166
+ 'purchaseMainOrderConfirmPartnerPaid',//确定加盟商付款
167
+ 'purchaseMainOrderSuppliers',//供货商列表
168
+ 'purchaseMainOrderPartnerUpload',//上传加盟商发票
169
+ 'purchaseMainOrderSupplierUpload',//上传供应商发票
170
+ 'purchaseMainOrderCreateOrder',//生成订单
171
+ ]
172
+ ),
173
+ ...mapActions('oss', [
174
+ 'getOssSign'
175
+ ]),
176
+
177
+ // 接单
178
+ handleGetOrder () {
179
+ this.$confirm('是否确定接单?', '接单', {
180
+ confirmButtonText: '确定',
181
+ cancelButtonText: '取消'
182
+ }).then(() => {
183
+ let data = {
184
+ purchase_main_order_id: this.purchase_main_order_id,
185
+ }
186
+ console.log(data, 'data')
187
+ this.purchaseMainOrderReceive(data).then(() => {
188
+ this.$message({
189
+ message: '接单成功',
190
+ type: 'success'
191
+ })
192
+ this.$emit('refresh', true)
193
+ }).catch(err => {
194
+ console.log(err, 'aapapapa')
195
+ })
196
+ })
197
+ },
198
+ //取消集采单
199
+ handleCancel () {
200
+ this.$confirm('是否确定取消集采单?', '取消集采单', {
201
+ confirmButtonText: '确定',
202
+ cancelButtonText: '取消'
203
+ }).then(() => {
204
+ let data = {
205
+ purchase_main_order_id: this.purchase_main_order_id,
206
+ }
207
+ console.log(data, 'data')
208
+ this.purchaseMainOrderCancel(data).then(() => {
209
+ this.$message({
210
+ message: '取消集采单成功',
211
+ type: 'success'
212
+ })
213
+ this.$emit('refresh', true)
214
+ }).catch(err => {
215
+ console.log(err, 'aapapapa')
216
+ })
217
+ })
218
+ },
219
+ //超管-确定价格
220
+ handleSettlementAmount(){
221
+ console.log('222www')
222
+ this.$emit('confirmPrice',true)
223
+ },
224
+ //设置主单结算金额
225
+ handleUserSettlementAmount(){
226
+ this.initFormSetAmount()
227
+ },
228
+ //设置结算金额form初始化
229
+ initFormSetAmount () {
230
+ this.listFormSetAmount = [
231
+ {
232
+ label: '清单结算金额:', //label
233
+ ele: 'el-input', //package 名称
234
+ type: 'text',
235
+ valueKey: 'amount', //form[valueKey]
236
+ value: '', //v-model
237
+ placeholder: '输入清单结算金额',
238
+ classNmae: 'input40',
239
+ notice:'结算金额为最终支付金额',
240
+ rules: [
241
+ {
242
+ validator: (rule, value, callback) => {
243
+ const reg = /^\d+.?\d{0,2}$/
244
+ if (!value) {
245
+ callback(new Error('请输入清单结算金额'))
246
+ } else if (!Number(value)) {
247
+ callback(new Error('请输入数字值'))
248
+ } else {
249
+ if (reg.test(value)) {
250
+ callback()
251
+ } else {
252
+ callback(new Error('小数点后最多只能输入两位'))
253
+ }
254
+ }
255
+ },
256
+ trigger: 'blur'
257
+ }
258
+ ]
259
+ },
260
+ ]
261
+
262
+ this.renderFormSetAmountKey = Date.now()
263
+ this.dialogVisibleSetAmount = true
264
+ },
265
+ //设置结算金额确定
266
+ handleSetAmount(){
267
+ this.$refs.amountForm.submit()
268
+ .then(res => {
269
+ let data = {
270
+ purchase_main_order_id: this.purchase_main_order_id,
271
+ amount:this.$xdHelper.multiplyFloatNumber(this.listValueSetAmount.amount,100),
272
+ }
273
+ this.userSettlementAmount(data).then(res=>{
274
+ this.$message({
275
+ message: '设置结算金额成功',
276
+ type: 'success'
277
+ })
278
+ this.dialogVisibleSetAmount = false
279
+ this.$emit('refresh', true)
280
+ }).catch(err=>{
281
+ console.log(err,'err')
282
+ })
283
+ })
284
+ .catch(err=>{
285
+ console.log(err,'err')
286
+ })
287
+
288
+ },
289
+ //确定结算金额
290
+ handleConfirmUserSettlementAmount(){
291
+ this.$confirm('是否确定结算金额?', '确定结算金额', {
292
+ confirmButtonText: '确定',
293
+ cancelButtonText: '取消'
294
+ }).then(() => {
295
+ let data = {
296
+ purchase_main_order_id: this.purchase_main_order_id,
297
+ }
298
+ console.log(data, 'data')
299
+ this.purchaseMainOrderConfirmAmount(data).then(() => {
300
+ this.$message({
301
+ message: '确定结算金额成功',
302
+ type: 'success'
303
+ })
304
+ this.$emit('refresh', true)
305
+ }).catch(err => {
306
+ console.log(err, 'aapapapa')
307
+ })
308
+ })
309
+ },
310
+ //确认收款(买家支付)
311
+ handleConfirmConsumerPaid(){
312
+ this.$confirm('是否确定确认收款?', '确认收款', {
313
+ confirmButtonText: '确定',
314
+ cancelButtonText: '取消'
315
+ }).then(() => {
316
+ let data = {
317
+ purchase_main_order_id: this.purchase_main_order_id,
318
+ }
319
+ console.log(data, 'data')
320
+ this.purchaseMainOrderConfirmPaid(data).then(() => {
321
+ this.$message({
322
+ message: '确认收款成功',
323
+ type: 'success'
324
+ })
325
+ this.$emit('refresh', true)
326
+ }).catch(err => {
327
+ console.log(err, 'aapapapa')
328
+ })
329
+ })
330
+ },
331
+ //上传发票
332
+ handleUploadInvoice(){
333
+ this.purchaseMainOrderSuppliers({purchase_main_order_id: this.purchase_main_order_id,})
334
+ .then(res=>{
335
+ console.log(res,'sss')
336
+ this.tableData = res.data.list
337
+ // this.tableData = [
338
+ // {
339
+ // purchase_sub_order_id: "s590608994439380993",
340
+ // supplier_id: 500006,
341
+ // supplier_name: "礼包--供应商1"
342
+ // },
343
+ // {
344
+ // purchase_sub_order_id: "s590608994439380994",
345
+ // supplier_id: 500005,
346
+ // supplier_name: "礼包--供应商2"
347
+ // },
348
+ // ]
349
+ this.initFormUploadInvoice({})
350
+ }).catch(err=>{
351
+ console.log(err,'err')
352
+ })
353
+ },
354
+ //上传发票form初始化
355
+ initFormUploadInvoice (params) {
356
+ console.log(params,123123123)
357
+ this.listFormUploadInvoice = [
358
+ {
359
+ label: " ",
360
+ ele: "xd-radio",
361
+ value: params.invoice_type||'partner',
362
+ valueKey: "invoice_type",
363
+ list: [{label:'加盟商',value:'partner'},{label:'供货商',value:'supplier'},],
364
+ rules: [
365
+ { required: true, message: "请选择" }
366
+ ]
367
+ },
368
+ params.invoice_type!=='supplier'&&{
369
+ label: ' ', //label
370
+ ele: 'xd-upload', //package 名称
371
+ valueKey: 'invoice_url', //form[valueKey]
372
+ value: null, //v-model
373
+ defaultValue: params.invoice_url || null,
374
+ slot: true, //按钮是否使用slot
375
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:800*800像素',
376
+ type: ['jpg', 'png', 'jpeg'],
377
+ styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
378
+ uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
379
+ size: 5, //5M
380
+ action: 'aliyun',
381
+ rules: [
382
+ { required: true, message: '请上传发票', trigger: ['blur', 'change'] },
383
+ ]
384
+ },
385
+ params.invoice_type==='supplier'&&{
386
+ lebel:'',
387
+ ele:'slot',
388
+ slot:'tableform'
389
+ }
390
+ ].filter(i=>i)
391
+ this.dialogVisibleUploadInvoice = true
392
+ this.renderFormUploadInvoiceKey = Date.now()
393
+
394
+ },
395
+ handleGetParamsAndHeader1(file,resolve,index){
396
+ console.log(file,index,'aaaaaa')
397
+ this.getOssSign({name: file.name})
398
+ .then((res) => {
399
+ console.log(res,'ssss')
400
+ this.$set(this.tableData[index],'invoice_url',res.data.cdn_url)
401
+ console.log(this.tableData,'ttttt')
402
+ let OSSAccessKeyId = res.data['id']
403
+ let cdnUrl = res.data['cdn_url']
404
+ delete res.data['id']
405
+ delete res.data['cdn_url']
406
+ resolve({
407
+ params: {
408
+ ...res.data,
409
+ OSSAccessKeyId: OSSAccessKeyId,
410
+ name: file.name,
411
+ cdnUrl: cdnUrl,
412
+ success_action_status: 200
413
+ }
414
+ })
415
+ })
416
+ .catch(this.$xdLog.catch)
417
+ },
418
+ //上传发票确定
419
+ handleConfirmUploadInvoice(){
420
+ // 'purchaseMainOrderPartnerUpload',//上传加盟商发票
421
+ // 'purchaseMainOrderSupplierUpload',//上传供应商发票
422
+ // listValueUploadInvoice
423
+ this.$refs.invoiceForm.submit().then(res => {
424
+ if(this.listValueUploadInvoice.invoice_type==='partner'){
425
+ let data ={
426
+ purchase_main_order_id:this.purchase_main_order_id,
427
+ invoice_url:this.listValueUploadInvoice.invoice_url.url
428
+ }
429
+ this.purchaseMainOrderPartnerUpload(data).then(res=>{
430
+ this.$message({
431
+ message: '上传发票成功',
432
+ type: 'success'
433
+ })
434
+ this.dialogVisibleUploadInvoice = false
435
+ this.$emit('refresh', true)
436
+ }).catch(err=>{
437
+ console.log(err,'err')
438
+ })
439
+ }else{
440
+ let data ={
441
+ purchase_main_order_id:this.purchase_main_order_id,
442
+ items:this.tableData
443
+ }
444
+ this.purchaseMainOrderSupplierUpload(data).then(res=>{
445
+ this.$message({
446
+ message: '上传发票成功',
447
+ type: 'success'
448
+ })
449
+ this.dialogVisibleUploadInvoice = false
450
+ this.$emit('refresh', true)
451
+ }).catch(err=>{
452
+ console.log(err,'err')
453
+ })
454
+ }
455
+ }).catch(err=>{
456
+
457
+ })
458
+
459
+ },
460
+ //确定加盟商付款
461
+ handleConfirmPartnerPaid(){
462
+ this.$confirm('是否确认加盟商付款?', '确认加盟商付款', {
463
+ confirmButtonText: '确定',
464
+ cancelButtonText: '取消'
465
+ }).then(() => {
466
+ let data = {
467
+ purchase_main_order_id: this.purchase_main_order_id,
468
+ }
469
+ this.purchaseMainOrderConfirmPartnerPaid(data).then(() => {
470
+ this.$message({
471
+ message: '确认加盟商付款成功',
472
+ type: 'success'
473
+ })
474
+ this.$emit('refresh', true)
475
+ }).catch(err => {
476
+ console.log(err, 'aapapapa')
477
+ })
478
+ })
479
+ },
480
+ //生成订单
481
+ handleCreateOrder(){
482
+ this.$confirm('是否确定生成订单?', '确定生成订单', {
483
+ confirmButtonText: '确定',
484
+ cancelButtonText: '取消'
485
+ }).then(() => {
486
+ let data = {
487
+ purchase_main_order_id: this.purchase_main_order_id,
488
+ }
489
+ this.purchaseMainOrderCreateOrder(data).then(() => {
490
+ this.$message({
491
+ message: '生成订单成功',
492
+ type: 'success'
493
+ })
494
+ this.$emit('refresh', true)
495
+ }).catch(err => {
496
+ console.log(err, 'aapapapa')
497
+ })
498
+ })
499
+ },
500
+ /**按钮操作**/
501
+ handleClick (value) {
502
+ if (value === 'receive') {
503
+ //接单
504
+ this.handleGetOrder()
505
+ } else if (value === 'cancel') {
506
+ //取消
507
+ this.handleCancel()
508
+ } else if (value === 'confirmSupplierSettlementAmount') {
509
+ //确定价格
510
+ this.handleSettlementAmount()
511
+ } else if (value === 'setUserSettlementAmount') {
512
+ //设置主单结算金额
513
+ this.handleUserSettlementAmount()
514
+ } else if (value === 'confirmUserSettlementAmount') {
515
+ //确定结算金额
516
+ this.handleConfirmUserSettlementAmount()
517
+ } else if (value === 'confirmConsumerPaid') {
518
+ //确认收款(买家支付)
519
+ this.handleConfirmConsumerPaid()
520
+ } else if (value === 'uploadInvoice') {
521
+ //上传发票
522
+ this.handleUploadInvoice()
523
+ }else if(value==='confirmPartnerPaid'){
524
+ //确定加盟商付款
525
+ this.handleConfirmPartnerPaid()
526
+ }else if(value==='createOrder'){
527
+ //生成订单
528
+ this.handleCreateOrder()
529
+ }
530
+ },
531
+
532
+ }
533
+ }
534
+ </script>
535
+
536
+ <style lang="scss" scoped>
537
+ .change_product {
538
+ ::v-deep .el-radio__input {
539
+ top: 38% !important;
540
+ }
541
+
542
+ ::v-deep .el-radio__label {
543
+ display: none;
544
+ }
545
+
546
+ img {
547
+ margin: 10px 5px;
548
+ }
549
+ }
550
+ </style>
@@ -0,0 +1,119 @@
1
+ <template>
2
+ <div class="app-container__list-card" style="margin-bottom: 10px;">
3
+ <el-card>
4
+ <div slot="header" class="clearfix">
5
+ <span>卡消费信息</span>
6
+ </div>
7
+ <div class="app-container__list-table">
8
+ <xd-table :headers="headers" :list="tables" is-border>
9
+ <template slot="point" slot-scope="scope">
10
+ <div>{{$xdHelper.divisionFloatNumber(scope.row.point, 100)}}</div>
11
+ </template>
12
+ </xd-table>
13
+ </div>
14
+ </el-card>
15
+ </div>
16
+ </template>
17
+
18
+ <script>
19
+ import {
20
+ mapActions,
21
+ mapState,
22
+ } from 'vuex'
23
+ import { Loading } from 'element-ui'
24
+ import XdTable from "@/components/XdTable"
25
+
26
+ export default {
27
+ name: "card_list",
28
+ components: {
29
+ XdTable,
30
+ },
31
+
32
+ data () {
33
+ return {
34
+ tables: [],
35
+ tableRefresh: 'tableRefresh',
36
+ total: 0,
37
+ headers: [{
38
+ "type": "normal",
39
+ "prop": "card_number",
40
+ "align": "left",
41
+ "width": 200,
42
+ "label": "卡号"
43
+ }, {
44
+ "type": "normal",
45
+ "prop": "point",
46
+ "align": "center",
47
+ "minWidth": 200,
48
+ "label": "消费点(次)"
49
+ }, {
50
+ "type": "normal",
51
+ "prop": "type_name",
52
+ "align": "center",
53
+ "minWidth": 200,
54
+ "label": "卡类型"
55
+ }, {
56
+ "type": "normal",
57
+ "prop": "status_name",
58
+ "align": "center",
59
+ "minWidth": 200,
60
+ "label": "卡消费是否成功"
61
+ }],
62
+ }
63
+ },
64
+ props: {
65
+ main_order_id: "",
66
+ sub_order_id: '',
67
+ data: {
68
+ type: Array,
69
+ default () {
70
+ return []
71
+ }
72
+ }
73
+ },
74
+ created () {
75
+ this.title = this.$route.meta.title
76
+ this.getList()
77
+ },
78
+
79
+ methods: {
80
+
81
+ ...mapActions('corders',
82
+ [
83
+ 'workOrderList',
84
+ ]
85
+ ),
86
+ getList () {
87
+ this.tables = this.$xdHelper.cloneDeep(this.data)
88
+ this.tables.map(item => {
89
+ if (item.status === 'Y') {
90
+ item.status_name = '是'
91
+ } else {
92
+ item.status_name = '否'
93
+ }
94
+ })
95
+ },
96
+ /**
97
+ /**跳转工单列表**/
98
+ toWorkList (item) {
99
+ return `/corders/work_detail/${item}`
100
+ },
101
+
102
+ }
103
+ }
104
+ </script>
105
+
106
+ <style scoped lang="scss">
107
+ .app-container__title {
108
+ font-size: 16px;
109
+ line-height: 24px;
110
+ padding: 0 0 20px;
111
+ font-weight: bold;
112
+ }
113
+
114
+ @media screen and (max-width: 768px) {
115
+ .app-container__title {
116
+ padding: 0 0 10px;
117
+ }
118
+ }
119
+ </style>