|
@@ -1009,18 +1009,20 @@
|
1009
|
1009
|
};
|
1010
|
1010
|
post("/simple/data/fetchDataList/workScheme", postData).then((res) => {
|
1011
|
1011
|
if (res.status == 200) {
|
1012
|
|
- this.workSchemeId = res.list[0].id;
|
1013
|
|
- this.workSchemeType = res.list[0].workType;
|
1014
|
|
- if (type) {
|
1015
|
|
- if (this.workSchemeType == 2) {
|
1016
|
|
- this.getCombinationById(0, "no");
|
1017
|
|
- } else if (this.workSchemeType == 1) {
|
1018
|
|
- if (uni.getStorageSync("setDeptConfg")) {
|
1019
|
|
- uni.removeStorageSync("setDeptConfg"); //清空选择的科室配置,初始化
|
|
1012
|
+ if(Array.isArray(res.list) && res.list.length){
|
|
1013
|
+ this.workSchemeId = res.list[0].id;
|
|
1014
|
+ this.workSchemeType = res.list[0].workType;
|
|
1015
|
+ if (type) {
|
|
1016
|
+ if (this.workSchemeType == 2) {
|
|
1017
|
+ this.getCombinationById(0, "no");
|
|
1018
|
+ } else if (this.workSchemeType == 1) {
|
|
1019
|
+ if (uni.getStorageSync("setDeptConfg")) {
|
|
1020
|
+ uni.removeStorageSync("setDeptConfg"); //清空选择的科室配置,初始化
|
|
1021
|
+ }
|
1020
|
1022
|
}
|
|
1023
|
+ } else {
|
|
1024
|
+ this.getCombinationById(0);
|
1021
|
1025
|
}
|
1022
|
|
- } else {
|
1023
|
|
- this.getCombinationById(0);
|
1024
|
1026
|
}
|
1025
|
1027
|
} else {
|
1026
|
1028
|
uni.showToast({
|