基本信息管理优化(供应商、班组、班次)

yangwl
A0010407 1 year ago
parent 7a302173f2
commit 2c573b97cc

@ -72,24 +72,24 @@
<el-table v-loading="loading" :data="shiftsList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="shiftsList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<!-- 序号 --> <!-- 序号 -->
<el-table-column <el-table-column
type="index" type="index"
width="90" width="90"
align="center" align="center"
:index="indexMethod" :index="indexMethod"
label="序号"> label="序号">
</el-table-column> </el-table-column>
<el-table-column label="班次编码" align="center" prop="shiftCode" /> <el-table-column label="班次编码" align="center" prop="shiftCode" />
<el-table-column label="班次名称" align="center" prop="shiftDescGlobal" /> <el-table-column label="班次名称" align="center" prop="shiftDescGlobal" />
<el-table-column label="开始时间" align="center" prop="shiftStartTime" /> <el-table-column label="开始时间" align="center" prop="shiftStartTime" />
<el-table-column label="结束时间" align="center" prop="shiftEndTime" /> <el-table-column label="结束时间" align="center" prop="shiftEndTime" />
<el-table-column label="创建人" align="center" prop="createBy" /> <el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column label="创建时间" align="center" prop="createDate"/> <el-table-column label="创建时间" align="center" prop="createDate"/>
<el-table-column prop="active" label="是否启用" align="center"> <el-table-column prop="active" label="是否启用" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.active == 1 ? "是" : "否" }} {{ scope.row.active == 1 ? "是" : "否" }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -121,14 +121,6 @@
<!-- 添加或修改班次管理对话框 --> <!-- 添加或修改班次管理对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<!-- 序号 -->
<el-table-column
type="index"
width="90"
align="center"
:index="indexMethod"
label="序号">
</el-table-column>
<el-form-item label="班次编码" prop="shiftCode"> <el-form-item label="班次编码" prop="shiftCode">
<el-input v-model="form.shiftCode" placeholder="请输入班次编码" /> <el-input v-model="form.shiftCode" placeholder="请输入班次编码" />
</el-form-item> </el-form-item>
@ -227,7 +219,6 @@ export default {
form: {}, form: {},
// //
rules: { rules: {
} }
}; };
}, },

@ -251,7 +251,7 @@
<el-dialog :title="title" :visible.sync="open" width="1000px" 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-row :gutter="10" class="mb8">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="供应商代码" prop="supplierCode"> <el-form-item label="供应商代码" prop="supplierCode">
<el-input v-model="form.supplierCode" placeholder="请输入供应商代码" /> <el-input v-model="form.supplierCode" placeholder="请输入供应商代码" />
</el-form-item> </el-form-item>

@ -72,28 +72,28 @@
<el-table v-loading="loading" :data="teamList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="teamList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<!-- 序号 --> <!-- 序号 -->
<el-table-column <el-table-column
type="index" type="index"
width="90" width="90"
align="center" align="center"
:index="indexMethod" :index="indexMethod"
label="序号"> label="序号">
</el-table-column> </el-table-column>
<el-table-column label="班组编码" align="center" prop="teamCode" /> <el-table-column label="班组编码" align="center" prop="teamCode" />
<el-table-column label="班组名称" align="center" prop="teamDescGlobal" /> <el-table-column label="班组名称" align="center" prop="teamDescGlobal" />
<el-table-column prop="teamType" label="班组类别" align="center" > <el-table-column prop="teamType" label="班组类别" align="center" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.teamType == "team_type1" ? "生产班组" : "检验班组" }} {{ scope.row.teamType == "team_type1" ? "生产班组" : "检验班组" }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="所属产线" align="center" prop="productionLineCode" /> <el-table-column label="所属产线" align="center" prop="productionLineCode" />
<el-table-column label="创建人" align="center" prop="createBy" /> <el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column label="创建时间" align="center" prop="createDate" /> <el-table-column label="创建时间" align="center" prop="createDate" />
<el-table-column prop="active" label="是否启用" align="center"> <el-table-column prop="active" label="是否启用" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.active == 1 ? "是" : "否" }} {{ scope.row.active == 1 ? "是" : "否" }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -123,61 +123,89 @@
/> />
<!-- 添加或修改班组对话框 --> <!-- 添加或修改班组对话框 -->
<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-form-item label="班组编码" prop="teamCode"> <el-row :gutter="10" class="mb8">
<el-col :span="12">
<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-form-item label="班组类型" prop="teamType"> </el-row>
<el-select v-model="form.teamType" placeholder="请选择班组"> <el-row :gutter="10" class="mb8">
<el-option <el-col :span="12">
v-for="dict in dict.type.team_type" <el-form-item label="班组类型" prop="teamType">
:key="dict.value" <el-select v-model="form.teamType" placeholder="请选择班组">
:label="dict.label" <el-option
:value="dict.value" v-for="dict in dict.type.team_type"
></el-option> :key="dict.value"
</el-select> :label="dict.label"
</el-form-item> :value="dict.value"
<el-form-item label="班组扩展名称" prop="teamDescExtended"> ></el-option>
<el-input v-model="form.teamDescExtended" placeholder="请输入班组扩展名称" /> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="是否启用" prop="active"> </el-col>
<el-input v-model="form.active" placeholder="请输入是否启用" /> <el-col :span="12">
</el-form-item> <el-form-item label="是否启用" prop="active">
<el-form-item label="企业编码" prop="enterpriseCode"> <el-select v-model="form.active" placeholder="请选择是否启用" @change="$forceUpdate()" clearable>
<el-input v-model="form.enterpriseCode" placeholder="请输入企业编码" /> <el-option v-for="item in options" :key="item.active" :label="item.label" :value="item.active"></el-option>
</el-form-item> </el-select>
<el-form-item label="工厂编码" prop="siteCode"> </el-form-item>
<el-input v-model="form.siteCode" placeholder="请输入工厂编码" /> </el-col>
</el-form-item> </el-row>
<el-form-item label="所属产线" prop="productionLineCode"> <el-row :gutter="10" class="mb8">
<el-input v-model="form.productionLineCode" placeholder="请输入线体编码" /> <el-col :span="12">
</el-form-item> <el-form-item label="工厂编码" prop="siteCode">
<el-form-item label="班组长编码" prop="teamLeaderCode"> <el-input v-model="form.siteCode" placeholder="请输入工厂编码" />
<el-input v-model="form.teamLeaderCode" placeholder="请输入班组长编码" /> </el-form-item>
</el-form-item> </el-col>
<el-form-item label="定编岗位数量" prop="planPostQuantity"> <el-col :span="12">
<el-input v-model="form.planPostQuantity" placeholder="请输入定编岗位数量" /> <el-form-item label="所属产线" prop="productionLineCode">
</el-form-item> <el-input v-model="form.productionLineCode" placeholder="请输入线体编码" />
<el-form-item label="已分配岗位数量" prop="actualPostQuantity"> </el-form-item>
<el-input v-model="form.actualPostQuantity" placeholder="请输入已分配岗位数量" /> </el-col>
</el-form-item> </el-row>
<el-form-item label="班组属性" prop="teamProperties"> <el-row :gutter="10" class="mb8">
<el-input v-model="form.teamProperties" placeholder="请输入班组属性" /> <el-col :span="12">
</el-form-item> <el-form-item label="班组长编码" prop="teamLeaderCode">
<el-form-item label="应出勤人数" prop="attendanceQuantity"> <el-input v-model="form.teamLeaderCode" placeholder="请输入班组长编码" />
<el-input v-model="form.attendanceQuantity" placeholder="请输入应出勤人数" /> </el-form-item>
</el-form-item> </el-col>
<el-form-item label="已分配人数" prop="assignedQuantity"> <el-col :span="12">
<el-input v-model="form.assignedQuantity" placeholder="请输入已分配人数" /> <el-form-item label="定编岗位数量" prop="planPostQuantity">
</el-form-item> <el-input v-model="form.planPostQuantity" placeholder="请输入定编岗位数量" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" class="mb8">
<el-col :span="12">
<el-form-item label="已分配岗位数量" prop="actualPostQuantity">
<el-input v-model="form.actualPostQuantity" placeholder="请输入已分配岗位数量" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="班组属性" prop="teamProperties">
<el-input v-model="form.teamProperties" placeholder="请输入班组属性" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" class="mb8">
<el-col :span="12">
<el-form-item label="应出勤人数" prop="attendanceQuantity">
<el-input v-model="form.attendanceQuantity" placeholder="请输入应出勤人数" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="已分配人数" prop="assignedQuantity">
<el-input v-model="form.assignedQuantity" placeholder="请输入已分配人数" />
</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" }
], ],

Loading…
Cancel
Save