YY 2 tahun lalu
induk
melakukan
716c0da98a

+ 1 - 3
src/views/platmanag/goods/index.vue

@@ -354,9 +354,7 @@ export default {
         else data.status = '1';
         let res;
         if (data._id) res = await this.update(data);
-        if (this.$checkRes(res)) {
-          this.$message({ type: `success`, message: `修改成功` });
-        }
+        if (this.$checkRes(res)) this.$message({ type: `success`, message: `修改成功` });
         this.search();
       });
     },

+ 2 - 6
src/views/platmanag/goods/spec.vue

@@ -146,9 +146,7 @@ export default {
     async toData(row) {
       let data = this.data;
       let res = await this.goodsFetch(this.goods);
-      if (this.$checkRes(res)) {
-        data.push(res.data);
-      }
+      if (this.$checkRes(res)) data.push(res.data);
       this.search();
     },
     // 复制
@@ -197,9 +195,7 @@ export default {
         delete data.group_config;
         this.$set(this, `form`, data);
         this.view = 'info';
-      } else {
-        this.$message.error('未找到指定数据');
-      }
+      } else this.$message.error('未找到指定数据');
     },
     // 返回
     toBack() {

+ 3 - 6
src/views/platmanag/order/index.vue

@@ -21,7 +21,6 @@
               <el-tab-pane name="7" label="申请售后"> </el-tab-pane>
               <el-tab-pane name="8" label="正在处理售后"> </el-tab-pane>
               <el-tab-pane name="9" label="售后结束"> </el-tab-pane>
-
               <!-- 待付款 -->
               <el-col :span="24" v-if="activeName == '1'">
                 <card-1 :statusList="statusList" @toDetail="toDetail" @toSales="toSales"></card-1>
@@ -45,8 +44,8 @@
                 <data-table :fields="fields" :opera="opera" @query="search" :data="list" :total="total" @detail="toDetails" @sales="toSaless">
                   <template #is_afterSale="{ row }">
                     <span :style="{ color: row.is_afterSale === true ? 'red' : '' }">
-                      {{ row.is_afterSale === true ? '该订单有商品申请售后' : '未申请售后' }}</span
-                    >
+                      {{ row.is_afterSale === true ? '该订单有商品申请售后' : '未申请售后' }}
+                    </span>
                   </template>
                 </data-table>
               </el-col>
@@ -193,9 +192,7 @@ export default {
       let res;
       // 类型
       res = await this.dictQuery({ code: 'order_process' });
-      if (this.$checkRes(res)) {
-        this.$set(this, `statusList`, res.data);
-      }
+      if (this.$checkRes(res)) this.$set(this, `statusList`, res.data);
       res = await this.shopQuery();
       if (this.$checkRes(res)) this.$set(this, `shopList`, res.data);
     },

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

@@ -21,7 +21,6 @@
               <el-tab-pane name="7" label="申请售后"> </el-tab-pane>
               <el-tab-pane name="8" label="正在处理售后"> </el-tab-pane>
               <el-tab-pane name="9" label="售后结束"> </el-tab-pane>
-
               <!-- 待付款 -->
               <el-col :span="24" v-if="activeName == '1'">
                 <card-1 :statusList="statusList" @toDetail="toDetail" @toSales="toSales"></card-1>
@@ -48,8 +47,8 @@
                 <data-table :fields="fields" :opera="opera" @query="search" :data="list" :total="total" @detail="toDetails" @sales="toSaless">
                   <template #is_afterSale="{ row }">
                     <span :style="{ color: row.is_afterSale === true ? 'red' : '' }">
-                      {{ row.is_afterSale === true ? '该订单有商品申请售后' : '未申请售后' }}</span
-                    >
+                      {{ row.is_afterSale === true ? '该订单有商品申请售后' : '未申请售后' }}
+                    </span>
                   </template>
                 </data-table>
               </el-col>
@@ -208,9 +207,8 @@ export default {
       let res;
       // 类型
       res = await this.dictQuery({ code: 'order_process' });
-      if (this.$checkRes(res)) {
-        this.$set(this, `statusList`, res.data);
-      }
+      if (this.$checkRes(res)) this.$set(this, `statusList`, res.data);
+      // 店铺
       res = await this.shopQuery();
       if (this.$checkRes(res)) this.$set(this, `shopList`, res.data);
     },