sunlupeng 2 년 전
부모
커밋
1acf3da768

+ 9 - 21
src/views/exchangeManage/approvalList.vue

@@ -14,8 +14,8 @@
                             :value="item.dictValue">
                         </el-option>
                     </el-select>
-            <el-select v-model="listQuery.deliveryType" clearable placeholder="兑换方式" class="filter-item" style="width: 200px">
-                        <el-option :key="item.type" v-for="item in deliveryTypeList" :label="item.name" :value="item.type">
+                    <el-select v-model="listQuery.deliveryType" clearable placeholder="兑换方式" class="filter-item" style="width: 200px">
+                        <el-option :key="item.dictValue" v-for="item in deliveryTypeList" :label="item.dictLabel" :value="item.dictValue">
                         </el-option>
             </el-select>
             <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
@@ -222,25 +222,7 @@ export default {
     data() {
         return {
             productAttributeList: [],
-            deliveryTypeList: [
-            {
-                    type: 0,
-                    name: '办公室领取'
-                },
-                {
-                    type: 1,
-                    name: '快递'
-                },
-                {
-                    type: 2,
-                    name: '卷码兑换'
-                },
-                {
-                    type: 3,
-                    name: '线下组织'
-                },
-               
-            ],
+            deliveryTypeList: [ ],
             orderTypeList: [
                 {
                     orderType: 0,
@@ -290,9 +272,15 @@ export default {
     },
     created() {
         this.getProductAttributeList();
+        this.getDeliveryTypeList();
         this.getList();
     },
     methods: {
+        getDeliveryTypeList(){
+            dataTypeList({dictType:'exchange_methond'}).then(response => {
+                this.deliveryTypeList = response.data.data;
+            }).catch(() => {});
+        },
         getProductAttributeList(){
             dataTypeList({dictType:'mall_sku_attribute'}).then(response => {
                 this.productAttributeList = response.data.data;

+ 9 - 19
src/views/exchangeManage/cancelledList.vue

@@ -14,8 +14,8 @@
                             :value="item.dictValue">
                         </el-option>
                     </el-select>
-            <el-select v-model="listQuery.deliveryType" clearable placeholder="兑换方式" class="filter-item" style="width: 200px">
-                        <el-option :key="item.type" v-for="item in deliveryTypeList" :label="item.name" :value="item.type">
+                    <el-select v-model="listQuery.deliveryType" clearable placeholder="兑换方式" class="filter-item" style="width: 200px">
+                        <el-option :key="item.dictValue" v-for="item in deliveryTypeList" :label="item.dictLabel" :value="item.dictValue">
                         </el-option>
             </el-select>
             <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
@@ -213,23 +213,7 @@ export default {
         return {
             productAttributeList: [],
             deliveryTypeList: [
-            {
-                    type: 0,
-                    name: '办公室领取'
-                },
-                {
-                    type: 1,
-                    name: '快递'
-                },
-                {
-                    type: 2,
-                    name: '卷码兑换'
-                },
-                {
-                    type: 3,
-                    name: '线下组织'
-                },
-               
+            
             ],
             trackingNumber: '',
             comment: '',
@@ -258,9 +242,15 @@ export default {
     },
     created() {
         this.getProductAttributeList();
+        this.getDeliveryTypeList();
         this.getList();
     },
     methods: {
+        getDeliveryTypeList(){
+            dataTypeList({dictType:'exchange_methond'}).then(response => {
+                this.deliveryTypeList = response.data.data;
+            }).catch(() => {});
+        },
         getProductAttributeList(){
             dataTypeList({dictType:'mall_sku_attribute'}).then(response => {
                 this.productAttributeList = response.data.data;

+ 8 - 20
src/views/exchangeManage/exchangeList.vue

@@ -19,7 +19,7 @@
                         </el-option>
                     </el-select>
             <el-select v-model="listQuery.deliveryType" clearable placeholder="兑换方式" class="filter-item" style="width: 200px">
-                        <el-option :key="item.type" v-for="item in deliveryTypeList" :label="item.name" :value="item.type">
+                        <el-option :key="item.dictValue" v-for="item in deliveryTypeList" :label="item.dictLabel" :value="item.dictValue">
                         </el-option>
             </el-select>
             <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
@@ -216,25 +216,7 @@ export default {
     data() {
         return {
             productAttributeList: [],
-            deliveryTypeList: [
-            {
-                    type: 0,
-                    name: '办公室领取'
-                },
-                {
-                    type: 1,
-                    name: '快递'
-                },
-                {
-                    type: 2,
-                    name: '卷码兑换'
-                },
-                {
-                    type: 3,
-                    name: '线下组织'
-                },
-               
-            ],
+            deliveryTypeList: [],
             orderTypeList: [
                 {
                     orderType: 0,
@@ -280,9 +262,15 @@ export default {
     },
     created() {
         this.getProductAttributeList();
+        this.getDeliveryTypeList();
         this.getList();
     },
     methods: {
+        getDeliveryTypeList(){
+            dataTypeList({dictType:'exchange_methond'}).then(response => {
+                this.deliveryTypeList = response.data.data;
+            }).catch(() => {});
+        },
         getProductAttributeList(){
             dataTypeList({dictType:'mall_sku_attribute'}).then(response => {
                 this.productAttributeList = response.data.data;

+ 9 - 19
src/views/exchangeManage/pasList.vue

@@ -14,8 +14,8 @@
                             :value="item.dictValue">
                         </el-option>
                     </el-select>
-            <el-select v-model="listQuery.deliveryType" clearable placeholder="兑换方式" class="filter-item" style="width: 200px">
-                        <el-option :key="item.type" v-for="item in deliveryTypeList" :label="item.name" :value="item.type">
+                    <el-select v-model="listQuery.deliveryType" clearable placeholder="兑换方式" class="filter-item" style="width: 200px">
+                        <el-option :key="item.dictValue" v-for="item in deliveryTypeList" :label="item.dictLabel" :value="item.dictValue">
                         </el-option>
             </el-select>
             <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
@@ -232,23 +232,7 @@ export default {
         return {
             productAttributeList: [],
             deliveryTypeList: [
-            {
-                    type: 0,
-                    name: '办公室领取'
-                },
-                {
-                    type: 1,
-                    name: '快递'
-                },
-                {
-                    type: 2,
-                    name: '卷码兑换'
-                },
-                {
-                    type: 3,
-                    name: '线下组织'
-                },
-               
+           
             ],
             orderTypeList: [
                 {
@@ -299,9 +283,15 @@ export default {
     },
     created() {
         this.getProductAttributeList();
+        this.getDeliveryTypeList();
         this.getList();
     },
     methods: {
+        getDeliveryTypeList(){
+            dataTypeList({dictType:'exchange_methond'}).then(response => {
+                this.deliveryTypeList = response.data.data;
+            }).catch(() => {});
+        },
         getProductAttributeList(){
             dataTypeList({dictType:'mall_sku_attribute'}).then(response => {
                 this.productAttributeList = response.data.data;

+ 9 - 19
src/views/exchangeManage/voidList.vue

@@ -14,8 +14,8 @@
                             :value="item.dictValue">
                         </el-option>
                     </el-select>
-            <el-select v-model="listQuery.deliveryType" clearable placeholder="兑换方式" class="filter-item" style="width: 200px">
-                        <el-option :key="item.type" v-for="item in deliveryTypeList" :label="item.name" :value="item.type">
+                    <el-select v-model="listQuery.deliveryType" clearable placeholder="兑换方式" class="filter-item" style="width: 200px">
+                        <el-option :key="item.dictValue" v-for="item in deliveryTypeList" :label="item.dictLabel" :value="item.dictValue">
                         </el-option>
             </el-select>
             <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
@@ -228,23 +228,7 @@ export default {
         return {
             productAttributeList: [],
             deliveryTypeList: [
-            {
-                    type: 0,
-                    name: '办公室领取'
-                },
-                {
-                    type: 1,
-                    name: '快递'
-                },
-                {
-                    type: 2,
-                    name: '卷码兑换'
-                },
-                {
-                    type: 3,
-                    name: '线下组织'
-                },
-               
+            
             ],
             orderTypeList: [
                 {
@@ -295,9 +279,15 @@ export default {
     },
     created() {
         this.getProductAttributeList();
+        this.getDeliveryTypeList();
         this.getList();
     },
     methods: {
+        getDeliveryTypeList(){
+            dataTypeList({dictType:'exchange_methond'}).then(response => {
+                this.deliveryTypeList = response.data.data;
+            }).catch(() => {});
+        },
         getProductAttributeList(){
             dataTypeList({dictType:'mall_sku_attribute'}).then(response => {
                 this.productAttributeList = response.data.data;