|
@@ -34,6 +34,7 @@ const UpdateForm: any = ref({
|
|
|
prizePercent: "", //奖励比例
|
|
|
prizeAmount: "", //奖励固定金额
|
|
|
prizeSourceField: "", //奖励金额来源数据
|
|
|
+ prizeCode: "", //奖励代码
|
|
|
|
|
|
});
|
|
|
|
|
@@ -64,10 +65,11 @@ const submit = async (formEl) => {
|
|
|
type: "success"
|
|
|
});
|
|
|
UpdateForm.value = {
|
|
|
- id: null, //ID
|
|
|
- prizePercent: "", //奖励比例
|
|
|
- prizeAmount: "", //奖励固定金额
|
|
|
- prizeSourceField: "", //奖励金额来源数据
|
|
|
+ id: null, //ID
|
|
|
+ prizePercent: "", //奖励比例
|
|
|
+ prizeAmount: "", //奖励固定金额
|
|
|
+ prizeSourceField: "", //奖励金额来源数据
|
|
|
+ prizeCode: "", //奖励代码
|
|
|
|
|
|
};
|
|
|
// 关闭修改弹窗;
|
|
@@ -103,7 +105,7 @@ const rules = reactive({
|
|
|
const closeFn: any = inject('closeEditUpdatePriListAmountSetVisible');
|
|
|
const openVisible = async () => {
|
|
|
//通过ID获取表格数据
|
|
|
- const { status, data }: any = await http.Request({ method: UrlList.prizeSet.prigetPriListAmountSetQuery.method, url: UrlList.prizeSet.prigetPriListAmountSetQuery.url, params: { id: props.formData.id }});
|
|
|
+ const { status, data }: any = await http.Request({ method: UrlList.prizeSet.prigetPriListAmountSetQuery.method, url: UrlList.prizeSet.prigetPriListAmountSetQuery.url, params: { id: props.formData.id } });
|
|
|
if (status === 1) {
|
|
|
UpdateForm.value = data;
|
|
|
|
|
@@ -116,6 +118,7 @@ const closeUpdatePriListAmountSetVisible = () => {
|
|
|
prizePercent: "", //奖励比例
|
|
|
prizeAmount: "", //奖励固定金额
|
|
|
prizeSourceField: "", //奖励金额来源数据
|
|
|
+ prizeCode: "", //奖励代码
|
|
|
|
|
|
};
|
|
|
closeFn();
|
|
@@ -138,6 +141,9 @@ const isFullscreen = ref(false)
|
|
|
el-form-item(label='奖励固定金额' prop="prizeAmount")
|
|
|
el-input-number(v-model='UpdateForm.prizeAmount' :min="0" :max="100000"
|
|
|
placeholder="请输入奖励固定金额")
|
|
|
+ el-form-item(label='奖励代码' prop="prizeCode")
|
|
|
+ el-input(v-model='UpdateForm.prizeCode' autocomplete='off'
|
|
|
+ placeholder="请输入奖励代码")
|
|
|
el-form-item(label='奖励金额来源数据' prop="prizeSourceField")
|
|
|
el-input(v-model='UpdateForm.prizeSourceField' autocomplete='off'
|
|
|
placeholder="请输入奖励金额来源数据")
|