diff --git a/src/views/product/addProduct/index.vue b/src/views/product/addProduct/index.vue
index 1b7f63a..8697e81 100644
--- a/src/views/product/addProduct/index.vue
+++ b/src/views/product/addProduct/index.vue
@@ -943,6 +943,12 @@
+
+
+
+
+
+
@@ -1416,6 +1422,7 @@ import copyRecord from './copyRecord'
import addCarMy from "./addCarMy";
import {configApi} from "@/api/system";
import {getCategory} from "@/api/diy";
+import {agentList} from "@/api/marketing";
const defaultObj = {
image: '',
@@ -1490,7 +1497,7 @@ const defaultObj = {
integral_deduction_money: 0,
// 其他营销内容设置
star: 1,
-
+ agent_two_ids: [],
}
const objTitle = {
price: {
@@ -1766,6 +1773,8 @@ export default {
width: 95,
},
config: {},// 获取商户基本配置
+ // 代理列表获取
+ agent_list: {},
}
},
computed: {
@@ -1830,6 +1839,7 @@ export default {
this.getGuaranteeList()
this.productGetRule()
this.getLabelLst()
+ this.getAgentList(2);
// this.$store.dispatch('settings/setEdit', true)
this.formValidate.slider_image = []
if (this.$route.params.id) {
@@ -2753,6 +2763,7 @@ export default {
is_batch: info.is_batch || 0,
batch_num: info.batch_num || 0,
batch_unit: info.batch_unit || '',
+ agent_two_ids: info.agent_two_ids || []
};
if (info.svip_price_type != 0 && info.mer_svip_status) {
this.attrVal = {
@@ -3010,10 +3021,26 @@ export default {
},
38
);
+ },
+ // 获取代理列表
+ getAgentList(agentType){
+ let _this = this;
+ let params = {
+ page: 1,
+ limit: 100,
+ agent_type: agentType,
+ };
+ agentList(params).then((res) => {
+ _this.agent_list = res.data.list || {};
+ }).catch((res) => {});
}
+
+
+
}
};
+