|
@@ -34,6 +34,7 @@ const props = defineProps<{
|
|
// 表单数据
|
|
// 表单数据
|
|
let UpdateForm = ref({
|
|
let UpdateForm = ref({
|
|
projectId: props.projectId, //项目
|
|
projectId: props.projectId, //项目
|
|
|
|
+ kind: "", //奖励分类
|
|
prizeName: "", //奖励名称
|
|
prizeName: "", //奖励名称
|
|
prizePercent: "", //奖励比例
|
|
prizePercent: "", //奖励比例
|
|
prizeAmount: "", //奖励固定金额
|
|
prizeAmount: "", //奖励固定金额
|
|
@@ -62,6 +63,12 @@ const prizeContentOptionList = [
|
|
{ id: 'recyc', label: '循环资格' },
|
|
{ id: 'recyc', label: '循环资格' },
|
|
{ id: 'coupon', label: '机具券' },
|
|
{ id: 'coupon', label: '机具券' },
|
|
]
|
|
]
|
|
|
|
+// 奖励分类
|
|
|
|
+const kindOptionList = [
|
|
|
|
+ { id: 'pos', label: '机具奖励' },
|
|
|
|
+ { id: 'order', label: '订单奖励' },
|
|
|
|
+ { id: 'reserve', label: '额度返还' },
|
|
|
|
+]
|
|
|
|
|
|
// 选项卡参数(默认值为列表某项的id)
|
|
// 选项卡参数(默认值为列表某项的id)
|
|
const activeId = ref('1')
|
|
const activeId = ref('1')
|
|
@@ -89,6 +96,7 @@ const submit = async (formEl) => {
|
|
});
|
|
});
|
|
UpdateForm.value = {
|
|
UpdateForm.value = {
|
|
projectId: props.projectId, //项目
|
|
projectId: props.projectId, //项目
|
|
|
|
+ kind: "", //奖励分类
|
|
prizeName: "", //奖励名称
|
|
prizeName: "", //奖励名称
|
|
prizePercent: "", //奖励比例
|
|
prizePercent: "", //奖励比例
|
|
prizeAmount: "", //奖励固定金额
|
|
prizeAmount: "", //奖励固定金额
|
|
@@ -150,6 +158,7 @@ const closeVisible = () => {
|
|
// 清空表单项;
|
|
// 清空表单项;
|
|
UpdateForm.value = {
|
|
UpdateForm.value = {
|
|
projectId: props.projectId, //项目
|
|
projectId: props.projectId, //项目
|
|
|
|
+ kind: "", //奖励分类
|
|
prizeName: "", //奖励名称
|
|
prizeName: "", //奖励名称
|
|
prizePercent: "", //奖励比例
|
|
prizePercent: "", //奖励比例
|
|
prizeAmount: "", //奖励固定金额
|
|
prizeAmount: "", //奖励固定金额
|
|
@@ -178,6 +187,13 @@ const isFullscreen = ref(false)
|
|
clearable,
|
|
clearable,
|
|
)
|
|
)
|
|
el-option(:label="item.projectName", :value="item.id" v-for="(item,index) in projectIdOptionList")
|
|
el-option(:label="item.projectName", :value="item.id" v-for="(item,index) in projectIdOptionList")
|
|
|
|
+ el-form-item(label="奖励分类", prop="kind")
|
|
|
|
+ el-select(
|
|
|
|
+ v-model="UpdateForm.kind",
|
|
|
|
+ placeholder="请选择奖励分类",
|
|
|
|
+ clearable,
|
|
|
|
+ )
|
|
|
|
+ el-option(:label="item.label", :value="item.id" v-for="(item,index) in kindOptionList")
|
|
el-form-item(label='奖励名称' prop="prizeName")
|
|
el-form-item(label='奖励名称' prop="prizeName")
|
|
el-input(v-model='UpdateForm.prizeName' autocomplete='off'
|
|
el-input(v-model='UpdateForm.prizeName' autocomplete='off'
|
|
placeholder="请输入奖励名称")
|
|
placeholder="请输入奖励名称")
|