Merge branch 'bjxz-cjw' into bjxz-dev
This commit is contained in:
commit
103b87a61d
@ -1767,6 +1767,33 @@
|
|||||||
label-position="top"
|
label-position="top"
|
||||||
label-width="80px"
|
label-width="80px"
|
||||||
>
|
>
|
||||||
|
<!-- 选择企业 -->
|
||||||
|
<el-form-item
|
||||||
|
:label="$t('message.laborMange.set')"
|
||||||
|
prop="enterpriseId"
|
||||||
|
:rules="[
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: $t('message.laborMange.pleaseSelectMoveTo'),
|
||||||
|
trigger: 'change',
|
||||||
|
},
|
||||||
|
]"
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="batchMoveForm.enterpriseId"
|
||||||
|
:placeholder="$t('message.laborMange.pleaseChoose')"
|
||||||
|
@change="changeMoveCompany"
|
||||||
|
style="width: 100%"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in enterpriseListData"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.enterpriseName"
|
||||||
|
:value="item.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- 选择部门 -->
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('message.laborMange.mobileDivision')"
|
:label="$t('message.laborMange.mobileDivision')"
|
||||||
prop="departmentId"
|
prop="departmentId"
|
||||||
@ -2190,6 +2217,7 @@ export default {
|
|||||||
batchMoveDialog: false, //批量移动弹窗
|
batchMoveDialog: false, //批量移动弹窗
|
||||||
//批量移动表单
|
//批量移动表单
|
||||||
batchMoveForm: {
|
batchMoveForm: {
|
||||||
|
enterpriseId: "",
|
||||||
departmentId: "",
|
departmentId: "",
|
||||||
},
|
},
|
||||||
moveTeamList: [], // 选择移动的班组的列表
|
moveTeamList: [], // 选择移动的班组的列表
|
||||||
@ -3601,12 +3629,35 @@ export default {
|
|||||||
batchMove() {
|
batchMove() {
|
||||||
this.batchMoveDialog = true;
|
this.batchMoveDialog = true;
|
||||||
this.batchMoveForm = {
|
this.batchMoveForm = {
|
||||||
|
enterpriseId: "",
|
||||||
departmentId: "",
|
departmentId: "",
|
||||||
};
|
};
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$refs["batchMoveForm"].clearValidate();
|
this.$refs["batchMoveForm"].clearValidate();
|
||||||
}, 120);
|
}, 120);
|
||||||
},
|
},
|
||||||
|
//选择批量移动的 公司时
|
||||||
|
changeMoveCompany(value) {
|
||||||
|
this.batchMoveForm.departmentId = "";
|
||||||
|
let data = {
|
||||||
|
enterpriseId: value,
|
||||||
|
projectSn: this.projectSn,
|
||||||
|
};
|
||||||
|
getDepartmentInfoList(data).then((res) => {
|
||||||
|
console.log("移动时,部门列表数据=====:", res);
|
||||||
|
if (res.code == 200) {
|
||||||
|
// this.checkedTeamId = 0;
|
||||||
|
// this.checkedTeamId = type !== 1 ? 0 : this.checkedTeamId;
|
||||||
|
this.teamListData = res.result;
|
||||||
|
// this.getTableData();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// getTeamInfoList(data).then((res) => {
|
||||||
|
// if (res.code == 200) {
|
||||||
|
// this.moveTeamList = res.result;
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
|
||||||
//批量移动 保存按钮
|
//批量移动 保存按钮
|
||||||
saveBatchMove(formName) {
|
saveBatchMove(formName) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user