Browse Source

奖励金额配置区分奖励代码

lcl 4 months ago
parent
commit
9d58197493

+ 6 - 0
src/views/pri/priListAmountSet/components/add/index.vue

@@ -37,6 +37,7 @@ let UpdateForm = ref({
   prizePercent: "", //奖励比例
   prizeAmount: "", //奖励固定金额
   prizeSourceField: "", //奖励金额来源数据
+  prizeCode: "", //奖励代码
 
 
 });
@@ -76,6 +77,7 @@ const submit = async (formEl) => {
           prizePercent: "", //奖励比例
           prizeAmount: "", //奖励固定金额
           prizeSourceField: "", //奖励金额来源数据
+          prizeCode: "", //奖励代码
 
         };
         // 关闭新增弹窗;
@@ -123,6 +125,7 @@ const closeVisible = () => {
     prizePercent: "", //奖励比例
     prizeAmount: "", //奖励固定金额
     prizeSourceField: "", //奖励金额来源数据
+    prizeCode: "", //奖励代码
 
   };
   closeFn();
@@ -149,6 +152,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="请输入奖励金额来源数据")

+ 11 - 5
src/views/pri/priListAmountSet/components/updatePriListAmountSet/index.vue

@@ -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="请输入奖励金额来源数据")