|
|
@ -123,18 +123,22 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改班组对话框 -->
|
|
|
|
<!-- 添加或修改班组对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="班组编码" prop="teamCode">
|
|
|
|
<el-form-item label="班组编码" prop="teamCode">
|
|
|
|
<el-input v-model="form.teamCode" placeholder="请输入班组编码" />
|
|
|
|
<el-input v-model="form.teamCode" placeholder="请输入班组编码" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="班组简称" prop="teamDesc">
|
|
|
|
</el-col>
|
|
|
|
<el-input v-model="form.teamDesc" placeholder="请输入班组简称" />
|
|
|
|
<el-col :span="12">
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="班组名称" prop="teamDescGlobal">
|
|
|
|
<el-form-item label="班组名称" prop="teamDescGlobal">
|
|
|
|
<el-input v-model="form.teamDescGlobal" placeholder="请输入班组通用名称" />
|
|
|
|
<el-input v-model="form.teamDescGlobal" placeholder="请输入班组通用名称" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="班组类型" prop="teamType">
|
|
|
|
<el-form-item label="班组类型" prop="teamType">
|
|
|
|
<el-select v-model="form.teamType" placeholder="请选择班组">
|
|
|
|
<el-select v-model="form.teamType" placeholder="请选择班组">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
@ -145,39 +149,63 @@
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="班组扩展名称" prop="teamDescExtended">
|
|
|
|
</el-col>
|
|
|
|
<el-input v-model="form.teamDescExtended" placeholder="请输入班组扩展名称" />
|
|
|
|
<el-col :span="12">
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="是否启用" prop="active">
|
|
|
|
<el-form-item label="是否启用" prop="active">
|
|
|
|
<el-input v-model="form.active" placeholder="请输入是否启用" />
|
|
|
|
<el-select v-model="form.active" placeholder="请选择是否启用" @change="$forceUpdate()" clearable>
|
|
|
|
</el-form-item>
|
|
|
|
<el-option v-for="item in options" :key="item.active" :label="item.label" :value="item.active"></el-option>
|
|
|
|
<el-form-item label="企业编码" prop="enterpriseCode">
|
|
|
|
</el-select>
|
|
|
|
<el-input v-model="form.enterpriseCode" placeholder="请输入企业编码" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="工厂编码" prop="siteCode">
|
|
|
|
<el-form-item label="工厂编码" prop="siteCode">
|
|
|
|
<el-input v-model="form.siteCode" placeholder="请输入工厂编码" />
|
|
|
|
<el-input v-model="form.siteCode" placeholder="请输入工厂编码" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="所属产线" prop="productionLineCode">
|
|
|
|
<el-form-item label="所属产线" prop="productionLineCode">
|
|
|
|
<el-input v-model="form.productionLineCode" placeholder="请输入线体编码" />
|
|
|
|
<el-input v-model="form.productionLineCode" placeholder="请输入线体编码" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="班组长编码" prop="teamLeaderCode">
|
|
|
|
<el-form-item label="班组长编码" prop="teamLeaderCode">
|
|
|
|
<el-input v-model="form.teamLeaderCode" placeholder="请输入班组长编码" />
|
|
|
|
<el-input v-model="form.teamLeaderCode" placeholder="请输入班组长编码" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="定编岗位数量" prop="planPostQuantity">
|
|
|
|
<el-form-item label="定编岗位数量" prop="planPostQuantity">
|
|
|
|
<el-input v-model="form.planPostQuantity" placeholder="请输入定编岗位数量" />
|
|
|
|
<el-input v-model="form.planPostQuantity" placeholder="请输入定编岗位数量" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="已分配岗位数量" prop="actualPostQuantity">
|
|
|
|
<el-form-item label="已分配岗位数量" prop="actualPostQuantity">
|
|
|
|
<el-input v-model="form.actualPostQuantity" placeholder="请输入已分配岗位数量" />
|
|
|
|
<el-input v-model="form.actualPostQuantity" placeholder="请输入已分配岗位数量" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="班组属性" prop="teamProperties">
|
|
|
|
<el-form-item label="班组属性" prop="teamProperties">
|
|
|
|
<el-input v-model="form.teamProperties" placeholder="请输入班组属性" />
|
|
|
|
<el-input v-model="form.teamProperties" placeholder="请输入班组属性" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="应出勤人数" prop="attendanceQuantity">
|
|
|
|
<el-form-item label="应出勤人数" prop="attendanceQuantity">
|
|
|
|
<el-input v-model="form.attendanceQuantity" placeholder="请输入应出勤人数" />
|
|
|
|
<el-input v-model="form.attendanceQuantity" placeholder="请输入应出勤人数" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="已分配人数" prop="assignedQuantity">
|
|
|
|
<el-form-item label="已分配人数" prop="assignedQuantity">
|
|
|
|
<el-input v-model="form.assignedQuantity" placeholder="请输入已分配人数" />
|
|
|
|
<el-input v-model="form.assignedQuantity" placeholder="请输入已分配人数" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
@ -240,6 +268,13 @@ export default {
|
|
|
|
attendanceQuantity: null,
|
|
|
|
attendanceQuantity: null,
|
|
|
|
assignedQuantity: null
|
|
|
|
assignedQuantity: null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
options: [{
|
|
|
|
|
|
|
|
active: "1",
|
|
|
|
|
|
|
|
label: '是'
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
active: "0",
|
|
|
|
|
|
|
|
label: '否'
|
|
|
|
|
|
|
|
}],
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
@ -250,9 +285,6 @@ export default {
|
|
|
|
teamDescGlobal: [
|
|
|
|
teamDescGlobal: [
|
|
|
|
{ required: true, message: "班组名称不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "班组名称不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
productionLineCode: [
|
|
|
|
|
|
|
|
{ required: true, message: "所属产线不能为空", trigger: "blur" }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
active: [
|
|
|
|
active: [
|
|
|
|
{ required: true, message: "是否启用不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "是否启用不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
],
|
|
|
|