MrShi
2024-01-30 3db567c3f22fd2513f6eeac314e509b4abcd6c8b
company/src/components/enterprise/selectEmployees.vue
@@ -54,6 +54,8 @@
                val: '',
                list: [],
                price: '',
                insuranceApplyId: '',
                notInInsuranceApplyId: '',
                seleData: [],
                oldList: []
            }
@@ -66,8 +68,17 @@
        },
        methods: {
            open (title, obj) {
                this.insuranceApplyId = ''
                this.notInInsuranceApplyId = ''
                this.price = obj.price
                this.oldList = obj.arr
                this.list = []
                if (obj.insuranceApplyId) {
                    this.insuranceApplyId = obj.insuranceApplyId
                }
                if (obj.notInInsuranceApplyId) {
                    this.notInInsuranceApplyId = obj.notInInsuranceApplyId
                }
                this.title = title
                this.visible = true
                this.getList()
@@ -88,10 +99,13 @@
                this.seleData.forEach(item => {
                    item.idCard = item.idcardNo
                    item.memberName = item.name
                    item.memberId = item.id
                    if (this.notInInsuranceApplyId) {
                    item.workTypeName = ''
                    item.worktypeId = ''
                    item.duId = ''
                    item.duName = ''
                    }
                    item.fee = this.price
                })
                this.$emit('result', this.seleData)
@@ -102,7 +116,9 @@
            },
            getList() {
                findListByDTO({
                    name: this.val
                    name: this.val,
                    insuranceApplyId: this.insuranceApplyId,
                    notInInsuranceApplyId: this.notInInsuranceApplyId
                }).then(res => {
                    res.forEach(item => {
                        item.fee = ''