From cfb8dfcae63e6706d088201aed486d2dbf5014a9 Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Thu, 03 Jun 2021 22:56:17 +0800 Subject: [PATCH] 业绩规则1 --- zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html | 34 +++++++++++++++++++++++++++++++++- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git a/zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html b/zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html index 225ed3c..212a682 100644 --- a/zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html +++ b/zq-erp/src/main/resources/templates/views/admin/hive/products/goods-form.html @@ -83,6 +83,19 @@ </el-form-item> </el-col> + <el-col :offset="2" :span="10" v-if="form.goodType!='家居产品'"> + <el-form-item label="业绩规则" prop="achieveRuleId"> + <el-select v-model="form.achieveRuleId" filterable placeholder="请选择业绩规则"> + <el-option + v-for="item in achieveRulsList" + :key="item.id" + :label="item.name" + :value="item.id"> + </el-option> + </el-select> + </el-form-item> + </el-col> + </el-row> <el-row> @@ -1097,7 +1110,8 @@ loading_zhk: false, /******综合卡表格数据END********/ - + //提成规则 + achieveRulsList:[], //默认充值卡选中项 defaultCates: [], @@ -1145,6 +1159,8 @@ useDateNum : '', buyDateNum : '', payMethods : '', + achieveRuleId:'', + }, submitUrl: '/admin/shoppinggoods/addShoppingGoods', modifySubmitUrl: '/admin/shoppinggoods/modifyShoppingGoods', @@ -1174,6 +1190,7 @@ this.getGoodstype(); this.getDictionary(); this.getShopInfo(); + this.getAchieveRule(); if(goodType=='家居产品'){ this.getSupplierList(); } @@ -1194,6 +1211,21 @@ methods: { /** + * 获取规则 + */ + getAchieveRule(){ + let _this = this; + AjaxProxy.requst({ + app: _this, + data: {pageNum:1,pageSize:1000}, + url: basePath + "/admin/achieveRule/selectList", + callback: function (data) { + _this.achieveRulsList=data.rows; + } + }); + }, + + /** * 商品分类树形组件格式化 */ normalizer(node) { -- Gitblit v1.9.1