班组管理问题修改 12.13

zhc4dev
zhc077 2 years ago
parent f68f899b69
commit e2d6607b43
  1. 2
      ant-design-vue-jeecg/src/views/team/GroupxList.vue
  2. 11
      ant-design-vue-jeecg/src/views/team/GroupxMemberList.vue
  3. 18
      ant-design-vue-jeecg/src/views/team/modules/GroupxMemberModal.vue
  4. 10
      ant-design-vue-jeecg/src/views/team/modules/GroupxModal.vue
  5. 6
      ant-design-vue-jeecg/src/views/team/modules/StationModal.vue

@ -204,6 +204,8 @@ export default {
query: { // query: { //
'groupxId': record.id, 'groupxId': record.id,
'groupName': record.groupName, 'groupName': record.groupName,
'departName': record.departId_dictText,
// 'departName': record.enterprisesManager,
}, },
}); });
}, },

@ -129,9 +129,9 @@ export default {
} }
}, },
{ {
title: '班组ID', title: '部门名称',
align: "center", align: "center",
dataIndex: 'groupxId' dataIndex: 'departName'
}, },
{ {
title: '班组名称', title: '班组名称',
@ -139,7 +139,7 @@ export default {
dataIndex: 'groupName' dataIndex: 'groupName'
}, },
{ {
title: '成员ID', title: '成员名称',
align: "center", align: "center",
dataIndex: 'userId' dataIndex: 'userId'
}, },
@ -166,6 +166,7 @@ export default {
loadRouteType: false, loadRouteType: false,
groupxId: "", groupxId: "",
groupName: "", groupName: "",
departName: "",
dictOptions: {}, dictOptions: {},
// superFieldList: [], // superFieldList: [],
} }
@ -192,8 +193,9 @@ export default {
if (this.loadRouteType === false) { if (this.loadRouteType === false) {
this.groupxId = this.$route.query.groupxId; this.groupxId = this.$route.query.groupxId;
this.groupName = this.$route.query.groupName; this.groupName = this.$route.query.groupName;
this.departName = this.$route.query.departName;
// this.biaoTi = this.$route.query.styleNames+""; // this.biaoTi = this.$route.query.styleNames+"";
// console.log("*******groupxId:" + this.groupxId) console.log("*******departName:" + this.departName)
this.loadRouteType = true; this.loadRouteType = true;
} }
}, },
@ -224,6 +226,7 @@ export default {
}).finally(() => { }).finally(() => {
this.dataSource.forEach(item => { this.dataSource.forEach(item => {
item['groupName'] = this.groupName; item['groupName'] = this.groupName;
item['departName'] = this.departName;
}) })
this.loading = false this.loading = false
}) })

@ -16,13 +16,13 @@
<!-- &lt;!&ndash; <a-input placeholder="请选择班组" v-model="model.groupxId" />&ndash;&gt;--> <!-- &lt;!&ndash; <a-input placeholder="请选择班组" v-model="model.groupxId" />&ndash;&gt;-->
<!-- <j-search-select-tag placeholder="请选择班组" v-model="model.groupxId" dict="groupx,group_name,id"/>--> <!-- <j-search-select-tag placeholder="请选择班组" v-model="model.groupxId" dict="groupx,group_name,id"/>-->
<!-- </a-form-model-item>--> <!-- </a-form-model-item>-->
<a-form-item :label-col="labelCol" :wrapper-col="wrapperCol" label="班组成员"> <a-form-model-item :label-col="labelCol" :wrapper-col="wrapperCol" prop="userId" label="班组成员">
<!-- <j-select-user-by-dep v-model="model.userId" :multi="false"></j-select-user-by-dep>--> <!-- <j-select-user-by-dep v-model="model.userId" :multi="false"></j-select-user-by-dep>-->
<j-select-multi-user placeholder="请选择成员" v-model="model.userId"></j-select-multi-user> <j-select-multi-user placeholder="请选择成员" v-model="model.userId"></j-select-multi-user>
</a-form-item>
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="joinTime" label="加入时间">
<a-date-picker showTime valueFormat='YYYY-MM-DD HH:mm:ss' v-model="model.joinTime"/>
</a-form-model-item> </a-form-model-item>
<!-- <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="joinTime" label="加入时间">-->
<!-- <a-date-picker showTime valueFormat='YYYY-MM-DD HH:mm:ss' v-model="model.joinTime"/>-->
<!-- </a-form-model-item>-->
</a-form-model> </a-form-model>
</a-spin> </a-spin>
@ -54,11 +54,11 @@ export default {
confirmLoading: false, confirmLoading: false,
validatorRules: { validatorRules: {
userId: [ userId: [
{required: true}, {required: true, message: "成员不能为空"},
], ],
joinTime: [ // joinTime: [
{required: true}, // {required: true},
] // ]
}, },
url: { url: {
add: "/groupxMember/add", add: "/groupxMember/add",

@ -89,7 +89,8 @@ export default {
methods: { methods: {
getMobile() { getMobile() {
alert(this.model.enterprisesManager); alert(this.model.enterprisesManager);
// this.mobileVal = "sys_user,phone,username,username='" + this.model.enterprisesManager + "'"; this.mobileVal = "sys_user,phone,username,username='" + this.model.enterprisesManager + "'";
// this.model.mobile = "123456789";
let param = { let param = {
"username": this.model.enterprisesManager, "username": this.model.enterprisesManager,
@ -101,10 +102,13 @@ export default {
console.log("res22222222:" + JSON.stringify(res.result.records[0].phone)); console.log("res22222222:" + JSON.stringify(res.result.records[0].phone));
// this.model.mobile = res.result.records[0].phone; // this.model.mobile = res.result.records[0].phone;
// this.model.mobile = JSON.stringify(res.result.records[0].phone) // this.model.mobile = JSON.stringify(res.result.records[0].phone)
this.model.mobile = "15112345678"; if (JSON.stringify(res.result.records[0].phone)!=="") {
that.model.mobile = "15112345678";
} else {
that.model.mobile = JSON.stringify(res.result.records[0].phone)
}
} }
}); });
}, },
add() { add() {
// //

@ -61,10 +61,12 @@ export default {
{required: true, message: "部门不能为空"}, {required: true, message: "部门不能为空"},
], ],
stationName: [ stationName: [
{required: true,message:"工位名称不能不空"}, {required: true,message:"工位名称不能为空"},
{pattern: /(^[\u4e00-\u9fa5_a-zA-Z0-9_]{1,10}$)/, message: '工位名称为空且长度不能超过10!'}
], ],
stationNum: [ stationNum: [
{required: true}, {required: true,message:"工位序号不能不空"},
{pattern: /^[1-9]{0,100}$/, message: '工位序号不能为空且长度范围在(1-100)间!'}
], ],
}, },
url: { url: {

Loading…
Cancel
Save