|
|
@@ -524,7 +524,7 @@
|
|
|
<div v-for="(row, index) in giftCouponFormData.rows" :key="row.key" class="coupon-row">
|
|
|
<el-select
|
|
|
v-model="row.couponId"
|
|
|
- :placeholder="giftCouponFormData.giftType === 2 ? '选择折扣券' : '选择满减券'"
|
|
|
+ placeholder="选择优惠券"
|
|
|
style="flex: 1; min-width: 0"
|
|
|
clearable
|
|
|
:loading="giftCouponListLoading"
|
|
|
@@ -1191,7 +1191,7 @@ const giftCouponFormData = reactive<{
|
|
|
}>({
|
|
|
friendId: "",
|
|
|
giftType: 1,
|
|
|
- rows: [{ key: ++giftCouponRowKey, couponId: "", quantity: 1 }]
|
|
|
+ rows: [{ key: ++giftCouponRowKey, couponId: "", quantity: 0 }]
|
|
|
});
|
|
|
|
|
|
const loadGiftFriendList = async () => {
|
|
|
@@ -1267,7 +1267,7 @@ const loadGiftCouponList = async (giftType: 1 | 2 = giftCouponFormData.giftType)
|
|
|
const onGiftTypeChange = () => {
|
|
|
giftCouponList.value = [];
|
|
|
giftCouponListLoaded.value = false;
|
|
|
- giftCouponFormData.rows = [{ key: ++giftCouponRowKey, couponId: "", quantity: 1 }];
|
|
|
+ giftCouponFormData.rows = [{ key: ++giftCouponRowKey, couponId: "", quantity: 0 }];
|
|
|
loadGiftCouponList(giftCouponFormData.giftType);
|
|
|
};
|
|
|
|
|
|
@@ -1275,7 +1275,7 @@ const addGiftCouponRow = () => {
|
|
|
giftCouponFormData.rows.push({
|
|
|
key: ++giftCouponRowKey,
|
|
|
couponId: "",
|
|
|
- quantity: 1
|
|
|
+ quantity: 0
|
|
|
});
|
|
|
};
|
|
|
|
|
|
@@ -1329,7 +1329,7 @@ const closeGiftCouponDialog = () => {
|
|
|
giftCouponDialogVisible.value = false;
|
|
|
giftCouponFormData.friendId = "";
|
|
|
giftCouponFormData.giftType = 1;
|
|
|
- giftCouponFormData.rows = [{ key: ++giftCouponRowKey, couponId: "", quantity: 1 }];
|
|
|
+ giftCouponFormData.rows = [{ key: ++giftCouponRowKey, couponId: "", quantity: 0 }];
|
|
|
giftCouponListLoaded.value = false;
|
|
|
};
|
|
|
|
|
|
@@ -1388,7 +1388,7 @@ watch(
|
|
|
() => {
|
|
|
giftCouponList.value = [];
|
|
|
giftCouponListLoaded.value = false;
|
|
|
- giftCouponFormData.rows = [{ key: ++giftCouponRowKey, couponId: "", quantity: 1 }];
|
|
|
+ giftCouponFormData.rows = [{ key: ++giftCouponRowKey, couponId: "", quantity: 0 }];
|
|
|
}
|
|
|
);
|
|
|
|