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/部长", 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;
}, },

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

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

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

@ -127,7 +127,7 @@
</template> </template>
<script> <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 { mapGetters } from 'vuex'
import SelectTemplate from "@/views/business/comps/select/SelectTemplate"; import SelectTemplate from "@/views/business/comps/select/SelectTemplate";
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';

Loading…
Cancel
Save