jiangping
2024-05-07 529d0b8982cf30f57ba7e366c0f822c1d82c0b69
company/src/components/enterprise/factoryChange.vue
@@ -2,7 +2,7 @@
    <GlobalWindow
        :title="title"
        width="100%"
        text="投保申请"
        text="批改申请"
        :visible.sync="visible"
        :confirm-working="isWorking"
        @confirm="confirm"
@@ -156,6 +156,8 @@
        <confirmJobType ref="confirmJobType" @result="getUser" />
        <!--    详单    -->
        <ApplyChangeUnitDetails1 ref="ApplyChangeUnitDetails1" @success="success" />
        <!-- 更新派遣单位详情 -->
        <OperaApplyChangeUnitDetailWindow ref="OperaApplyChangeUnitDetailWindow" />
    </GlobalWindow>
</template>
@@ -167,6 +169,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 { all } from '@/api/business/solutions'
    import { getDetail, findList } from '@/api/business/insuranceApply'
    import { create } from '@/api/business/applyChange'
@@ -174,7 +177,7 @@
    export default {
        name: 'factoryChange',
        extends: BaseOpera,
        components: { GlobalWindow, selectEmployees, addEmployee, importEmployees, confirmJobType, ApplyChangeUnitDetails1 },
        components: { GlobalWindow, OperaApplyChangeUnitDetailWindow, selectEmployees, addEmployee, importEmployees, confirmJobType, ApplyChangeUnitDetails1 },
        data () {
            return {
                form: {
@@ -246,10 +249,11 @@
                    changeDetailList: this.form.factory,
                    validTime: this.form.applyStartTime,
                    type: 1
                }).then(() => {
                }).then(res => {
                    this.visible = false
                    this.$refs.OperaApplyChangeUnitDetailWindow.open('更换派遣单位详情', { applyId: this.form.id, id: res })
                    this.$tip.apiSuccess('操作成功')
                    this.$emit('success')
                    // this.$emit('success')
                }).catch(e => {
                    this.$tip.apiFailed(e)
                }).finally(() => {