|
|
|
@ -39,10 +39,19 @@ |
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick"> |
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick"> |
|
|
|
<el-tab-pane :label="item.dictValue" :name="item.dictValue" v-for="item in tabArr" :key="item.dictValue"> |
|
|
|
<el-tab-pane :label="item.dictValue" :name="item.dictValue" v-for="item in tabArr" :key="item.dictValue"> |
|
|
|
<div class="form_box"> |
|
|
|
<div class="form_box"> |
|
|
|
<avue-form ref="addFrom" :option="item.addOption" v-model="item.addForm" @submit="handleSubmit"></avue-form> |
|
|
|
<avue-form ref="addFrom" :option="item.addOption" v-model="item.addForm"></avue-form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</el-tab-pane> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
<span style="margin-right:10px">选择医院</span> <el-select v-model="deptName"> |
|
|
|
|
|
|
|
<el-option |
|
|
|
|
|
|
|
v-for="item in hospitalArr" |
|
|
|
|
|
|
|
:key="item.id" |
|
|
|
|
|
|
|
:label="item.deptName" |
|
|
|
|
|
|
|
:value="item.id"> |
|
|
|
|
|
|
|
</el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-show="!isShow"> |
|
|
|
<div v-show="!isShow"> |
|
|
|
<el-calendar v-model="calValue"> |
|
|
|
<el-calendar v-model="calValue"> |
|
|
|
@ -55,6 +64,10 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-calendar> |
|
|
|
</el-calendar> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="button_box" > |
|
|
|
|
|
|
|
<el-button @click="closeDraw">取消</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" @click="handleSubmit">提交</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="button_box" v-show="!isShow"> |
|
|
|
<div class="button_box" v-show="!isShow"> |
|
|
|
<el-button @click="closeDraw">取消</el-button> |
|
|
|
<el-button @click="closeDraw">取消</el-button> |
|
|
|
<el-button type="primary" @click="clickSubmit">提交</el-button> |
|
|
|
<el-button type="primary" @click="clickSubmit">提交</el-button> |
|
|
|
@ -64,13 +77,14 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import {getNumList,getExamProject,addExamProject,getHosList,examProjectDetail} from "@/api/booknumber/booknumber"; |
|
|
|
import {getNumList,getExamProject,addExamProject,getHosList,examProjectDetail,} from "@/api/booknumber/booknumber"; |
|
|
|
import {getUserInfo,getList} from '@/api/system/user' |
|
|
|
import {getUserInfo,getList} from '@/api/system/user' |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
deptName:"", |
|
|
|
form: {}, |
|
|
|
form: {}, |
|
|
|
selectionList: [], |
|
|
|
selectionList: [], |
|
|
|
query: {}, |
|
|
|
query: {}, |
|
|
|
@ -246,6 +260,8 @@ export default { |
|
|
|
dictValue:item.dictValue, |
|
|
|
dictValue:item.dictValue, |
|
|
|
dictKey:item.dictKey, |
|
|
|
dictKey:item.dictKey, |
|
|
|
addOption:{ |
|
|
|
addOption:{ |
|
|
|
|
|
|
|
submitBtn:false, |
|
|
|
|
|
|
|
emptyBtn:false, |
|
|
|
column: [ |
|
|
|
column: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label:'上午', |
|
|
|
label:'上午', |
|
|
|
@ -335,24 +351,6 @@ export default { |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
|
|
|
label: '投放医院', |
|
|
|
|
|
|
|
prop: 'select', |
|
|
|
|
|
|
|
type: 'select', |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: 'deptName', |
|
|
|
|
|
|
|
value: 'id' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
display:true, |
|
|
|
|
|
|
|
dicUrl: '/api/blade-system/dept-hospital/list-hospital', |
|
|
|
|
|
|
|
rules: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: '请选择投放医院', |
|
|
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
addForm:{ |
|
|
|
addForm:{ |
|
|
|
@ -430,7 +428,6 @@ export default { |
|
|
|
num: 0 |
|
|
|
num: 0 |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
select:'' |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
if(this.userInfo.role_name !== "hospital"){ |
|
|
|
if(this.userInfo.role_name !== "hospital"){ |
|
|
|
@ -462,6 +459,7 @@ export default { |
|
|
|
this.isShow = true; |
|
|
|
this.isShow = true; |
|
|
|
this.activeName = data[0].project; |
|
|
|
this.activeName = data[0].project; |
|
|
|
// let val = this.tabArr.find(item => item.dictValue == this.activeName); |
|
|
|
// let val = this.tabArr.find(item => item.dictValue == this.activeName); |
|
|
|
|
|
|
|
|
|
|
|
this.tabArr.map(item => { |
|
|
|
this.tabArr.map(item => { |
|
|
|
if(this.userInfo.role_name !== 'hospital'){ |
|
|
|
if(this.userInfo.role_name !== 'hospital'){ |
|
|
|
item.addOption.column.find(item => item.prop == "select").display = true; |
|
|
|
item.addOption.column.find(item => item.prop == "select").display = true; |
|
|
|
@ -538,7 +536,8 @@ export default { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
// this.tabArr = this.tabArr.filter(item => item.dictValue == this.activeName) |
|
|
|
|
|
|
|
// console.log(this.tabArr) |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
console.log(this.tabArr) |
|
|
|
console.log(this.tabArr) |
|
|
|
@ -638,14 +637,18 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 提交放号 |
|
|
|
// 提交放号 |
|
|
|
clickSubmit(){ |
|
|
|
clickSubmit(){ |
|
|
|
|
|
|
|
// this.tabArr.find(item => { |
|
|
|
|
|
|
|
// console.log('ces =>', item.addForm.select) |
|
|
|
|
|
|
|
// }) |
|
|
|
let values = { |
|
|
|
let values = { |
|
|
|
dayList:this.dayArr, |
|
|
|
dayList:this.dayArr, |
|
|
|
createDept:this.addForm1.select == undefined ? this.userInfo.dept_id : this.addForm1.select, |
|
|
|
createDept:this.deptName, |
|
|
|
} |
|
|
|
} |
|
|
|
let configListVOS = [] |
|
|
|
let configListVOS = [] |
|
|
|
this.tabArr.map(item =>{ |
|
|
|
this.tabArr.map(item =>{ |
|
|
|
|
|
|
|
console.log(item) |
|
|
|
configListVOS.push({ |
|
|
|
configListVOS.push({ |
|
|
|
createDept:this.addForm1.select == undefined ? this.userInfo.dept_id : this.addForm1.select, |
|
|
|
createDept:values.createDept, |
|
|
|
project:item.dictValue, |
|
|
|
project:item.dictValue, |
|
|
|
detailList:[] |
|
|
|
detailList:[] |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ -704,7 +707,7 @@ export default { |
|
|
|
configListVOS = configListVOS.filter(item => item.detailList.length !== 0); |
|
|
|
configListVOS = configListVOS.filter(item => item.detailList.length !== 0); |
|
|
|
values.configListVOS = configListVOS |
|
|
|
values.configListVOS = configListVOS |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log(values) |
|
|
|
addExamProject(values).then(res =>{ |
|
|
|
addExamProject(values).then(res =>{ |
|
|
|
console.log(res) |
|
|
|
console.log(res) |
|
|
|
if(res.data.code == 200){ |
|
|
|
if(res.data.code == 200){ |
|
|
|
@ -781,6 +784,9 @@ export default { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang='scss' scoped> |
|
|
|
<style lang='scss' scoped> |
|
|
|
|
|
|
|
::v-deep .el-tabs__content{ |
|
|
|
|
|
|
|
height: 550px; |
|
|
|
|
|
|
|
} |
|
|
|
::v-deep .cla{ |
|
|
|
::v-deep .cla{ |
|
|
|
color: #F93A4A; |
|
|
|
color: #F93A4A; |
|
|
|
} |
|
|
|
} |
|
|
|
|