|
@@ -40,14 +40,13 @@
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="工位类型:" prop="extInfo.type">
|
|
<el-form-item label="工位类型:" prop="extInfo.type">
|
|
|
<el-select
|
|
<el-select
|
|
|
- size="small"
|
|
|
|
|
class="ele-fluid"
|
|
class="ele-fluid"
|
|
|
v-model="form.extInfo.type"
|
|
v-model="form.extInfo.type"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
label="设备"
|
|
label="设备"
|
|
|
:value="1"
|
|
:value="1"
|
|
|
- @click.native="form.extInfo.workTypeId = null"
|
|
|
|
|
|
|
+ @click.native="form.extInfo.teamId = null"
|
|
|
/>
|
|
/>
|
|
|
<el-option
|
|
<el-option
|
|
|
label="工位"
|
|
label="工位"
|
|
@@ -61,6 +60,8 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
label="设备编码:"
|
|
label="设备编码:"
|
|
@@ -75,6 +76,8 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
label="设备名称:"
|
|
label="设备名称:"
|
|
@@ -85,21 +88,31 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- label="员工工号:"
|
|
|
|
|
- prop="extInfo.workTypeId"
|
|
|
|
|
|
|
+ label="班组:"
|
|
|
|
|
+ prop="extInfo.teamId"
|
|
|
|
|
+
|
|
|
v-if="form.extInfo.type == 3"
|
|
v-if="form.extInfo.type == 3"
|
|
|
>
|
|
>
|
|
|
- <DictSelection
|
|
|
|
|
- dictName="工种"
|
|
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ v-model="form.extInfo.teamId"
|
|
|
clearable
|
|
clearable
|
|
|
- filterable
|
|
|
|
|
- v-model="form.extInfo.workTypeId"
|
|
|
|
|
|
|
+ :filterable="true"
|
|
|
>
|
|
>
|
|
|
- </DictSelection>
|
|
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in teamPagerList"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.id"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="所属区域:" prop="location_city">
|
|
<el-form-item label="所属区域:" prop="location_city">
|
|
|
<area-select
|
|
<area-select
|
|
@@ -362,6 +375,9 @@
|
|
|
import { listOrganizations } from '@/api/system/organization';
|
|
import { listOrganizations } from '@/api/system/organization';
|
|
|
|
|
|
|
|
import { getFactoryarea } from '@/api/factoryModel';
|
|
import { getFactoryarea } from '@/api/factoryModel';
|
|
|
|
|
+
|
|
|
|
|
+ import { getteampage } from '@/api/workforceManagement/team';
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
AreaSelect,
|
|
AreaSelect,
|
|
@@ -396,7 +412,7 @@
|
|
|
workCenterId: null, //所属工作中心
|
|
workCenterId: null, //所属工作中心
|
|
|
produceId: null, //可执行工序
|
|
produceId: null, //可执行工序
|
|
|
type: null,
|
|
type: null,
|
|
|
- workTypeId: null
|
|
|
|
|
|
|
+ teamId: null
|
|
|
},
|
|
},
|
|
|
id: '',
|
|
id: '',
|
|
|
leaderId: '', // 负责人
|
|
leaderId: '', // 负责人
|
|
@@ -417,6 +433,8 @@
|
|
|
workshopPlanList: [],
|
|
workshopPlanList: [],
|
|
|
areaTreeList: [],
|
|
areaTreeList: [],
|
|
|
|
|
|
|
|
|
|
+ teamPagerList: [],
|
|
|
|
|
+
|
|
|
// 表单验证规则
|
|
// 表单验证规则
|
|
|
rules: {
|
|
rules: {
|
|
|
code: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
code: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
@@ -527,6 +545,7 @@
|
|
|
this.getGs();
|
|
this.getGs();
|
|
|
this.getFactoryList();
|
|
this.getFactoryList();
|
|
|
this.getBasicAreaList();
|
|
this.getBasicAreaList();
|
|
|
|
|
+ this.getteampagerList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
chooseAsset() {
|
|
chooseAsset() {
|
|
@@ -597,6 +616,16 @@
|
|
|
this.getListProduce();
|
|
this.getListProduce();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ getteampagerList() {
|
|
|
|
|
+ let param = {
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ size: -1
|
|
|
|
|
+ };
|
|
|
|
|
+ getteampage(param).then((res) => {
|
|
|
|
|
+ this.teamPagerList = res.list || [];
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
async getFactoryList() {
|
|
async getFactoryList() {
|
|
|
const { list } = await getFactoryarea({
|
|
const { list } = await getFactoryarea({
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|