yangfeng
2023-08-14 28e0aa1d40bff8985ac3e662d3a7726594d919c3
src/views/sales/salesOpportunity/index.vue
@@ -141,7 +141,7 @@
          { label: "客户名称", prop: "client_name", min: 90, isClientClick: true }, // 客户名称
          { label: "销售机会编号", prop: "number" }, // 销售机会编号
          { label: "联系人姓名", prop: "contact_name", min: 100, isContactClick: true }, // 联系人姓名
          { label: "销售阶段", prop: "sale_stage" }, // 销售阶段
          { label: "销售阶段", prop: "sale_stage_name" }, // 销售阶段
          { label: "可能性(%)", prop: "possibilities" }, // 可能性
          { label: "预计成交日期", prop: "expected_time", isTime: true, min: 130 }, // 预计成交日期
          { label: "预计合同金额", prop: "projected_amount" }, // 预计合同金额
@@ -172,7 +172,8 @@
                return {
                  ...item,
                  client_name: item.client.name,
                  contact_name: item.contact.name
                  contact_name: item.contact.name,
                  sale_stage_name: item.sale_stage.name
                }
              })
              this.tableList.tableInfomation = list || []
@@ -207,7 +208,7 @@
    addBtnClick() {
      this.editConfig.visible = true
      this.editConfig.title = "新建"
      this.editConfig.infomation = {}
      this.editConfig.infomation = { city_id: 0 }
    },
    // 编辑
    handleClick(row) {
@@ -218,24 +219,6 @@
    },
    // 删除
    delClick() {
      // this.$confirm("是否确认删除?", "警告", {
      //   confirmButtonText: "确定",
      //   cancelButtonText: "取消",
      //   type: "warning"
      // })
      //   .then(function () {
      //     return getDelSaleChance({ id: id })
      //   })
      //   .then((response) => {
      //     if (response.code === 200) {
      //       this.$message.success("删除成功")
      //       this.getData()
      //     } else {
      //       this.$message.warning("删除失败")
      //     }
      //   })
      //   .catch(function () {})
      if (this.selValueList && this.selValueList.length > 0) {
        this.$confirm("是否确认删除?", "警告", {
          confirmButtonText: "确定",