MrShi
2024-02-26 90e8215dddc36944c2300a47e8f106791214fe7b
company/src/components/enterprise/OperaInsuranceApplyWindow.vue
@@ -163,6 +163,7 @@
          applyStartTime: '',
          applyEndTime: ''
      },
      type: '',
      pickerOptions: {}, // 存放picker options的变量
      price: '',
      company: [],
@@ -192,6 +193,9 @@
          this.tableData = []
          this.form.id = null
          this.item = null
          if (target.type) {
              this.type = target.type
          }
          this.form.solutionId = ''
          this.form.applyStartTime = ''
          this.form.applyEndTime = ''
@@ -216,8 +220,15 @@
            findList({ applyId: this.form.id })
                .then(res => {
                    res.forEach(item => {
                        console.log(item)
                        item.idCard = item.idcardNo
                        item.fee = ''
                        if (this.type === 1) {
                            item.duName = ''
                            item.duId = ''
                            item.worktypeId = ''
                            item.workTypeName = ''
                        }
                    })
                    this.tableData = res
                })
@@ -252,7 +263,7 @@
            }
            this.seleData.forEach(item => {
                this.tableData.forEach((row, index) => {
                    if (item === row.name) {
                    if (item === row.idCard) {
                        this.tableData.splice(index, 1)
                    }
                })
@@ -427,7 +438,7 @@
      getUser(obj) {
          this.seleData.forEach(id => {
              this.tableData.forEach(row => {
                   if (id === row.id) {
                   if (id === row.idCard) {
                       row.workTypeName = obj.workTypeName
                       row.worktypeId = obj.worktypeId
                       row.duName = obj.duName
@@ -482,7 +493,7 @@
          return sexAndAge.age
      },
      handleSelectionChange (e) {
          this.seleData = e.map(item => item.id)
          this.seleData = e.map(item => item.idCard)
      },
      getValue(list) {
          this.tableData.push(...list)