From 1ccee4c44055c977374a7675063cd241ccfcfe5b Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 07 五月 2024 18:23:51 +0800
Subject: [PATCH] 纤度检验表 车间不显示的问题修改
---
src/views/productManage/productRegisterForm/addProductRegisterPage.vue | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/src/views/productManage/productRegisterForm/addProductRegisterPage.vue b/src/views/productManage/productRegisterForm/addProductRegisterPage.vue
index 1ee4194..8edbfb9 100644
--- a/src/views/productManage/productRegisterForm/addProductRegisterPage.vue
+++ b/src/views/productManage/productRegisterForm/addProductRegisterPage.vue
@@ -124,7 +124,7 @@
placeholder="璇峰厛閫夋嫨杞﹂棿"
no-data-text='璇峰厛閫夋嫨杞﹂棿'
class="select-width"
- @change='getGroupNumber'
+ @change="getGroupNumber(false,'groupNumber')"
>
<el-option
v-for="item in workshopGroupList"
@@ -491,7 +491,7 @@
align="center"
>
<template slot-scope="scope">
- {{scope.row.peopleYield!=0?scope.row.peopleYield:''}}
+ {{scope.row.peopleYield!=0?scope.row.peopleYield.toFixed(2):''}}
</template>
</el-table-column>
<el-table-column
@@ -837,7 +837,7 @@
}
this.getPeopleYield(row)
row.oneYield=Number(string);
- return string;
+ return string.toFixed(2);
},
getPeopleYield(row){
let string=0
@@ -877,7 +877,7 @@
}
}
row['allYield'+val]=Number(string);
- return string;
+ return string.toFixed(2);
},
changeForm(form,val,data){
if(val){
@@ -990,21 +990,25 @@
}
});
},
- getGroupNumber(val){
+ getGroupNumber(val,prop){
if(this.ruleForm.workshopNumber){
//缁勫埆
getWorkshopManageGroup({number:this.ruleForm.workshopNumber}).then((res) => {
if (res.code == 200) {
let workshopGroupList = res.data || {};
this.workshopGroupList=[]
- this.ruleForm.groupNumber=''
if(Object.keys(workshopGroupList).length>0){
for(let i in workshopGroupList){
this.workshopGroupList.push(workshopGroupList[i])
}
+ if(prop&&prop!='groupNumber'){
+ this.ruleForm.groupNumber=''
+ }
// 缂栬緫
if(val){
- this.$set(this.ruleForm,'groupNumber',this.ruleForm.groupNumber)
+ setTimeout(()=>{
+ this.$set(this.ruleForm,'groupNumber',this.ruleForm.groupNumber)
+ },200)
}
}
}else{
--
Gitblit v1.8.0