人员能力加字段

dev-scheduling
zhangdi 3 days ago
parent d12dc51078
commit b51e440ac2
  1. 67
      src/views/productionSchedulingPlan/basic/personnelCapacity.vue

@ -102,18 +102,18 @@ export default {
label: 'wcName',
value: 'id',
},
change: (val,row) => {
this.onChangeData(val.item,'workCenterId')
change: (val, row) => {
this.onChangeData(val.item, 'workCenterId');
},
},
{
{
label: '作业中心',
prop: 'workCenterName',
search: false,
sortable: true,
span: 12,
hide:true,
display:false
hide: true,
display: false,
},
{
label: '工序',
@ -128,18 +128,18 @@ export default {
label: 'name',
value: 'id',
},
change: (val,row) => {
this.onChangeData(val.item,'processId')
change: (val, row) => {
this.onChangeData(val.item, 'processId');
},
},
{
{
label: '工序',
prop: 'processName',
search: false,
sortable: true,
span: 12,
hide:true,
display:false
hide: true,
display: false,
},
{
label: '工艺能力',
@ -154,18 +154,36 @@ export default {
label: 'caName',
value: 'id',
},
change: (val,row) => {
this.onChangeData(val.item,'craftId')
change: (val, row) => {
this.onChangeData(val.item, 'craftId');
},
},
{
{
label: '工艺能力',
prop: 'craftName',
search: false,
sortable: true,
span: 12,
hide:true,
display:false
hide: true,
display: false,
},
{
label: '统计类型',
prop: 'type',
search: false,
sortable: true,
span: 12,
type:'select',
dicData:[
{
label:'单个零件',
value:'0'
},
{
label:'订单',
value:'1'
}
]
},
{
label: '额定工时(分钟/每人每个)',
@ -174,7 +192,7 @@ export default {
sortable: true,
span: 12,
labelWidth: 220,
type: 'number'
type: 'number',
},
{
label: '准备工时(分钟)',
@ -183,7 +201,7 @@ export default {
sortable: true,
span: 12,
labelWidth: 180,
type: 'number'
type: 'number',
},
],
},
@ -192,19 +210,18 @@ export default {
};
},
methods: {
onChangeData(val,type){
if(val&&type=='workCenterId'){
this.form.workCenterName=val.wcName
onChangeData(val, type) {
if (val && type == 'workCenterId') {
this.form.workCenterName = val.wcName;
}
if(val&&type=='processId'){
this.form.processName=val.name
if (val && type == 'processId') {
this.form.processName = val.name;
}
if(val&&type=='craftId'){
this.form.craftName=val.caName
if (val && type == 'craftId') {
this.form.craftName = val.caName;
}
},
rowSave(row, done, loading) {
addPersonAbility(row).then(
() => {
this.onLoad(this.page);

Loading…
Cancel
Save