|
@@ -36,6 +36,7 @@
|
|
<el-table-column label="总批数" prop="totalLotNumber" width="70" align="center" />
|
|
<el-table-column label="总批数" prop="totalLotNumber" width="70" align="center" />
|
|
<el-table-column label="单批量" prop="oneLotQuantity" width="80" align="center" />
|
|
<el-table-column label="单批量" prop="oneLotQuantity" width="80" align="center" />
|
|
<el-table-column label="尾批量" prop="lastLotQuantity" width="80" align="center" />
|
|
<el-table-column label="尾批量" prop="lastLotQuantity" width="80" align="center" />
|
|
|
|
+ <el-table-column label="追增批数" prop="superadditionTotalNumber" width="80" align="center" />
|
|
<el-table-column label="批号状态" prop="lotCodeStatusCode" width="100" align="center">
|
|
<el-table-column label="批号状态" prop="lotCodeStatusCode" width="100" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<dict-tag :options="lot_code_status_code" :value="scope.row.lotCodeStatusCode" />
|
|
<dict-tag :options="lot_code_status_code" :value="scope.row.lotCodeStatusCode" />
|
|
@@ -43,7 +44,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="累计投产量" prop="pickUpQuantity" width="80" align="center" />
|
|
<el-table-column label="累计投产量" prop="pickUpQuantity" width="80" align="center" />
|
|
<el-table-column label="累计投产批数" prop="lotTotalNumber" width="90" align="center" />
|
|
<el-table-column label="累计投产批数" prop="lotTotalNumber" width="90" align="center" />
|
|
- <el-table-column label="库位" prop="storageLocation" width="80" align="center" />
|
|
|
|
|
|
+ <!-- <el-table-column label="库位" prop="storageLocation" width="80" align="center" /> -->
|
|
<el-table-column label="领料部门" prop="requisitionDepartmentName" width="100" align="center">
|
|
<el-table-column label="领料部门" prop="requisitionDepartmentName" width="100" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<span>{{ scope.row.requisitionDepartmentName }}</span>
|
|
<span>{{ scope.row.requisitionDepartmentName }}</span>
|
|
@@ -138,10 +139,11 @@
|
|
<script setup name="ProductionBatch">
|
|
<script setup name="ProductionBatch">
|
|
import { ref } from "vue";
|
|
import { ref } from "vue";
|
|
import { listProductionPlanDetail } from "@/api/business/productionPlanDetail.js";
|
|
import { listProductionPlanDetail } from "@/api/business/productionPlanDetail.js";
|
|
|
|
+import {isTakeStock} from "@/api/business/takeStockPeriod.js"
|
|
import {
|
|
import {
|
|
listPlanDetailSubDetail,
|
|
listPlanDetailSubDetail,
|
|
delPlanDetailSubDetail,
|
|
delPlanDetailSubDetail,
|
|
- getDept,
|
|
|
|
|
|
+ getDeptList,
|
|
getLastLotStatus,
|
|
getLastLotStatus,
|
|
} from "@/api/business/planDetailSubDetail.js";
|
|
} from "@/api/business/planDetailSubDetail.js";
|
|
import { updateLotCodeStatus } from "@/api/business/productionPlanDetail.js";
|
|
import { updateLotCodeStatus } from "@/api/business/productionPlanDetail.js";
|
|
@@ -163,6 +165,7 @@ const deptList = ref([]);
|
|
/** 生产子计划 */
|
|
/** 生产子计划 */
|
|
const subList = ref([]);
|
|
const subList = ref([]);
|
|
const flag = ref(false);
|
|
const flag = ref(false);
|
|
|
|
+const isDispatch = ref(false);
|
|
const subDetailsLoading = ref(false);
|
|
const subDetailsLoading = ref(false);
|
|
/** 查询对象 */
|
|
/** 查询对象 */
|
|
const queryParams = ref({
|
|
const queryParams = ref({
|
|
@@ -180,13 +183,16 @@ const queryParams = ref({
|
|
*/
|
|
*/
|
|
function getList() {
|
|
function getList() {
|
|
loading.value = true;
|
|
loading.value = true;
|
|
- getDept().then((response) => {
|
|
|
|
- deptList.value = response.data;
|
|
|
|
- if (deptList.value.length > 0) {
|
|
|
|
- queryParams.value.deptId = deptList.value[0].value;
|
|
|
|
- getProductionPlanDetail();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ getDeptList().then((response) => {
|
|
|
|
+ deptList.value = response.data.rows;
|
|
|
|
+ isDispatch.value = response.data.others.isDispatch;
|
|
|
|
+ loading.value = false;
|
|
|
|
+ if (isDispatch.value) {
|
|
|
|
+ deptList.value.unshift({ label: "全部", value: "0" });
|
|
|
|
+ }
|
|
|
|
+ queryParams.value.deptId = deptList.value[0].value;
|
|
|
|
+ getProductionPlanDetail();
|
|
|
|
+ });
|
|
loading.value = false;
|
|
loading.value = false;
|
|
}
|
|
}
|
|
/**工段下拉框change事件 */
|
|
/**工段下拉框change事件 */
|
|
@@ -268,6 +274,10 @@ function handlePlanDetailCurrentChange(row) {
|
|
/*********************** 生产子计划 ****************************/
|
|
/*********************** 生产子计划 ****************************/
|
|
/**新增按钮生产子计划 */
|
|
/**新增按钮生产子计划 */
|
|
function handleAddSubDetail(row) {
|
|
function handleAddSubDetail(row) {
|
|
|
|
+ isTakeStock().then(res =>{
|
|
|
|
+ if(res.data) {
|
|
|
|
+ proxy.$modal.msgError('正在盘点,不能投产')
|
|
|
|
+ }else{
|
|
/**创建一个空的对象,将生产计划中的数据赋值给子计划数据 */
|
|
/**创建一个空的对象,将生产计划中的数据赋值给子计划数据 */
|
|
const newDetail = {};
|
|
const newDetail = {};
|
|
newDetail.productionPlanId = row.productionPlanId;
|
|
newDetail.productionPlanId = row.productionPlanId;
|
|
@@ -303,6 +313,9 @@ function handleAddSubDetail(row) {
|
|
proxy.$refs.productionRef.open(newDetail);
|
|
proxy.$refs.productionRef.open(newDetail);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
/** 修改 生产子计划 事件 */
|
|
/** 修改 生产子计划 事件 */
|