| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <!-- <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="地址" prop="address"> |
| | | <el-input |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-row> --> |
| | | </div> |
| | | <!-- 备注信息 --> |
| | | <div v-if="isUnflod" class="basic-info-title">备注信息</div> |
| | |
| | | return { |
| | | visible: false, |
| | | title: "新建", |
| | | infomation: { |
| | | name: "", |
| | | number: "LEA50", |
| | | contact_name: "", |
| | | contact_position: "", |
| | | contact_phone: "", |
| | | businessStatus: "", |
| | | sales_sources_id: "", |
| | | member_id: "", |
| | | country_id: "", |
| | | province_id: "", |
| | | city_id: "", |
| | | region_id: "", |
| | | address: "", |
| | | desc: "", |
| | | id: "" |
| | | } |
| | | infomation: {} |
| | | } |
| | | } |
| | | } |
| | |
| | | sales_sources_id: [{ required: true, message: "请选择商机来源", trigger: "change" }] |
| | | }, |
| | | businessSourceOptions: [], |
| | | ownerOptions: [ |
| | | { value: "1", label: "BOSS" }, |
| | | { value: "2", label: "Mia" }, |
| | | { value: "3", label: "财务" }, |
| | | { value: "4", label: "市场" }, |
| | | { value: "5", label: "系统管理员" }, |
| | | { value: "6", label: "销售" }, |
| | | { value: "7", label: "销售总监" } |
| | | ], |
| | | ownerOptions: [], |
| | | countryOptions: [], // 国家 |
| | | provinceOptions: [], // 省份 |
| | | cityOptions: [], // 城市 |
| | |
| | | created() { |
| | | this.getCommonData() |
| | | }, |
| | | mounted() { |
| | | this.setData() |
| | | }, |
| | | methods: { |
| | | getCommonData() { |
| | | getAllData() |
| | |
| | | this.provinceOptions = res.data.province |
| | | this.cityOptions = res.data.city |
| | | this.regionOptions = res.data.region |
| | | this.ownerOptions = res.data.member |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err) |
| | |
| | | }, |
| | | // 编辑下拉框 |
| | | editDropdownBox() { |
| | | console.log("aaa") |
| | | this.editDropdownConfig.editVisible = true |
| | | this.editDropdownConfig.title = "商机来源" |
| | | }, |
| | | // 数据处理 |
| | | setData() { |
| | | this.editConfig.infomation.city_id = |
| | | this.editConfig.infomation.city_id === 0 ? "" : this.editConfig.infomation.city_id |
| | | this.editConfig.infomation.member_id = |
| | | this.editConfig.infomation.member_id === 0 ? "" : this.editConfig.infomation.member_id |
| | | this.editConfig.infomation.province_id = |
| | | this.editConfig.infomation.province_id === 0 ? "" : this.editConfig.infomation.province_id |
| | | this.editConfig.infomation.region_id = |
| | | this.editConfig.infomation.region_id === 0 ? "" : this.editConfig.infomation.region_id |
| | | this.editConfig.infomation.country_id = |
| | | this.editConfig.infomation.country_id === 0 ? "" : this.editConfig.infomation.country_id |
| | | } |
| | | } |
| | | } |