<!-- @desc:客户跟进  @auth:付斌  @time:2024/1/30 15:15 -->
<template>
  <div class="main-div">
    <!--  按钮区域  -->
    <BaseIndexButtonGroup id="BaseIndexButtonGroup">
      <template #left>
        <BaseIndexButton ref="search" name="search"></BaseIndexButton>
        <BaseIndexButton ref="clear" name="clear"></BaseIndexButton>
        <BaseIndexButton ref="follow" name="follow" :isMustChooseFlag="false"></BaseIndexButton>
        <BaseIndexButton ref="followTask" name="followTask" :isMustChooseFlag="false"></BaseIndexButton>
        <BaseIndexButton ref="reception" name="reception" :isMustChooseFlag="false"></BaseIndexButton>
        <BaseIndexButton ref="measuringStickReceipt" name="measuringStickReceipt"
                         :isMustChooseFlag="false"></BaseIndexButton>
      </template>
    </BaseIndexButtonGroup>

    <!--  查询条件区域  -->
    <div id="search-cond-div" ref="search-cond-div" style="margin-top: 1px;padding: 0">
      <SearchCond ref="searchCond" v-model="searchCond"
                  @collapse-change="collapseChange" :setFlag="false"
                  :search-content="searchContent"></SearchCond>
    </div>
    <!--  table区域  -->
    <card style="padding: 0">
      <DkTabs ref="tab" v-model="tabsModel" :options="tabsOptions" @on-click="clickTab"></DkTabs>
      <DkTable :id="'table-'+$options.name" ref="table-select" :data="tableData"
               :height="this.tableHeight-50" :primaryKey="tabsModel===$t('followTask2')?'planId':'followId'"
               @pageChange="pageSizeChange"
               :page-size="pageInfo.pageSize"
               name="table">
        <DkTableColumn :type="$libaray.checkButtonHasRight('customer-detail')?'link':''" field="customerCode"
                       @on-link="openCustomerMessage"></DkTableColumn>
        <DkTableColumn :type="$libaray.checkButtonHasRight('customer-detail')?'link':''" field="customerName"
                       @on-link="openCustomerMessage"></DkTableColumn>
        <DkTableColumn field="customerPhone"></DkTableColumn>
        <DkTableColumn field="addressFull"></DkTableColumn>
        <DkTableColumn field="contactName"></DkTableColumn>
        <DkTableColumn field="contactPhones"></DkTableColumn>
        <DkTableColumn field="orgName"></DkTableColumn>
        <DkTableColumn field="intentionTagsName"></DkTableColumn>
        <DkTableColumn field="intentionQuantityTag"></DkTableColumn>
        <DkTableColumn field="saleStatusName"></DkTableColumn>
        <DkTableColumn field="customerTagNames"></DkTableColumn>
        <DkTableColumn field="loseReasonName"></DkTableColumn>
        <DkTableColumn field="followTime"></DkTableColumn>
        <DkTableColumn field="followUserName"></DkTableColumn>
        <DkTableColumn field="followData"></DkTableColumn>
        <DkTableColumn field="nextFollowPlan"></DkTableColumn>
        <DkTableColumn field="nextFollowTime"></DkTableColumn>
        <DkTableColumn field="reportUserName"></DkTableColumn>
        <DkTableColumn field="followCount" :digits="0"></DkTableColumn>
        <DkTableColumn field="customerFromName"></DkTableColumn>
        <DkTableColumn field="toiletCountName"></DkTableColumn>
        <DkTableColumn field="fitupTypeName"></DkTableColumn>
        <DkTableColumn field="houseTypeName"></DkTableColumn>
        <DkTableColumn field="fitupStyleName"></DkTableColumn>
        <DkTableColumn field="ageCompositionName"></DkTableColumn>
        <DkTableColumn field="decisionMakerName"></DkTableColumn>
        <DkTableColumn field="remarks"></DkTableColumn>
        <DkTableColumn field="measureRemarks"></DkTableColumn>
        <DkTableColumn field="measureTime"></DkTableColumn>
        <DkTableColumn field="flgAgainMeasure"></DkTableColumn>
        <vxe-column field="measureAnnexCount">
          <template #default="{row}">
            <a @click="showFiles(row)">{{ row.measureAnnexCount }}</a>
          </template>
        </vxe-column>
        <vxe-column fixed="right" type="operate" v-if="tabsModel === $t('followTask2')">
          <template #default="{row}">
            <DkButton @click="finishFollow(row)">
              {{ $v('finish') }}
            </DkButton>
          </template>
        </vxe-column>
      </DkTable>
    </card>

    <!--    接待-->
    <DkModal v-model="receptionModal" :title="$t('reception2')" width="1000px" ref="modal_reception"
             @on-cancel="cancelReception"
             @modalOk="submitReception"
             @modalCancel="cancelReception"
             :saveFlag="true">
      <RadioGroup v-model="receptionType">
        <Radio label="2">{{ $t('receptionNew') }}</Radio>
        <Radio label="1">{{ $t('receptionOld') }}</Radio>
      </RadioGroup>
      <DkCollapse ref="collapse">
        <DkPanel prop="customerInfo">
          <DkForm slot="content" ref="formReception" style="width:100%;" :label-max-words="6">
            <!--客户名称-->
            <DkFormItem prop="customerName" :errorMessage="getErrMessage('customerName')" required>
              <InputPop v-model="customerInfo4.customerName"/>
            </DkFormItem>
            <!--客户电话-->
            <DkFormItem prop="customerPhone" :errorMessage="getErrMessage('customerPhone')" required>
              <InputPop :telephone="true" v-model="customerInfo4.customerPhone" @on-change="changeTel"/>
            </DkFormItem>
            <!--行政区划-->
            <!--              <DkFormItem prop="customerDistrict" :errorMessage="getErrMessage('customerDistrict')">-->
            <!--                &lt;!&ndash; 高德 &ndash;&gt;-->
            <!--                <RegionsChooseAmap v-model="regionData" :options="cityData" ref="RegionsChoose"-->
            <!--                                   :default-value="customerInfo4.addressName"-->
            <!--                                   @on-choose="chooseAddress"></RegionsChooseAmap>-->
            <!--              </DkFormItem>-->
            <!--门牌号-->
            <DkFormItem :label="$t('addressNo')" prop="addressNo" :errorMessage="getErrMessage('addressNo')">
              <InputPop v-model="customerInfo4.addressNo" @input="setAddressFull"/>
            </DkFormItem>
            <!--详细地址-->
            <DkFormItem :label="$t('addressFull2')" prop="addressFull" :errorMessage="getErrMessage('addressFull')">
              <InputPop v-model="customerInfo4.addressFull" readonly/>
            </DkFormItem>
          </DkForm>
        </DkPanel>
        <DkPanel prop="receptionNew">
          <DkForm slot="content" ref="formReceptionNew" style="width:100%;" :label-max-words="6">
            <!--                客户意向-->
            <DkFormItem prop="intention" :errorMessage="getErrMessage('intention')" required>
              <SelectPop v-model="customerInfo4.intention" :options="intentionList.filter((it)=>it.dataName!=='已流失')"
                         :multiple="false" :clearable="false"
                         label-key="dataName" value-key="dataCode" transfer
                         @on-change="(val)=>cleanCompetitiveBrands(val, 'customerInfo4')"/>
            </DkFormItem>
            <!--                竞品品牌-->
            <DkFormItem prop="competitiveBrands" :errorMessage="getErrMessage('competitiveBrands')" required>
              <InputPop v-model="customerInfo4.competitiveBrands" maxlength="100"/>
            </DkFormItem>
            <!--                意向品类-->
            <DkFormItem prop="intentionInfo" :errorMessage="getErrMessage('intentionInfo')">
              <DkRow>
                <Col span="8" v-for="(item, index) of goodsSpecsList" :key="index">
                  <div v-if="!item.otherFlag">
                    <Col span="12">
                      <Checkbox v-model="customerInfo4.intentionInfo[index].value"
                                @on-change="selectIntentionInfo(customerInfo4.intentionInfo[index])"
                      >{{ item.specsName }}
                      </Checkbox>
                    </Col>
                    <Col span="12">
                      <InputNumberPop v-model="customerInfo4.intentionInfo[index].count" style="width: 100px"/>
                    </Col>
                  </div>
                  <div v-else>
                    <Col span="12">
                      <Checkbox v-model="customerInfo4.intentionInfo[index].value"
                                :disabled="!customerInfo4.intentionInfo[index].other">
                      </Checkbox>
                      <Poptip transfer width="500" placement="left">
                        <a>{{ item.specsName }}</a>
                        <div slot="content">
                          <RadioGroup v-model="otherIntentionInfo" @on-change="radioChange('4')">
                            <Col span="6" v-for="(item2, index2) of item.children" :key="index2">
                              <radio :label="item2.specsId">{{ item2.specsName }}</radio>
                            </Col>
                          </RadioGroup>
                        </div>
                      </Poptip>
                    </Col>
                    <Col span="12">
                      <InputNumberPop v-model="customerInfo4.intentionInfo[index].count" style="width: 100px"/>
                    </Col>
                  </div>
                </Col>
              </DkRow>
            </DkFormItem>
            <!--留店时长-->
            <DkFormItem prop="stayTimeLen" :errorMessage="getErrMessage('stayTimeLen')">
              <SelectPop v-model="customerInfo4.stayTimeLen" :options="stayTimeLenList" :multiple="false"
                         :clearable="false"
                         label-key="dataName" value-key="dataCode" transfer/>
            </DkFormItem>
            <!--下次邀约时间（提醒时间）-->
            <DkFormItem prop="nextFollowTime" :errorMessage="getErrMessage('nextFollowTime')">
              <DatePickerPop type="datetime" v-model="customerInfo4.nextFollowTime" transfer
                             format="yyyy-MM-dd HH:mm:ss"/>
            </DkFormItem>
            <!--跟进内容-->
            <DkFormItem prop="followData" :errorMessage="getErrMessage('followData')" required>
              <InputPop textarea-flag v-model="customerInfo4.followData" maxlength="100"/>
            </DkFormItem>
            <!--下次跟进计划-->
            <DkFormItem prop="nextFollowPlan" :errorMessage="getErrMessage('nextFollowPlan')">
              <InputPop textarea-flag v-model="customerInfo4.nextFollowPlan" maxlength="100"/>
            </DkFormItem>
          </DkForm>
        </DkPanel>
      </DkCollapse>
      <Card class="follow-card">
        <p slot="title">
          {{ $t('appendix') }}
        </p>
        <DkPicWall v-model="customerInfo4.annexPaths.annexPaths" folder="t_csm_follow/annex_paths"></DkPicWall>
      </Card>


    </DkModal>
    <!--    量尺回执-->
    <DkModal v-model="measureModal" :title="$t('measuringStickReceipt2')" width="800px" ref="modal_measure"
             @on-cancel="cancelMeasure" @modalOk="submitMeasure"
             @modalCancel="cancelMeasure"
             :saveFlag="true">
      <DkCollapse ref="collapse">
        <DkPanel prop="customerInfo">
          <DkForm slot="content" ref="formMeasure" style="width:100%;" name="dk-form" v-model="customerInfo5">
            <!--客户名称-->
            <DkFormItem prop="customerId" :errorMessage="getErrMessage('customerId')">
              <span>{{ customerInfo.customerName }}</span>
            </DkFormItem>
            <!--客户电话-->
            <DkFormItem prop="customerPhone" :errorMessage="getErrMessage('customerPhone')">
              <span>{{ customerInfo.customerPhone }}</span>
            </DkFormItem>
            <!--详细地址-->
            <DkFormItem :label="$t('addressFull2')" prop="addressFull" :errorMessage="getErrMessage('addressFull')">
              <span>{{ customerInfo.addressFull }}</span>
            </DkFormItem>
            <!--门牌号-->
            <DkFormItem :label="$t('addressNo')" prop="addressNo" :errorMessage="getErrMessage('addressNo')">
              <span>{{ customerInfo.addressNo }}</span>
            </DkFormItem>
            <!--导购员-->
            <DkFormItem :label="$t('shoppingGuide')" required>
              {{ $store.state.user.userName }}
            </DkFormItem>
            <!--是否复尺-->
            <DkFormItem prop="flgAgainMeasure" :errorMessage="getErrMessage('flgAgainMeasure')" required>
              <RadioGroup v-model="customerInfo5.flgAgainMeasure">
                <Radio label="true">{{ $t('yes') }}</Radio>
                <Radio label="false">{{ $t('no') }}</Radio>
              </RadioGroup>
            </DkFormItem>
            <!--量尺备注-->
            <DkFormItem prop="measureRemarks" :errorMessage="getErrMessage('measureRemarks')">
              <InputPop textarea-flag v-model="customerInfo5.measureRemarks" maxlength="100"/>
            </DkFormItem>
            <!--量尺时间-->
            <DkFormItem prop="measureTime" :errorMessage="getErrMessage('measureTime')" required>
              <DatePickerPop type="datetime" v-model="customerInfo5.measureTime" transfer/>
            </DkFormItem>
          </DkForm>
        </DkPanel>
        <DkPanel prop="appendix">
          <!--  下拉区域  -->
          <DkForm slot="content" ref="formInline" v-model="formData" style="width: 95%" :labelMaxWords="7">
            <div v-for="(item,index) of customerInfo5.measureAnnex" :key="index">
              <DkFormItem :label="$t('usedLocation2')" prop="usedLocation"
                          :errorMessage="getErrMessage('usedLocation')"
                          required>
                <InputPop v-model="item.usedLocation" maxlength="100"/>
              </DkFormItem>
              <DkPicWall v-model="item.annexPaths" folder="t_csm_follow/measure_annex"></DkPicWall>
              <Button @click="removeNewMeasureAnnex(index)" icon="md-close" long type="error"></Button>
            </div>
            <Button @click="addNewMeasureAnnex" icon="md-add" long style="margin-top: 10px"></Button>
          </DkForm>
        </DkPanel>
      </DkCollapse>
    </DkModal>

    <!--    跟进任务-->
    <FollowTask v-model="followTaskModal" :customer-names="customerInfo6.customerNames"
                :customer-ids="customerInfo6.customerIds" @ok="initData(1)"/>

    <!--    跟进-->
    <Follow v-model="followModal" :goods-specs="goodsSpecsList" :customer-data="customerInfo"
            :goods-specs-list-back-up="goodsSpecsListBackUp" ref="modal_inner_follow"
            :intention-list="intentionList" :invite-result-list="inviteResultList"
            :follow-type-list="followTypeList"></Follow>

    <Modal v-model="filesShow" :title="$t('files')" @on-cancel="currentRow={}">

      <div
        v-if="currentRow && currentRow.annexPaths && currentRow.annexPaths.annexPaths && currentRow.annexPaths.annexPaths.length>0">
        <span>{{ $t('annexPaths') }}</span>
        <DkPicWall v-model="currentRow.annexPaths.annexPaths" only-show></DkPicWall>


      </div>

      <divider v-if="currentRow && currentRow.annexPaths && currentRow.annexPaths.annexPaths &&
        currentRow.annexPaths.annexPaths.length>0 && currentRow.measureAnnex"/>

      <div v-if="currentRow.measureAnnex">
        <span v-if="currentRow.measureAnnex">{{ $t('measureAnnex') }}</span>
        <div v-for="(item, index) of currentRow.measureAnnex" :key="index">
          <Tag style="margin-left: 5px">{{ item.usedLocation }}</Tag>
          <DkPicWall v-model="item.annexPaths" only-show></DkPicWall>
        </div>
      </div>
    </Modal>
  </div>
</template>

<script>
import {indexMixin} from '@/mixins'
import FollowTask from './follow-task'
import Follow from './follow'

export default {
  name: 'customer-follow',
  mixins: [indexMixin],
  components: {
    FollowTask,
    Follow
  },
  data() {
    let self = this
    return {
      cityData: [],
      //当前展示行附件
      currentRow: {},
      // 客户信息
      customerInfo: {},
      customerReadOnly: false,
      // 客户信息 接待
      customerInfo4: {
        customerId: null,
        customerName: '',
        customerPhone: null,
        addressFull: null,
        addressNo: null,
        followData: null,
        nextFollowPlan: null,
        followType: null,
        stayTimeLen: 1,
        nextFollowTime: null,
        intention: null,
        competitiveBrands: null,
        intentionInfo: [],
        annexPaths: {
          annexPaths: []
        },
      },
      // 客户信息 量尺回执
      customerInfo5: {
        followId: null,
        flgAgainMeasure: 'false',
        measureRemarks: null,
        measureTime: new Date(),
        measureAnnex: [{usedLocation: null, annexPaths: []}],
      },
      // 客户信息 跟进任务
      customerInfo6: {
        customerIds: [],
        customerNames: [],
        followUsers: []
      },
      // 错误信息
      errMessage: {},
      //  查看附件
      filesShow: false,
      // 跟进弹窗
      followModal: false,
      // 跟进任务弹窗
      followTaskModal: false,
      // 跟进方式list
      followTypeList: [],
      //  商品规格品类
      goodsSpecsList: [],
      //  商品规格品类备份
      goodsSpecsListBackUp: [],
      // 意向list
      intentionList: [],
      // 邀约结果list
      inviteResultList: [],
      // 量尺回执弹窗
      measureModal: false,
      otherIntentionInfo: null,
      // 接待弹窗
      receptionModal: false,
      // 接待类型 1 留资 2 陌生
      receptionType: '2',
      regionData: [],
      // 接待校验
      rule4: {
        customerName: [
          {required: true, trigger: 'none'},
        ],
        customerPhone: [
          {required: true, trigger: 'none'},
          {
            required: true,
            trigger: 'none',
            max: 11,
            min: 11,
            message: self.$t('W_071', {'param': self.$t('customerPhone')})
          },
        ],
        followData: [
          {required: true, trigger: 'none'},
        ],
        intention: [
          {required: true, trigger: 'none'},
        ],
      },
      // 回执校验
      rule5: {
        flgAgainMeasure: [
          {required: true, trigger: 'none'},
        ],
        measureTime: [
          {required: true, trigger: 'none', type: 'date'},
        ],
      },
      // 客成状态list
      saleStatusList: [],
      // 留店时长list
      stayTimeLenList: [],
      // 查询条件
      searchCond: {},
      //TODO 以后会是动态的所以先做个查询的例子
      searchContent: [
        {
          valueFormat: {code: 'customerCode'},
          valueKind: 'STR'
        },
        {
          valueFormat: {code: 'customerName'},
          valueKind: 'STR'
        },
        {
          valueFormat: {code: 'customerPhone'},
          valueKind: 'STR'
        },
        {
          valueFormat: {code: 'contactName'},
          valueKind: 'STR'
        },
        {
          valueFormat: {code: 'contactPhones'},
          valueKind: 'STR'
        },
        {
          valueFormat: {code: 'followTime'},
          valueKind: 'DATE_RANGE'
        },
        {
          valueFormat: {code: 'nextFollowTime'},
          valueKind: 'DATE_RANGE'
        },
        {
          valueFormat: {code: 'reportUserName'},
          valueKind: 'STR'
        },
        {
          valueFormat: {code: 'followCount'},
          valueKind: 'STR'
        },
        {
          valueFormat: {
            code: 'customerFromList',
            data: [],
            valueKey: 'fromId',
            labelKey: 'fromName',
          },
          valueKind: 'M-CHOICE'
        },
        {
          valueFormat: {
            code: 'customerTags',
            data: [],
            valueKey: 'tagId',
            labelKey: 'tagName',
          },
          valueKind: 'M-CHOICE'
        },
        {
          valueFormat: {
            code: 'intentionTags',
            data: [],
            valueKey: 'dataCode',
            labelKey: 'dataName',
          },
          valueKind: 'M-CHOICE'
        },
        {
          valueFormat: {code: 'intentionQuantity'},
          valueKind: 'STR'
        },
      ],
      tableData: [],
      tabsModel: self.$t('allReceipt'),
      tabsOptions: [
        {label: self.$t('allReceipt'), name: self.$t('allReceipt')},
        {label: self.$t('followTask2'), name: self.$t('followTask2')},
      ],
      pageInfo: {
        total: 0,
        pageSize: 20,
        currentPage: 1
      },
    }
  },
  methods: {
    /**
     * @desc   : 进入客户页面
     * @author : 付斌
     * @date   : 2024-02-01 14:23
     */
    openCustomerMessage(row) {
      if (row['customerId']) {
        this.$router.push('/sale/customer/detail/' + row['customerId'])
      }
    },
    /**
     * @desc   : 添加附件行
     * @author : 付斌
     * @date   : 2024-02-01 14:23
     */
    addNewMeasureAnnex() {
      this.customerInfo5.measureAnnex.push({"usedLocation": null, "annexPaths": null})
    },
    /**
     * @desc   : 关闭接待弹窗
     * @author : 付斌
     * @date   : 2024-02-01 14:23
     */
    cancelReception() {
      this.receptionModal = false
    },
    /**
     * @desc   : checkBox修改意向品类
     * @author : 付斌
     * @date   : 2024-02-01 14:23
     */
    selectIntentionInfo(val) {
      if (val.value) {
        val.count = 1
      } else {
        val.count = 0
      }
    },
    /**
     * @desc   : 取消量尺回执
     * @author : 付斌
     * @date   : 2024-02-01 14:23
     */
    cancelMeasure() {
      this.measureModal = false
      this.$refs['formMeasure'].$refs['dk-form'].resetFields()
      this.customerInfo5.measureAnnex = [{usedLocation: null, annexPaths: null}]
    },
    /**
     * @desc   : 接待输入电话
     * @author : 付斌
     * @date   : 2024-02-01 14:23
     */
    changeTel() {

    },
    /**
     * @desc   : 选择地址
     * @author : 付斌
     * @date   : 2024-02-01 14:23
     */
    chooseAddress(value) {
    },
    /**
     * @desc   : 清除竞争品牌
     * @author : 付斌
     * @date   : 2024-02-01 14:23
     */
    cleanCompetitiveBrands(val, col) {

    },
    /**
     * @desc   : 点击tab
     * @author : 付斌
     * @date   : 2024-02-01 14:24
     */
    clickTab(val) {
      if (val == this.$t('followTask2')) {
        // 仅在跟进任务添加此查询条件
        this.searchContent.push(
          {
            valueFormat: {
              code: 'finishStatus',
              data: [
                {id: 1, name: '完结'},
                {id: 2, name: '逾期'},
                {id: 3, name: '未逾期'},
              ],
              valueKey: 'id',
              labelKey: 'name',
              default: [3]
            },
            valueKind: 'M-CHOICE'
          },
        )
        this.$refs.searchCond.setForm()
      } else {
        this.searchContent.splice(this.searchContent.length - 1, 1)
      }
      this.tabsModel = val
      this.initData(1)
    },
    /**
     * @desc   : 跟进任务完成
     * @author : 付斌
     * @date   : 2024-02-01 14:24
     */
    finishFollow(row) {

    },
    /**
     * @desc   : 完成跟进任务
     * @author : 付斌
     * @date   : 2024-02-01 14:24
     */
    finishFollowPlan(id) {

    },
    /**
     * @desc   : 查询客户来源
     * @author : 付斌
     * @date   : 2024-02-01 14:24
     */
    getCustomerFrom() {

    },
    /**
     * @desc   : 分页
     * @author : 付斌
     * @date   : 2024-02-01 14:24
     */
    pageSizeChange(pageInfo) {

    },
    /**
     * @desc   : 查询事件
     * @author : 付斌
     * @date   : 2024-02-01 14:24
     */
    initData(currentPage) {

    },
    /**
     * @desc   : 打开跟进弹窗
     * @author : 付斌
     * @date   : 2024-02-01 14:24
     */
    follow() {
      this.followModal = true

    },
    /**
     * @desc   : 跟进任务
     * @author : 付斌
     * @date   : 2024-02-01 14:24
     */
    followTask() {
      this.followTaskModal = true
    },
    /**
     * @desc   : 查询数据
     * @author : 付斌
     * @date   : 2024-02-01 14:24
     */
    getData() {

    },
    /**
     * @desc   : 校验
     * @author : 付斌
     * @date   : 2024-02-01 14:25
     */
    getErrMessage(prop) {
      return this.errMessage[prop]
    },
    /**
     * @desc   : 量尺回执
     * @author : 付斌
     * @date   : 2024-02-01 14:25
     */
    measuringStickReceipt() {
      this.measureModal = true
    },
    /**
     * @desc   : 量尺回执客户选中
     * @author : 付斌
     * @date   : 2024-02-01 14:25
     */
    measureCusOk(val) {

    },
    /**
     * @desc   : 意向 其他分类选中事件
     * @author : 付斌
     * @date   : 2024-02-01 14:26
     */
    radioChange(val) {
      let other = this.goodsSpecsList.filter(f => f.otherFlag)
      if (other && other.length > 0) {
        other[0].specsId = this.otherIntentionInfo
        other[0].specsName = other[0].children.filter(f => f.specsId == this.otherIntentionInfo)[0].specsName
      }
      this['customerInfo' + val].intentionInfo[this['customerInfo' + val].intentionInfo.length - 1].specsId = this.otherIntentionInfo
      this['customerInfo' + val].intentionInfo[this['customerInfo' + val].intentionInfo.length - 1].other = true
      this['customerInfo' + val].intentionInfo[this['customerInfo' + val].intentionInfo.length - 1].value = true
    },
    /**
     * @desc   : 打开接待弹窗
     * @author : 付斌
     * @date   : 2024-02-01 14:26
     */
    reception() {
      this.receptionModal = true
      this.customerInfo = {}
    },
    /**
     * @desc   : 移除量尺的附件
     * @author : 付斌
     * @date   : 2024-02-01 14:26
     */
    removeNewMeasureAnnex(index) {
    },
    /**
     * @desc   : 拼写详细地址
     * @author : 付斌
     * @date   : 2024-02-01 14:26
     */
    setAddressFull(e) {

    },
    /**
     * @desc   : 展示附件
     * @author : 付斌
     * @date   : 2024-02-01 14:26
     */
    showFiles(row) {

    },
    /**
     * @desc   : 提交接待
     * @author : 付斌
     * @date   : 2024-02-01 14:26
     */
    submitReception() {

    },
    /**
     * @desc   : 提交量尺回执
     * @author : 付斌
     * @date   : 2024-02-01 14:26
     */
    submitMeasure() {

    },
    /**
     * @desc   : 上传文件
     * @author : 付斌
     * @date   : 2024-02-01 14:26
     */
    uploadFile(response, file, fileList) {

    },
  },
  created() {
    this.primaryKey = 'customerFollowId'  // 设置主键Id
    this.routeObjName = 'customerFollow'  // 设置路由名称
  }
}
</script>
