Преглед на файлове

流水管理查看已上架物品

natasha преди 23 часа
родител
ревизия
a3a2b0dda4
променени са 1 файла, в които са добавени 69 реда и са изтрити 7 реда
  1. 69 7
      src/views/finance_manage/FlowManage.vue

+ 69 - 7
src/views/finance_manage/FlowManage.vue

@@ -505,11 +505,13 @@
                         v-if="scope.row.is_use_discount_code == 'false'"
                         >退款</el-dropdown-item
                       >
-                      <!-- <el-dropdown-item
-                      @click.native.prevent="handleUp(scope.row, scope.$index)"
-                      v-if="scope.row.order_status === 2"
-                      >撤回</el-dropdown-item
-                    > -->
+
+                      <el-dropdown-item
+                        @click.native.prevent="
+                          handleLookInfo(scope.row, scope.$index)
+                        "
+                        >查看</el-dropdown-item
+                      >
                     </el-dropdown-menu>
                   </el-dropdown>
                 </template>
@@ -525,6 +527,16 @@
                   >
                     退款
                   </el-button>
+                  <el-button
+                    type="text"
+                    size="small"
+                    class="primary-btn"
+                    @click.native.prevent="
+                      handleLookInfo(scope.row, scope.$index)
+                    "
+                  >
+                    查看
+                  </el-button>
                   <!-- <el-button
                     @click.native.prevent="handleUp(scope.row, scope.$index)"
                     type="text"
@@ -534,7 +546,7 @@
                   >
                     撤回
                   </el-button> -->
-                  <el-button
+                  <!-- <el-button
                     type="text"
                     size="small"
                     class="gray-btn"
@@ -549,7 +561,7 @@
                     v-if="scope.row.order_status === 4"
                   >
                     已撤回
-                  </el-button>
+                  </el-button> -->
                 </template>
               </template>
             </el-table-column>
@@ -689,6 +701,40 @@
         >
       </span>
     </el-dialog>
+    <el-dialog
+      title="已上架物品列表"
+      :visible.sync="shelveVisible"
+      :width="isPhone ? '100%' : '500px'"
+    >
+      <el-table :data="goodsListShelve" style="width: 100%">
+        <el-table-column type="index" label="#" width="54"> </el-table-column>
+        <el-table-column prop="name" label="名称" width="200">
+        </el-table-column>
+        <el-table-column prop="study_phase_name" label="学段" width="80">
+        </el-table-column>
+        <el-table-column prop="type" label="商品类型">
+          <template slot-scope="scope">
+            <span
+              class="items-type"
+              :style="{
+                background: goodsTypeListCss[scope.row.type]
+                  ? goodsTypeListCss[scope.row.type].bg
+                  : '',
+                color: goodsTypeListCss[scope.row.type]
+                  ? goodsTypeListCss[scope.row.type].color
+                  : '',
+              }"
+              >{{ goodsTypeListCss[scope.row.type].text }}</span
+            >
+          </template>
+        </el-table-column>
+      </el-table>
+      <span slot="footer" class="dialog-footer">
+        <el-button size="small" type="primary" @click="shelveVisible = false"
+          >确 定</el-button
+        >
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -951,6 +997,8 @@ export default {
       ktjeInfo: null,
       isPhone: false,
       showSearch: true,
+      goodsListShelve: [], // 已上架物品列表
+      shelveVisible: false,
     };
   },
   //计算属性 类似于data概念
@@ -1279,6 +1327,20 @@ export default {
         });
       });
     },
+    // 查看已上架物品
+    handleLookInfo(row, index) {
+      this.goodsListShelve = [];
+      let Mnames = "/ShopServer/Manager/FinanceManager/GetOrderInfo";
+      let datas = {
+        id: row.id,
+      };
+      getLogin(Mnames, datas).then((res) => {
+        if (res.status === 1) {
+          this.goodsListShelve = res.goods_list_shelve;
+          this.shelveVisible = true;
+        }
+      });
+    },
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {