销售 报价单目前是查询的对应的客户下的报价单,没有依赖于销售机会,修改为报价单依赖于选择的销售机会的查询
3个文件已修改
29 ■■■■■ 已修改文件
src/components/makepager/TableCommonView.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/other/commonDialog/SelectCommonDialog.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesDetails/AddSalesDetailsDialog.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/TableCommonView.vue
@@ -7,6 +7,7 @@
      :data="tableList.tableInfomation"
      tooltip-effect="dark"
      :height="'calc(100% - 0px)'"
      :max-height="tableList.maxHeight"
      style="width: 100%"
      :lazy="tableList.lazy"
      :show-summary="showSummary.show"
src/views/other/commonDialog/SelectCommonDialog.vue
@@ -29,6 +29,7 @@
          </div>
        </div>
        <TableCommonView
        class="bg-list"
          ref="tableListRef"
          :table-list="tableList"
          :select-box="editCommonConfig.isSelectBox"
@@ -74,6 +75,7 @@
          isSelectBox:false,
          title: "",
          clientId: 0,
          isRequest:true,
          client_name: "",
          tableInfomation: []
        }
@@ -175,6 +177,7 @@
        this.showCol = ["报价单号", "销售负责人"]
        this.tableList = {
          selectIndex: true,
          tableInfomation: [],
          allcol: [],
          showcol: this.showCol,
@@ -347,6 +350,16 @@
    },
    // 报价单
    async getQuotationList() {
      if(!this.editConfig.isRequest){
        this.tableList.tableInfomation =this.editConfig.tableInfomation.map((item) => {
              return {
                ...item,
                member_name: item.member.username
              }
            })
        this.pagerOptions.totalCount =this.editConfig.count?this.editConfig.count:0
        return true;
      }
      await getQuotationList({
        search_map: this.search_map,
        page: this.pagerOptions.currPage,
@@ -552,6 +565,9 @@
<style lang="scss" scoped>
.bg-view {
  margin: 10px;
  .bg-list{
    min-height:370px;
    }
  .query-bg {
    margin-left: -20px;
    margin-bottom: 10px;
@@ -563,6 +579,7 @@
        width: 100px;
      }
    }
    .btn {
      float: right;
    }
src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -107,7 +107,7 @@
                      :disabled="isNameChanceEdit || isView"
                    ></el-autocomplete>
                    <div
                      v-if="!isNameChanceEdit && !isView"
                      v-if="!isNameChanceEdit && !isView&&editConfig.infomation.client_name"
                      class="common-select-btn"
                      @click="selClientClick('chance')"
                    >
@@ -178,7 +178,7 @@
                      :disabled="isAddQuatation || isView"
                    ></el-autocomplete>
                    <div
                      v-if="!isAddQuatation && !isView"
                      v-if="!isAddQuatation && !isView&&editConfig.infomation.sale_chance_name"
                      class="common-select-btn"
                      @click="selClientClick('quotation')"
                    >
@@ -787,6 +787,7 @@
        if (res.code == 200) {
          console.log(res)
          this.quotationList = res.data.list
          this.count=res.data.count;
          if (value === "全部产品") {
            // this.quotationList.map((item) => {
              // if (item.id === this.editConfig.infomation.quotationId) {
@@ -814,11 +815,15 @@
        restaurants = this.clientList
        console.log(restaurants, "客户单")
      } else if (value === "chance") {
        if(this.editConfig.infomation.client_name){
        restaurants = this.saleChancelist
        }
      } else if (value === "subbill") {
        restaurants = this.subOrderList
      } else if (value === "quotation") {
        if(this.editConfig.infomation.sale_chance_name){
        restaurants = this.quotationList
        }
      }
      var results = queryString ? restaurants.filter(this.createStateFilter(queryString, value)) : restaurants
      cb(results)
@@ -896,6 +901,8 @@
        this.editSelCommonConfig.title = "报价单"
        this.editSelCommonConfig.editVisible = true
        this.editSelCommonConfig.clientId = this.clientId
        this.editSelCommonConfig.isRequest = false
        this.editSelCommonConfig.count=this.count
        this.editSelCommonConfig.tableInfomation = [...this.quotationList]
      }
    },