Browse Source

订单产品管理

lxf 1 year ago
parent
commit
b6a6afbb12
1 changed files with 41 additions and 25 deletions
  1. 41 25
      src/views/group/order/product-management/index.vue

+ 41 - 25
src/views/group/order/product-management/index.vue

@@ -18,6 +18,9 @@
         <template #blueprint="{ item }">
           <div>图片</div>
         </template>
+        <template #wlnCreateTime="{ item }">
+          <div>{{ item.wlnCreateTime || item.createTime }}</div>
+        </template>
       </byTable>
     </el-card>
   </div>
@@ -33,11 +36,15 @@ const sourceList = ref({
     total: 0,
     pageNum: 1,
     pageSize: 10,
-    departmentName: "",
-    code: "",
-    wlnCode: "",
-    status: "",
-    settlementStatus: "",
+    skuSpecCode: "",
+    skuSpecName: "",
+    bomSpecCode: "",
+    bomSpecName: "",
+    orderCode: "PI1690269227623",
+    orderWlnCode: "",
+    orderStatus: "",
+    beginTime: "",
+    endTime: "",
   },
 });
 const loading = ref(false);
@@ -45,30 +52,39 @@ const searchConfig = computed(() => {
   return [
     {
       type: "input",
-      prop: "code",
-      label: "订单号",
+      prop: "skuSpecCode",
+      label: "SKU规格编码",
     },
     {
       type: "input",
-      prop: "wlnCode",
-      label: "万里牛单号",
+      prop: "skuSpecName",
+      label: "SKU规格名称",
     },
     {
       type: "input",
-      prop: "departmentName",
-      label: "事业部名称",
+      prop: "bomSpecCode",
+      label: "BOM规格编码",
     },
     {
-      type: "select",
-      prop: "status",
-      dictKey: "order_status",
-      label: "订单状态",
+      type: "input",
+      prop: "bomSpecName",
+      label: "BOM规格名称",
+    },
+    {
+      type: "input",
+      prop: "orderCode",
+      label: "订单号",
+    },
+    {
+      type: "input",
+      prop: "orderWlnCode",
+      label: "万里牛单号",
     },
     {
       type: "select",
-      prop: "settlementStatus",
-      label: "结算状态",
-      data: proxy.useUserStore().allDict["settlement_status"],
+      prop: "orderStatus",
+      dictKey: "order_status",
+      label: "订单状态",
     },
   ];
 });
@@ -85,28 +101,28 @@ const config = computed(() => {
       attrs: {
         label: "产品规格编码",
         prop: "skuSpecCode",
-        width: 120,
+        width: 160,
       },
     },
     {
       attrs: {
         label: "产品规格名称",
         prop: "skuSpecName",
-        width: 180,
+        width: 240,
       },
     },
     {
       attrs: {
         label: "BOM规格编码",
         prop: "bomSpecCode",
-        width: 120,
+        width: 160,
       },
     },
     {
       attrs: {
         label: "BOM规格名称",
         prop: "bomSpecName",
-        width: 220,
+        width: 260,
       },
     },
     {
@@ -133,7 +149,7 @@ const config = computed(() => {
     {
       attrs: {
         label: "订单状态",
-        prop: "status",
+        prop: "orderStatus",
         width: 120,
       },
       render(val) {
@@ -237,7 +253,7 @@ const config = computed(() => {
     {
       attrs: {
         label: "下单时间",
-        prop: "wlnCreateTime",
+        slot: "wlnCreateTime",
         width: 160,
       },
     },
@@ -253,7 +269,7 @@ const getList = async (req, status) => {
     sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
   }
   loading.value = true;
-  proxy.post("/orderInfo/page", sourceList.value.pagination).then((res) => {
+  proxy.post("/orderSku/page", sourceList.value.pagination).then((res) => {
     sourceList.value.data = res.rows;
     sourceList.value.pagination.total = res.total;
     setTimeout(() => {