|
|
@ -2,219 +2,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<el-dialog :title="!dataForm.id ? '新建' :'编辑'"
|
|
|
|
<el-dialog :title="!dataForm.id ? '新建' :'编辑'" :close-on-click-modal="false" append-to-body
|
|
|
|
:close-on-click-modal="false" append-to-body
|
|
|
|
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll width="1000px">
|
|
|
|
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
|
|
|
|
|
|
|
|
width="1000px">
|
|
|
|
|
|
|
|
<el-row :gutter="15" class="">
|
|
|
|
<el-row :gutter="15" class="">
|
|
|
|
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px" label-position="right" >
|
|
|
|
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px"
|
|
|
|
|
|
|
|
label-position="right">
|
|
|
|
<template v-if="!loading">
|
|
|
|
<template v-if="!loading">
|
|
|
|
<!-- 具体表单 -->
|
|
|
|
<!-- 具体表单 -->
|
|
|
|
<el-col :span="24" >
|
|
|
|
<el-col :span="24">
|
|
|
|
<jnpf-form-tip-item>
|
|
|
|
<jnpf-form-tip-item>
|
|
|
|
<JnpfGroupTitle
|
|
|
|
<JnpfGroupTitle content="基础信息" contentPosition="left">
|
|
|
|
content="基础信息" contentPosition="left" >
|
|
|
|
|
|
|
|
</JnpfGroupTitle>
|
|
|
|
</JnpfGroupTitle>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8" >
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="班组编号" prop="teamCode">
|
|
|
|
label="班组编号" prop="teamCode" >
|
|
|
|
|
|
|
|
<JnpfInput v-model="dataForm.teamCode" @change="changeData('teamCode',-1)"
|
|
|
|
<JnpfInput v-model="dataForm.teamCode" @change="changeData('teamCode',-1)"
|
|
|
|
placeholder="系统自动生成" readonly :style='{"width":"100%"}'>
|
|
|
|
placeholder="系统自动生成" readonly :style='{"width":"100%"}'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8" >
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="班组名称" prop="teamName">
|
|
|
|
label="班组名称" prop="teamName" >
|
|
|
|
|
|
|
|
<JnpfInput v-model="dataForm.teamName" @change="changeData('teamName',-1)"
|
|
|
|
<JnpfInput v-model="dataForm.teamName" @change="changeData('teamName',-1)"
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8" >
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="班组简称" prop="teamNm">
|
|
|
|
label="班组简称" prop="teamNm" >
|
|
|
|
|
|
|
|
<JnpfInput v-model="dataForm.teamNm" @change="changeData('teamNm',-1)"
|
|
|
|
<JnpfInput v-model="dataForm.teamNm" @change="changeData('teamNm',-1)"
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8" >
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="类型" prop="type">
|
|
|
|
label="类型" prop="type" >
|
|
|
|
<JnpfSelect v-model="dataForm.type" @change="changeData('type',-1)" placeholder="请选择"
|
|
|
|
<JnpfSelect v-model="dataForm.type" @change="changeData('type',-1)"
|
|
|
|
clearable :style='{"width":"100%"}' :options="typeOptions" :props="typeProps">
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' :options="typeOptions" :props="typeProps" >
|
|
|
|
|
|
|
|
</JnpfSelect>
|
|
|
|
</JnpfSelect>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8" >
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="所属工厂" prop="parentId">
|
|
|
|
label="所属工厂" prop="parentId" >
|
|
|
|
|
|
|
|
<JnpfSelect v-model="dataForm.parentId" @change="changeData('parentId',-1)"
|
|
|
|
<JnpfSelect v-model="dataForm.parentId" @change="changeData('parentId',-1)"
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' :options="parentIdOptions" :props="parentIdProps" >
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' :options="parentIdOptions"
|
|
|
|
|
|
|
|
:props="parentIdProps">
|
|
|
|
</JnpfSelect>
|
|
|
|
</JnpfSelect>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8" >
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="所属车间" prop="parentIds">
|
|
|
|
label="所属车间" prop="parentIds" >
|
|
|
|
|
|
|
|
<JnpfSelect v-model="dataForm.parentIds" @change="changeData('parentIds',-1)"
|
|
|
|
<JnpfSelect v-model="dataForm.parentIds" @change="changeData('parentIds',-1)"
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' :options="parentIdsOptions" :props="parentIdsProps" >
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' :options="parentIdsOptions"
|
|
|
|
|
|
|
|
:props="parentIdsProps">
|
|
|
|
</JnpfSelect>
|
|
|
|
</JnpfSelect>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" >
|
|
|
|
<el-col :span="12">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="班组状态" prop="teamStatus">
|
|
|
|
label="班组状态" prop="teamStatus" >
|
|
|
|
|
|
|
|
<JnpfRadio v-model="dataForm.teamStatus" @change="changeData('teamStatus',-1)"
|
|
|
|
<JnpfRadio v-model="dataForm.teamStatus" @change="changeData('teamStatus',-1)"
|
|
|
|
optionType="default" direction="horizontal" size="medium" :options="teamStatusOptions" :props="teamStatusProps" >
|
|
|
|
optionType="default" direction="horizontal" size="medium"
|
|
|
|
|
|
|
|
:options="teamStatusOptions" :props="teamStatusProps">
|
|
|
|
</JnpfRadio>
|
|
|
|
</JnpfRadio>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="24" >
|
|
|
|
<el-col :span="24">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="描述" prop="remark">
|
|
|
|
label="描述" prop="remark" >
|
|
|
|
|
|
|
|
<JnpfInput v-model="dataForm.remark" @change="changeData('remark',-1)"
|
|
|
|
<JnpfInput v-model="dataForm.remark" @change="changeData('remark',-1)"
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="24" >
|
|
|
|
<el-col :span="24">
|
|
|
|
<jnpf-form-tip-item>
|
|
|
|
<jnpf-form-tip-item>
|
|
|
|
<JnpfGroupTitle
|
|
|
|
<JnpfGroupTitle content="联系人信息" contentPosition="left">
|
|
|
|
content="联系人信息" contentPosition="left" >
|
|
|
|
|
|
|
|
</JnpfGroupTitle>
|
|
|
|
</JnpfGroupTitle>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="24" >
|
|
|
|
<el-col :span="24">
|
|
|
|
<jnpf-form-tip-item label-width="0">
|
|
|
|
<jnpf-form-tip-item label-width="0">
|
|
|
|
<div class="JNPF-common-title">
|
|
|
|
<el-table :data="dataForm.businessContactTeamList" size='mini'>
|
|
|
|
<h2>设计子表</h2>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-table :data="dataForm.businesscontactteamList" size='mini' >
|
|
|
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column label="联系人类型" prop="contactType">
|
|
|
|
label="联系人类型" prop="contactType" >
|
|
|
|
<template slot="header" v-if="true">
|
|
|
|
<template slot="header" v-if="true" >
|
|
|
|
<span class="required-sign">*</span>联系人类型
|
|
|
|
<span class="required-sign" >*</span>联系人类型
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<JnpfSelect v-model="scope.row.contactType" @change="changeData('businesscontactteam-contactType',scope.$index)"
|
|
|
|
<JnpfSelect v-model="scope.row.contactType"
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' :options="businesscontactteamcontactTypeOptions" :props="businesscontactteamcontactTypeProps" >
|
|
|
|
@change="changeData('businesscontactteam-contactType',scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}'
|
|
|
|
|
|
|
|
:options="businesscontactteamcontactTypeOptions"
|
|
|
|
|
|
|
|
:props="businesscontactteamcontactTypeProps">
|
|
|
|
</JnpfSelect>
|
|
|
|
</JnpfSelect>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column label="姓名" prop="name">
|
|
|
|
label="姓名" prop="name" >
|
|
|
|
<template slot="header" v-if="true">
|
|
|
|
<template slot="header" v-if="true" >
|
|
|
|
<span class="required-sign">*</span>姓名
|
|
|
|
<span class="required-sign" >*</span>姓名
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<JnpfInput v-model="scope.row.name" @change="changeData('businesscontactteam-name',scope.$index)"
|
|
|
|
<JnpfInput v-model="scope.row.name"
|
|
|
|
|
|
|
|
@change="changeData('businesscontactteam-name',scope.$index)"
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column label="手机号" prop="phone">
|
|
|
|
label="手机号" prop="phone" >
|
|
|
|
<template slot="header" v-if="true">
|
|
|
|
<template slot="header" v-if="true" >
|
|
|
|
<span class="required-sign">*</span>手机号
|
|
|
|
<span class="required-sign" >*</span>手机号
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<JnpfInput v-model="scope.row.phone" @change="changeData('businesscontactteam-phone',scope.$index)"
|
|
|
|
<JnpfInput v-model="scope.row.phone"
|
|
|
|
|
|
|
|
@change="changeData('businesscontactteam-phone',scope.$index)"
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column label="座机" prop="landline">
|
|
|
|
label="座机" prop="landline" >
|
|
|
|
<template slot="header" v-if="false">
|
|
|
|
<template slot="header" v-if="false" >
|
|
|
|
<span class="required-sign">*</span>座机
|
|
|
|
<span class="required-sign" >*</span>座机
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<JnpfInput v-model="scope.row.landline" @change="changeData('businesscontactteam-landline',scope.$index)"
|
|
|
|
<JnpfInput v-model="scope.row.landline"
|
|
|
|
|
|
|
|
@change="changeData('businesscontactteam-landline',scope.$index)"
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column label="邮箱" prop="email">
|
|
|
|
label="邮箱" prop="email" >
|
|
|
|
<template slot="header" v-if="false">
|
|
|
|
<template slot="header" v-if="false" >
|
|
|
|
<span class="required-sign">*</span>邮箱
|
|
|
|
<span class="required-sign" >*</span>邮箱
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<JnpfInput v-model="scope.row.email" @change="changeData('businesscontactteam-email',scope.$index)"
|
|
|
|
<JnpfInput v-model="scope.row.email"
|
|
|
|
|
|
|
|
@change="changeData('businesscontactteam-email',scope.$index)"
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column label="传真" prop="fax">
|
|
|
|
label="传真" prop="fax" >
|
|
|
|
<template slot="header" v-if="false">
|
|
|
|
<template slot="header" v-if="false" >
|
|
|
|
<span class="required-sign">*</span>传真
|
|
|
|
<span class="required-sign" >*</span>传真
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<JnpfInput v-model="scope.row.fax" @change="changeData('businesscontactteam-fax',scope.$index)"
|
|
|
|
<JnpfInput v-model="scope.row.fax"
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
@change="changeData('businesscontactteam-fax',scope.$index)" placeholder="请输入"
|
|
|
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column label="修改时间" prop="lastModifyTime">
|
|
|
|
label="修改时间" prop="lastModifyTime" >
|
|
|
|
<template slot="header" v-if="false">
|
|
|
|
<template slot="header" v-if="false" >
|
|
|
|
<span class="required-sign">*</span>修改时间
|
|
|
|
<span class="required-sign" >*</span>修改时间
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<JnpfInput v-model="scope.row.lastModifyTime" @change="changeData('businesscontactteam-lastModifyTime',scope.$index)"
|
|
|
|
<JnpfInput v-model="scope.row.lastModifyTime"
|
|
|
|
|
|
|
|
@change="changeData('businesscontactteam-lastModifyTime',scope.$index)"
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="操作" width="50" >
|
|
|
|
<el-table-column label="操作" width="50">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn" @click="delbusinesscontactteamList(scope.$index)">删除</el-button>
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
|
|
|
@click="delbusinesscontactteamList(scope.$index)">删除</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
<div class="table-actions" @click="addbusinesscontactteamList()" >
|
|
|
|
<div class="table-actions" @click="addbusinesscontactteamList()">
|
|
|
|
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
|
|
|
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="24" >
|
|
|
|
<el-col :span="24">
|
|
|
|
<jnpf-form-tip-item>
|
|
|
|
<jnpf-form-tip-item>
|
|
|
|
<JnpfGroupTitle
|
|
|
|
<JnpfGroupTitle content="班组人员" contentPosition="left">
|
|
|
|
content="班组人员" contentPosition="left" >
|
|
|
|
|
|
|
|
</JnpfGroupTitle>
|
|
|
|
</JnpfGroupTitle>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="24" >
|
|
|
|
<el-col :span="24">
|
|
|
|
<jnpf-form-tip-item label-width="0">
|
|
|
|
<jnpf-form-tip-item label-width="0">
|
|
|
|
<div class="JNPF-common-title">
|
|
|
|
<el-table :data="dataForm.classTeamUseList" size='mini'>
|
|
|
|
<h2>设计子表</h2>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-table :data="dataForm.classteamuseList" size='mini' >
|
|
|
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column label="员工姓名" prop="belongUserId">
|
|
|
|
label="员工姓名" prop="belongUserId" >
|
|
|
|
<template slot="header" v-if="false">
|
|
|
|
<template slot="header" v-if="false" >
|
|
|
|
<span class="required-sign">*</span>员工姓名
|
|
|
|
<span class="required-sign" >*</span>员工姓名
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<JnpfUserSelect v-model="scope.row.belongUserId" @change="changeData('classteamuse-belongUserId',scope.$index)"
|
|
|
|
<JnpfUserSelect v-model="scope.row.belongUserId"
|
|
|
|
placeholder="请选择" selectType="all" :ableIds="ableAll.classteamusebelongUserIdableIds" clearable :style='{"width":"100%"}'>
|
|
|
|
@change="changeData('classteamuse-belongUserId',scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请选择" selectType="all"
|
|
|
|
|
|
|
|
:ableIds="ableAll.classteamusebelongUserIdableIds" clearable
|
|
|
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
</JnpfUserSelect>
|
|
|
|
</JnpfUserSelect>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="操作" width="50" >
|
|
|
|
<el-table-column label="操作" width="50">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn" @click="delclassteamuseList(scope.$index)">删除</el-button>
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
|
|
|
@click="delclassteamuseList(scope.$index)">删除</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
<div class="table-actions" @click="addclassteamuseList()" >
|
|
|
|
<div class="table-actions" @click="addclassteamuseList()">
|
|
|
|
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
|
|
|
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
@ -223,7 +214,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm"
|
|
|
|
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm"
|
|
|
|
ref="selectDialog" @select="addForSelect" @close="selectDialogVisible=false"/>
|
|
|
|
ref="selectDialog" @select="addForSelect" @close="selectDialogVisible=false" />
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
<div class="upAndDown-button" v-if="dataForm.id">
|
|
|
|
<div class="upAndDown-button" v-if="dataForm.id">
|
|
|
@ -240,20 +231,20 @@
|
|
|
|
<el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading"> 确 定</el-button>
|
|
|
|
<el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading"> 确 定</el-button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import request from '@/utils/request'
|
|
|
|
import request from '@/utils/request'
|
|
|
|
import {mapGetters} from "vuex";
|
|
|
|
import { mapGetters } from "vuex";
|
|
|
|
import { getDataInterfaceRes } from '@/api/systemData/dataInterface'
|
|
|
|
import { getDataInterfaceRes } from '@/api/systemData/dataInterface'
|
|
|
|
import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
|
|
|
|
import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
|
|
|
|
import { getDefaultCurrentValueUserId } from '@/api/permission/user'
|
|
|
|
import { getDefaultCurrentValueUserId } from '@/api/permission/user'
|
|
|
|
import { getDefaultCurrentValueDepartmentId } from '@/api/permission/organize'
|
|
|
|
import { getDefaultCurrentValueDepartmentId } from '@/api/permission/organize'
|
|
|
|
import { getDateDay, getLaterData, getBeforeData, getBeforeTime, getLaterTime } from '@/components/Generator/utils/index.js'
|
|
|
|
import { getDateDay, getLaterData, getBeforeData, getBeforeTime, getLaterTime } from '@/components/Generator/utils/index.js'
|
|
|
|
import { thousandsFormat } from "@/components/Generator/utils/index"
|
|
|
|
import { thousandsFormat } from "@/components/Generator/utils/index"
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: { },
|
|
|
|
components: {},
|
|
|
|
props: [],
|
|
|
|
props: [],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -267,54 +258,54 @@
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
btnLoading: false,
|
|
|
|
btnLoading: false,
|
|
|
|
formRef: 'formRef',
|
|
|
|
formRef: 'formRef',
|
|
|
|
setting:{},
|
|
|
|
setting: {},
|
|
|
|
eventType: '',
|
|
|
|
eventType: '',
|
|
|
|
userBoxVisible:false,
|
|
|
|
userBoxVisible: false,
|
|
|
|
selectDialogVisible: false,
|
|
|
|
selectDialogVisible: false,
|
|
|
|
currTableConf:{},
|
|
|
|
currTableConf: {},
|
|
|
|
dataValueAll:{},
|
|
|
|
dataValueAll: {},
|
|
|
|
addTableConf:{
|
|
|
|
addTableConf: {
|
|
|
|
businesscontactteamList :{"popupType":"dialog","hasPage":true,"popupTitle":"选择数据","pageSize":20,"columnOptions":[],"interfaceId":"","interfaceName":"","relationOptions":[],"templateJson":[],"popupWidth":"800px"},
|
|
|
|
businessContactTeamList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
|
|
|
classteamuseList :{"popupType":"dialog","hasPage":true,"popupTitle":"选择数据","pageSize":20,"columnOptions":[],"interfaceId":"","interfaceName":"","relationOptions":[],"templateJson":[],"popupWidth":"800px"},
|
|
|
|
classTeamUseList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//可选范围默认值
|
|
|
|
//可选范围默认值
|
|
|
|
ableAll:{
|
|
|
|
ableAll: {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tableRows:{
|
|
|
|
tableRows: {
|
|
|
|
businesscontactteamList:{
|
|
|
|
businessContactTeamList: {
|
|
|
|
contactTypeOptions:[],
|
|
|
|
contactTypeOptions: [],
|
|
|
|
name : '',
|
|
|
|
name: '',
|
|
|
|
nameOptions:[],
|
|
|
|
nameOptions: [],
|
|
|
|
phone : '',
|
|
|
|
phone: '',
|
|
|
|
phoneOptions:[],
|
|
|
|
phoneOptions: [],
|
|
|
|
landline : '',
|
|
|
|
landline: '',
|
|
|
|
landlineOptions:[],
|
|
|
|
landlineOptions: [],
|
|
|
|
email : '',
|
|
|
|
email: '',
|
|
|
|
emailOptions:[],
|
|
|
|
emailOptions: [],
|
|
|
|
fax : '',
|
|
|
|
fax: '',
|
|
|
|
faxOptions:[],
|
|
|
|
faxOptions: [],
|
|
|
|
lastModifyTime : '',
|
|
|
|
lastModifyTime: '',
|
|
|
|
lastModifyTimeOptions:[],
|
|
|
|
lastModifyTimeOptions: [],
|
|
|
|
enabledmark:undefined
|
|
|
|
enabledmark: undefined
|
|
|
|
},
|
|
|
|
},
|
|
|
|
classteamuseList:{
|
|
|
|
classTeamUseList: {
|
|
|
|
belongUserIdOptions:[],
|
|
|
|
belongUserIdOptions: [],
|
|
|
|
enabledmark:undefined
|
|
|
|
enabledmark: undefined
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Vmodel:"",
|
|
|
|
Vmodel: "",
|
|
|
|
currVmodel:"",
|
|
|
|
currVmodel: "",
|
|
|
|
dataForm: {
|
|
|
|
dataForm: {
|
|
|
|
teamCode : undefined,
|
|
|
|
teamCode: undefined,
|
|
|
|
teamName : undefined,
|
|
|
|
teamName: undefined,
|
|
|
|
teamNm : undefined,
|
|
|
|
teamNm: undefined,
|
|
|
|
type : undefined,
|
|
|
|
type: undefined,
|
|
|
|
parentId : undefined,
|
|
|
|
parentId: undefined,
|
|
|
|
parentIds : undefined,
|
|
|
|
parentIds: undefined,
|
|
|
|
teamStatus : "1",
|
|
|
|
teamStatus: "1",
|
|
|
|
remark : undefined,
|
|
|
|
remark: undefined,
|
|
|
|
businesscontactteamList:[],
|
|
|
|
businessContactTeamList: [],
|
|
|
|
classteamuseList:[],
|
|
|
|
classTeamUseList: [],
|
|
|
|
version: 0,
|
|
|
|
version: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tableRequiredData: {},
|
|
|
|
tableRequiredData: {},
|
|
|
@ -356,35 +347,35 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
typeOptions:[],
|
|
|
|
typeOptions: [],
|
|
|
|
typeProps:{"label":"fullName","value":"id" },
|
|
|
|
typeProps: { "label": "fullName", "value": "id" },
|
|
|
|
parentIdOptions:[],
|
|
|
|
parentIdOptions: [],
|
|
|
|
parentIdProps:{"label":"fullName","value":"id" },
|
|
|
|
parentIdProps: { "label": "name", "value": "id" },
|
|
|
|
parentIdsOptions:[],
|
|
|
|
parentIdsOptions: [],
|
|
|
|
parentIdsProps:{"label":"fullName","value":"id" },
|
|
|
|
parentIdsProps: { "label": "name", "value": "id" },
|
|
|
|
teamStatusOptions:[{"fullName":"启用","id":"1"},{"fullName":"禁用","id":"2"}],
|
|
|
|
teamStatusOptions: [{ "fullName": "启用", "id": "1" }, { "fullName": "禁用", "id": "2" }],
|
|
|
|
teamStatusProps:{"label":"fullName","value":"id" },
|
|
|
|
teamStatusProps: { "label": "fullName", "value": "id" },
|
|
|
|
businesscontactteamcontactTypeOptions:[],
|
|
|
|
businesscontactteamcontactTypeOptions: [],
|
|
|
|
businesscontactteamcontactTypeProps:{"label":"fullName","value":"id" },
|
|
|
|
businesscontactteamcontactTypeProps: { "label": "fullName", "value": "id" },
|
|
|
|
childIndex:-1,
|
|
|
|
childIndex: -1,
|
|
|
|
isEdit:false,
|
|
|
|
isEdit: false,
|
|
|
|
interfaceRes: {
|
|
|
|
interfaceRes: {
|
|
|
|
teamCode:[] ,
|
|
|
|
teamCode: [],
|
|
|
|
teamName:[] ,
|
|
|
|
teamName: [],
|
|
|
|
teamNm:[] ,
|
|
|
|
teamNm: [],
|
|
|
|
type:[] ,
|
|
|
|
type: [],
|
|
|
|
parentId:[] ,
|
|
|
|
parentId: [],
|
|
|
|
parentIds:[] ,
|
|
|
|
parentIds: [],
|
|
|
|
teamStatus:[] ,
|
|
|
|
teamStatus: [],
|
|
|
|
remark:[] ,
|
|
|
|
remark: [],
|
|
|
|
businesscontactteamcontactType: [] ,
|
|
|
|
businesscontactteamcontactType: [],
|
|
|
|
businesscontactteamname: [] ,
|
|
|
|
businesscontactteamname: [],
|
|
|
|
businesscontactteamphone: [] ,
|
|
|
|
businesscontactteamphone: [],
|
|
|
|
businesscontactteamlandline: [] ,
|
|
|
|
businesscontactteamlandline: [],
|
|
|
|
businesscontactteamemail: [] ,
|
|
|
|
businesscontactteamemail: [],
|
|
|
|
businesscontactteamfax: [] ,
|
|
|
|
businesscontactteamfax: [],
|
|
|
|
businesscontactteamlastModifyTime: [] ,
|
|
|
|
businesscontactteamlastModifyTime: [],
|
|
|
|
classteamusebelongUserId: [] ,
|
|
|
|
classteamusebelongUserId: [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -397,7 +388,7 @@
|
|
|
|
this.initDefaultData()
|
|
|
|
this.initDefaultData()
|
|
|
|
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm))
|
|
|
|
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm))
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {},
|
|
|
|
mounted() { },
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
prev() {
|
|
|
|
prev() {
|
|
|
|
this.index--
|
|
|
|
this.index--
|
|
|
@ -427,7 +418,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getInfo(id) {
|
|
|
|
getInfo(id) {
|
|
|
|
request({
|
|
|
|
request({
|
|
|
|
url: '/api/scm/ClassTeam/'+ id,
|
|
|
|
url: '/api/scm/ClassTeam/' + id,
|
|
|
|
method: 'get'
|
|
|
|
method: 'get'
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
this.dataInfo(res.data)
|
|
|
|
this.dataInfo(res.data)
|
|
|
@ -451,7 +442,7 @@
|
|
|
|
for (let i = 0; i < faceReList.length; i++) {
|
|
|
|
for (let i = 0; i < faceReList.length; i++) {
|
|
|
|
if (faceReList[i].relationField == model) {
|
|
|
|
if (faceReList[i].relationField == model) {
|
|
|
|
let options = 'get' + key + 'Options';
|
|
|
|
let options = 'get' + key + 'Options';
|
|
|
|
if(this[options]){
|
|
|
|
if (this[options]) {
|
|
|
|
this[options]()
|
|
|
|
this[options]()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.changeData(key, index)
|
|
|
|
this.changeData(key, index)
|
|
|
@ -460,8 +451,8 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
changeDataFormData(type, data, model,index,defaultValue) {
|
|
|
|
changeDataFormData(type, data, model, index, defaultValue) {
|
|
|
|
if(!this.isEdit) {
|
|
|
|
if (!this.isEdit) {
|
|
|
|
if (type == 2) {
|
|
|
|
if (type == 2) {
|
|
|
|
for (let i = 0; i < this.dataForm[data].length; i++) {
|
|
|
|
for (let i = 0; i < this.dataForm[data].length; i++) {
|
|
|
|
if (index == -1) {
|
|
|
|
if (index == -1) {
|
|
|
@ -475,7 +466,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dataAll(){
|
|
|
|
dataAll() {
|
|
|
|
this.gettypeOptions();
|
|
|
|
this.gettypeOptions();
|
|
|
|
this.getparentIdOptions();
|
|
|
|
this.getparentIdOptions();
|
|
|
|
this.getparentIdsOptions();
|
|
|
|
this.getparentIdsOptions();
|
|
|
@ -483,8 +474,8 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
businesscontactteamExist() {
|
|
|
|
businesscontactteamExist() {
|
|
|
|
let isOk = true;
|
|
|
|
let isOk = true;
|
|
|
|
for(let i=0;i<this.dataForm.businesscontactteamList.length;i++){
|
|
|
|
for (let i = 0; i < this.dataForm.businessContactTeamList.length; i++) {
|
|
|
|
const e = this.dataForm.businesscontactteamList[i];
|
|
|
|
const e = this.dataForm.businessContactTeamList[i];
|
|
|
|
if (!e.contactType) {
|
|
|
|
if (!e.contactType) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
message: '联系人类型不能为空',
|
|
|
|
message: '联系人类型不能为空',
|
|
|
@ -517,8 +508,8 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
classteamuseExist() {
|
|
|
|
classteamuseExist() {
|
|
|
|
let isOk = true;
|
|
|
|
let isOk = true;
|
|
|
|
for(let i=0;i<this.dataForm.classteamuseList.length;i++){
|
|
|
|
for (let i = 0; i < this.dataForm.classTeamUseList.length; i++) {
|
|
|
|
const e = this.dataForm.classteamuseList[i];
|
|
|
|
const e = this.dataForm.classTeamUseList[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return isOk;
|
|
|
|
return isOk;
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -532,24 +523,24 @@
|
|
|
|
let templateJsonList = JSON.parse(JSON.stringify(this.interfaceRes.parentId))
|
|
|
|
let templateJsonList = JSON.parse(JSON.stringify(this.interfaceRes.parentId))
|
|
|
|
for (let i = 0; i < templateJsonList.length; i++) {
|
|
|
|
for (let i = 0; i < templateJsonList.length; i++) {
|
|
|
|
let json = templateJsonList[i];
|
|
|
|
let json = templateJsonList[i];
|
|
|
|
if(json.relationField){
|
|
|
|
if (json.relationField) {
|
|
|
|
let relationFieldAll = json.relationField.split("-");
|
|
|
|
let relationFieldAll = json.relationField.split("-");
|
|
|
|
let val = json.defaultValue;
|
|
|
|
let val = json.defaultValue;
|
|
|
|
if(relationFieldAll.length>1 && index>-1){
|
|
|
|
if (relationFieldAll.length > 1 && index > -1) {
|
|
|
|
val = this.dataForm[relationFieldAll[0]+'List']&&this.dataForm[relationFieldAll[0]+'List'].length?this.dataForm[relationFieldAll[0]+'List'][index][relationFieldAll[1]]:''
|
|
|
|
val = this.dataForm[relationFieldAll[0] + 'List'] && this.dataForm[relationFieldAll[0] + 'List'].length ? this.dataForm[relationFieldAll[0] + 'List'][index][relationFieldAll[1]] : ''
|
|
|
|
}else {
|
|
|
|
} else {
|
|
|
|
val = this.dataForm[relationFieldAll]
|
|
|
|
val = this.dataForm[relationFieldAll]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
json.defaultValue = val
|
|
|
|
json.defaultValue = val
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let template ={
|
|
|
|
let template = {
|
|
|
|
paramList:templateJsonList
|
|
|
|
paramList: templateJsonList
|
|
|
|
}
|
|
|
|
}
|
|
|
|
getDataInterfaceRes('521651055751075845',template).then(res => {
|
|
|
|
getDataInterfaceRes('521651055751075845', template).then(res => {
|
|
|
|
let data = res.data
|
|
|
|
let data = res.data
|
|
|
|
this.parentIdOptions = data
|
|
|
|
this.parentIdOptions = data
|
|
|
|
this.changeDataFormData(1,'parentId','parentId',index,'')
|
|
|
|
this.changeDataFormData(1, 'parentId', 'parentId', index, '')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getparentIdsOptions() {
|
|
|
|
getparentIdsOptions() {
|
|
|
@ -557,24 +548,24 @@
|
|
|
|
let templateJsonList = JSON.parse(JSON.stringify(this.interfaceRes.parentIds))
|
|
|
|
let templateJsonList = JSON.parse(JSON.stringify(this.interfaceRes.parentIds))
|
|
|
|
for (let i = 0; i < templateJsonList.length; i++) {
|
|
|
|
for (let i = 0; i < templateJsonList.length; i++) {
|
|
|
|
let json = templateJsonList[i];
|
|
|
|
let json = templateJsonList[i];
|
|
|
|
if(json.relationField){
|
|
|
|
if (json.relationField) {
|
|
|
|
let relationFieldAll = json.relationField.split("-");
|
|
|
|
let relationFieldAll = json.relationField.split("-");
|
|
|
|
let val = json.defaultValue;
|
|
|
|
let val = json.defaultValue;
|
|
|
|
if(relationFieldAll.length>1 && index>-1){
|
|
|
|
if (relationFieldAll.length > 1 && index > -1) {
|
|
|
|
val = this.dataForm[relationFieldAll[0]+'List']&&this.dataForm[relationFieldAll[0]+'List'].length?this.dataForm[relationFieldAll[0]+'List'][index][relationFieldAll[1]]:''
|
|
|
|
val = this.dataForm[relationFieldAll[0] + 'List'] && this.dataForm[relationFieldAll[0] + 'List'].length ? this.dataForm[relationFieldAll[0] + 'List'][index][relationFieldAll[1]] : ''
|
|
|
|
}else {
|
|
|
|
} else {
|
|
|
|
val = this.dataForm[relationFieldAll]
|
|
|
|
val = this.dataForm[relationFieldAll]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
json.defaultValue = val
|
|
|
|
json.defaultValue = val
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let template ={
|
|
|
|
let template = {
|
|
|
|
paramList:templateJsonList
|
|
|
|
paramList: templateJsonList
|
|
|
|
}
|
|
|
|
}
|
|
|
|
getDataInterfaceRes('521948662406847621',template).then(res => {
|
|
|
|
getDataInterfaceRes('521948662406847621', template).then(res => {
|
|
|
|
let data = res.data
|
|
|
|
let data = res.data
|
|
|
|
this.parentIdsOptions = data
|
|
|
|
this.parentIdsOptions = data
|
|
|
|
this.changeDataFormData(1,'parentIds','parentIds',index,'')
|
|
|
|
this.changeDataFormData(1, 'parentIds', 'parentIds', index, '')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getbusinesscontactteamcontactTypeOptions() {
|
|
|
|
getbusinesscontactteamcontactTypeOptions() {
|
|
|
@ -582,10 +573,10 @@
|
|
|
|
this.businesscontactteamcontactTypeOptions = res.data.list
|
|
|
|
this.businesscontactteamcontactTypeOptions = res.data.list
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
clearData(){
|
|
|
|
clearData() {
|
|
|
|
this.dataForm = JSON.parse(JSON.stringify(this.dataValueAll))
|
|
|
|
this.dataForm = JSON.parse(JSON.stringify(this.dataValueAll))
|
|
|
|
},
|
|
|
|
},
|
|
|
|
init(id,isDetail,allList) {
|
|
|
|
init(id, isDetail, allList) {
|
|
|
|
this.prevDis = false
|
|
|
|
this.prevDis = false
|
|
|
|
this.nextDis = false
|
|
|
|
this.nextDis = false
|
|
|
|
this.allList = allList || []
|
|
|
|
this.allList = allList || []
|
|
|
@ -604,16 +595,16 @@
|
|
|
|
this.dataForm.id = id || 0;
|
|
|
|
this.dataForm.id = id || 0;
|
|
|
|
this.visible = true;
|
|
|
|
this.visible = true;
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
if(this.dataForm.id){
|
|
|
|
if (this.dataForm.id) {
|
|
|
|
this.loading = true
|
|
|
|
this.loading = true
|
|
|
|
request({
|
|
|
|
request({
|
|
|
|
url: '/api/scm/ClassTeam/'+this.dataForm.id,
|
|
|
|
url: '/api/scm/ClassTeam/' + this.dataForm.id,
|
|
|
|
method: 'get'
|
|
|
|
method: 'get'
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
this.dataInfo(res.data)
|
|
|
|
this.dataInfo(res.data)
|
|
|
|
this.loading = false
|
|
|
|
this.loading = false
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
this.clearData()
|
|
|
|
this.clearData()
|
|
|
|
this.initDefaultData()
|
|
|
|
this.initDefaultData()
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -636,7 +627,7 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
request() {
|
|
|
|
request() {
|
|
|
|
let _data =this.dataList()
|
|
|
|
let _data = this.dataList()
|
|
|
|
if (this.dataFormSubmitType == 2) {
|
|
|
|
if (this.dataFormSubmitType == 2) {
|
|
|
|
this.continueBtnLoading = true
|
|
|
|
this.continueBtnLoading = true
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -666,13 +657,13 @@
|
|
|
|
this.$emit('refresh', true)
|
|
|
|
this.$emit('refresh', true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}).catch(()=>{
|
|
|
|
}).catch(() => {
|
|
|
|
this.btnLoading = false
|
|
|
|
this.btnLoading = false
|
|
|
|
this.continueBtnLoading = false
|
|
|
|
this.continueBtnLoading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
request({
|
|
|
|
request({
|
|
|
|
url: '/api/scm/ClassTeam/'+this.dataForm.id,
|
|
|
|
url: '/api/scm/ClassTeam/' + this.dataForm.id,
|
|
|
|
method: 'PUT',
|
|
|
|
method: 'PUT',
|
|
|
|
data: _data
|
|
|
|
data: _data
|
|
|
|
}).then((res) => {
|
|
|
|
}).then((res) => {
|
|
|
@ -687,22 +678,22 @@
|
|
|
|
this.$emit('refresh', true)
|
|
|
|
this.$emit('refresh', true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}).catch(()=>{
|
|
|
|
}).catch(() => {
|
|
|
|
this.btnLoading = false
|
|
|
|
this.btnLoading = false
|
|
|
|
this.continueBtnLoading = false
|
|
|
|
this.continueBtnLoading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addbusinesscontactteamList(){
|
|
|
|
addbusinesscontactteamList() {
|
|
|
|
let item = {
|
|
|
|
let item = {
|
|
|
|
contactType:'',
|
|
|
|
contactType: '',
|
|
|
|
contactTypeOptions:[],
|
|
|
|
contactTypeOptions: [],
|
|
|
|
name:undefined,
|
|
|
|
name: undefined,
|
|
|
|
phone:undefined,
|
|
|
|
phone: undefined,
|
|
|
|
landline:undefined,
|
|
|
|
landline: undefined,
|
|
|
|
email:undefined,
|
|
|
|
email: undefined,
|
|
|
|
fax:undefined,
|
|
|
|
fax: undefined,
|
|
|
|
lastModifyTime:undefined,
|
|
|
|
lastModifyTime: undefined,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getbusinesscontactteamList(item)
|
|
|
|
this.getbusinesscontactteamList(item)
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -710,21 +701,21 @@
|
|
|
|
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
|
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
|
type: 'warning'
|
|
|
|
type: 'warning'
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
this.dataForm.businesscontactteamList.splice(index, 1);
|
|
|
|
this.dataForm.businessContactTeamList.splice(index, 1);
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getbusinesscontactteamList(value){
|
|
|
|
getbusinesscontactteamList(value) {
|
|
|
|
let item={...this.tableRows.businesscontactteamList,...value}
|
|
|
|
let item = { ...this.tableRows.businessContactTeamList, ...value }
|
|
|
|
this.dataForm.businesscontactteamList.push(item)
|
|
|
|
this.dataForm.businessContactTeamList.push(item)
|
|
|
|
this.childIndex=this.dataForm.businesscontactteamList.length-1
|
|
|
|
this.childIndex = this.dataForm.businessContactTeamList.length - 1
|
|
|
|
this.isEdit = true
|
|
|
|
this.isEdit = true
|
|
|
|
this.isEdit = false
|
|
|
|
this.isEdit = false
|
|
|
|
this.childIndex = -1
|
|
|
|
this.childIndex = -1
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addclassteamuseList(){
|
|
|
|
addclassteamuseList() {
|
|
|
|
let item = {
|
|
|
|
let item = {
|
|
|
|
belongUserId:undefined,
|
|
|
|
belongUserId: undefined,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getclassteamuseList(item)
|
|
|
|
this.getclassteamuseList(item)
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -732,21 +723,21 @@
|
|
|
|
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
|
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
|
type: 'warning'
|
|
|
|
type: 'warning'
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
this.dataForm.classteamuseList.splice(index, 1);
|
|
|
|
this.dataForm.classTeamUseList.splice(index, 1);
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getclassteamuseList(value){
|
|
|
|
getclassteamuseList(value) {
|
|
|
|
let item={...this.tableRows.classteamuseList,...value}
|
|
|
|
let item = { ...this.tableRows.classTeamUseList, ...value }
|
|
|
|
this.dataForm.classteamuseList.push(item)
|
|
|
|
this.dataForm.classTeamUseList.push(item)
|
|
|
|
this.childIndex=this.dataForm.classteamuseList.length-1
|
|
|
|
this.childIndex = this.dataForm.classTeamUseList.length - 1
|
|
|
|
this.isEdit = true
|
|
|
|
this.isEdit = true
|
|
|
|
this.isEdit = false
|
|
|
|
this.isEdit = false
|
|
|
|
this.childIndex = -1
|
|
|
|
this.childIndex = -1
|
|
|
|
},
|
|
|
|
},
|
|
|
|
openSelectDialog(key) {
|
|
|
|
openSelectDialog(key) {
|
|
|
|
this.currTableConf=this.addTableConf[key]
|
|
|
|
this.currTableConf = this.addTableConf[key]
|
|
|
|
this.currVmodel=key
|
|
|
|
this.currVmodel = key
|
|
|
|
this.selectDialogVisible = true
|
|
|
|
this.selectDialogVisible = true
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$refs.selectDialog.init()
|
|
|
|
this.$refs.selectDialog.init()
|
|
|
@ -755,8 +746,8 @@
|
|
|
|
addForSelect(data) {
|
|
|
|
addForSelect(data) {
|
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
|
let t = data[i]
|
|
|
|
let t = data[i]
|
|
|
|
if(this['get'+this.currVmodel]){
|
|
|
|
if (this['get' + this.currVmodel]) {
|
|
|
|
this['get'+this.currVmodel](t)
|
|
|
|
this['get' + this.currVmodel](t)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -823,24 +814,24 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return timeDataValue;
|
|
|
|
return timeDataValue;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dataList(){
|
|
|
|
dataList() {
|
|
|
|
var _data = this.dataForm;
|
|
|
|
var _data = this.dataForm;
|
|
|
|
return _data;
|
|
|
|
return _data;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dataInfo(dataAll){
|
|
|
|
dataInfo(dataAll) {
|
|
|
|
let _dataAll =dataAll
|
|
|
|
let _dataAll = dataAll
|
|
|
|
this.dataForm = _dataAll
|
|
|
|
this.dataForm = _dataAll
|
|
|
|
this.isEdit = true
|
|
|
|
this.isEdit = true
|
|
|
|
this.dataAll()
|
|
|
|
this.dataAll()
|
|
|
|
for(let i=0;i<_dataAll.businesscontactteamList.length;i++){
|
|
|
|
for (let i = 0; i < _dataAll.businessContactTeamList.length; i++) {
|
|
|
|
this.childIndex = i
|
|
|
|
this.childIndex = i
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for(let i=0;i<_dataAll.classteamuseList.length;i++){
|
|
|
|
for (let i = 0; i < _dataAll.classTeamUseList.length; i++) {
|
|
|
|
this.childIndex = i
|
|
|
|
this.childIndex = i
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.childIndex=-1
|
|
|
|
this.childIndex = -1
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|