yangfeng
2023-07-26 88e465272d8d6add756eb19764cdb9a59cdf7cf1
src/views/client/salesLead/AddSalesLeadDialog.vue
@@ -172,7 +172,7 @@
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
            <!-- <el-row>
              <el-col :span="24">
                <el-form-item label="地址" prop="address">
                  <el-input
@@ -183,7 +183,7 @@
                  ></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            </el-row> -->
          </div>
          <!-- 备注信息 -->
          <div v-if="isUnflod" class="basic-info-title">备注信息</div>
@@ -233,23 +233,7 @@
        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: {}
        }
      }
    }
@@ -271,15 +255,7 @@
        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: [], // 城市
@@ -296,6 +272,9 @@
  created() {
    this.getCommonData()
  },
  mounted() {
    this.setData()
  },
  methods: {
    getCommonData() {
      getAllData()
@@ -306,6 +285,7 @@
          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)
@@ -386,9 +366,21 @@
    },
    // 编辑下拉框
    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
    }
  }
}