leo
2021-11-19 3251339253861cb9da9b8044d54aeaa77dfd44aa
客户预警增强逻辑20211119FX
1个文件已修改
231 ■■■■ 已修改文件
src/view/enterpriseControl/offSiteCheck.vue 231 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/enterpriseControl/offSiteCheck.vue
@@ -1097,7 +1097,7 @@
              <TabPane label="变更信息" name="tab1"></TabPane>
              <TabPane label="变更后信息" name="tab2"></TabPane>
            </Tabs>
            <div class="clearfix duiwaitouzitab1class" v-if="duiwaitouzitab==='tab1'" style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div class="clearfix duiwaitouzitab1class" v-if="duiwaitouzitab==='tab1'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <Table :data="ECIInvestmentList"
                     :columns="ECIInvestmentListColumnstab2"
                     border>
@@ -1124,7 +1124,7 @@
<!--                    @on-change="changeECIInvestmentListPageIndex1"-->
<!--                    show-elevator style="float: right;margin-top: 12px;"/>-->
            </div>
            <div class="clearfix duiwaitouzitab2class alltab2class" v-if="duiwaitouzitab==='tab2'" style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div class="clearfix duiwaitouzitab2class alltab2class" v-if="duiwaitouzitab==='tab2'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <Table :data="ECIInvestmentList"
                     :columns="ECIInvestmentListColumns"
                     border>
@@ -1147,7 +1147,7 @@
              <TabPane label="变更信息" name="tab1"></TabPane>
              <TabPane label="变更后信息" name="tab2"></TabPane>
            </Tabs>
            <div  style="max-height:450px;overflow-y:auto;margin-top: 12px" v-show="fenzhijiegoutab==='tab1'">
            <div  style="max-height:360px;overflow-y:auto;margin-top: 12px" v-show="fenzhijiegoutab==='tab1'">
              <div class="clearfix kongzhiqiyetab1table">
                <Table :data="ECIBranchList"
                       :columns="ECIBranchListColumnstab1"
@@ -1170,7 +1170,7 @@
<!--                      show-elevator style="float: right;margin-top: 12px;"/>-->
              </div>
            </div>
            <div  style="max-height:450px;overflow-y:auto;margin-top: 12px" v-show="fenzhijiegoutab==='tab2'">
            <div  style="max-height:360px;overflow-y:auto;margin-top: 12px" v-show="fenzhijiegoutab==='tab2'">
              <div class="clearfix kongzhiqiyetab1table alltab2class">
                <Table :data="ECIBranchList"
                       :columns="ECIBranchListColumns"
@@ -1189,7 +1189,7 @@
              <TabPane label="变更信息" name="tab1"></TabPane>
              <TabPane label="变更后信息" name="tab2"></TabPane>
            </Tabs>
            <div v-show="kongzhiqiyetab=='tab1'" style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div v-show="kongzhiqiyetab=='tab1'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix kongzhiqiyetab1table">
                <Table :data="HoldingCompanyList"
                       :columns="HoldingCompanyListColumnstab1"
@@ -1248,7 +1248,7 @@
<!--                      show-elevator style="float: right;margin-top: 12px;"/>-->
              </div>
            </div>
            <div v-show="kongzhiqiyetab=='tab2'" style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div v-show="kongzhiqiyetab=='tab2'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix kongzhiqiyetab2Content alltab2class">
                <Table :data="HoldingCompanyList"
                       :columns="HoldingCompanyListColumns"
@@ -1286,7 +1286,7 @@
              <TabPane label="变更信息" name="tab1"></TabPane>
              <TabPane label="变更后信息" name="tab2"></TabPane>
            </Tabs>
            <div  v-show="zonggongsitab==='tab1'" style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div  v-show="zonggongsitab==='tab1'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix kongzhiqiyetab1Content">
                <Table :data="ECIParentInfo"
                       :columns="ECIParentInfoColumnstab1"
@@ -1304,7 +1304,7 @@
                </Table>
              </div>
            </div>
            <div v-show="zonggongsitab==='tab2'" style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div v-show="zonggongsitab==='tab2'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix kongzhiqiyetab1Content alltab2class">
                <Table :data="ECIParentInfo"
                       :columns="ECIParentInfoColumns"
@@ -2527,7 +2527,7 @@
              <TabPane label="变更信息" name="tab1"></TabPane>
              <TabPane label="变更后信息" name="tab2"></TabPane>
            </Tabs>
            <div v-show="wangzhanxinxi==='tab1'" style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div v-show="wangzhanxinxi==='tab1'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix">
                <Table :data="companyWebSite2"
                       :columns="companyWebSiteColumns2"
@@ -2557,7 +2557,7 @@
<!--                      show-elevator style="float: right;margin-top: 12px;"/>-->
              </div>
            </div>
            <div v-show="wangzhanxinxi==='tab2'" style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div v-show="wangzhanxinxi==='tab2'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix">
                <Table :data="companyWebSite"
                       :columns="companyWebSiteColumns"
@@ -2583,7 +2583,7 @@
              <TabPane label="变更信息" name="tab1"></TabPane>
              <TabPane label="变更后信息" name="tab2"></TabPane>
            </Tabs>
            <div style="max-height:450px;overflow-y:auto;margin-top: 12px" v-show="weixingongzhonghao==='tab1'">
            <div style="max-height:360px;overflow-y:auto;margin-top: 12px" v-show="weixingongzhonghao==='tab1'">
              <div class="clearfix kongzhiqiyetab1table">
                <Table :data="publicWeChat2"
                       :columns="publicWeChatColumns2"
@@ -2602,7 +2602,7 @@
                </Table>
              </div>
            </div>
            <div v-show="weixingongzhonghao==='tab2'" style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div v-show="weixingongzhonghao==='tab2'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix kongzhiqiyetab2Content alltab2class">
                <Table :data="publicWeChat"
                       :columns="publicWeChatColumns"
@@ -2628,7 +2628,7 @@
              <TabPane label="变更信息" name="tab1"></TabPane>
              <TabPane label="变更后信息" name="tab2"></TabPane>
            </Tabs>
            <div v-show="weibo==='tab1'"  style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div v-show="weibo==='tab1'"  style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix kongzhiqiyetab1table">
                <Table :data="microblog2"
                       :columns="microblogColumns2"
@@ -2647,7 +2647,7 @@
                </Table>
              </div>
            </div>
            <div v-show="weibo==='tab2'"  style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div v-show="weibo==='tab2'"  style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix  kongzhiqiyetab2Content alltab2class" >
                <Table :data="microblog"
                       :columns="microblogColumns"
@@ -2666,17 +2666,42 @@
            </div>
          </div>
          <div v-show="EventType==='深度信息-经营信息-客户'">
            <div class="clearfix">
              <Table :data="customerList"
                     :columns="customerListColumns"
                     transfer
                     border>
              </Table>
              <Page :current="customerListPageIndex"
                    :total="customerList.length"
                    :page-size="5"
                    @on-change="changeCustomerListPageIndex"
                    show-elevator style="float: right;margin-top: 12px;"/>
            <Tabs v-model="kehu" type="card" @on-click="kehutab">
              <TabPane label="变更信息" name="tab1"></TabPane>
              <TabPane label="变更后信息" name="tab2"></TabPane>
            </Tabs>
            <div v-show="kehu==='tab1'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix  kongzhiqiyetab1table">
                <Table :data="customerList2"
                       :columns="customerListColumns2"
                       transfer
                       border>
                  <template slot="changeContent" slot-scope="{row,index}">
                    <div class="clearfix fenzhiul" style="text-align: left">
                      <ul v-show="row.arr===0">
                        <li v-for="item in row.Content" style="padding: 0 8px;" v-html="item"></li>
                      </ul>
                      <div v-show="row.arr===1" style="padding: 0 8px;text-align:left">
                        {{row.Content}}
                      </div>
                    </div>
                  </template>
                </Table>
              </div>
            </div>
            <div v-show="kehu==='tab2'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix  kongzhiqiyetab2Content alltab2class">
                <Table :data="customerList"
                       :columns="customerListColumns"
                       transfer
                       border>
                </Table>
                <Page :current="customerListPageIndex"
                      :total="customerListItem"
                      :page-size="5"
                      @on-change="changeCustomerListPageIndex"
                      show-elevator style="float: right;margin-top: 12px;"/>
              </div>
            </div>
          </div>
          <div v-show="EventType==='深度信息-经营信息-供应商'">
@@ -2698,7 +2723,7 @@
              <TabPane label="变更信息" name="tab1"></TabPane>
              <TabPane label="变更后信息" name="tab2"></TabPane>
            </Tabs>
            <div v-show="qiyeyewu==='tab1'" style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div v-show="qiyeyewu==='tab1'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix kongzhiqiyetab1table">
                <Table :data="CompanyCompanyProductsList2"
                       :columns="CompanyCompanyProductsListColumns2"
@@ -2717,7 +2742,7 @@
                </Table>
              </div>
            </div>
            <div v-show="qiyeyewu==='tab2'" style="max-height:450px;overflow-y:auto;margin-top: 12px">
            <div v-show="qiyeyewu==='tab2'" style="max-height:360px;overflow-y:auto;margin-top: 12px">
              <div class="clearfix  kongzhiqiyetab2Content alltab2class">
                <Table :data="CompanyCompanyProductsList"
                       :columns="CompanyCompanyProductsListColumns"
@@ -6103,7 +6128,7 @@
            </div>
            <div v-for="(checkTableList,index) in checkTableLists">
              <div v-if="tabsec2===checkTableList.name&&checkTableList.title==='初始登记'" style="height: 430px;overflow-y: auto;margin-top: 12px" class="rentScroll">
                <table style="width: 100%;margin-top: 0px;height: 450px;overflow-y: auto" border="0" cellspacing="0" cellpadding="0">
                <table style="width: 100%;margin-top: 0px;height: 360px;overflow-y: auto" border="0" cellspacing="0" cellpadding="0">
                  <tr class="rentThClass2" style="border-style: none;background: #f2f2f2">
                    <td style="border-top: 1px solid #ccc;border-right: 0px solid #ccc">登记证明编号</td>
                    <td style="border-top: 1px solid #ccc;border-right: 0px solid #ccc">{{checkTableList.RegCerNumber?checkTableList.RegCerNumber:'--'}}</td>
@@ -6206,7 +6231,7 @@
                </table>
              </div>
              <div v-if="tabsec2===checkTableList.name&&checkTableList.title==='变更登记'" class="rentScroll" style="height: 430px;overflow-y: auto;margin-top: 12px">
                <table style="width: 100%;margin-top: 0px;height: 450px;overflow-y: auto;margin-bottom: 12px" border="0" cellspacing="0" cellpadding="0">
                <table style="width: 100%;margin-top: 0px;height: 360px;overflow-y: auto;margin-bottom: 12px" border="0" cellspacing="0" cellpadding="0">
                  <tr class="rentThClass" style="border-style: none;background: #f2f2f2">
                    <td style="border-top: 1px solid #ccc;border-right: 0px solid #ccc">登记证明编号</td>
                    <td style="border-top: 1px solid #ccc;border-right: 0px solid #ccc">{{checkTableList.RegCerNumber?checkTableList.RegCerNumber:'--'}}</td>
@@ -6335,7 +6360,7 @@
                <!--          <div style="margin-bottom: 12px;font-weight: bold">-->
                <!--            展期登记,登记时间:{{checkTableList.RegistrationDate}}-->
                <!--          </div>-->
                <table style="width: 100%;margin-top: 0px;height: 450px;overflow-y: auto;margin-bottom: 12px" border="0" cellspacing="0" cellpadding="0">
                <table style="width: 100%;margin-top: 0px;height: 360px;overflow-y: auto;margin-bottom: 12px" border="0" cellspacing="0" cellpadding="0">
                  <tr class="rentThClass" style="border-style: none;background: #f2f2f2">
                    <td style="border-top: 1px solid #ccc;border-right: 0px solid #ccc">登记证明编号</td>
                    <td style="border-top: 1px solid #ccc;border-right: 0px solid #ccc">{{checkTableList.RegCerNumber?checkTableList.RegCerNumber:'--'}}</td>
@@ -6438,7 +6463,7 @@
                </table>
              </div>
              <div v-show="tabsec2===checkTableList.name&&checkTableList.title==='注销登记'" style="height: 430px;overflow-y: auto;margin-top: 12px" class="rentScroll">
                <table style="width: 100%;margin-top: 0px;height: 450px;overflow-y: auto" border="0" cellspacing="0" cellpadding="0">
                <table style="width: 100%;margin-top: 0px;height: 360px;overflow-y: auto" border="0" cellspacing="0" cellpadding="0">
                  <tr class="rentThClass" style="border-style: none;background: #f2f2f2">
                    <td style="border-top: 1px solid #ccc;border-right: 0px solid #ccc">登记证明编号</td>
                    <td style="border-top: 1px solid #ccc;border-right: 0px solid #ccc">{{checkTableList.RegCerNumber?checkTableList.RegCerNumber:'--'}}</td>
@@ -6884,7 +6909,10 @@
      microblog2Item:0,
      CompanyCompanyProductsList2:[],
      CompanyCompanyProductsListitem:0,
      qiyeyewu:'tab1'
      qiyeyewu:'tab1',
      customerList2:[],
      kehu:'tab1',
      customerListItem:0
    }
  },
  watch: {
@@ -6909,6 +6937,45 @@
    this.Btn_year('4')
  },
  methods: {
    kehutab(){
      if( this.kehu==='tab1'){
        this.loading_go=true
        this.getkehu(this.annualReportDetails)
      }else{
        this.GetCustomerList ()
      }
    },
    /**
     * 获取客户
     */
    GetCustomerList () {
      this.customerList = []
      let data = {
        name:this.annualReportDetails[0].CompanyName,
        pageSize: 5,
        pageIndex: this.customerListPageIndex
      }
      this.loading_go = true
      axios.request({
        url: '/QiChaCha/GetCustomerList',
        data,
        method: 'post'
      }).then(res => {
        if (res.data.Check) {
          this.customerList = res.data.Data.Items
          this.customerListItem = res.data.Data.TotalItems
        } else {
          this.customerList = []
          this.customerListPageIndex = 1
          this.customerListItem = 0
          this.nothingData=true
        }
        this.loading_go=false
      }, res => {
        this.nothingData=false
        this.loading_go=false
      })
    },
    qiyeyewutab(){
      if( this.qiyeyewu==='tab1'){
        this.loading_go=true
@@ -7661,7 +7728,7 @@
     */
    changeCustomerListPageIndex (page) {
      this.customerListPageIndex = page
      this.customerList=this.annualReportDetails.slice((this.customerListPageIndex- 1) * 5, this.customerListPageIndex* 5)
      this.GetCustomerList()
    },
    /**
     * 微博翻页
@@ -8681,13 +8748,16 @@
            this.getweibo(this.annualReportDetails)
          }else if(this.EventType==='深度信息-经营信息-客户'){
            this.tab1PopModal=true
            if(this.annualReportDetails){
              this.customerList=this.annualReportDetails.slice((this.customerListPageIndex- 1) * 5, this.customerListPageIndex* 5)
            }else{
              this.customerList=[]
            }
            // if(this.annualReportDetails){
            //   this.customerList=this.annualReportDetails.slice((this.customerListPageIndex- 1) * 5, this.customerListPageIndex* 5)
            // }else{
            //   this.customerList=[]
            // }
            this.nothingData=false
            this.loading_go=false
            this.loading_go=true
            this.kehu='tab1'
            this.annualReportDetails[0].Id=params.row.Id
            this.getkehu(this.annualReportDetails)
          }else if(this.EventType==='深度信息-经营信息-供应商'){
            this.tab1PopModal=true
            if(this.annualReportDetails){
@@ -9406,6 +9476,59 @@
        this.loading_go=false
      })
    },
    /**
     * 获取客户数据tab1
     *
     * **/
    getkehu(params){
      this.loading_go=true
      this.customerList2=[]
      let a=[]
      let data = {
        Id:params[0].Id,
        EventType:'深度信息-经营信息-客户',
        TABId:1,
      }
      axios.request({
        url: '/ComSiteSup/GetComDynamicDetail',
        data,
        method: 'post'
      }).then(res => {
        if (res.data.Check) {
          a=JSON.parse(res.data.Data.Detail)
          if(a){
            a.forEach((val,index)=>{
              if(val.Content.indexOf(';')>0){
                val.Content=val.Content.split(";")
                val.arr=0
              }else if(val.Content.indexOf(';')>0){
                val.Content=val.Content.split(";")
                val.arr=0
              }else{
                val.arr=1
              }
            })
            this.customerList2=a
          }else{
            this.customerList2=a
          }
          this.nothingData=false
        } else {
          this.customerList2 = []
          this.nothingData=true
        }
        this.loading_go=false
      }, res => {
        this.customerList2 = []
        this.nothingData=true
        this.nothingData=true
        this.loading_go=false
      })
    },
    /**
     * 获取总公司数据tab1
     *
     * **/
    getkzonggongsi(params){
      console.log(params)
      this.ECIParentInfo=[]
@@ -11479,6 +11602,36 @@
      })
      return columns
    },
    customerListColumns2 (){
      let columns = []
      columns.push({
        title: '序号',
        width: 90,
        align: 'center',
        render: (h, params) => {
          return h(
            'span',
            params.index+1
          )
        }
      })
      columns.push({
        title: '变更类型',
        key: 'Type',
        minWidth:180,
        maxWidth:190,
        align: 'center',
      })
      columns.push({
        title: '变更内容',
        key: 'Content',
        minWidth: 200,
        align: 'center',
        slot:"changeContent"
      })
      return columns
    },
    customerListColumns () { // 客户
      let columns = []
      columns.push({