|
|
|
@ -17,8 +17,9 @@ div -1
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('code')">
|
|
|
|
|
<jnpf-form-tip-item label="生产线编号" v-if="judgeShow('code')" prop="code">
|
|
|
|
|
<JnpfInput v-model="dataForm.code" @change="changeData('code', -1)" placeholder="系统自动生成"
|
|
|
|
|
:disabled="judgeWrite('code')" readonly :style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="dataForm.code" @change="changeData('code', -1)"
|
|
|
|
|
placeholder="系统自动生成" :disabled="judgeWrite('code')" readonly
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -31,48 +32,50 @@ div -1
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('simpleName')">
|
|
|
|
|
<jnpf-form-tip-item label=" 简称/英文名" v-if="judgeShow('simpleName')" prop="simpleName">
|
|
|
|
|
<JnpfInput v-model="dataForm.simpleName" @change="changeData('simpleName', -1)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('simpleName')" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="dataForm.simpleName" @change="changeData('simpleName', -1)"
|
|
|
|
|
placeholder="请输入" :disabled="judgeWrite('simpleName')" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('type')">
|
|
|
|
|
<jnpf-form-tip-item label="类型" v-if="judgeShow('type')" prop="type">
|
|
|
|
|
<JnpfSelect v-model="dataForm.type" @change="changeData('type', -1)" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('type')" clearable :style='{ "width": "100%" }' :options="typeOptions"
|
|
|
|
|
:props="typeProps">
|
|
|
|
|
:disabled="judgeWrite('type')" clearable :style='{ "width": "100%" }'
|
|
|
|
|
:options="typeOptions" :props="typeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('parentId')">
|
|
|
|
|
<jnpf-form-tip-item label="所属工厂" v-if="judgeShow('parentId')" prop="parentId">
|
|
|
|
|
<JnpfSelect v-model="dataForm.parentId" @change="changeData('parentId', -1)" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('parentId')" clearable :style='{ "width": "100%" }' :options="parentIdOptions"
|
|
|
|
|
:props="parentIdProps">
|
|
|
|
|
<JnpfSelect v-model="dataForm.parentId" @change="changeData('parentId', -1)"
|
|
|
|
|
placeholder="请选择" :disabled="judgeWrite('parentId')" clearable
|
|
|
|
|
:style='{ "width": "100%" }' :options="parentIdOptions" :props="parentIdProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('workshopId')">
|
|
|
|
|
<jnpf-form-tip-item label="所属车间" v-if="judgeShow('workshopId')" prop="workshopId">
|
|
|
|
|
<JnpfSelect v-model="dataForm.workshopId" @change="changeData('workshopId', -1)" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('workshopId')" clearable :style='{ "width": "100%" }' :options="workshopIdOptions"
|
|
|
|
|
:props="workshopIdProps">
|
|
|
|
|
<JnpfSelect v-model="dataForm.workshopId" @change="changeData('workshopId', -1)"
|
|
|
|
|
placeholder="请选择" :disabled="judgeWrite('workshopId')" clearable
|
|
|
|
|
:style='{ "width": "100%" }' :options="workshopIdOptions" :props="workshopIdProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="judgeShow('status')">
|
|
|
|
|
<jnpf-form-tip-item label="状态" v-if="judgeShow('status')" prop="status">
|
|
|
|
|
<JnpfRadio v-model="dataForm.status" @change="changeData('status', -1)" :disabled="judgeWrite('status')"
|
|
|
|
|
optionType="button" direction="horizontal" :style='{ "width": "100%" }' size="large"
|
|
|
|
|
:options="statusOptions" :props="statusProps">
|
|
|
|
|
<JnpfRadio v-model="dataForm.status" @change="changeData('status', -1)"
|
|
|
|
|
:disabled="judgeWrite('status')" optionType="button" direction="horizontal"
|
|
|
|
|
:style='{ "width": "100%" }' size="large" :options="statusOptions"
|
|
|
|
|
:props="statusProps">
|
|
|
|
|
</JnpfRadio>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="judgeShow('description')">
|
|
|
|
|
<jnpf-form-tip-item label="描述" v-if="judgeShow('description')" prop="description">
|
|
|
|
|
<JnpfTextarea v-model="dataForm.description" @change="changeData('description', -1)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('description')" clearable :style='{ "width": "100%" }'
|
|
|
|
|
:autosize='{ "minRows": 4, "maxRows": 4 }'>
|
|
|
|
|
<JnpfTextarea v-model="dataForm.description" @change="changeData('description', -1)"
|
|
|
|
|
placeholder="请输入" :disabled="judgeWrite('description')" clearable
|
|
|
|
|
:style='{ "width": "100%" }' :autosize='{ "minRows": 4, "maxRows": 4 }'>
|
|
|
|
|
</JnpfTextarea>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -89,15 +92,19 @@ div -1
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="dataForm.businessContactList" size='mini'>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
|
<el-table-column label="类型" v-if="judgeShow('businesscontact1-contactType')" prop="contactType">
|
|
|
|
|
<el-table-column label="类型" v-if="judgeShow('businesscontact1-contactType')"
|
|
|
|
|
prop="contactType">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('businesscontactList-contactType')">*</span>类型
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('businesscontactList-contactType')">*</span>类型
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfSelect v-model="scope.row.contactType"
|
|
|
|
|
@change="changeData('businesscontact1-contactType', scope.$index)" placeholder="请选择"
|
|
|
|
|
@change="changeData('businesscontact1-contactType', scope.$index)"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('businesscontactList') || judgeWrite('businesscontactList-contactType')"
|
|
|
|
|
clearable :style='{ "width": "100%" }' :options="businesscontact1contactTypeOptions"
|
|
|
|
|
clearable :style='{ "width": "100%" }'
|
|
|
|
|
:options="businesscontact1contactTypeOptions"
|
|
|
|
|
:props="businesscontact1contactTypeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</template>
|
|
|
|
@ -115,38 +122,45 @@ div -1
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
|
|
|
|
|
<el-table-column label="姓名" v-if="judgeShow('businesscontact1-name')" prop="name" align="center">
|
|
|
|
|
<el-table-column label="姓名" v-if="judgeShow('businesscontact1-name')" prop="name"
|
|
|
|
|
align="center">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('businesscontact1-name')">*</span>姓名
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('businesscontact1-name')">*</span>姓名
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfUserSelect v-model="scope.row.name" @change="changeData('businesscontact1-name', scope.$index)"
|
|
|
|
|
placeholder="请选择" selectType="all" :ableIds="ableAll.businesscontact1nameableIds" clearable
|
|
|
|
|
<JnpfUserSelect v-model="scope.row.name"
|
|
|
|
|
@change="changeData('businesscontact1-name', scope.$index)" placeholder="请选择"
|
|
|
|
|
selectType="all" :ableIds="ableAll.businesscontact1nameableIds" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfUserSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="手机号" v-if="judgeShow('businesscontact1-phone')" prop="phone">
|
|
|
|
|
<el-table-column label="手机号" v-if="judgeShow('businesscontact1-phone')"
|
|
|
|
|
prop="phone">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('businesscontactList-phone')">*</span>手机号
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('businesscontactList-phone')">*</span>手机号
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.phone" @change="changeData('businesscontact1-phone', scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('businesscontactList') || judgeWrite('businesscontactList-phone')" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="scope.row.phone"
|
|
|
|
|
@change="changeData('businesscontact1-phone', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('businesscontactList') || judgeWrite('businesscontactList-phone')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="座机" v-if="judgeShow('businesscontact1-landline')" prop="landline">
|
|
|
|
|
<el-table-column label="座机" v-if="judgeShow('businesscontact1-landline')"
|
|
|
|
|
prop="landline">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('businesscontactList-landline')">*</span>座机
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('businesscontactList-landline')">*</span>座机
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.landline"
|
|
|
|
|
@change="changeData('businesscontact1-landline', scope.$index)" placeholder="请输入"
|
|
|
|
|
@change="changeData('businesscontact1-landline', scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('businesscontactList') || judgeWrite('businesscontactList-landline')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
@ -154,25 +168,27 @@ div -1
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="邮箱" v-if="judgeShow('businesscontact1-email')" prop="email">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('businesscontactList-email')">*</span>邮箱
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('businesscontactList-email')">*</span>邮箱
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.email" @change="changeData('businesscontact1-email', scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('businesscontactList') || judgeWrite('businesscontactList-email')" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="scope.row.email"
|
|
|
|
|
@change="changeData('businesscontact1-email', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('businesscontactList') || judgeWrite('businesscontactList-email')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="传真" v-if="judgeShow('businesscontact1-fax')" prop="fax">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('businesscontactList-fax')">*</span>传真
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('businesscontactList-fax')">*</span>传真
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.fax" @change="changeData('businesscontact1-fax', scope.$index)"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('businesscontactList') || judgeWrite('businesscontactList-fax')" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfInput v-model="scope.row.fax"
|
|
|
|
|
@change="changeData('businesscontact1-fax', scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('businesscontactList') || judgeWrite('businesscontactList-fax')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -189,15 +205,17 @@ div -1
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
|
|
|
|
|
<el-table-column label="更新时间" v-if="judgeShow('businesscontact1-lastModifyTime')" prop="lastModifyTime">
|
|
|
|
|
<el-table-column label="更新时间" v-if="judgeShow('businesscontact1-lastModifyTime')"
|
|
|
|
|
prop="lastModifyTime">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('businesscontact1-lastModifyTime')">*</span>更新时间
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('businesscontact1-lastModifyTime')">*</span>更新时间
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfDatePicker v-model="scope.row.lastModifyTime"
|
|
|
|
|
@change="changeData('businesscontact1-lastModifyTime', scope.$index)"
|
|
|
|
|
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:startTime="dateTime(false, 1, 1, '', '')"
|
|
|
|
|
:endTime="dateTime(false, 1, 1, '', '')" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('businesscontact1List') || judgeWrite('businesscontact1-lastModifyTime')"
|
|
|
|
|
clearable :style='{ "width": "100%" }' type="date" format="yyyy-MM-dd">
|
|
|
|
|
</JnpfDatePicker>
|
|
|
|
@ -211,15 +229,16 @@ div -1
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<div class="table-actions" @click="addbusinesscontact1List()" v-if="!judgeWrite('businesscontactList')">
|
|
|
|
|
<div class="table-actions" @click="addbusinesscontact1List()"
|
|
|
|
|
v-if="!judgeWrite('businesscontactList')">
|
|
|
|
|
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- 表单结束 -->
|
|
|
|
|
</template>
|
|
|
|
|
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm" ref="selectDialog"
|
|
|
|
|
@select="addForSelect" @close="selectDialogVisible = false" />
|
|
|
|
|
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm"
|
|
|
|
|
ref="selectDialog" @select="addForSelect" @close="selectDialogVisible = false" />
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-row>
|
|
|
|
|
<UserBox v-if="userBoxVisible" ref="userBox" @submit="submit" />
|
|
|
|
|