|
@@ -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="请输入奖励比例")
|