|
@@ -27,7 +27,7 @@
|
|
|
<el-table-column label="客户简称" prop="companyAlias" width="150" align="center" />
|
|
|
<el-table-column label="生产计划单号" prop="productionPlanNo" width="110" align="center" />
|
|
|
<el-table-column label="序号" width="60" prop="lineNumber" align="center" />
|
|
|
- <el-table-column label="产品描述" prop="productDescription" align="center" />
|
|
|
+ <el-table-column label="产品描述" prop="productDescription" width="150" align="center" />
|
|
|
<el-table-column label="图纸版本" prop="technologyVersion" width="70" align="center" />
|
|
|
<el-table-column label="总投产量" prop="productionQuantity" width="80" align="center" />
|
|
|
<el-table-column label="总批数" prop="totalLotNumber" width="80" align="center" />
|
|
@@ -42,14 +42,15 @@
|
|
|
<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="storageLocation" width="80" align="center" />
|
|
|
- <el-table-column label="领料部门" prop="requisitionDepartmentName" align="center" fixed="right">
|
|
|
+ <el-table-column label="领料部门" prop="requisitionDepartmentName" align="center" >
|
|
|
<template #default="scope">
|
|
|
<span>{{ scope.row.requisitionDepartmentName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="下达日期" prop="issueDate" width="120" align="center" />
|
|
|
- <el-table-column label="操作" width="70" align="center" fixed="right">
|
|
|
+ <el-table-column label="操作" width="200" align="center" fixed="right">
|
|
|
<template #default="scope">
|
|
|
+ <el-button link type="warning" icon="View" @click="handleCheckMarterialInfo(scope.row)" >领料信息 </el-button>
|
|
|
<el-button :disabled="!(queryParams.deptId == scope.row.requisitionDepartmentId) ||(scope.row.totalLotNumber == scope.row.lotTotalNumber) " link type="primary" icon="Postcard" @click="handleAddSubDetail(scope.row)" v-hasPermi="['business:productionBatch:add']">投产 </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -101,53 +102,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</section>
|
|
|
- <!-- <section class="list-part-container" style="flex: 1">
|
|
|
- <el-form class="list-search-container" :inline="true">
|
|
|
- <el-form-item class="section-title" label="工序" />
|
|
|
- </el-form>
|
|
|
- <div class="el-table-container">
|
|
|
- <div class="el-table-inner-container">
|
|
|
- <el-table ref="processTable" :data="processList" highlight-current-row height="100%" @current-change="handleProcessCurrentChange">
|
|
|
- <el-table-column type="index" label="行号" width="50" align="center" />
|
|
|
- <el-table-column label="工序名称" prop="processAlias" align="center" />
|
|
|
- <el-table-column label="工序编码" prop="processCode" align="center" />
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
- <section class="list-part-container" style="flex: 1">
|
|
|
- <el-form class="list-search-container" :inline="true">
|
|
|
- <el-form-item class="section-title" label="设置设备" />
|
|
|
- <el-form-item>
|
|
|
- <el-button icon="Plus" type="primary" :disabled="!currentProcess.id" @click="openEquipment" v-hasPermi="['business:productionBatch:add']">选择设备</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div class="el-table-container">
|
|
|
- <div class="el-table-inner-container">
|
|
|
- <el-table v-loading="equipmentLoading" :data="equipmentList" highlight-current-row height="100%" @selection-change="handleEquipmentSelectionChange">
|
|
|
- <el-table-column type="index" label="行号" width="50" align="center" />
|
|
|
- <el-table-column label="设备编码" prop="equipmentDetailCode" align="center">
|
|
|
- <template #default="scope">
|
|
|
- <el-button link type="primary">{{ scope.row.equipmentDetailCode }}
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="设备名称" prop="equipmentName" align="center" />
|
|
|
-
|
|
|
- <el-table-column label="操作" width="60" align="center">
|
|
|
- <template #default="scope">
|
|
|
- <el-button link type="danger" icon="delete" @click="handleEquipmentDelete(scope.row)" v-hasPermi="['business:productionBatch:remove']">删除
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </section> -->
|
|
|
</section>
|
|
|
<!-- 表单 -->
|
|
|
<production-lot-form ref="productionRef" @handleSaveSuccess="handleFresh()" />
|
|
|
- <!-- <equipment ref="equipmentRef" :get-list="handleProcessCurrentChange" :multipleSelected="equipmentSelected" :multiple="true" /> -->
|
|
|
+ <check-material ref="checkMaterialRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup name="ProductionBatch">
|
|
@@ -157,7 +115,7 @@ import { savePlanDetailSubDetail, listPlanDetailSubDetail, delPlanDetailSubDetai
|
|
|
import { saveBatchEquipment, listEquipment, delEquipment } from '@/api/business/productionPlanDetailEquipment.js'
|
|
|
import { listTechnologicalProcessDetail } from '@/api/business/technologicalProcessDetail.js'
|
|
|
import { updateLotCodeStatus } from '@/api/business/productionPlanDetail.js'
|
|
|
-import equipment from '@/views/dialog/equipment.vue'
|
|
|
+import checkMaterial from './DialogCheckMaterial.vue'
|
|
|
import productionLotForm from './form'
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
const { lot_code_status_code } = proxy.useDict('lot_code_status_code')
|
|
@@ -277,12 +235,14 @@ function handleEquipmentSelectionChange(selection) {
|
|
|
equipmentSingle.value = selection.length != 1
|
|
|
equipmentMultiple.value = !selection.length
|
|
|
}
|
|
|
-
|
|
|
+//查询生产计划单的领料信息
|
|
|
+function handleCheckMarterialInfo(row) {
|
|
|
+ proxy.$refs.checkMaterialRef.open(row)
|
|
|
+}
|
|
|
/** 生产计划明细 current-change 事件 */
|
|
|
function handlePlanDetailCurrentChange(row) {
|
|
|
if (row) {
|
|
|
currentPlanDetail.value = row
|
|
|
- console.log(queryParams.value.deptId)
|
|
|
if(currentPlanDetail.value.requisitionDepartmentId == queryParams.value.deptId) {
|
|
|
flag.value = true
|
|
|
}
|