|
@@ -91,7 +91,7 @@ import {
|
|
|
delDayworkItem
|
|
|
} from "@/api/business/daywork.js";
|
|
|
import { listDeptProcess } from "@/api/business/deptProcess";
|
|
|
-import { getDept } from "@/api/business/planDetailSubDetail.js";
|
|
|
+import { getDeptList } from "@/api/business/planDetailSubDetail.js";
|
|
|
import router from "@/router";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
@@ -114,6 +114,7 @@ const itemTotal = ref(0);
|
|
|
const lastStatus = ref(null)
|
|
|
const latestProcessId = ref(null);
|
|
|
const latestDeptId = ref(null)
|
|
|
+const isDispatch = ref(false);
|
|
|
const deptProcessList = ref([]);
|
|
|
/**工序 */
|
|
|
const processList = ref([]);
|
|
@@ -130,17 +131,16 @@ const queryParams = ref({
|
|
|
/*********************** 工段相关事件 ****************************/
|
|
|
function getList() {
|
|
|
loading.value = true;
|
|
|
- getDept().then((response) => {
|
|
|
- deptList.value = response.data;
|
|
|
+ getDeptList().then((response) => {
|
|
|
+ deptList.value = response.data.rows;
|
|
|
+ isDispatch.value = response.data.others.isDispatch;
|
|
|
loading.value = false;
|
|
|
- if (deptList.value.length > 0) {
|
|
|
+ if (deptList.value.length > 0 && !isDispatch.value) {
|
|
|
queryParams.value.deptId = deptList.value[0].value;
|
|
|
- // queryParams.value.deptId = '14'
|
|
|
- console.log(22222)
|
|
|
- getDayworkItems();
|
|
|
} else {
|
|
|
- dayworkItemList.value = [];
|
|
|
+ deptList.value.unshift({ label: "全部", value: "0" });
|
|
|
}
|
|
|
+ getDayworkItems();
|
|
|
});
|
|
|
}
|
|
|
|