Преглед изворни кода

feat:仓库新增添加标签字段

zhangxin пре 1 месец
родитељ
комит
ecb46b722c
2 измењених фајлова са 36 додато и 0 уклоњено
  1. 1 0
      mock/mockData.js
  2. 35 0
      pages/wareHouse/components/add.vue

+ 1 - 0
mock/mockData.js

@@ -723,6 +723,7 @@ const mockDataList = {
723
       identifyingPerson:'',//鉴定人员
723
       identifyingPerson:'',//鉴定人员
724
       identifyingPersonId:'',//鉴定人员id
724
       identifyingPersonId:'',//鉴定人员id
725
       recycleType:'1',//回收类型 1-线上 2-同行 3-门店 4-其它
725
       recycleType:'1',//回收类型 1-线上 2-同行 3-门店 4-其它
726
+      label:'1',//标签 1-完美 2-假货 3-重复 4-亏损 5-其他
726
       recyclePerson:'',//回收人员
727
       recyclePerson:'',//回收人员
727
       recyclePersonId:'',//回收人员id
728
       recyclePersonId:'',//回收人员id
728
       recycleBottomDesc:'',//回收留底图描述
729
       recycleBottomDesc:'',//回收留底图描述

+ 35 - 0
pages/wareHouse/components/add.vue

@@ -145,6 +145,11 @@
145
                             :isClear="recycleTypeIsClear" @tabChange="handleTabChangeRecycleType">
145
                             :isClear="recycleTypeIsClear" @tabChange="handleTabChangeRecycleType">
146
                         </TabSelect>
146
                         </TabSelect>
147
                     </u-form-item>
147
                     </u-form-item>
148
+                    <u-form-item label="标签" borderBottom>
149
+                        <TabSelect :tabList="labelList" :colNum="4" mode="single" 
150
+                            :isClear="labelIsClear" @tabChange="handleTabChangeLabel">
151
+                        </TabSelect>
152
+                    </u-form-item>
148
                     <u-form-item label="回收人员" class="u-form-item-row" borderBottom @click="recyclePersonClick">
153
                     <u-form-item label="回收人员" class="u-form-item-row" borderBottom @click="recyclePersonClick">
149
                         <!-- <u--input v-model="formData.recyclePerson" disabledColor="#fff" disabled clearable
154
                         <!-- <u--input v-model="formData.recyclePerson" disabledColor="#fff" disabled clearable
150
                             border="none"></u--input> -->
155
                             border="none"></u--input> -->
@@ -408,6 +413,28 @@ export default {
408
                     value: '4',
413
                     value: '4',
409
                 },
414
                 },
410
             ],
415
             ],
416
+            labelList:[
417
+                {
418
+                    name:'完美',
419
+                    value:'1',
420
+                },
421
+                {
422
+                    name:'普通',
423
+                    value:'2',
424
+                },
425
+                {
426
+                    name:'瑕疵',
427
+                    value:'3',
428
+                },
429
+                {
430
+                    name:'假货',
431
+                    value:'4',
432
+                },
433
+                {
434
+                    name:'亏损',
435
+                    value:'5',
436
+                },
437
+            ],
411
             paymentTabList: [
438
             paymentTabList: [
412
                 {
439
                 {
413
                     name: '微信',
440
                     name: '微信',
@@ -438,8 +465,10 @@ export default {
438
             productConditionIsClear: false,//商品成色是否清空
465
             productConditionIsClear: false,//商品成色是否清空
439
             productAttributeIsClear: false,//商品属性是否清空
466
             productAttributeIsClear: false,//商品属性是否清空
440
             recycleTypeIsClear: false,//回收类型是否清空
467
             recycleTypeIsClear: false,//回收类型是否清空
468
+            labelIsClear: false,//商品标签是否清空
441
             payTypeIsClear: false,//付款方式是否清空
469
             payTypeIsClear: false,//付款方式是否清空
442
             payTypeEcho: ''//付款方式识别回显
470
             payTypeEcho: ''//付款方式识别回显
471
+
443
         }
472
         }
444
     },
473
     },
445
     methods: {
474
     methods: {
@@ -507,6 +536,7 @@ export default {
507
                 identifyingPerson: '',
536
                 identifyingPerson: '',
508
                 identifyingPersonId: '',
537
                 identifyingPersonId: '',
509
                 recycleType: '',
538
                 recycleType: '',
539
+                label: '',
510
                 recyclePerson: '',
540
                 recyclePerson: '',
511
                 recyclePersonId: '',
541
                 recyclePersonId: '',
512
                 recycleBottomDesc: '',
542
                 recycleBottomDesc: '',
@@ -528,6 +558,7 @@ export default {
528
             this.productAttributeIsClear = true;
558
             this.productAttributeIsClear = true;
529
             this.recycleTypeIsClear = true;
559
             this.recycleTypeIsClear = true;
530
             this.payTypeIsClear = true;
560
             this.payTypeIsClear = true;
561
+            this.labelIsClear = true;
531
             this.continuousWarehousing = [];
562
             this.continuousWarehousing = [];
532
             this.$refs.addForm.resetFields();
563
             this.$refs.addForm.resetFields();
533
         },
564
         },
@@ -583,6 +614,10 @@ export default {
583
         handleTabChangeRecycleType(e) {
614
         handleTabChangeRecycleType(e) {
584
             this.formData.recycleType = e;
615
             this.formData.recycleType = e;
585
         },
616
         },
617
+        // 商品标签
618
+        handleTabChangeLabel(e) {
619
+            this.formData.label = e;
620
+        },
586
         // 付款方式
621
         // 付款方式
587
         handlePayTypeTabChange(e) {
622
         handlePayTypeTabChange(e) {
588
             this.formData.payType = e;
623
             this.formData.payType = e;