|
@@ -223,7 +223,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import { filterDept,getSubList,getCabinetBySubId,hxpChemicalJoinCabinet,getRestStockByManyCabinet,classifyList } from "@/api/medicUniversity-3_1/index";
|
|
|
|
|
|
+ import { getNoAdminSubjectListNopage,getCabinetBySubId,hxpChemicalJoinCabinet,getRestStockByManyCabinet,classifyList } from "@/api/medicUniversity-3_1/index";
|
|
import { getHxpQueryByUser } from "@/api/studentApi/chemicalManagement/index";
|
|
import { getHxpQueryByUser } from "@/api/studentApi/chemicalManagement/index";
|
|
import { getLogoInfo } from "@/api/system/publicConfig";
|
|
import { getLogoInfo } from "@/api/system/publicConfig";
|
|
export default {
|
|
export default {
|
|
@@ -529,26 +529,27 @@
|
|
//化学品存放
|
|
//化学品存放
|
|
handleAdd(){
|
|
handleAdd(){
|
|
//查询当前院系
|
|
//查询当前院系
|
|
- filterDept().then(response => {
|
|
|
|
- if(!this.selectioned.id){
|
|
|
|
- this.msgError('请勾选化学品')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- let text = "";
|
|
|
|
- let idText = "";
|
|
|
|
- for(let i=0;i<response.data.length;i++){
|
|
|
|
- if(i==0){
|
|
|
|
- text = text + response.data[i].deptName;
|
|
|
|
- idText = idText + response.data[i].deptId;
|
|
|
|
- }else{
|
|
|
|
- text = text +'-'+ response.data[i].deptName;
|
|
|
|
- idText = idText +','+ response.data[i].deptId;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- this.$set(this,'dialogDeptName',text);
|
|
|
|
- this.$set(this,'dialogDeptId',idText);
|
|
|
|
|
|
+ // filterDept().then(response => {
|
|
|
|
+ // if(!this.selectioned.id){
|
|
|
|
+ // this.msgError('请勾选化学品')
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // let text = "";
|
|
|
|
+ // let idText = "";
|
|
|
|
+ // for(let i=0;i<response.data.length;i++){
|
|
|
|
+ // if(i==0){
|
|
|
|
+ // text = text + response.data[i].deptName;
|
|
|
|
+ // idText = idText + response.data[i].deptId;
|
|
|
|
+ // }else{
|
|
|
|
+ // text = text +'-'+ response.data[i].deptName;
|
|
|
|
+ // idText = idText +','+ response.data[i].deptId;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // this.$set(this,'dialogDeptName',text);
|
|
|
|
+ // this.$set(this,'dialogDeptId',idText);
|
|
|
|
+ // this.getSubList();
|
|
|
|
+ // });
|
|
this.getSubList();
|
|
this.getSubList();
|
|
- });
|
|
|
|
},
|
|
},
|
|
backPage(){
|
|
backPage(){
|
|
this.$parent.pageToggle(0);
|
|
this.$parent.pageToggle(0);
|
|
@@ -589,8 +590,7 @@
|
|
},
|
|
},
|
|
//根据所属院系或多个院系获取实验室列表
|
|
//根据所属院系或多个院系获取实验室列表
|
|
getSubList(){
|
|
getSubList(){
|
|
- let ids = this.dialogDeptId+'';
|
|
|
|
- getSubList(ids).then(response => {
|
|
|
|
|
|
+ getNoAdminSubjectListNopage().then(response => {
|
|
this.$set(this,'dialogData',{
|
|
this.$set(this,'dialogData',{
|
|
subId:"",
|
|
subId:"",
|
|
chemicalId:"",
|
|
chemicalId:"",
|