Browse Source

添加奖励代码字段编辑

lcl 1 week ago
parent
commit
b2f6b8aa34

+ 6 - 1
src/views/pri/priList/components/add/index.vue

@@ -37,6 +37,7 @@ let UpdateForm = ref({
   projectId: props.projectId, //项目
   kind: "", //奖励分类
   prizeName: "", //奖励名称
+  prizeCode: "", //奖励代码
   prizePercent: "", //奖励比例
   prizeAmount: "", //奖励固定金额
   conditionMode: "", //条件模式
@@ -112,6 +113,7 @@ const submit = async (formEl) => {
           projectId: props.projectId, //项目
           kind: "", //奖励分类
           prizeName: "", //奖励名称
+          prizeCode: "", //奖励代码
           prizePercent: "", //奖励比例
           prizeAmount: "", //奖励固定金额
           conditionMode: "", //条件模式
@@ -152,7 +154,6 @@ const projectIdQuery = async () => {
 };
 //获取奖励发放对象
 const prizeObjQuery = async () => {
-  console.log(1);
   const { status, data }: any = await http.Request({ method: UrlList.prizeSet.prigetPriPrizeObjectTableDic.method, url: UrlList.prizeSet.prigetPriPrizeObjectTableDic.url, params: {} });
   if (status === 1) {
     prizeObjOptionList.value = data.records;
@@ -185,6 +186,7 @@ const closeVisible = () => {
     projectId: props.projectId, //项目
     kind: "", //奖励分类
     prizeName: "", //奖励名称
+    prizeCode: "", //奖励代码
     prizePercent: "", //奖励比例
     prizeAmount: "", //奖励固定金额
     conditionMode: "", //条件模式
@@ -225,6 +227,9 @@ const isFullscreen = ref(false)
       el-form-item(label='奖励名称' prop="prizeName")
         el-input(v-model='UpdateForm.prizeName' autocomplete='off'
           placeholder="请输入奖励名称")
+      el-form-item(label='奖励代码' prop="prizeCode")
+        el-input(v-model='UpdateForm.prizeCode' autocomplete='off'
+          placeholder="请输入奖励代码")
       el-form-item(label='奖励比例' prop="prizePercent")
         el-input-number(v-model='UpdateForm.prizePercent' :min="0" :max="1000"
           placeholder="请输入奖励比例")

+ 6 - 0
src/views/pri/priList/components/updatePriList/index.vue

@@ -34,6 +34,7 @@ const UpdateForm: any = ref({
   id: null, //ID
   kind: "", //奖励分类
   prizeName: "", //奖励名称
+  prizeCode: "", //奖励代码
   prizePercent: "", //奖励比例
   prizeAmount: "", //奖励固定金额
   conditionMode: "", //条件模式
@@ -103,6 +104,7 @@ const submit = async (formEl) => {
           id: null, //ID
           kind: "", //奖励分类
           prizeName: "", //奖励名称
+          prizeCode: "", //奖励代码
           prizePercent: "", //奖励比例
           prizeAmount: "", //奖励固定金额
           conditionMode: "", //条件模式
@@ -176,6 +178,7 @@ const closeUpdatePriListVisible = () => {
     id: null, //ID
     kind: "", //奖励分类
     prizeName: "", //奖励名称
+    prizeCode: "", //奖励代码
     prizePercent: "", //奖励比例
     prizeAmount: "", //奖励固定金额
     conditionMode: "", //条件模式
@@ -212,6 +215,9 @@ const isFullscreen = ref(false)
       el-form-item(label='奖励名称' prop="prizeName")
         el-input(v-model='UpdateForm.prizeName' autocomplete='off'
           placeholder="请输入奖励名称")
+      el-form-item(label='奖励代码' prop="prizeCode")
+        el-input(v-model='UpdateForm.prizeCode' autocomplete='off'
+          placeholder="请输入奖励代码")
       el-form-item(label='奖励比例' prop="prizePercent")
         el-input-number(v-model='UpdateForm.prizePercent' :min="0" :max="1000"
           placeholder="请输入奖励比例")