人员能力加字段

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

@ -103,7 +103,7 @@ export default {
value: 'id',
},
change: (val, row) => {
this.onChangeData(val.item,'workCenterId')
this.onChangeData(val.item, 'workCenterId');
},
},
{
@ -113,7 +113,7 @@ export default {
sortable: true,
span: 12,
hide: true,
display:false
display: false,
},
{
label: '工序',
@ -129,7 +129,7 @@ export default {
value: 'id',
},
change: (val, row) => {
this.onChangeData(val.item,'processId')
this.onChangeData(val.item, 'processId');
},
},
{
@ -139,7 +139,7 @@ export default {
sortable: true,
span: 12,
hide: true,
display:false
display: false,
},
{
label: '工艺能力',
@ -155,7 +155,7 @@ export default {
value: 'id',
},
change: (val, row) => {
this.onChangeData(val.item,'craftId')
this.onChangeData(val.item, 'craftId');
},
},
{
@ -165,7 +165,25 @@ export default {
sortable: true,
span: 12,
hide: true,
display:false
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',
},
],
},
@ -194,17 +212,16 @@ export default {
methods: {
onChangeData(val, type) {
if (val && type == 'workCenterId') {
this.form.workCenterName=val.wcName
this.form.workCenterName = val.wcName;
}
if (val && type == 'processId') {
this.form.processName=val.name
this.form.processName = val.name;
}
if (val && type == 'craftId') {
this.form.craftName=val.caName
this.form.craftName = val.caName;
}
},
rowSave(row, done, loading) {
addPersonAbility(row).then(
() => {
this.onLoad(this.page);

Loading…
Cancel
Save