|
|
@@ -11,6 +11,7 @@
|
|
|
filterable
|
|
|
placeholder="选择项目"
|
|
|
popper-class="custom-header"
|
|
|
+ @change="selectDisinfectProjectChange"
|
|
|
:max-collapse-tags="1"
|
|
|
style="width: 240px"
|
|
|
>
|
|
|
@@ -58,9 +59,9 @@
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in users"
|
|
|
- :key="item.id"
|
|
|
+ :key="item.code"
|
|
|
:label="item.name"
|
|
|
- :value="item.id"
|
|
|
+ :value="item.code"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -155,7 +156,7 @@
|
|
|
import { nextTick, onMounted, ref } from 'vue'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import { getLcProjectById,getAllLcProjectTypes } from '@/api/lc/project.js';
|
|
|
-import { getSterileList,insertSterilization } from "@/api/lc/sterile.js";
|
|
|
+import { getSterileList, insertSterilization, getEmployeeMiList, getWarehousingSterileDetailList } from "@/api/lc/sterile.js";
|
|
|
|
|
|
const props = defineProps({
|
|
|
//子组件接收父组件传递过来的值
|
|
|
@@ -168,7 +169,8 @@ const emit = defineEmits(["handleDialogClose", "init"])
|
|
|
onMounted(() => {
|
|
|
nextTick(() => {
|
|
|
getDisinfectProjects();
|
|
|
- getProjectTypes()
|
|
|
+ getProjectTypes();
|
|
|
+ getUserList();
|
|
|
if (currentEditId.value) {
|
|
|
init()
|
|
|
}
|
|
|
@@ -243,6 +245,26 @@ const add = () => {
|
|
|
|
|
|
};
|
|
|
|
|
|
+const getUserList = () => {
|
|
|
+ getEmployeeMiList().then(res => {
|
|
|
+ users.value = res;
|
|
|
+ }).catch(err => {
|
|
|
+
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+const selectDisinfectProjectChange = () => {
|
|
|
+ getWDList();
|
|
|
+}
|
|
|
+
|
|
|
+const getWDList = () => {
|
|
|
+ getWarehousingSterileDetailList(selectDisinfectProject.value).then(res => {
|
|
|
+ batchNums.value = res;
|
|
|
+ }).catch(err => {
|
|
|
+
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
const getDisinfectProjects = () => {
|
|
|
let params = {
|
|
|
projectType: "2"
|
|
|
@@ -251,7 +273,7 @@ const getDisinfectProjects = () => {
|
|
|
disinfectProjects.value = res;
|
|
|
}).catch(err => {
|
|
|
|
|
|
- })
|
|
|
+ });
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -264,7 +286,9 @@ const init = () => {
|
|
|
tableData.value = res.data.lcProjectAliasList
|
|
|
}).catch(err => {
|
|
|
|
|
|
- })
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
const confirm = () => {
|