库房管理->采购管理->采购管理点击《详情》按钮跳转后无数据显示
This commit is contained in:
6
openhis-ui-vue3/package-lock.json
generated
6
openhis-ui-vue3/package-lock.json
generated
@@ -44,7 +44,7 @@
|
|||||||
"sass": "1.69.5",
|
"sass": "1.69.5",
|
||||||
"unplugin-auto-import": "0.17.1",
|
"unplugin-auto-import": "0.17.1",
|
||||||
"unplugin-vue-setup-extend-plus": "1.0.0",
|
"unplugin-vue-setup-extend-plus": "1.0.0",
|
||||||
"vite": "5.0.4",
|
"vite": "^5.0.4",
|
||||||
"vite-plugin-compression": "0.5.1",
|
"vite-plugin-compression": "0.5.1",
|
||||||
"vite-plugin-svg-icons": "2.0.1"
|
"vite-plugin-svg-icons": "2.0.1"
|
||||||
}
|
}
|
||||||
@@ -7020,7 +7020,7 @@
|
|||||||
},
|
},
|
||||||
"node_modules/vite": {
|
"node_modules/vite": {
|
||||||
"version": "5.0.4",
|
"version": "5.0.4",
|
||||||
"resolved": "https://registry.npmmirror.com/vite/-/vite-5.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-5.0.4.tgz",
|
||||||
"integrity": "sha512-RzAr8LSvM8lmhB4tQ5OPcBhpjOZRZjuxv9zO5UcxeoY2bd3kP3Ticd40Qma9/BqZ8JS96Ll/jeBX9u+LJZrhVg==",
|
"integrity": "sha512-RzAr8LSvM8lmhB4tQ5OPcBhpjOZRZjuxv9zO5UcxeoY2bd3kP3Ticd40Qma9/BqZ8JS96Ll/jeBX9u+LJZrhVg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -12419,7 +12419,7 @@
|
|||||||
},
|
},
|
||||||
"vite": {
|
"vite": {
|
||||||
"version": "5.0.4",
|
"version": "5.0.4",
|
||||||
"resolved": "https://registry.npmmirror.com/vite/-/vite-5.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-5.0.4.tgz",
|
||||||
"integrity": "sha512-RzAr8LSvM8lmhB4tQ5OPcBhpjOZRZjuxv9zO5UcxeoY2bd3kP3Ticd40Qma9/BqZ8JS96Ll/jeBX9u+LJZrhVg==",
|
"integrity": "sha512-RzAr8LSvM8lmhB4tQ5OPcBhpjOZRZjuxv9zO5UcxeoY2bd3kP3Ticd40Qma9/BqZ8JS96Ll/jeBX9u+LJZrhVg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
"sass": "1.69.5",
|
"sass": "1.69.5",
|
||||||
"unplugin-auto-import": "0.17.1",
|
"unplugin-auto-import": "0.17.1",
|
||||||
"unplugin-vue-setup-extend-plus": "1.0.0",
|
"unplugin-vue-setup-extend-plus": "1.0.0",
|
||||||
"vite": "5.0.4",
|
"vite": "^5.0.4",
|
||||||
"vite-plugin-compression": "0.5.1",
|
"vite-plugin-compression": "0.5.1",
|
||||||
"vite-plugin-svg-icons": "2.0.1"
|
"vite-plugin-svg-icons": "2.0.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1451,11 +1451,13 @@ function getDiagnosisInfo() {
|
|||||||
let diagnosisInfo = diagnosisList.value.filter((item) => {
|
let diagnosisInfo = diagnosisList.value.filter((item) => {
|
||||||
return item.maindiseFlag == 1;
|
return item.maindiseFlag == 1;
|
||||||
});
|
});
|
||||||
diagnosisInfo.value = diagnosisInfo[0];
|
if (diagnosisInfo.length > 0) {
|
||||||
conditionDefinitionId.value = diagnosisInfo[0].definitionId;
|
diagnosisInfo.value = diagnosisInfo[0];
|
||||||
conditionId.value = diagnosisInfo[0].conditionId;
|
conditionDefinitionId.value = diagnosisInfo[0].definitionId;
|
||||||
encounterDiagnosisId.value = diagnosisInfo[0].encounterDiagnosisId;
|
conditionId.value = diagnosisInfo[0].conditionId;
|
||||||
diagnosisName.value = diagnosisInfo[0].name;
|
encounterDiagnosisId.value = diagnosisInfo[0].encounterDiagnosisId;
|
||||||
|
diagnosisName.value = diagnosisInfo[0].name;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -765,10 +765,16 @@ watch(
|
|||||||
if (newVlaue) {
|
if (newVlaue) {
|
||||||
editData.value.editRow = newVlaue?.editRow;
|
editData.value.editRow = newVlaue?.editRow;
|
||||||
editData.value.item = newVlaue?.item;
|
editData.value.item = newVlaue?.item;
|
||||||
edit();
|
// 使用nextTick确保变量初始化完成后再执行edit
|
||||||
|
nextTick(() => {
|
||||||
|
edit();
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
editData.value = {};
|
editData.value = {};
|
||||||
show();
|
// 使用nextTick确保变量初始化完成后再执行show
|
||||||
|
nextTick(() => {
|
||||||
|
show();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
@@ -1156,6 +1162,12 @@ function changeValEnd(val, index) {
|
|||||||
}
|
}
|
||||||
// 切换仓库类型获取药房/药库/耗材库列表
|
// 切换仓库类型获取药房/药库/耗材库列表
|
||||||
function handleChangeLocationType(value) {
|
function handleChangeLocationType(value) {
|
||||||
|
// 确保locationList变量已初始化
|
||||||
|
if (!locationList) {
|
||||||
|
console.warn('locationList未初始化');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (value == 16) {
|
if (value == 16) {
|
||||||
// 药房类型
|
// 药房类型
|
||||||
getPharmacyList().then((res) => {
|
getPharmacyList().then((res) => {
|
||||||
|
|||||||
@@ -590,6 +590,7 @@ const visible = ref(false);
|
|||||||
const row = ref({});
|
const row = ref({});
|
||||||
const rowIndex = ref(-1);
|
const rowIndex = ref(-1);
|
||||||
const totalAmount = ref(0);
|
const totalAmount = ref(0);
|
||||||
|
const locationList = ref([]);
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
practitionerListOptions: {
|
practitionerListOptions: {
|
||||||
type: Object,
|
type: Object,
|
||||||
@@ -768,7 +769,6 @@ function handleSearch(value) {
|
|||||||
medicineSearchKey.value = value;
|
medicineSearchKey.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
const locationList = ref([]);
|
|
||||||
// 选择药品
|
// 选择药品
|
||||||
function selectRow(rowValue, index) {
|
function selectRow(rowValue, index) {
|
||||||
rowIndex.value = index;
|
rowIndex.value = index;
|
||||||
|
|||||||
Reference in New Issue
Block a user