|
|
@ -104,7 +104,6 @@ export default { |
|
|
label: "SD/部长", |
|
|
label: "SD/部长", |
|
|
type: "input", |
|
|
type: "input", |
|
|
fillType: "actFill", |
|
|
fillType: "actFill", |
|
|
disabled: true, |
|
|
|
|
|
}, |
|
|
}, |
|
|
sywzmc: { |
|
|
sywzmc: { |
|
|
label: "试验物质名称", |
|
|
label: "试验物质名称", |
|
|
@ -177,7 +176,7 @@ export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
syId:null, |
|
|
syId:null, |
|
|
depId:null, |
|
|
|
|
|
|
|
|
bmId:null, |
|
|
sdId:null, |
|
|
sdId:null, |
|
|
public_studyList:public_studyList, |
|
|
public_studyList:public_studyList, |
|
|
searchForm: { |
|
|
searchForm: { |
|
|
@ -219,13 +218,27 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
onDialogSubmit(selectedId,currentRow){ |
|
|
onDialogSubmit(selectedId,currentRow){ |
|
|
this.$refs.baseInfoRef.batchUpdateFormData({ |
|
|
|
|
|
syNo: currentRow.sn, |
|
|
|
|
|
SD: currentRow.leaderName, |
|
|
|
|
|
}); |
|
|
|
|
|
// this.syId='' todo |
|
|
|
|
|
// this.depId='' |
|
|
|
|
|
// this.sdId='' |
|
|
|
|
|
|
|
|
console.log(JSON.stringify(currentRow)) |
|
|
|
|
|
//试验 |
|
|
|
|
|
if(currentRow.type==1){ |
|
|
|
|
|
this.$refs.baseInfoRef.batchUpdateFormData({ |
|
|
|
|
|
syNo: currentRow.sn, |
|
|
|
|
|
SD: currentRow.leaderName, |
|
|
|
|
|
}); |
|
|
|
|
|
this.syId=currentRow.id |
|
|
|
|
|
this.bmId=currentRow.deptId |
|
|
|
|
|
this.sdId=currentRow.leader |
|
|
|
|
|
} |
|
|
|
|
|
//部门 |
|
|
|
|
|
if(currentRow.type==2){ |
|
|
|
|
|
this.$refs.baseInfoRef.batchUpdateFormData({ |
|
|
|
|
|
syNo: currentRow.deptName, |
|
|
|
|
|
SD: currentRow.nickName, |
|
|
|
|
|
}); |
|
|
|
|
|
this.syId='' |
|
|
|
|
|
this.bmId=currentRow.deptId |
|
|
|
|
|
this.sdId=currentRow.userId |
|
|
|
|
|
} |
|
|
console.log(currentRow,"currentRow") |
|
|
console.log(currentRow,"currentRow") |
|
|
this.$refs.selectReagentDialogRef.onCancel() |
|
|
this.$refs.selectReagentDialogRef.onCancel() |
|
|
}, |
|
|
}, |
|
|
@ -241,7 +254,7 @@ export default { |
|
|
async getFormData() { |
|
|
async getFormData() { |
|
|
let content = await this.validFormFields(["baseInfoRef","remarkRef"]); |
|
|
let content = await this.validFormFields(["baseInfoRef","remarkRef"]); |
|
|
content.syId=this.syId |
|
|
content.syId=this.syId |
|
|
content.depId=this.depId |
|
|
|
|
|
|
|
|
content.bmId=this.bmId |
|
|
content.sdId=this.sdId |
|
|
content.sdId=this.sdId |
|
|
return content; |
|
|
return content; |
|
|
}, |
|
|
}, |
|
|
|