jiangping
2024-06-20 49c7ea314c2070a2090fee2c77acbd21435f0455
company/src/components/enterprise/factoryChange.vue
@@ -166,7 +166,7 @@
        <!--    详单    -->
        <ApplyChangeUnitDetails1 ref="ApplyChangeUnitDetails1" @success="success" />
        <!-- 更新派遣单位详情 -->
        <OperaApplyChangeUnitDetailWindow ref="OperaApplyChangeUnitDetailWindow" />
<!--        <OperaApplyChangeUnitDetailWindow ref="OperaApplyChangeUnitDetailWindow" />-->
    </GlobalWindow>
</template>
@@ -178,7 +178,7 @@
    import importEmployees from '@/components/enterprise/importEmployees'
    import confirmJobType from '@/components/enterprise/confirmJobType'
    import ApplyChangeUnitDetails1 from '@/components/business/ApplyChangeUnitDetails1'
    import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow'
// import OperaApplyChangeUnitDetailWindow from '@/components/business/OperaApplyChangeUnitDetailWindow'
    import { all } from '@/api/business/solutions'
    import { getDetail, findList } from '@/api/business/insuranceApply'
    import { create } from '@/api/business/applyChange'
@@ -186,7 +186,15 @@
    export default {
        name: 'factoryChange',
        extends: BaseOpera,
        components: { GlobalWindow, OperaApplyChangeUnitDetailWindow, selectEmployees, addEmployee, importEmployees, confirmJobType, ApplyChangeUnitDetails1 },
  components: {
    GlobalWindow,
    // OperaApplyChangeUnitDetailWindow,
    selectEmployees,
    addEmployee,
    importEmployees,
    confirmJobType,
    ApplyChangeUnitDetails1
  },
        data () {
            return {
                form: {
@@ -260,9 +268,9 @@
                    type: 1
                }).then(res => {
                    this.visible = false
                    this.$refs.OperaApplyChangeUnitDetailWindow.open('更换派遣单位详情', { applyId: this.form.id, id: res })
        // this.$refs.OperaApplyChangeUnitDetailWindow.open('更换派遣单位详情', { applyId: this.form.id, id: res })
                    this.$tip.apiSuccess('操作成功')
                    // this.$emit('success')
        this.$emit('success',{ applyId: this.form.id, id: res })
                }).catch(e => {
                    this.$tip.apiFailed(e)
                }).finally(() => {
@@ -316,7 +324,7 @@
                                    }
                                }
                            }
                        };
          }
                        this.changeSolution1(res.solutionId)
                    })
            },
@@ -424,7 +432,7 @@
                    })
                })
                this.seleData = []
                this.$refs.multipleTable.clearSelection();
      this.$refs.multipleTable.clearSelection()
            },
            // 选择员工
            sele() {
@@ -474,7 +482,7 @@
            },
            // 选取员工
            getValue1 (list) {
                let arr = JSON.parse(JSON.stringify(list))
      const arr = JSON.parse(JSON.stringify(list))
                arr.forEach(item => {
                    item.oldDuId = item.duId
@@ -500,7 +508,7 @@
                this.form.factory.push(...arr)
            },
            getValue(list) {
                let arr = JSON.parse(JSON.stringify(list))
      const arr = JSON.parse(JSON.stringify(list))
                arr.forEach(item => {
                    item.oldDuId = item.duId