|
@@ -286,7 +286,7 @@ const setFormDataNum = (datas) => {
|
|
|
}
|
|
|
formData.value = newArr
|
|
|
}
|
|
|
-
|
|
|
+const sampledata=ref([])
|
|
|
//展开事件
|
|
|
const ActiveKey = ref('')
|
|
|
const formKeyIds = ref('')
|
|
@@ -398,17 +398,37 @@ const setTableFormBlurReg = (pkeyId, event, key, reg, val, msg, item, index) =>
|
|
|
}
|
|
|
}
|
|
|
//关联取样成功改变所有表格取样名称数据
|
|
|
-const changeSimpleInput=(infodata,id)=>{
|
|
|
- formData.value.forEach((item)=>{
|
|
|
- if(item.pkeyId==id){
|
|
|
- for(let i in infodata){
|
|
|
- item[i]=infodata[i]
|
|
|
- }
|
|
|
- }
|
|
|
+// const changeSimpleInput=(infodata,id)=>{
|
|
|
+// formData.value.forEach((item)=>{
|
|
|
+// if(item.pkeyId==id){
|
|
|
+// for(let i in infodata){
|
|
|
+// item[i]=infodata[i]
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
|
|
|
- })
|
|
|
- console.log( formData.value,' formData.value');
|
|
|
+// })
|
|
|
+// console.log( formData.value,' formData.value');
|
|
|
+// }
|
|
|
+const getsampleData=()=>{
|
|
|
+ console.log(sampledata.value,'sampledata.value');
|
|
|
+ if(sampledata.value.length>0){
|
|
|
+ formData.value.forEach((ele)=>{
|
|
|
+ sampledata.value.forEach((item)=>{
|
|
|
+ if(item.tabPKeyId===ele.pkeyId){
|
|
|
+ for(let i in item){
|
|
|
+ ele[i]=item[i]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
+const changeSimpleInput=(infodata,id)=>{
|
|
|
+ sampledata.value=infodata
|
|
|
+
|
|
|
+ getsampleData()
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -431,6 +451,7 @@ const getBussDataInfo = async (item, index) => {
|
|
|
...item,
|
|
|
isCollapseLoad: true
|
|
|
}
|
|
|
+ getsampleData()
|
|
|
}else{
|
|
|
console.log(2222222222);
|
|
|
data.forEach((item1)=>{
|
|
@@ -442,11 +463,13 @@ const getBussDataInfo = async (item, index) => {
|
|
|
...resData, ...InitObj,
|
|
|
isCollapseLoad: true
|
|
|
}
|
|
|
+ getsampleData()
|
|
|
}else {
|
|
|
formData.value[index] = {
|
|
|
...getFormDataInit(item),
|
|
|
isCollapseLoad: true
|
|
|
}
|
|
|
+ getsampleData()
|
|
|
}
|
|
|
})
|
|
|
|