增加小数点后几位的限制

dev-scheduling
zhangdi 1 month ago
parent 7e009212c2
commit 797924d440
  1. 39
      src/views/productionSchedulingPlan/basic/oemProcess.vue

@ -194,28 +194,27 @@ export default {
if(!val.value){ if(!val.value){
return false return false
} }
// id const item = val.dic.find(dic => dic.id === val.value);
const selectedNames = val.value.map(id => { this.form.processName = selectedNames.name
const item = val.dic.find(dic => dic.id === id); // // id
return item ? item.name : ''; // const selectedNames = val.value.map(id => {
}) // const item = val.dic.find(dic => dic.id === id);
.filter(name => name) // // return item ? item.name : '';
.join(','); // })
// .filter(name => name) //
// .join(',');
// / // // /
if (row) { // if (row) {
// - // // -
this.form.processName = selectedNames; // this.form.processName = selectedNames;
this.form.processId = val.value.join(','); // this.form.processId = val.value.join(',');
} else { // } else {
// - // // -
this.form.processName = selectedNames; // this.form.processName = selectedNames;
this.form.processId = val.value.join(','); // this.form.processId = val.value.join(',');
} // }
} }
// if (val && type == 'craftId') {
// this.form.craftName = val.caName;
// }
}, },
rowSave(row, done, loading) { rowSave(row, done, loading) {
addOutsourceProcess(row).then( addOutsourceProcess(row).then(

Loading…
Cancel
Save