zs 3 years ago
parent
commit
7f5d6988bf
2 changed files with 9 additions and 5 deletions
  1. 3 1
      src/views/menu/market/index.vue
  2. 6 4
      src/views/menu/order/index.vue

+ 3 - 1
src/views/menu/market/index.vue

@@ -54,7 +54,9 @@ export default {
       //操作项
       opera: [
         { label: '详细信息', method: 'view' },
+        { label: '上架', method: 'export', type: 'success', confirm: true, display: (i) => i.status == '0' },
         { label: '下架', method: 'export', type: 'success', confirm: true, display: (i) => i.status == '1' },
+        { label: '重新上架', method: 'export', type: 'success', confirm: true, display: (i) => i.status == '2' },
       ],
       //表格数据
       list: [
@@ -93,7 +95,7 @@ export default {
       this.$set(this, `form`, data);
       this.dialog = { title: '详细信息', show: true, type: '2', widths: '40%' };
     },
-    //导出数据
+    //上架,下架,重新上架
     async toExport({ data }) {
       this.dialog = { title: '导出条件', show: true, type: '1', widths: '40%' };
     },

+ 6 - 4
src/views/menu/order/index.vue

@@ -53,7 +53,6 @@ export default {
           order_num: 'Ygj4757945hdFueu',
           receive_user_name: '胡英俊',
           mech_name: '翻斗幼儿园-小豆班',
-          status_name: '待供货单位确认',
           status: '0',
           user_name: '采购人员',
           user_phone: '12345678901',
@@ -66,7 +65,6 @@ export default {
           order_num: 'Hgj4757945hdFueu',
           receive_user_name: '胡图图',
           mech_name: '翻斗幼儿园-小豆班',
-          status_name: '待供货单位确认',
           status: '1',
           user_name: '采购人员',
           user_phone: '12345678901',
@@ -84,7 +82,7 @@ export default {
       //弹框
       dialog: { title: '详细信息', show: false, type: '1' },
       form: { order: [] },
-      statusList: buy_status,
+      statusList: [],
     };
   },
   async created() {
@@ -92,7 +90,11 @@ export default {
   },
   methods: {
     //查询数据
-    async search() {},
+    async search() {
+      for (const val of this.list) {
+        val.status_name = buy_status.find((i) => i.value == val.status).label;
+      }
+    },
     //详细信息
     async toView({ data }) {
       this.$set(this, `form`, data);