Browse Source

售后列表

lxf 1 year ago
parent
commit
0aa959ac6f
1 changed files with 148 additions and 0 deletions
  1. 148 0
      src/views/group/order/after-sale/index.vue

+ 148 - 0
src/views/group/order/after-sale/index.vue

@@ -0,0 +1,148 @@
+<template>
+  <div>
+    <el-card class="box-card">
+      <!-- <byTable
+        :source="sourceList.data"
+        :pagination="sourceList.pagination"
+        :config="config"
+        :loading="loading"
+        highlight-current-row
+        @get-list="getList"
+        @clickReset="clickReset">
+        <template #code="{ item }">
+          <div>
+            <a style="color: #409eff; cursor: pointer; word-break: break-all" @click="clickCode(item)">{{ item.code }}</a>
+          </div>
+        </template>
+      </byTable> -->
+    </el-card>
+  </div>
+</template>
+
+<script setup>
+import byTable from "/src/components/byTable/index";
+import { ElMessage } from "element-plus";
+
+const { proxy } = getCurrentInstance();
+const departmentList = ref([{ dictKey: "0", dictValue: "胜德体育" }]);
+const sourceList = ref({
+  data: [],
+  pagination: {
+    total: 0,
+    pageNum: 1,
+    pageSize: 10,
+    departmentId: "",
+    code: "",
+    wlnCode: "",
+    exception: "1",
+  },
+});
+const loading = ref(false);
+const config = computed(() => {
+  return [
+    {
+      attrs: {
+        label: "事业部",
+        prop: "departmentName",
+      },
+    },
+    {
+      attrs: {
+        label: "订单号",
+        slot: "code",
+      },
+    },
+    {
+      attrs: {
+        label: "万里牛单号",
+        prop: "wlnCode",
+      },
+    },
+    {
+      attrs: {
+        label: "订单状态",
+        prop: "status",
+      },
+      render(val) {
+        return proxy.dictKeyValue(val, proxy.useUserStore().allDict["order_status"]);
+      },
+    },
+    {
+      attrs: {
+        label: "操作",
+        width: 100,
+        align: "center",
+        fixed: "right",
+      },
+      renderHTML(row) {
+        return [
+          // {
+          //   attrs: {
+          //     label: "重新同步",
+          //     type: "primary",
+          //     text: true,
+          //   },
+          //   el: "button",
+          //   click() {
+          //     clickSynchronization(row);
+          //   },
+          // },
+        ];
+      },
+    },
+  ];
+});
+// const getDemandData = () => {
+//   proxy.post("/department/page", { pageNum: 1, pageSize: 999 }).then((res) => {
+//     if (res.rows && res.rows.length > 0) {
+//       departmentList.value = departmentList.value.concat(
+//         res.rows.map((item) => {
+//           return {
+//             dictKey: item.id,
+//             dictValue: item.name,
+//           };
+//         })
+//       );
+//     }
+//   });
+// };
+// getDemandData();
+// const getList = async (req, status) => {
+//   if (status) {
+//     sourceList.value.pagination = {
+//       pageNum: sourceList.value.pagination.pageNum,
+//       pageSize: sourceList.value.pagination.pageSize,
+//       exception: "1",
+//     };
+//   } else {
+//     sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
+//   }
+//   loading.value = true;
+//   proxy.post("/orderInfo/deletedOrderPage", sourceList.value.pagination).then((res) => {
+//     sourceList.value.data = res.rows;
+//     sourceList.value.pagination.total = res.total;
+//     setTimeout(() => {
+//       loading.value = false;
+//     }, 200);
+//   });
+// };
+// getList();
+// const clickReset = () => {
+//   getList("", true);
+// };
+</script>
+
+<style lang="scss" scoped>
+::v-deep(.el-input-number .el-input__inner) {
+  text-align: left;
+}
+:deep(.el-dialog) {
+  margin-top: 10px !important;
+  margin-bottom: 10px !important;
+}
+.select-card {
+  height: calc(100vh - 184px);
+  overflow-y: auto;
+  overflow-x: hidden;
+}
+</style>