转岗管理问题修改

dev-scheduling
zhangdi 1 month ago
parent 79237d71f6
commit 4dbab3c822
  1. 30
      src/views/basicData/jobTransferManagement.vue
  2. 4
      src/views/changeJobManagement/trainingRecordManagement.vue
  3. 8
      src/views/processManagement/bathRefine/components/addPeriodicalClassDialog.vue
  4. 7
      src/views/processManagement/bathRefine/workCenterDevice.vue
  5. 26
      src/views/workLicense/personnelEquipment.vue
  6. 18
      src/views/workLicense/workLicense.vue

@ -47,16 +47,16 @@
<el-button type="text" @click="individualTakeFun(scope.row)">个人信息</el-button> <el-button type="text" @click="individualTakeFun(scope.row)">个人信息</el-button>
</template> </template>
<template #dataBirth="scope"> <template #dataBirth="scope">
{{ scope.row.dataBirth ?scope.row.dataBirth.substring(0, 10) : ''}} {{ scope.row.dataBirth ? scope.row.dataBirth.substring(0, 10) : '' }}
</template> </template>
<template #contractDuration="scope"> <template #contractDuration="scope">
{{ scope.row.contractDuration ?scope.row.contractDuration.substring(0, 10) : ''}} {{ scope.row.contractDuration ? scope.row.contractDuration.substring(0, 10) : '' }}
</template> </template>
<template #joinJobDate="scope"> <template #joinJobDate="scope">
{{ scope.row.joinJobDate ?scope.row.joinJobDate.substring(0, 10) : ''}} {{ scope.row.joinJobDate ? scope.row.joinJobDate.substring(0, 10) : '' }}
</template> </template>
<template #inJobDate="scope"> <template #inJobDate="scope">
{{ scope.row.inJobDate ?scope.row.inJobDate.substring(0, 10) : ''}} {{ scope.row.inJobDate ? scope.row.inJobDate.substring(0, 10) : '' }}
</template> </template>
</avue-crud> </avue-crud>
@ -103,7 +103,14 @@
</template> </template>
</el-dialog> </el-dialog>
<!-- 个人信息 --> <!-- 个人信息 -->
<el-dialog title="个人信息" append-to-body v-if="personalOpen" v-model="personalOpen" width="60%" border> <el-dialog
title="个人信息"
append-to-body
v-if="personalOpen"
v-model="personalOpen"
width="60%"
border
>
<el-table :data="personData"> <el-table :data="personData">
<el-table-column label="姓名" prop="userName" min-width="120" /> <el-table-column label="姓名" prop="userName" min-width="120" />
<el-table-column label="工号" prop="userCode" min-width="120" /> <el-table-column label="工号" prop="userCode" min-width="120" />
@ -579,7 +586,7 @@ export default {
labelWidth: 150, labelWidth: 150,
search: false, search: false,
width: 200, width: 200,
addDisplay: false, addDisplay: false,
editDisplay: false, editDisplay: false,
type: 'date', type: 'date',
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD HH:mm:ss',
@ -718,7 +725,6 @@ export default {
this.showDialog = false; this.showDialog = false;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}); });
} else { } else {
console.log('error submit!!'); console.log('error submit!!');
return false; return false;
@ -862,10 +868,8 @@ export default {
} }
const ids = idArr.join(','); const ids = idArr.join(',');
regularization({ ids: ids }).then(res => { regularization({ ids: ids }).then(res => {
if (res.code == 200) { this.$message.success('转正成功');
this.$message.success('转正成功'); this.onLoad(this.page, this.query);
this.onLoad(this.page);
}
}); });
}); });
}, },

@ -78,7 +78,7 @@
<el-table-column align="center" label="资料"> <el-table-column align="center" label="资料">
<template #default="scope"> <template #default="scope">
<!-- attachLink --> <!-- attachLink -->
<el-button v-if="scope.row.attachLink!=''" type="text" @click="downloadFile(scope.row)">资料下载</el-button> <el-button v-if="scope.row.attachLink!=''||scope.row.attachLink!=null" type="text" @click="downloadFile(scope.row)">资料下载</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -210,7 +210,7 @@ export default {
addBtn: false, addBtn: false,
labelWidth: 120, labelWidth: 120,
menu: true, menu: true,
menuWidth: 200, menuWidth: 140,
dialogWidth: 600, dialogWidth: 600,
dialogClickModal: false, dialogClickModal: false,
searchEnter: true, searchEnter: true,

@ -69,6 +69,7 @@
style="width: 100%" style="width: 100%"
clearable clearable
filterable filterable
@change="batchNoChange(scope.row, scope.$index)"
> >
<el-option <el-option
v-for="item in scope.row.tankList" v-for="item in scope.row.tankList"
@ -188,6 +189,13 @@ export default {
} }
}, },
methods: { methods: {
batchNoChange(row, index){
let select = this.form.tableData[index].tankList.filter(
row => row.id == this.form.tableData[index].batchNo
);
console.log(select, 'select');
this.form.tableData[index].batchNoName = select[0].name;
},
// //
changeWorkCenter(index) { changeWorkCenter(index) {
this.form.batchNo = ''; this.form.batchNo = '';

@ -61,11 +61,11 @@ export default {
delBtnIcon: ' ', delBtnIcon: ' ',
editBtnIcon: ' ', editBtnIcon: ' ',
viewBtnText: '详情', viewBtnText: '详情',
labelWidth: 120, labelWidth: 100,
searchLabelWidth: 120, searchLabelWidth: 120,
menu: true, menu: true,
menuWidth: 120, menuWidth: 120,
dialogWidth: 1200, dialogWidth: 450,
dialogClickModal: false, dialogClickModal: false,
searchEnter: true, searchEnter: true,
excelBtn: false, excelBtn: false,
@ -82,7 +82,7 @@ export default {
searchSpan: 6, searchSpan: 6,
searchMenuPosition: 'right', searchMenuPosition: 'right',
align: 'center', align: 'center',
span:24,
column: [ column: [
{ {
label: '作业中心', label: '作业中心',
@ -116,6 +116,7 @@ export default {
type: 'select', type: 'select',
filterable: true, filterable: true,
clearable: true, clearable: true,
span:24,
// multiple: true, // multiple: true,
search: false, search: false,
sortable: true, sortable: true,

@ -16,30 +16,28 @@
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@on-load="onLoad" @on-load="onLoad"
:row-class-name="rowClassName" :row-class-name="rowClassName"
> >
<!-- :span-method="spanMethod" --> <!-- :span-method="spanMethod" -->
<template #menu-left> <template #menu-left>
<el-button type="danger" @click="handleDeletes">批量删除</el-button>
<el-button type="primary" @click="handleMaintain">设备维护</el-button> <el-button type="primary" @click="handleMaintain">设备维护</el-button>
<el-button type="danger" @click="handleDeletes">批量删除</el-button>
</template> </template>
<template #menu-right> <template #menu-right>
<el-button type="primary" @click="handleImport"> </el-button> <el-button type="primary" @click="handleImport"> </el-button>
</template> </template>
<template #equipmentDate="scope"> <template #equipmentDate="scope">
{{ scope.row.equipmentDate ?scope.row.equipmentDate.substring(0, 10) : ''}} {{ scope.row.equipmentDate ? scope.row.equipmentDate.substring(0, 10) : '' }}
</template> </template>
<template #deviceDueDate="scope"> <template #deviceDueDate="scope">
{{ scope.row.deviceDueDate ?scope.row.deviceDueDate.substring(0, 10) : ''}} {{ scope.row.deviceDueDate ? scope.row.deviceDueDate.substring(0, 10) : '' }}
</template> </template>
<template #dataBirth="scope"> <template #dataBirth="scope">
{{ scope.row.dataBirth ?scope.row.dataBirth.substring(0, 10) : ''}} {{ scope.row.dataBirth ? scope.row.dataBirth.substring(0, 10) : '' }}
</template> </template>
<template #validityPeriodExpire="scope"> <template #validityPeriodExpire="scope">
{{ scope.row.validityPeriodExpire ?scope.row.validityPeriodExpire.substring(0, 10) : ''}} {{ scope.row.validityPeriodExpire ? scope.row.validityPeriodExpire.substring(0, 10) : '' }}
</template> </template>
</avue-crud> </avue-crud>
<!-- 设备维护 --> <!-- 设备维护 -->
<equipmentDialog <equipmentDialog
@ -172,7 +170,7 @@ export default {
overflow: true, overflow: true,
search: true, search: true,
fixed: 'left', fixed: 'left',
searchLabelWidth:50, searchLabelWidth: 50,
}, },
{ {
label: '所属班组', label: '所属班组',
@ -247,7 +245,7 @@ export default {
overflow: true, overflow: true,
search: false, search: false,
}, },
{ {
label: '设备编号', label: '设备编号',
prop: 'deviceCode', prop: 'deviceCode',
span: 24, span: 24,
@ -297,9 +295,7 @@ export default {
}, },
}; };
}, },
mounted() { mounted() {},
},
methods: { methods: {
// //
handleImport() { handleImport() {
@ -405,7 +401,7 @@ export default {
if (this.selectionList.length == 0) { if (this.selectionList.length == 0) {
this.$message.error('请至少选择一条数据'); this.$message.error('请至少选择一条数据');
} else { } else {
// certificateTypeId // certificateTypeId
const invalidItem = this.selectionList.find( const invalidItem = this.selectionList.find(
item => !item.certificateTypeId || item.certificateTypeId === '' item => !item.certificateTypeId || item.certificateTypeId === ''
); );

@ -19,8 +19,8 @@
> >
<!-- :span-method="spanMethod" --> <!-- :span-method="spanMethod" -->
<template #menu-left> <template #menu-left>
<el-button type="danger" @click="handleDeletes">批量删除</el-button>
<el-button type="primary" @click="handleMaintain">证书维护</el-button> <el-button type="primary" @click="handleMaintain">证书维护</el-button>
<el-button type="danger" @click="handleDeletes">批量删除</el-button>
</template> </template>
<template #menu-right> <template #menu-right>
<el-button type="primary" @click="handleImport"> </el-button> <el-button type="primary" @click="handleImport"> </el-button>
@ -42,16 +42,24 @@
</template> </template>
<template #airworthinessDateExpire="scope"> <template #airworthinessDateExpire="scope">
{{ scope.row.airworthinessDateExpire ? scope.row.airworthinessDateExpire.substring(0, 10) : '' }} {{
scope.row.airworthinessDateExpire
? scope.row.airworthinessDateExpire.substring(0, 10)
: ''
}}
</template> </template>
<template #astronautDate="scope"> <template #astronautDate="scope">
{{ scope.row.astronautDate ? scope.row.astronautDate.substring(0, 10) : '' }} {{ scope.row.astronautDate ? scope.row.astronautDate.substring(0, 10) : '' }}
</template> </template>
<template #astronautDateExpire="scope"> <template #astronautDateExpire="scope">
{{ scope.row.astronautDateExpire ? scope.row.astronautDateExpire.substring(0, 10) : '' }} {{ scope.row.astronautDateExpire ? scope.row.astronautDateExpire.substring(0, 10) : '' }}
</template> </template>
<template #astronautValidityPeriod="scope"> <template #astronautValidityPeriod="scope">
{{ scope.row.astronautValidityPeriod ? scope.row.astronautValidityPeriod.substring(0, 10) : '' }} {{
scope.row.astronautValidityPeriod
? scope.row.astronautValidityPeriod.substring(0, 10)
: ''
}}
</template> </template>
</avue-crud> </avue-crud>
<!-- 证书维护 --> <!-- 证书维护 -->
@ -349,7 +357,7 @@ export default {
}, },
], ],
}, },
{ {
label: '宇航有效期(年)', label: '宇航有效期(年)',
prop: 'astronautValidityPeriod', prop: 'astronautValidityPeriod',
span: 24, span: 24,

Loading…
Cancel
Save