Kaynağa Gözat

【退款管理】-退货状态不正确

lxf 1 yıl önce
ebeveyn
işleme
3fed9fb971
1 değiştirilmiş dosya ile 16 ekleme ve 3 silme
  1. 16 3
      src/components/process/PurchaseRefund.vue

+ 16 - 3
src/components/process/PurchaseRefund.vue

@@ -78,15 +78,27 @@ const returnGoods = ref([]);
 const returnStatus = ref([
   {
     label: "审批中",
-    value: 10,
+    value: "10",
   },
   {
     label: "驳回",
-    value: 20,
+    value: "15",
   },
   {
     label: "待退货",
-    value: 30,
+    value: "20",
+  },
+  {
+    label: "部分退货",
+    value: "30",
+  },
+  {
+    label: "已退货",
+    value: "40",
+  },
+  {
+    label: "已结束",
+    value: "50",
   },
 ]);
 let formData = reactive({
@@ -218,6 +230,7 @@ const changeSupply = (val) => {
   } else {
     returnGoods.value = [];
   }
+  formData.data.refundDetailList = [];
 };
 const clickAdd = () => {
   if (formData.data.refundDetailList && formData.data.refundDetailList.length > 0) {