班组管理问题修改 12.13

zhc4dev
zhc077 2 years ago
parent 255ea96587
commit f68f899b69
  1. 14
      ant-design-vue-jeecg/src/views/team/StationList.vue
  2. 37
      ant-design-vue-jeecg/src/views/team/modules/GroupxModal.vue
  3. 6
      ant-design-vue-jeecg/src/views/team/modules/StationModal.vue

@ -10,7 +10,7 @@
<!-- <a-form-item label="车间ID">--> <!-- <a-form-item label="车间ID">-->
<!-- <a-input placeholder="请输入车间ID" v-model="queryParam.departId"></a-input>--> <!-- <a-input placeholder="请输入车间ID" v-model="queryParam.departId"></a-input>-->
<!-- </a-form-item>--> <!-- </a-form-item>-->
<a-form-model-item label="车间编号"> <a-form-model-item label="车间">
<!-- <a-input placeholder="请输入部门编号" v-model="model.departId"/>--> <!-- <a-input placeholder="请输入部门编号" v-model="model.departId"/>-->
<j-select-depart placeholder="请选择车间" v-model="queryParam.departId"/> <j-select-depart placeholder="请选择车间" v-model="queryParam.departId"/>
</a-form-model-item> </a-form-model-item>
@ -129,25 +129,25 @@ export default {
return parseInt(index) + 1; return parseInt(index) + 1;
} }
}, },
{ /*{
title: '车间ID', title: '车间ID',
align: "center", align: "center",
dataIndex: 'departId' dataIndex: 'departId'
}, },*/
{ {
title: '车间名称', title: '车间名称',
align: "center", align: "center",
dataIndex: 'departName' dataIndex: 'departName'
}, },
{ {
title: '工位名称', title: '工位序号',
align: "center", align: "center",
dataIndex: 'stationName' dataIndex: 'stationNum'
}, },
{ {
title: '工位序号', title: '工位名称',
align: "center", align: "center",
dataIndex: 'stationNum' dataIndex: 'stationName'
}, },
{ {
title: '备注', title: '备注',

@ -24,7 +24,7 @@
<j-select-multi-user placeholder="请选择负责人" v-model="model.enterprisesManager" @change="getMobile()"/> <j-select-multi-user placeholder="请选择负责人" v-model="model.enterprisesManager" @change="getMobile()"/>
</a-form-model-item> </a-form-model-item>
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mobile" label="手机号"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mobile" label="手机号">
<a-input placeholder="请输入手机号" v-model="model.mobile" :dictCode="mobileVal"/> <a-input placeholder="请输入手机号" v-model="model.mobile"/>
<!-- <j-dict-select-tag type="list" v-model="model.mobile" :dictCode="mobileVal"></j-dict-select-tag>--> <!-- <j-dict-select-tag type="list" v-model="model.mobile" :dictCode="mobileVal"></j-dict-select-tag>-->
</a-form-model-item> </a-form-model-item>
@ -34,7 +34,7 @@
</template> </template>
<script> <script>
import {httpAction} from '@/api/manage' import {httpAction, getAction} from '@/api/manage'
import JDictSelectTag from '@/components/dict/JDictSelectTag' import JDictSelectTag from '@/components/dict/JDictSelectTag'
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart' import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
@ -48,7 +48,7 @@ export default {
return { return {
title: "操作", title: "操作",
visible: false, visible: false,
mobileVal: "", // mobileVal: "",
model: {}, model: {},
labelCol: { labelCol: {
xs: {span: 24}, xs: {span: 24},
@ -62,23 +62,25 @@ export default {
confirmLoading: false, confirmLoading: false,
validatorRules: { validatorRules: {
departId: [ departId: [
{required: true, message: "部门名称不能为空"}, {required: true, message: "部门不能为空"},
], ],
groupName: [ groupName: [
{required: true, message: "班组名称不能为空"}, {required: true, message: '班组名称不能为空!'},
{pattern: /(^[\u4e00-\u9fa5_a-zA-Z0-9_]{1,10}$)/, message: '班组名称不能为空且长度不能超过10!'}
], ],
enterprisesManager: [ enterprisesManager: [
{required: true, message: "负责人不能为空"}, {required: true, message: "负责人不能为空"},
], ],
mobile: [ // mobile: [
{required: false}, // {required: false},
{pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号码!'}, // {pattern: /^1[3456789]\d{9}$/, message: '!'},
], // ],
}, },
url: { url: {
add: "/groupx/add", add: "/groupx/add",
edit: "/groupx/edit", edit: "/groupx/edit",
sysUserList: "/sys/user/list",
}, },
} }
}, },
@ -87,7 +89,22 @@ 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 + "'";
let param = {
"username": this.model.enterprisesManager,
}
let that = this;
getAction(this.url.sysUserList, param).then((res) => {
if (res.success) {
console.log("res:" + JSON.stringify(res.result.records[0]))
console.log("res22222222:" + JSON.stringify(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 = "15112345678";
}
});
}, },
add() { add() {
// //

@ -16,7 +16,7 @@
<!-- label="车间ID">--> <!-- label="车间ID">-->
<!-- <a-input placeholder="请输入车间ID" v-model="model.departId"/>--> <!-- <a-input placeholder="请输入车间ID" v-model="model.departId"/>-->
<!-- </a-form-model-item>--> <!-- </a-form-model-item>-->
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departId" label="车间编号"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departId" label="车间">
<!-- <a-input placeholder="请输入部门编号" v-model="model.departId"/>--> <!-- <a-input placeholder="请输入部门编号" v-model="model.departId"/>-->
<j-select-depart placeholder="请选择车间" v-model="model.departId"/> <j-select-depart placeholder="请选择车间" v-model="model.departId"/>
</a-form-model-item> </a-form-model-item>
@ -58,10 +58,10 @@ export default {
confirmLoading: false, confirmLoading: false,
validatorRules: { validatorRules: {
departId: [ departId: [
{required: true}, {required: true, message: "部门不能为空"},
], ],
stationName: [ stationName: [
{required: true}, {required: true,message:"工位名称不能不空"},
], ],
stationNum: [ stationNum: [
{required: true}, {required: true},

Loading…
Cancel
Save