zuozhengqing
2023-10-16 270f3ed6ad6e1b8770ec61afbb49ae865c6533c6
src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -385,6 +385,9 @@
import SelectChanceDialog from "@/views/other/commonDialog/SelectChanceDialog"
import AddCollectionPlan from "@/views/other/payment/collectionPlan/AddCollectionPlan"
import codeMixin from "@/views/client/followupRecords/mixin/codeMixin"
import { getSaleChanceList} from "@/api/sales/salesOpportunity"
import {mapActions} from "vuex"
export default {
  name: "AddSalesDetailsDialog",
  mixins: [codeMixin],
@@ -479,6 +482,7 @@
    }
  },
  methods: {
    ...mapActions(["getChanceFilter"]),
    formInfo() {
      this.objCode.type = "销售明细编码"
      this.objCode.codeStandID = ""
@@ -609,10 +613,16 @@
        return state.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0
      }
    },
    handleSelectClient(value, item) {
    async handleSelectClient(value, item) {
      if (value === "client") {
        this.clientId = item.id
        this.editConfig.infomation.client_name = item.name
        // 需要修改
        await getSaleChanceList({
          client_id:this.clientId
        }).then((res)=>{
          this.getChanceFilter(res.data.list)
        })
      } else if (value === "chance") {
        this.saleChanceId = item.id
        this.editConfig.infomation.client_name = item.name