Browse Source

fix:[资源库管理]麻精药申请单

lkf
15881625488@163.com 3 months ago
parent
commit
1722b7c122
3 changed files with 26 additions and 11 deletions
  1. +23
    -10
      src/views/business/comps/template/comps/gy/MJYLQSQD.vue
  2. +2
    -0
      src/views/business/comps/template/dialog/SelectReagentDialog.vue
  3. +1
    -1
      src/views/business/study/comp/sqbd/Bj.vue

+ 23
- 10
src/views/business/comps/template/comps/gy/MJYLQSQD.vue View File

@ -104,7 +104,6 @@ export default {
label: "SD/部长",
type: "input",
fillType: "actFill",
disabled: true,
},
sywzmc: {
label: "试验物质名称",
@ -177,7 +176,7 @@ export default {
data() {
return {
syId:null,
depId:null,
bmId:null,
sdId:null,
public_studyList:public_studyList,
searchForm: {
@ -219,13 +218,27 @@ export default {
},
methods: {
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")
this.$refs.selectReagentDialogRef.onCancel()
},
@ -241,7 +254,7 @@ export default {
async getFormData() {
let content = await this.validFormFields(["baseInfoRef","remarkRef"]);
content.syId=this.syId
content.depId=this.depId
content.bmId=this.bmId
content.sdId=this.sdId
return content;
},

+ 2
- 0
src/views/business/comps/template/dialog/SelectReagentDialog.vue View File

@ -157,10 +157,12 @@ export default {
if(this.type === 'MJYLQSQD') {
if(this.radio === 1) {
row = row;
row.type=this.radio
}else{
const o = this.bzList.find(item => item.deptId == this.depart);
if(o){
row = o;
row.type=this.radio
}else{
this.$message.error(`该部门没有设置部长!`)
return

+ 1
- 1
src/views/business/study/comp/sqbd/Bj.vue View File

@ -127,7 +127,7 @@
</template>
<script>
import { studyFormApply_bc, studyFormApply_tj, studyFormApply_info, studyFormApply_updateBdnr } from "@/api/business/study/studyFormApply"
import { studyFormApply_bc, studyFormApply_tj, studyFormApply_info, studyFormApply_updateBdnr ,studyFormApply_updateFhyjjl } from "@/api/business/study/studyFormApply"
import { mapGetters } from 'vuex'
import SelectTemplate from "@/views/business/comps/select/SelectTemplate";
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';

Loading…
Cancel
Save