添加:总平台添加商品 支持绑定省公司发起人信息

This commit is contained in:
wuhui_zzw 2024-04-17 11:17:52 +08:00
parent c90b1f57df
commit 669342ab3b
1 changed files with 28 additions and 1 deletions

View File

@ -943,6 +943,12 @@
</el-checkbox-group>
</el-form-item>
</el-col>
<!--代理商 分润-->
<el-form-item label="省公司发起人:">
<el-select v-model="formValidate.agent_two_ids" placeholder="请选择" class="selWidth" multiple>
<el-option v-for="item in agent_list" :key="item.id" :label="item.contact_name" :value="String(item.id)" />
</el-select>
</el-form-item>
<!--酒水卡额度 菜卡额度-->
<el-col :span="24">
<el-form-item label="是否赠送酒卡额度:">
@ -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) => {});
}
}
};
</script>
<style scoped lang="scss">
.bg {
z-index: 100;