From 669342ab3b9987bde76d2e9256e685855c4d31f1 Mon Sep 17 00:00:00 2001
From: wuhui_zzw <1760308791@qq.com>
Date: Wed, 17 Apr 2024 11:17:52 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E6=80=BB=E5=B9=B3?=
=?UTF-8?q?=E5=8F=B0=E6=B7=BB=E5=8A=A0=E5=95=86=E5=93=81=20=E6=94=AF?=
=?UTF-8?q?=E6=8C=81=E7=BB=91=E5=AE=9A=E7=9C=81=E5=85=AC=E5=8F=B8=E5=8F=91?=
=?UTF-8?q?=E8=B5=B7=E4=BA=BA=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/product/addProduct/index.vue | 29 +++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
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) => {});
}
+
+
+
}
};
+